/* Sight Words: Learn to Read app page. Decant's layout (css/decant.css) in a bright, warm, kid-friendly palette:
   parchment cream, amber, leaf green, sky and coral, with deep ink text. Loaded after styles.css; every rule is
   scoped under .sw so nothing else changes. The page also re-tints the site tokens (--bg, --surface, --ink ...)
   inside .sw, for light and dark themes alike. */

.sw {
  --bg: #fff8ec;
  --surface: #ffffff;
  --surface-alt: #fff0d9;
  --ink: #2b2340;
  --muted: #6e6380;
  --line: #f1e2c8;
  --accent-dark: #b45309;

  --g: #f59e0b;          /* amber: buttons and ticks */
  --g-dark: #b45309;     /* amber text on light backgrounds */
  --g-soft: #ffebc7;
  --cream: #fff3dc;
  --sun: #ffd24d;
  --leaf: #3cc36a;
  --leaf-dark: #1e8a45;
  --sky: #38b6ff;
  --sky-dark: #0b7bc0;
  --coral: #ff7a6b;
  --plum: #8b5cf6;
  --card: var(--surface);
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Varela Round", var(--sans);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sw {
    --bg: #1b1626; --surface: #251f33; --surface-alt: #2c2540; --ink: #f6f0e6; --muted: #b6abc6; --line: #3c3352; --accent-dark: #ffc266;
    --g: #f5a524; --g-dark: #ffc266; --g-soft: #3a2a12; --cream: #2a2236; --sun: #e9bc3a;
    --leaf-dark: #6fe098; --sky-dark: #7cceff;
  }
}
:root[data-theme="dark"] .sw {
  --bg: #1b1626; --surface: #251f33; --surface-alt: #2c2540; --ink: #f6f0e6; --muted: #b6abc6; --line: #3c3352; --accent-dark: #ffc266;
  --g: #f5a524; --g-dark: #ffc266; --g-soft: #3a2a12; --cream: #2a2236; --sun: #e9bc3a;
  --leaf-dark: #6fe098; --sky-dark: #7cceff;
}

.sw { background: var(--bg); color: var(--ink); }
.sw img { max-width: 100%; height: auto; display: block; }
.sw main h1, .sw main h2, .sw main h3 { font-family: var(--round); letter-spacing: -0.01em; }
.sw .kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 800; color: var(--g-dark); margin: 0 0 12px; }
.sw .section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.sw .section-head h2 { margin: 0 0 0.35em; }
.sw .section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.sw section { padding: 72px 0; }
.sw .btn { background: var(--g); color: #2b2340; }
.sw .btn:hover { background: #ffb547; }
.sw .btn.secondary { background: transparent; color: var(--ink); }
.sw .btn.secondary:hover { background: var(--surface); }

/* Little word tiles, like the ones in the app */
.sw .w { display: inline-block; padding: 0 0.45em; border-radius: 0.45em; font-weight: 800; font-family: var(--round); background: var(--sun); color: #2b2340; line-height: 1.5; }

/* Hero */
.sw .hero2 {
  position: relative; overflow: hidden; padding: 56px 0 80px;
  background: radial-gradient(900px 480px at 88% 0%, color-mix(in srgb, var(--sky) 26%, transparent), transparent 62%),
              radial-gradient(700px 420px at 0% 100%, color-mix(in srgb, var(--leaf) 16%, transparent), transparent 60%),
              linear-gradient(180deg, var(--g-soft), var(--bg));
}
.sw .hero2 .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.sw .hero2 h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.08; }
.sw .hero2 h1 em { font-style: normal; color: var(--g-dark); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 60%, transparent) 62%); }
.sw .hero2 .lead { max-width: 560px; }
.sw .soon:not(.btn) { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 0.95rem; }
.sw .soon:not(.btn) .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g) 30%, transparent); }
.sw .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.sw .chips li { background: var(--card); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }

