/* ==========================================================================
   Storyglot marketing site
   Fonts: Fredoka (display), Nunito (body), Lora (reading samples)
   ========================================================================== */

:root {
  /* Brand */
  --green: #58cc02;
  --green-hover: #58a700;
  --green-dark: #46a302;
  --green-deep: #3f9e01;
  --green-deeper: #3f8f00;

  --blue: #2563eb;
  --blue-ink: #12336b;
  --blue-ink-2: #1c4fa6;
  --blue-deep: #0f2f66;
  --blue-deepest: #0c2450;

  --ink: #1f2637;
  --ink-hero: #12233f;
  --text: #54607a;
  --muted: #8a93a5;

  --bg: #fbfcfe;
  --bg-soft: #f5f7fb;
  --card: #ffffff;
  --border: #eceff5;
  --border-2: #dfe4f0;

  --orange: #ff9600;

  --shadow-card: 0 5px 0 var(--border);
  --radius: 18px;
  --maxw: 1180px;
}

/* ------------------------------ Reset / base ---------------------------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-ink); }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.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;
}

/* Material Symbols helper */
.msr {
  font-family: 'Material Symbols Rounded';
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  font-weight: normal;
}
.msr.bold { font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 24; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-phone { animation: none !important; }
}

/* --------------------------------- Nav ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 254, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  padding-top: 16px; padding-bottom: 16px;
}
.brand {
  display: flex; align-items: center;
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: 25px; color: var(--blue-ink); letter-spacing: -.3px;
}
.brand:hover { color: var(--blue-ink); }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.nav-link {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px;
  color: #42506b;
}
.nav-link:hover { color: var(--blue-ink); }

/* ------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  border: none; cursor: pointer;
  border-radius: var(--radius);
  transition: transform .06s ease, box-shadow .06s ease;
}
.btn:active { transform: translateY(3px); }
.btn-green {
  color: #fff; background: var(--green);
  box-shadow: 0 5px 0 var(--green-dark);
}
.btn-green:hover { color: #fff; background: var(--green-hover); }
.btn-green:active { box-shadow: 0 2px 0 var(--green-dark); }
.btn-ghost {
  color: var(--blue-ink); background: #fff;
  box-shadow: 0 4px 0 var(--border-2);
}
.btn-ghost:hover { color: var(--blue-ink); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--border-2); }
.btn-white {
  color: var(--green-deeper); background: #fff;
  box-shadow: 0 5px 0 #d6e9c4;
}
.btn-white:hover { color: var(--green-deeper); }
.btn-white:active { box-shadow: 0 2px 0 #d6e9c4; }

.btn-nav { font-size: 15px; padding: 10px 20px; border-radius: 14px; box-shadow: 0 4px 0 var(--green-dark); }
.btn-lg { font-size: 18px; padding: 15px 28px; }
.btn-md { font-size: 17px; padding: 15px 24px; }
.btn-cta { font-size: 18px; padding: 16px 32px; }

/* --------------------------------- Hero --------------------------------- */
.hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
  padding-top: 64px; padding-bottom: 40px;
}
.hero-copy { flex: 1 1 380px; min-width: 300px; }
.hero-title {
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: clamp(38px, 5.4vw, 60px); line-height: 1.02;
  color: var(--ink-hero); margin: 0; letter-spacing: -.5px;
}
.hero-title .accent { color: var(--blue-ink-2); }
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6;
  color: var(--text); max-width: 520px; margin: 22px 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.read-on {
  display: flex; align-items: center; gap: 18px;
  margin-top: 30px; flex-wrap: wrap; color: var(--muted);
}
.read-on-label {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: .5px; text-transform: uppercase;
}
.read-on-list { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.read-on-list li {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--text);
}
.read-on-list { list-style: none; margin: 0; padding: 0; }
.read-on-list .msr { font-size: 20px; }

.hero-device { flex: 1 1 320px; min-width: 280px; display: flex; justify-content: center; }
.hero-phone { position: relative; animation: floaty 6s ease-in-out infinite; }
.hero-glow {
  position: absolute; inset: -46px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(88, 204, 2, .16), transparent 70%);
}

