/* MilaMeter marketing site — RTL, self-hosted font, no third-party requests */

@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-hebrew.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  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 {
  --ink: #0f2f33;
  --muted: #46666a;
  --teal: #18b5b1;
  --teal-deep: #0c7f7c;
  --teal-tint: #e6f7f6;
  --sun: #ffd034;
  --sun-deep: #f2b800;
  --green: #a3d95d;
  --green-deep: #4d8a12;
  --blue: #67c6e1;
  --orange: #ff9f43;
  --pink: #ef6c9b;
  --purple: #9b7ce0;
  --cream: #fffbef;
  --white: #ffffff;
  --line: #d9ecec;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(12, 127, 124, 0.14);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Rubik", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tint { background: var(--teal-tint); }
.section--white { background: var(--white); }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal-deep);
  background: var(--teal-tint);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section--tint .eyebrow { background: var(--white); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100;
}
.skip:focus { top: 12px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.35rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover { background: var(--teal-tint); }
.nav-links a[aria-current="page"] { background: var(--teal-tint); font-weight: 700; }
.nav-links a.btn { color: #fff; padding: 9px 22px; margin-inline-start: 8px; }
.nav-links a.btn:hover { background: var(--ink); }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 800; font-size: 1.1rem;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--play { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(15, 47, 51, 0.28); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 8px 20px rgba(242, 184, 0, 0.35); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--small { padding: 9px 20px; font-size: 1rem; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 208, 52, 0.45) 0, transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(103, 198, 225, 0.45) 0, transparent 40%),
    radial-gradient(circle at 80% 95%, rgba(163, 217, 93, 0.4) 0, transparent 38%),
    var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 .hl { color: var(--teal-deep); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; inset-inline: -4px; bottom: 2px; height: 0.32em; z-index: -1;
  background: var(--sun); border-radius: 8px;
}
.hero .lead { margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { background: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 0.98rem; display: flex; gap: 8px; align-items: center; }
.chips li::before { content: "✓"; color: var(--green-deep); font-weight: 900; }

/* Phone mockup with a playable demo question */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(100%, 310px); background: var(--ink); border-radius: 44px; padding: 12px;
  box-shadow: 0 30px 60px rgba(15, 47, 51, 0.3);
  transform: rotate(-3deg);
}
.phone-screen { background: var(--white); border-radius: 34px; padding: 22px 18px 24px; min-height: 440px; display: flex; flex-direction: column; gap: 14px; }
.phone-top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.phone-top .lvl { background: var(--teal-tint); color: var(--teal-deep); padding: 3px 12px; border-radius: 999px; }
.phone-top .stars { letter-spacing: 2px; color: var(--sun-deep); }
.q-card { background: var(--teal-tint); border-radius: 20px; padding: 16px; text-align: center; font-weight: 800; font-size: 1.15rem; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.q-card .speak { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--teal-deep); background: var(--white); padding: 3px 12px; border-radius: 999px; }
.q-expr { direction: ltr; unicode-bidi: isolate; font-size: 2rem; letter-spacing: 2px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.opts--3 { grid-template-columns: repeat(3, 1fr); }
.opt {
  font: inherit; font-weight: 800; font-size: 1.5rem; color: var(--ink);
  background: var(--white); border: 3px solid var(--line); border-radius: 18px;
  padding: 14px 6px; cursor: pointer; min-height: 64px; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.opt:hover { transform: translateY(-2px); border-color: var(--teal); }
.opt.is-right { background: #e5f6cf; border-color: var(--green-deep); }
.opt.is-wrong { background: #ffe9d1; border-color: var(--orange); animation: shake 0.35s; }
.q-feedback { min-height: 1.6em; text-align: center; font-weight: 800; color: var(--green-deep); }
.demo-hint { text-align: center; margin: 14px 0 0; font-size: 0.95rem; color: var(--muted); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.float { position: absolute; font-size: 2.2rem; animation: bob 4s ease-in-out infinite; pointer-events: none; }
.float.f1 { inset-inline-start: 2%; top: 8%; }
.float.f2 { inset-inline-end: 0; top: 30%; animation-delay: 0.8s; }
.float.f3 { inset-inline-start: 6%; bottom: 10%; animation-delay: 1.6s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(6deg); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -36px; position: relative; z-index: 2; }
.stat { background: var(--white); border-radius: var(--radius); padding: 22px 12px; text-align: center; box-shadow: var(--shadow); border: 2px solid var(--line); }
.stat b { display: block; font-size: 2.1rem; font-weight: 900; color: var(--teal-deep); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 500; font-size: 0.98rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; margin-top: 40px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 2px solid var(--line); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.icon-bubble { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 16px; }
.b-teal { background: var(--teal-tint); } .b-sun { background: #fff3c4; } .b-green { background: #e5f6cf; }
.b-blue { background: #dff3fa; } .b-pink { background: #fde3ee; } .b-purple { background: #ece5fa; } .b-orange { background: #ffe9d1; }

.track { position: relative; overflow: hidden; }
.track::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 10px; }
.track--a::before { background: var(--sun); }
.track--b::before { background: var(--teal); }
.tag { display: inline-block; font-weight: 800; font-size: 0.85rem; padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.track--a .tag { background: #fff3c4; } .track--b .tag { background: var(--teal-tint); color: var(--teal-deep); }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: "✓"; color: var(--green-deep); font-weight: 900; flex: none; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 28px; border: 2px solid var(--line); position: relative; }
.steps li::before {
  content: counter(step); position: absolute; inset-block-start: -18px; inset-inline-start: 24px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: var(--ink);
  font-weight: 900; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(242, 184, 0, 0.4);
}

/* ---------- Parents dashboard mock ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.dash { background: var(--white); border-radius: 26px; border: 2px solid var(--line); box-shadow: var(--shadow); padding: 22px; }
.dash-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: var(--ink); }
.dash table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.dash th, .dash td { padding: 10px 6px; text-align: start; border-bottom: 1px solid var(--line); }
.dash th { color: var(--muted); font-weight: 500; }
.dash td b { font-weight: 800; }
.bar { height: 12px; background: var(--teal-tint); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--green)); }
.skill { margin-top: 14px; font-weight: 700; }
.skill small { color: var(--muted); font-weight: 500; }
.note { font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Plans ---------- */
.plan h3 { font-size: 1.6rem; }
.plan .badge { display: inline-block; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 0.85rem; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.plan--premium { border-color: var(--teal); background: linear-gradient(180deg, var(--teal-tint), var(--white) 60%); }

.pay-cards { margin: 24px 0 8px; }
.pay { position: relative; }
.pay .badge { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; margin: 0; }
.pay-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 12px; }
.pay h3 { margin-bottom: 2px; font-size: 1.5rem; }
.pay-sub { color: var(--teal-deep); font-weight: 700; margin-bottom: 0; }
.price { margin: 10px 0 0; font-weight: 900; font-size: 2.2rem; color: var(--teal-deep); line-height: 1.2; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price .price-year { display: block; font-size: 0.95rem; }
.pay .badge { background: var(--sun); color: var(--ink); font-weight: 800; font-size: 0.85rem; padding: 3px 12px; border-radius: 999px; }
.price-note { margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line); color: var(--muted); font-size: 0.95rem; }
.doc .pay .ticks { padding: 0; margin-top: 12px; }
.doc .pay .ticks li { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 500; color: var(--teal-deep); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* ---------- Final CTA ---------- */
.cta-band { background: var(--teal-deep); color: #fff; border-radius: 32px; padding: clamp(32px, 6vw, 64px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6f3f2; max-width: 56ch; margin-inline: auto; }
.cta-band .btn { margin-top: 10px; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; opacity: 0.18; background: var(--sun); }
.cta-band::before { width: 220px; height: 220px; inset-inline-start: -60px; top: -80px; }
.cta-band::after { width: 160px; height: 160px; inset-inline-end: -40px; bottom: -60px; background: var(--blue); }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Document pages (subscriptions / privacy) ---------- */
.doc { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc ul { padding-inline-start: 1.3em; }
.doc li { margin-bottom: 0.4em; }
.doc .meta { color: var(--muted); font-size: 0.95rem; }
.callout { background: var(--teal-tint); border-radius: 18px; padding: 18px 22px; margin: 24px 0; }
.lang-en { direction: ltr; text-align: left; background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 8px 24px 16px; margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfe3e4; padding-block: 48px 32px; margin-top: 0; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h3 { color: #fff; font-size: 1.05rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.studio { display: flex; align-items: center; gap: 14px; }
.studio img { width: 72px; background: #fff; border-radius: 14px; padding: 6px; }
.legal { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 32px; padding-top: 20px; font-size: 0.9rem; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .phone-stage { margin-top: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -28px; }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .steps { gap: 36px; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; inset-inline: 0; top: 68px; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .opt.is-wrong { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .opt { transition: none; }
}