.sw .stage { position: relative; min-height: 560px; }
.sw .stage::before { content: ""; position: absolute; inset: 6% 4% 2% 10%; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: color-mix(in srgb, var(--sky) 22%, var(--cream)); }
.sw .phone { position: absolute; width: 44%; border-radius: 26px; overflow: hidden; background: #2b2340; padding: 6px; box-shadow: 0 30px 60px -20px rgba(120, 70, 10, 0.45), 0 8px 18px rgba(0, 0, 0, 0.12); }
.sw .phone img { border-radius: 20px; }
.sw .phone.p1 { left: 8%; top: 2%; transform: rotate(-5deg); }
.sw .phone.p2 { right: 2%; top: 12%; transform: rotate(4deg); width: 46%; }
.sw .icon-float { position: absolute; left: 0; bottom: 2%; width: 24%; z-index: 2; border-radius: 22%; box-shadow: 0 18px 30px -10px rgba(120, 70, 10, 0.5); }
.sw .bubble { position: absolute; left: 22%; bottom: 16%; z-index: 3; background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-weight: 700; font-size: 0.95rem; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1); }
.sw .stage .tile { position: absolute; z-index: 3; padding: 4px 14px; border-radius: 14px; font-family: var(--round); font-weight: 800; font-size: 1.15rem; color: #fff; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.35); }
.sw .stage .t1 { right: 0; top: 2%; background: #1f9be6; transform: rotate(6deg); }
.sw .stage .t2 { right: 6%; bottom: 6%; background: #27a957; transform: rotate(-4deg); }
.sw .stage .t3 { left: 0; top: 36%; background: #f0604f; transform: rotate(-8deg); }
@media (max-width: 900px) {
  .sw .hero2 .wrap { grid-template-columns: 1fr; }
  .sw .stage { min-height: 520px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) { .sw .stage { min-height: 440px; } .sw .bubble { font-size: 0.85rem; } }

/* Trust strip */
.sw .strip { padding: 0; margin-top: -28px; position: relative; z-index: 2; }
.sw .strip .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 40px -24px rgba(120, 70, 10, 0.3); overflow: hidden; }
.sw .strip .stat { padding: 22px 18px; text-align: center; border-right: 1px solid var(--line); }
.sw .strip .stat:last-child { border-right: 0; }
.sw .strip .num { display: block; font-family: var(--round); font-size: 2rem; font-weight: 800; color: var(--g-dark); line-height: 1.1; }
.sw .strip .stat:nth-child(2) .num { color: var(--leaf-dark); }
.sw .strip .stat:nth-child(3) .num { color: var(--sky-dark); }
.sw .strip .stat:nth-child(4) .num { color: #e0503f; }
.sw .strip .lbl { color: var(--muted); font-size: 0.92rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sw .strip .stat:nth-child(4) .num { color: #ff9d90; } }
:root[data-theme="dark"] .sw .strip .stat:nth-child(4) .num { color: #ff9d90; }
@media (max-width: 720px) { .sw .strip .row { grid-template-columns: repeat(2, 1fr); } .sw .strip .stat:nth-child(2) { border-right: 0; } .sw .strip .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Feature rows */
.sw .feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sw .feature + .feature { margin-top: 88px; }
.sw .feature.flip .media { order: 2; }
.sw .feature h2 { margin: 0 0 0.4em; }
.sw .feature p { color: var(--muted); font-size: 1.08rem; }
.sw .feature p.kicker { color: var(--g-dark); font-size: 0.78rem; }
.sw .ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.sw .ticks li { position: relative; padding-left: 30px; }
.sw .ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8 14.4 3.6 10l1.4-1.4 3 3 7-7L16.4 6z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8 14.4 3.6 10l1.4-1.4 3 3 7-7L16.4 6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.sw .media { position: relative; display: flex; justify-content: center; }
.sw .media .blob { position: absolute; inset: 8% 10%; border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; background: var(--g-soft); }
.sw .feature:nth-of-type(3) .media .blob { background: color-mix(in srgb, var(--leaf) 20%, var(--cream)); }
.sw .feature:nth-of-type(4) .media .blob { background: color-mix(in srgb, var(--sky) 22%, var(--cream)); }
.sw .feature:nth-of-type(5) .media .blob { background: color-mix(in srgb, var(--coral) 20%, var(--cream)); }
.sw .media .shot { position: relative; width: min(280px, 66%); border-radius: 30px; padding: 7px; background: #2b2340; box-shadow: 0 30px 60px -24px rgba(120, 70, 10, 0.5); }
.sw .media .shot img { border-radius: 24px; }
.sw .media.duo .shot { width: min(230px, 46%); }
.sw .media.duo .shot + .shot { margin-left: -6%; margin-top: 10%; }
.sw .media .slate { position: relative; width: 100%; max-width: 520px; margin: 8% 0; border-radius: 22px; padding: 8px; background: #2b2340; box-shadow: 0 30px 60px -24px rgba(120, 70, 10, 0.5); }
.sw .media .slate img { border-radius: 15px; }
@media (max-width: 860px) { .sw .feature { grid-template-columns: 1fr; gap: 28px; } .sw .feature.flip .media { order: 0; } .sw .feature + .feature { margin-top: 64px; } }

/* Tinted sections */
.sw .tint { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Dolch grade lists */
.sw .grades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sw .grade { --c: var(--g); background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--c); border-radius: 18px; padding: 18px 18px 20px; }
.sw .grade:nth-child(2) { --c: var(--sky); }
.sw .grade:nth-child(3) { --c: var(--leaf); }
.sw .grade:nth-child(4) { --c: var(--coral); }
.sw .grade:nth-child(5) { --c: var(--plum); }
.sw .grade h3 { margin: 0; font-size: 1.15rem; }
.sw .grade .count { display: block; font-family: var(--round); font-weight: 800; font-size: 2rem; line-height: 1.1; margin: 8px 0 0; color: var(--ink); }
.sw .grade .count small { font-size: 0.95rem; font-weight: 700; }
.sw .grade .age { color: var(--muted); font-size: 0.9rem; margin: 2px 0 12px; }
.sw .grade ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sw .grade li { padding: 1px 9px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; background: color-mix(in srgb, var(--c) 18%, var(--card)); }
.sw .grades-note { text-align: center; color: var(--muted); margin: 22px auto 0; max-width: 720px; }
@media (max-width: 960px) { .sw .grades { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .sw .grades { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 400px) { .sw .grades { grid-template-columns: 1fr; } }

/* Games */
.sw .modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sw .mode { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.sw .mode h3 { margin: 0 0 6px; font-size: 1.1rem; }
.sw .mode p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.sw .mode .tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g-dark); margin-bottom: 8px; }
.sw .mode:nth-child(3n+2) .tag { color: var(--sky-dark); }
.sw .mode:nth-child(3n) .tag { color: var(--leaf-dark); }
@media (max-width: 860px) { .sw .modes { grid-template-columns: 1fr; } }

/* Screenshot gallery */
.sw .gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 28px; margin: 0 -24px; scrollbar-width: thin; }
.sw .gallery figure { flex: 0 0 auto; width: 230px; margin: 0; scroll-snap-align: center; }
.sw .gallery .frame { border-radius: 28px; padding: 6px; background: #2b2340; box-shadow: 0 24px 44px -24px rgba(120, 70, 10, 0.5); }
.sw .gallery img { border-radius: 22px; }
.sw .gallery figcaption { text-align: center; margin-top: 12px; font-weight: 700; font-size: 0.95rem; }
.sw .gallery figcaption small { display: block; font-weight: 400; }
.sw .tablet { margin: 28px auto 0; max-width: 880px; padding: 10px; background: #2b2340; border-radius: 22px; box-shadow: 0 30px 60px -28px rgba(120, 70, 10, 0.5); }
.sw .tablet img { border-radius: 14px; }
.sw .tablet-cap { text-align: center; color: var(--muted); margin-top: 14px; }

/* Steps */
.sw .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.sw .step { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; position: relative; }
.sw .step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--g); color: #2b2340; font-weight: 800; display: grid; place-items: center; }
.sw .step:nth-child(2)::before { background: var(--sky); }
.sw .step:nth-child(3)::before { background: var(--leaf); }
.sw .step h3 { margin: 6px 0 6px; }
.sw .step p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .sw .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Principles */
.sw .principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sw .pr { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.sw .pr h3 { margin: 0 0 6px; font-size: 1.1rem; }
.sw .pr p { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) { .sw .principles { grid-template-columns: 1fr; } }

/* Price */
.sw .plus { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sw .plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.sw .plan.featured { border: 2px solid var(--g); background: linear-gradient(180deg, var(--g-soft), var(--card) 60%); }
.sw .plan h3 { margin: 0 0 4px; }
.sw .plan .tagline { color: var(--muted); margin: 0 0 14px; }
.sw .plan .tag { display: inline-block; background: var(--g); color: #2b2340; font-size: 0.74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; letter-spacing: 0.04em; }
.sw .plan .no li::before { background: var(--coral); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.4 4 10 8.6 14.6 4 16 5.4 11.4 10l4.6 4.6-1.4 1.4-4.6-4.6L5.4 16 4 14.6 8.6 10 4 5.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.4 4 10 8.6 14.6 4 16 5.4 11.4 10l4.6 4.6-1.4 1.4-4.6-4.6L5.4 16 4 14.6 8.6 10 4 5.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (max-width: 800px) { .sw .plus { grid-template-columns: 1fr; } }

/* FAQ */
.sw .faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.sw .faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.sw .faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.sw .faq summary::-webkit-details-marker { display: none; }
.sw .faq summary::after { content: "+"; font-size: 1.4rem; color: var(--g-dark); line-height: 1; transition: transform 0.2s; }
.sw .faq details[open] summary::after { transform: rotate(45deg); }
.sw .faq details p { margin: 0 0 18px; color: var(--muted); }

/* Final call to action: a warm sunset card with ink text */
.sw .cta { position: relative; overflow: hidden; border-radius: 30px; color: #2b2340; padding: 56px 32px; text-align: center;
  background: radial-gradient(420px 260px at 100% 0%, rgba(255, 255, 255, 0.35), transparent 70%), linear-gradient(135deg, #ffc24a, #ff9a4d 55%, #ff7a6b); }
.sw .cta > * { position: relative; }
.sw .cta h2 { color: #2b2340; margin: 0 0 0.3em; }
.sw .cta p { color: #3a2d4f; max-width: 560px; margin: 0 auto 22px; font-size: 1.1rem; }
.sw .cta .btn { background: #2b2340; color: #fff; }
.sw .cta .btn.secondary { background: transparent; color: #2b2340; border-color: rgba(43, 35, 64, 0.45); }
.sw .cta .btn.secondary:hover { background: rgba(255, 255, 255, 0.35); }
.sw .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.sw .fact { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.sw .fact h3 { margin: 0 0 4px; font-size: 1rem; }
.sw .fact p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 800px) { .sw .facts { grid-template-columns: 1fr; } }

/* Gentle entrance, only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .sw .rise { animation: sw-rise 0.7s ease both; }
  .sw .rise.d2 { animation-delay: 0.12s; }
  .sw .rise.d3 { animation-delay: 0.24s; }
  .sw .phone.p1 { animation: sw-bob 7s ease-in-out infinite; }
  .sw .phone.p2 { animation: sw-bob 8s ease-in-out 1s infinite; }
  .sw .stage .tile { animation: sw-bob 6s ease-in-out 0.5s infinite; }
  @keyframes sw-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes sw-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
}

/* Dark mode: a deeper backdrop behind the hero phones and softer word tiles. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sw .stage::before { background: #2a2346; }
  :root:not([data-theme="light"]) .sw .phone, :root:not([data-theme="light"]) .sw .media .shot, :root:not([data-theme="light"]) .sw .media .slate,
  :root:not([data-theme="light"]) .sw .gallery .frame, :root:not([data-theme="light"]) .sw .tablet { background: #0e0b16; }
}
:root[data-theme="dark"] .sw .stage::before { background: #2a2346; }
:root[data-theme="dark"] .sw .phone, :root[data-theme="dark"] .sw .media .shot, :root[data-theme="dark"] .sw .media .slate,
:root[data-theme="dark"] .sw .gallery .frame, :root[data-theme="dark"] .sw .tablet { background: #0e0b16; }
