/* Moodmo website: shared styles. Classic palette, Nunito, flat surfaces. */

/* Nunito (SIL OFL 1.1, see assets/fonts/OFL.txt), self-hosted so no visitor data reaches a font CDN. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/nunito-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/nunito-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/nunito-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --violet: #5b3fb5;
  --violet-soft: #e9e2f7;
  --canvas: #f4f1fa;
  --surface: #ffffff;
  --ink: #17161c;
  --muted: #6b6879;
  --border: #e3dcef;
  --on-violet: #ffffff;
  --lime: #b7e07a;
  --sky: #9cc7f2;
  --butter: #f7d65a;
  --lilac: #c9a7f0;
  --tangerine: #ff8a4c;
  --radius: 28px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --violet: #b79cf2;
    --violet-soft: #2f2a3d;
    --canvas: #17161c;
    --surface: #24222c;
    --ink: #f4f1fa;
    --muted: #a9a5ba;
    --border: #34313f;
    --on-violet: #17161c;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet);
  font-weight: 700;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 760px;
}

/* Header */

.site-header {
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-block;
  width: 150px;
}

.brand img {
  width: 150px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink);
}

.nav a:hover {
  background: var(--violet-soft);
}

.nav a[aria-current="page"] {
  background: var(--violet-soft);
}

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch a,
.lang-switch span {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
}

.lang-switch span {
  background: var(--violet);
  color: var(--on-violet);
  font-weight: 800;
}

.lang-switch a {
  color: var(--ink);
}

/* Buttons and pills */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.pill-primary {
  background: var(--violet);
  color: var(--on-violet);
}

.pill-soft {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.pill-muted {
  color: var(--muted);
  font-weight: 700;
}

/* Hero */

.hero {
  padding: 32px 0 48px;
}

.hero .wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 820px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 1fr;
  }
}

.eyebrow {
  display: inline-block;
  background: var(--violet-soft);
  color: var(--violet);
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.faces {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 18px;
}

.face {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 819px) {
  .hero {
    padding-bottom: 8px;
  }
}

@media (max-width: 420px) {
  .faces {
    gap: 6px;
    padding: 18px 12px;
  }

  .face span {
    display: none;
  }
}

.face svg {
  width: 100%;
  max-width: 72px;
  margin: 0 auto 8px;
}

.face:nth-child(odd) svg {
  transform: rotate(-6deg);
}

.face:nth-child(even) svg {
  transform: rotate(5deg);
}

/* Sections and cards */

.section {
  padding: 40px 0;
}

.section-head {
  max-width: 40em;
  margin-bottom: 24px;
}

.section-head p {
  color: var(--muted);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.feature .dot {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 12px;
  color: #17161c;
}

.feature .dot svg {
  width: 24px;
  height: 24px;
}

.feature p {
  color: var(--muted);
  margin: 0;
}

.bg-lime { background: var(--lime); }
.bg-sky { background: var(--sky); }
.bg-butter { background: var(--butter); }
.bg-lilac { background: var(--lilac); }
.bg-tangerine { background: var(--tangerine); }

.promise {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.promise .card {
  color: #17161c;
}

.promise .card p {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.premium {
  background: var(--violet);
  color: var(--on-violet);
}

.premium a {
  color: var(--on-violet);
}

.premium ul {
  padding-left: 1.2em;
}

.prices {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  margin: 20px 0 12px;
}

.price {
  background: var(--surface);
  color: var(--ink);
  border-radius: 20px;
  padding: 16px;
}

.price strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.price span {
  color: var(--muted);
}

.note {
  font-size: 0.95rem;
  opacity: 0.9;
}

.download {
  text-align: center;
}

.download .hero-actions {
  justify-content: center;
}

.privacy-highlight {
  display: grid;
  gap: 16px;
  align-items: center;
}

@media (min-width: 720px) {
  .privacy-highlight {
    grid-template-columns: 1fr auto;
  }
}

/* Policy page */

.policy h1 {
  margin-top: 8px;
}

.policy h2 {
  margin-top: 40px;
  scroll-margin-top: 16px;
}

.policy ul {
  padding-left: 1.3em;
}

.policy li {
  margin-bottom: 0.4em;
}

.meta {
  color: var(--muted);
}

.glance {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.policy .glance h2 {
  margin-top: 0;
}

.glance ul {
  margin: 0;
}

.toc {
  columns: 2 220px;
  padding-left: 1.3em;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: 20px;
  margin: 16px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

/* On phones each service becomes its own card, every value under its column name. */
@media (max-width: 640px) {
  .table-wrap {
    overflow: visible;
    background: none;
  }

  table {
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tr {
    display: block;
    background: var(--surface);
    border-radius: 20px;
    padding: 6px 0;
    margin-bottom: 12px;
  }

  td {
    display: block;
    border-bottom: 0;
    padding: 6px 18px;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--muted);
  }

  td:first-child {
    font-weight: 800;
    font-size: 1.05rem;
  }

  td:first-child::before {
    display: none;
  }
}

/* Footer */

.site-footer {
  margin-top: 40px;
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .pill,
  .nav a {
    transition: background-color 0.15s ease;
  }
}