/* ---------------------------- Device frames ----------------------------- */
.phone {
  position: relative; width: min(250px, 58vw);
  border-radius: 44px; background: #0a0d14; padding: 10px;
}
.phone-hero { box-shadow: 0 44px 90px -30px rgba(18, 51, 107, .6), 0 0 0 2px #23283a; }
.phone-screen {
  position: relative; width: 100%; aspect-ratio: 9 / 19.5;
  border-radius: 35px; overflow: hidden; background: var(--bg-soft);
  display: flex; flex-direction: column;
}
.notch {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  width: 98px; height: 28px; background: #0a0d14; border-radius: 16px; z-index: 4;
}
.home-indicator {
  flex: none; height: 22px; display: flex; align-items: center;
  justify-content: center; background: #fff;
}
.home-indicator span {
  width: 112px; height: 5px; border-radius: 3px; background: #0a0d14; opacity: .85;
}

/* Reader content (hero phone) */
.rdr-topbar {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 42px 14px 8px;
}
.rdr-back {
  width: 28px; height: 28px; border-radius: 9px; background: #f0f3fa;
  display: flex; align-items: center; justify-content: center;
}
.rdr-back .msr { font-size: 17px; color: var(--ink); }
.rdr-title {
  flex: 1; text-align: center; font-family: 'Fredoka', sans-serif;
  font-weight: 600; font-size: 13px; color: var(--ink); margin-right: 28px;
}
.rdr-body { flex: 1; min-height: 0; padding: 0 14px; overflow: hidden; }
.rdr-header {
  border-radius: 16px; background: linear-gradient(155deg, #1c4fa6, #0f2f66); padding: 13px 15px;
}
.rdr-header-meta { display: flex; align-items: center; gap: 7px; }
.rdr-chip {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 8px;
  letter-spacing: 1px; color: #a8c1ec; text-transform: uppercase;
}
.rdr-level {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 8px; color: #fff;
  background: var(--green); padding: 1px 7px; border-radius: 20px;
}
.rdr-title-fi { font-family: 'Lora', serif; font-weight: 500; font-size: 19px; color: #fff; margin-top: 4px; }
.rdr-title-en { font-family: 'Lora', serif; font-style: italic; font-size: 12px; color: #bcd0f2; margin-top: 2px; }

.rdr-line { display: flex; align-items: center; margin-top: 13px; }
.rdr-line:first-of-type { margin-top: 14px; }
.rdr-line-text { flex: 1; font-family: 'Lora', serif; font-size: 16px; color: #1c2536; }
.rdr-dot {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.rdr-dot.active { background: #e0ecff; }
.rdr-dot.active .msr { font-size: 14px; color: var(--blue); }
.rdr-dot.muted { background: #eef1f8; }
.rdr-dot.muted .msr { font-size: 13px; color: #9aa2b1; font-variation-settings: 'FILL' 1, 'wght' 600; }
.rdr-translation {
  margin-top: 6px; padding: 8px 11px; background: #eef4ff;
  border-left: 3px solid var(--blue); border-radius: 9px;
  font-family: 'Lora', serif; font-size: 13px; color: #26406e;
}

.rdr-player {
  flex: none; margin: 0 12px 10px; background: #fff; border-radius: 16px;
  box-shadow: 0 6px 18px -6px rgba(20, 40, 90, .25), 0 0 0 1px var(--border);
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
}
.rdr-player-btn {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-ink);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 var(--blue-deepest);
}
.rdr-player-btn .msr { font-size: 22px; color: #fff; }
.rdr-player-label { flex: 1; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 13px; color: var(--ink); }
.rdr-speed {
  flex: none; display: flex; align-items: center; gap: 4px;
  background: #eef1f8; padding: 6px 10px; border-radius: 14px;
}
.rdr-speed .msr { font-size: 14px; color: var(--muted); }
.rdr-speed span:last-child { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 11px; color: #42506b; }

/* ------------------------------ Section head ---------------------------- */
.section { padding-top: 48px; padding-bottom: 48px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-title {
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px); color: var(--ink-hero); margin: 0;
}
.section-sub { font-size: 17px; color: var(--text); line-height: 1.6; margin: 14px 0 0; }

/* ------------------------------- Features ------------------------------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.feature-card {
  background: #fff; border: 2px solid var(--border); border-radius: 24px;
  box-shadow: var(--shadow-card); padding: 26px;
}
.feature-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-icon .msr { font-size: 28px; }
.feature-icon.blue { background: #eef4ff; } .feature-icon.blue .msr { color: var(--blue); }
.feature-icon.green { background: #e9f7dc; } .feature-icon.green .msr { color: #3f8f00; }
.feature-icon.orange { background: #fff4e6; } .feature-icon.orange .msr { color: var(--orange); }
.feature-card h3 {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 21px;
  color: var(--ink-hero); margin: 0 0 8px;
}
.feature-card p { font-size: 15px; color: var(--text); line-height: 1.6; margin: 0; }

/* ------------------------------- Devices -------------------------------- */
.devices-band {
  background: linear-gradient(180deg, #f2f5fc, #eaeff8);
  border-top: 1px solid #e6ebf5; border-bottom: 1px solid #e6ebf5; margin-top: 40px;
}
.devices-inner { padding-top: 64px; padding-bottom: 64px; text-align: center; }
.devices-inner .section-sub { max-width: 600px; margin-left: auto; margin-right: auto; }
.devices-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 48px; margin-top: 56px;
}
.device-col { display: flex; flex-direction: column; align-items: center; }
.device-label {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 14px;
  color: var(--muted); margin-top: 16px;
}

/* Laptop */
.laptop-top {
  width: min(600px, 92vw); background: #0a0d14; border-radius: 16px 16px 0 0;
  padding: 14px 14px 0; box-shadow: 0 40px 74px -30px rgba(18, 51, 107, .55);
}
.laptop-screen {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: 7px 7px 0 0; overflow: hidden; background: var(--bg-soft);
  display: flex; flex-direction: column;
}
.laptop-base {
  width: min(690px, 99vw); height: 16px;
  background: linear-gradient(180deg, #dbe1ee, #b0bad0);
  border-radius: 0 0 14px 14px; position: relative;
}
.laptop-notch {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 118px; height: 9px; background: #a3adc4; border-radius: 0 0 11px 11px;
}
.mac-bar {
  flex: none; display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--border);
}
.traffic { width: 11px; height: 11px; border-radius: 50%; }
.traffic.red { background: #ff5f57; }
.traffic.yellow { background: #ffbd2e; }
.traffic.green { background: #28c840; }
.mac-title {
  flex: 1; text-align: center; font-family: 'Fredoka', sans-serif;
  font-weight: 700; font-size: 13px; color: var(--blue-ink); margin-right: 33px;
}
.mac-body { flex: 1; min-height: 0; display: flex; }
.mac-sidebar {
  flex: none; width: 38%; background: var(--bg); border-right: 1px solid #eef1f8;
  padding: 14px 12px; display: flex; flex-direction: column; gap: 9px;
}
.mac-sidebar-title {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 13px;
  color: var(--ink-hero); margin-bottom: 2px;
}
.mac-story { display: flex; align-items: center; gap: 9px; border-radius: 12px; padding: 9px; }
.mac-story.active { background: #e9f0ff; }
.story-cover {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.cover-blue { background: linear-gradient(160deg, #1c4fa6, #12336b); }
.cover-cafe { background: linear-gradient(160deg, #6b4a2a, #3c2915); }
.mac-story-meta { flex: 1; min-width: 0; }
.mac-story-name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 13px; color: var(--blue-ink); }
.mac-story.locked .mac-story-name { color: var(--ink); }
.mac-story-ch { font-size: 10px; color: #7c93bd; }
.mac-story.locked .mac-story-ch { color: #9aa2b1; }
.mac-reader { flex: 1; min-width: 0; padding: 18px 20px; overflow: hidden; }
.mac-reader-header {
  border-radius: 12px; background: linear-gradient(155deg, #1c4fa6, #0f2f66); padding: 12px 15px;
}
.mac-reader-header .rdr-chip { font-size: 9px; }
.mac-reader-header .rdr-title-fi { font-size: 19px; margin-top: 2px; }
.mac-line { font-family: 'Lora', serif; font-size: 16px; color: #1c2536; margin-top: 14px; }
.mac-line.first { margin-top: 15px; }
.mac-translation {
  margin-top: 8px; padding: 9px 12px; background: #eef4ff;
  border-left: 3px solid var(--blue); border-radius: 10px;
  font-family: 'Lora', serif; font-size: 13px; color: #26406e;
}

/* Tablet */
.tablet {
  width: min(300px, 68vw); background: #0a0d14; border-radius: 30px; padding: 12px;
  box-shadow: 0 36px 64px -28px rgba(18, 51, 107, .55);
}
.tablet-screen {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  border-radius: 19px; overflow: hidden; background: var(--bg);
  display: flex; flex-direction: column;
}
.tablet-cam {
  position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: #2a2f3d; z-index: 2;
}
.tablet-topbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px; }
.tablet-back {
  width: 30px; height: 30px; border-radius: 9px; background: #f0f3fa;
  display: flex; align-items: center; justify-content: center;
}
.tablet-back .msr { font-size: 18px; color: var(--ink); }
.tablet-title {
  flex: 1; text-align: center; font-family: 'Fredoka', sans-serif;
  font-weight: 600; font-size: 13px; color: var(--ink); margin-right: 30px;
}
.tablet-body { flex: 1; min-height: 0; padding: 0 16px 14px; overflow: hidden; }
.tablet-header { border-radius: 14px; background: linear-gradient(155deg, #1c4fa6, #0f2f66); padding: 14px 16px; }
.tablet-header .rdr-chip { font-size: 9px; }
.tablet-header .rdr-title-fi { font-size: 20px; margin-top: 3px; }
.tablet-header .rdr-title-en { font-size: 13px; }
.tablet-line { font-family: 'Lora', serif; font-size: 17px; color: #1c2536; margin-top: 15px; }
.tablet-line.first { margin-top: 16px; }
.tablet-translation {
  margin-top: 8px; padding: 10px 12px; background: #eef4ff;
  border-left: 3px solid var(--blue); border-radius: 10px;
  font-family: 'Lora', serif; font-size: 14px; color: #26406e;
}

/* Phone (library screen in devices row) */
.phone-lib { box-shadow: 0 36px 64px -28px rgba(255, 138, 0, .5); }
.phone-lib .notch { width: 82px; height: 23px; top: 10px; border-radius: 14px; z-index: 3; }
.status-bar {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px 4px;
}
.status-time { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 12px; color: #111726; }
.status-icons { display: flex; align-items: center; gap: 4px; color: #111726; }
.status-icons .msr:first-child { font-size: 13px; }
.status-icons .msr:last-child { font-size: 15px; }
.lang-row {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 6px 13px 8px;
}
.lang-pill {
  display: flex; align-items: center; gap: 6px; background: #fff;
  padding: 6px 10px; border-radius: 12px; box-shadow: 0 2px 0 var(--border-2);
}
.lang-pill .flag { font-size: 14px; }
.lang-pill span:last-child { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 12px; color: var(--ink); }
.streak-pill {
  display: flex; align-items: center; gap: 4px; background: #fff4e6;
  padding: 6px 9px; border-radius: 12px;
}
.streak-pill .msr { font-size: 14px; color: var(--orange); }
.streak-pill span:last-child { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 12px; color: #e07f00; }

.lib-body { flex: 1; min-height: 0; padding: 0 13px; overflow: hidden; }
.continue-card {
  border-radius: 16px; background: linear-gradient(155deg, #1c4fa6, #12336b);
  padding: 12px; display: flex; align-items: center; gap: 10px;
}
.continue-cover {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(160deg, #2c62c2, #163e86);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.continue-meta { flex: 1; min-width: 0; }
.continue-label {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 8px;
  letter-spacing: 1px; color: #ffc84d; text-transform: uppercase;
}
.continue-name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px; color: #fff; }
.progress { margin-top: 6px; height: 6px; border-radius: 5px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.progress-fill { width: 42%; height: 100%; background: var(--green); border-radius: 5px; }

.lib-section-title {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 9px;
  letter-spacing: 1px; color: #96a0b2; text-transform: uppercase; margin: 12px 2px 8px;
}
.lib-story {
  border: 1.5px solid #e9edf6; background: #fff; border-radius: 14px; padding: 10px;
  display: flex; align-items: center; gap: 9px;
}
.lib-story + .lib-story { margin-top: 9px; }
.lib-cover {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.lib-cover.cafe { font-size: 17px; }
.lib-meta { flex: 1; min-width: 0; }
.lib-name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); }
.lib-desc { font-size: 10px; color: var(--muted); font-weight: 700; }
.lib-chevron .msr { font-size: 18px; color: #c3cad8; }
.lib-lock {
  flex: none; display: flex; align-items: center; gap: 3px;
  background: linear-gradient(150deg, #ffd257, #ff9e00); padding: 4px 8px; border-radius: 20px;
}
.lib-lock .msr { font-size: 11px; color: #fff; }

.tab-bar {
  flex: none; display: flex; justify-content: space-around; align-items: center;
  padding: 7px 10px 5px; background: #fff; border-top: 1px solid var(--border);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 12px; border-radius: 11px; }
.tab.active { background: #e9f0ff; }
.tab .msr { font-size: 17px; color: #a3abba; }
.tab.active .msr { color: #123b7a; }
.tab span:last-child { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 8px; color: #a3abba; }
.tab.active span:last-child { color: #123b7a; }
.phone-lib .home-indicator { height: 18px; }
.phone-lib .home-indicator span { width: 98px; }

/* ----------------------------- How it works ----------------------------- */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 22px;
}
.step-num.n1 { background: var(--blue-ink); box-shadow: 0 4px 0 var(--blue-deepest); }
.step-num.n2 { background: var(--blue); box-shadow: 0 4px 0 #1747b0; }
.step-num.n3 { background: var(--green); box-shadow: 0 4px 0 var(--green-dark); }
.step h3 {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 20px;
  color: var(--ink-hero); margin: 18px 0 8px;
}
.step p { font-size: 15px; color: var(--text); line-height: 1.6; margin: 0; }

/* -------------------------------- CTA band ------------------------------ */
.cta-band { margin: 0 auto 64px; }
.cta-inner {
  border-radius: 32px; background: linear-gradient(150deg, #58cc02, #3f9e01);
  padding: clamp(36px, 5vw, 60px); text-align: center;
  box-shadow: 0 24px 50px -20px rgba(63, 158, 1, .6);
}
.cta-inner h2 {
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px); color: #fff; margin: 0;
}
.cta-inner p { font-size: 17px; color: #eafbe0; line-height: 1.6; max-width: 520px; margin: 14px auto 28px; }

/* --------------------------------- Footer ------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: #fff; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding-top: 34px; padding-bottom: 34px;
}
.footer-brand { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 21px; color: var(--blue-ink); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-weight: 700; font-size: 14px; color: var(--text); }
.footer-links a:hover { color: var(--blue-ink); }
.footer-copy { width: 100%; font-size: 13px; color: var(--muted); padding-top: 8px; }
.footer-copy a { color: var(--muted); text-decoration: underline; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 600px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .nav-links a[href^="#"] { display: none; }
  .nav { gap: 12px; }
  .btn-nav { padding-left: 14px; padding-right: 14px; }
  .hero {
    flex-direction: column;
    align-items: stretch;
    gap: 42px;
    padding-top: 40px;
    overflow: clip;
  }
  .hero-copy,
  .hero-device {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .hero-title,
  .hero-sub { max-width: 100%; overflow-wrap: anywhere; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .read-on { margin-top: 26px; }
  .devices-row { gap: 40px; margin-top: 42px; }
  .device-col { width: 100%; min-width: 0; }
  .cta-inner { border-radius: 24px; }
  .btn-cta { width: 100%; justify-content: center; text-align: center; }
}

/* ------------------------- Legal and support pages ----------------------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blue-ink);
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .15s ease;
}
.skip-link:focus { color: #fff; transform: translateY(0); }

.legal-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, .08), transparent 28rem),
    var(--bg);
}
.legal-nav .nav-links { gap: 22px; }
.legal-nav [aria-current="page"] { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 6px; }

.legal-shell { padding-top: 62px; padding-bottom: 80px; }
.legal-hero { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.legal-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e9f0ff;
  color: var(--blue-ink-2);
  font-family: 'Fredoka', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.legal-hero h1 {
  margin: 0;
  color: var(--ink-hero);
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.legal-lead {
  max-width: 700px;
  margin: 20px auto 0;
  color: var(--text);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}
.legal-date { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 800px);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
  justify-content: center;
}
.legal-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--border-2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 0 var(--border);
}
.legal-toc-title {
  margin: 0 0 10px;
  color: var(--ink-hero);
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.legal-toc ol { margin: 0; padding-left: 22px; }
.legal-toc li { padding: 4px 0; color: var(--muted); font-size: 13px; }
.legal-toc a { color: var(--text); font-weight: 700; }
.legal-toc a:hover { color: var(--blue-ink); text-decoration: underline; }

.legal-content {
  min-width: 0;
  padding: 0 clamp(22px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 7px 0 var(--border);
}
.legal-content section {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2,
.legal-content h3 { font-family: 'Fredoka', sans-serif; color: var(--ink-hero); }
.legal-content h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 3vw, 31px);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.legal-content h3 { margin: 28px 0 10px; font-size: 19px; line-height: 1.35; }
.legal-content h2 + h3 { margin-top: 8px; }
.legal-content p,
.legal-content li { color: #46526b; font-size: 16px; line-height: 1.72; }
.legal-content p { margin: 12px 0; }
.legal-content ul,
.legal-content ol { margin: 14px 0; padding-left: 24px; }
.legal-content li + li { margin-top: 8px; }
.legal-content strong { color: var(--ink); }
.legal-content a { text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--blue-ink); }

.legal-callout,
.legal-warning,
.contact-card {
  margin: 22px 0;
  padding: 20px 22px;
  border-radius: 17px;
}
.legal-callout { border: 1px solid #cdddf9; background: #f1f6ff; }
.legal-warning { border: 1px solid #f0cf90; background: #fff8e9; }
.contact-card { border: 1px solid #cbe7b7; background: #f3faed; }
.legal-callout > :first-child,
.legal-warning > :first-child,
.contact-card > :first-child { margin-top: 0; }
.legal-callout > :last-child,
.legal-warning > :last-child,
.contact-card > :last-child { margin-bottom: 0; }
.legal-callout h3,
.legal-warning h3,
.contact-card h3 { margin-top: 0; }

.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-deeper);
  font-weight: 800;
}

.table-wrap {
  max-width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--border-2);
  border-radius: 14px;
}
.table-wrap:focus-visible { outline-offset: 4px; }
.legal-content table { width: 100%; min-width: 580px; border-collapse: collapse; background: #fff; }
.legal-content th,
.legal-content td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.legal-content th {
  background: var(--bg-soft);
  color: var(--ink-hero);
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
}
.legal-content td { color: #46526b; font-size: 14px; line-height: 1.55; }
.legal-content tr:last-child td { border-bottom: 0; }
.legal-footer [aria-current="page"] { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 4px; }

/* Support page */
.support-hero { margin-bottom: 38px; }
.support-email-button { margin-top: 26px; padding: 14px 24px; }
.support-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto 54px;
}
.support-summary-card {
  padding: 24px;
  border: 1px solid var(--border-2);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 0 var(--border);
}
.support-summary-card.warning-card { border-color: #f0cf90; background: #fffaf0; }
.support-card-label {
  margin: 0 0 9px;
  color: var(--blue-ink-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.support-summary-card h2 {
  margin: 0 0 10px;
  color: var(--ink-hero);
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  overflow-wrap: anywhere;
}
.support-summary-card h2 a { text-decoration: underline; text-underline-offset: 3px; }
.support-summary-card > p:last-child { margin: 0; color: var(--text); font-size: 14px; line-height: 1.6; }
.steps-list { list-style: none; padding-left: 0 !important; }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; }
.steps-list li > span {
  display: inline-flex;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--blue-ink);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.support-contact-link { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
  .legal-toc ol { columns: 2; column-gap: 32px; }
  .support-intro-grid { grid-template-columns: 1fr; max-width: 760px; }
}

@media (max-width: 640px) {
  .legal-nav { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .legal-nav .nav-links { gap: 12px; justify-content: flex-end; }
  .legal-nav .nav-link { font-size: 13px; }
  .legal-nav .btn { display: none; }
  .legal-shell { padding-top: 42px; padding-bottom: 54px; }
  .legal-hero { margin-bottom: 38px; }
  .legal-toc ol { columns: 1; }
  .legal-content { padding: 0 20px; border-radius: 20px; }
  .legal-content section { padding: 34px 0; }
  .legal-content p,
  .legal-content li { font-size: 15px; }
  .legal-callout,
  .legal-warning,
  .contact-card { padding: 18px; }
}

@media print {
  .site-header,
  .site-footer,
  .legal-toc,
  .support-email-button,
  .skip-link { display: none !important; }
  .legal-page { background: #fff; }
  .legal-shell { max-width: none; padding: 0; }
  .legal-hero { margin-bottom: 24px; text-align: left; }
  .legal-layout { display: block; }
  .legal-content { padding: 0; border: 0; box-shadow: none; }
  .legal-content section { break-inside: avoid; padding: 22px 0; }
  .legal-content a { color: inherit; }
}
