@import url("https://fonts.googleapis.com/css2?family=Young+Serif&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Sans+Arabic:wght@400;600;700&display=swap");

:root {
  --sand: #f4efe6;
  --paper: #fbf8f2;
  --sage: #4f7356;
  --sage-soft: #dce7dd;
  --sun: #d9a066;
  --coral: #f2a6a0;
  --ink: #2e2a26;
  --muted: #6a6158;
  --line: #e2d9cb;
  --display: "Young Serif", Georgia, serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --measure: 66ch;
}

html[lang="ar"] {
  --display: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--sage); text-underline-offset: 3px; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute;
  inset-inline-start: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
.skip:focus { inset-inline-start: 0.5rem; }

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35rem;
}
.brand img { width: 40px; height: 40px; }
.brand b { color: var(--sage); font-weight: inherit; }
.top nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 0.98rem; }
.top nav a:hover { color: var(--sage); }
.lang {
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.lang:hover { background: var(--ink); color: var(--sand); }
select.lang {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232e2a26' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 10px;
  background-position: right 0.8rem center;
}
html[dir="rtl"] select.lang { background-position: left 0.8rem center; }
select.lang:hover { background-color: transparent; color: var(--ink); }
html[lang="zh"] body { font-family: "Atkinson Hyperlegible", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
html[lang="hi"] body { font-family: "Atkinson Hyperlegible", "Noto Sans Devanagari", "Nirmala UI", sans-serif; }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { font-family: inherit; font-weight: 700; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-block: 2.5rem 3.5rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  max-width: 13ch;
}
html[lang="ar"] .hero h1 { line-height: 1.25; font-weight: 700; letter-spacing: 0; }
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 44ch; margin: 0 0 2rem; }

.cta { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 0.95rem 1.4rem;
  border-radius: 14px;
  font-weight: 700;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 0.9rem; }

/* the breathing orb */
.breath {
  position: relative;
  aspect-ratio: 1;
  width: min(460px, 100%);
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.breath .halo, .breath .core {
  position: absolute;
  border-radius: 50%;
}
.breath .halo {
  inset: 4%;
  background: radial-gradient(circle, var(--sage-soft) 0%, rgba(220, 231, 221, 0) 70%);
}
.breath .core {
  inset: 18%;
  background: var(--sage);
  box-shadow: 0 0 0 14px rgba(79, 115, 86, 0.12);
}
.breath .label {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 22%;
}
.breath .label strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.1;
}
html[lang="ar"] .breath .label strong { font-weight: 700; }
.breath .label span { display: block; margin-top: 0.4rem; opacity: 0.9; font-size: 1rem; }
.breath button {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.breath .sun {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  top: 16%;
  inset-inline-end: 14%;
}
.breathing .core, .breathing .halo { animation: breathe 10s ease-in-out infinite; }
@keyframes breathe {
  0% { transform: scale(0.82); }
  40% { transform: scale(1.06); }
  100% { transform: scale(0.82); }
}
.idle .core { animation: idle 7s ease-in-out infinite; }
@keyframes idle {
  0%, 100% { transform: scale(0.97); }
  50% { transform: scale(1.01); }
}

/* sections */
section { padding-block: 4.5rem; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 20ch;
}
html[lang="ar"] h2 { font-weight: 700; line-height: 1.35; }
h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.intro { color: var(--muted); max-width: var(--measure); font-size: 1.12rem; margin: 0 0 2.5rem; }

/* fast vs slow */
.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 28px;
  overflow: hidden;
}
.contrast > div { padding: 2.25rem; }
.fast { background: var(--ink); color: #efe9df; }
.slow { background: var(--paper); }
.contrast h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin-bottom: 1rem; }
html[lang="ar"] .contrast h3 { font-weight: 700; }
.contrast ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.8rem; }
.contrast li { display: flex; gap: 0.7rem; align-items: baseline; }
.fast li::before { content: ""; width: 8px; height: 8px; background: var(--coral); border-radius: 2px; flex: none; transform: translateY(-2px); }
.slow li::before { content: ""; width: 8px; height: 8px; background: var(--sage); border-radius: 50%; flex: none; transform: translateY(-2px); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  color: var(--sage);
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.step p { margin: 0; color: var(--muted); max-width: 34ch; }

.joys {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.joy {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--paper);
  border-radius: 999px;
  padding: 0.35rem 1.1rem 0.35rem 0.35rem;
}
html[dir="rtl"] .joy { padding: 0.35rem 0.35rem 0.35rem 1.1rem; }
.joy img { width: 46px; height: 46px; object-fit: contain; }

/* kids */
.kids {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.kids .balloon { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; }
.kids .balloon img { width: 46%; }
.kids ul { padding-inline-start: 1.2rem; margin: 0 0 1.5rem; }
.kids li { margin-bottom: 0.5rem; }
.growth {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 1.5rem 1.5rem 0;
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  border-bottom: 10px solid #c9b597;
}
.growth figure { margin: 0; flex: 1; display: flex; flex-direction: column; align-items: center; }
.growth img { width: 100%; max-width: 120px; }
.growth figcaption { font-size: 0.85rem; color: var(--muted); padding-block: 0.5rem; text-align: center; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.plan {
  background: var(--paper);
  border-radius: 22px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.plan.featured { background: var(--sage); color: #fff; }
.plan.featured .muted { color: #e3ece4; }
.plan h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin-bottom: 0.25rem; }
html[lang="ar"] .plan h3 { font-weight: 700; }
.plan .price { font-size: 1.05rem; margin-bottom: 1.25rem; }
.plan ul { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: 0.45rem; }
.muted { color: var(--muted); }
.fine { font-size: 0.92rem; color: var(--muted); margin-top: 1.5rem; max-width: var(--measure); }

/* privacy promise */
.promise { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.promise dl { margin: 0; display: grid; gap: 1.25rem; }
.promise dt { font-weight: 700; }
.promise dd { margin: 0.2rem 0 0; color: var(--muted); }

/* faq */
details {
  border-bottom: 1px solid var(--line);
  padding-block: 1.1rem;
  max-width: 78ch;
}
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); color: var(--sage); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 0.75rem 0 0; }

/* footer */
footer {
  background: var(--ink);
  color: #d9d1c4;
  padding-block: 3rem;
  margin-top: 2rem;
}
footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
footer a { color: #fff; }
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer p { margin: 0.25rem 0; font-size: 0.95rem; }

/* legal pages */
.doc { padding-block: 2rem 4rem; }
.doc article { max-width: var(--measure); }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 0.5rem; }
html[lang="ar"] .doc h1 { font-weight: 700; line-height: 1.35; }
.doc h2 { font-size: 1.5rem; margin-top: 2.5rem; max-width: none; }
.doc .updated { color: var(--muted); margin-bottom: 2rem; }
.doc li { margin-bottom: 0.4rem; }

[data-only] { display: none; }
html[lang="en"] [data-only="en"],
html[lang="ar"] [data-only="ar"],
html[lang="ms"] [data-only="ms"],
html[lang="id"] [data-only="id"],
html[lang="zh"] [data-only="zh"],
html[lang="hi"] [data-only="hi"],
html[lang="es"] [data-only="es"],
html[lang="fr"] [data-only="fr"],
html[lang="tr"] [data-only="tr"],
html[lang="pt"] [data-only="pt"] { display: block; }

@media (max-width: 860px) {
  .hero, .kids, .promise { grid-template-columns: 1fr; }
  .hero { padding-top: 1rem; padding-bottom: 2rem; gap: 1rem; }
  .breath { width: min(340px, 86%); }
  .contrast, .steps, .plans { grid-template-columns: 1fr; }
  .top nav a { display: none; }
  select.lang { max-width: 11rem; }
  .growth { padding-inline: 0.75rem; }
  .growth figcaption { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breathing .core, .breathing .halo, .idle .core { animation: none; }
}
