/* Newsreader (SIL Open Font License), self-hosted, Latin subset: headwords, examples and the italic headline line. */
@font-face{font-family:'Newsreader';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/newsreader-SemiBold.woff2) format('woff2');unicode-range:U+0020-007E,U+00A0-00FF,U+2013-2014,U+2018-201F,U+2022,U+2026}
@font-face{font-family:'Newsreader';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/newsreader-Italic.woff2) format('woff2');unicode-range:U+0020-007E,U+00A0-00FF,U+2013-2014,U+2018-201F,U+2022,U+2026}
/* Vazirmatn (SIL Open Font License), self-hosted. Loads only when Persian or Arabic meanings are shown. */
@font-face{font-family:'Vazirmatn';font-style:normal;font-display:swap;font-weight:100 900;src:url(fonts/vazirmatn-arabic-wght-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}

/* Topy site. The page is light (dark when the Mac is), the hero and every demo are the app's dark look:
   near-black ground, a soft green glow, the Siri-style conic glow around the island, Newsreader for headwords. */

@property --a { syntax: '<angle>'; inherits: true; initial-value: 0deg; }

:root {
  --bg: #ffffff;
  --card: #f4f4f1;
  --card2: #ebebe7;
  --ink: #0b0c0c;
  --ink2: #565a58;
  --line: rgba(0, 0, 0, .09);
  --link: #0b7550;
  --focus: #1769e0;

  --dark: #050706;
  --on-dark: #f3f5f4;
  --on-dark2: #a9b1ad;
  --mint: #74e3b4;

  --g1: #5ef2c2; --g2: #4f8bff; --g3: #a66bff; --g4: #ff6fb1; --g5: #ff9f43;
  --conic: conic-gradient(from var(--a), var(--g1), var(--g2), var(--g3), var(--g4), var(--g5), var(--g1));

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Newsreader", "New York", Georgia, "Times New Roman", serif;
  --arabic: "Vazirmatn", "Geeza Pro", Tahoma, sans-serif;
  --japanese: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;

  /* The app's springs (response / bounce): open 0.52 / 0.30, close 0.42 / 0.04, soft 0.34 / 0.32. */
  --e-open: cubic-bezier(.3, 1.3, .5, 1);
  --e-close: cubic-bezier(.3, .8, .3, 1);
  --e-soft: cubic-bezier(.3, 1.35, .5, 1);
  --t-open: .75s;
  --t-close: .45s;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --e-open: linear(0, .045, .153, .293, .441, .581, .706, .809, .891, .952, .995, 1.023, 1.038, 1.045, 1.046, 1.042, 1.036, 1.03, 1.023, 1.017, 1.011, 1.007, 1.004, 1.001, 1, .999, .998, .998, 1);
    --e-close: linear(0, .085, .255, .432, .587, .71, .801, .867, .913, .944, .965, .978, .987, .992, 1);
    --e-soft: linear(0, .086, .274, .488, .681, .834, .942, 1.008, 1.042, 1.054, 1.052, 1.042, 1.031, 1.02, 1.011, 1.005, 1, .998, .997, .997, 1);
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #111312;
    --card2: #1a1d1b;
    --ink: #f2f4f3;
    --ink2: #a4aaa7;
    --line: rgba(255, 255, 255, .1);
    --link: #74e3b4;
    --focus: #7fb2ff;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.hero, .scene, .appwin, .price-card, .foot, .topbar, .lang-word { --focus: #8fd8ff; }
h1, h2, h3 { font-family: var(--display); }
p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; flex: none; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: #000; font-weight: 600; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
[lang="fa"], [lang="ar"] { font-family: var(--arabic); }
[lang="ja"] { font-family: var(--japanese); }
.no-speech [data-say] { display: none !important; }

/* ---------- Top bar: hangs from the top edge like a notch ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.notchbar { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 26px; height: 50px; padding: 0 8px 2px 12px; background: #000; color: #fff; border-radius: 0 0 22px 22px; }
.notchbar::before, .notchbar::after { content: ""; position: absolute; top: 0; width: 16px; height: 16px; pointer-events: none; }
.notchbar::before { right: calc(100% - .5px); background: radial-gradient(circle at 0 100%, transparent 15.5px, #000 16px); }
.notchbar::after { left: calc(100% - .5px); background: radial-gradient(circle at 100% 100%, transparent 15.5px, #000 16px); }
.brand { display: flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand img { border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: rgba(255, 255, 255, .74); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.nav-cta.is-soon { background: rgba(255, 255, 255, .13); color: #fff; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .notchbar { gap: 16px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .3s var(--e-soft), background-color .2s; }
.btn .ico { width: 16px; height: 16px; }
a.btn:active, button.btn:active { transform: scale(.97); }
.btn-store { background: #fff; color: #000; }
.btn-store.is-soon { cursor: default; }
.btn-store.is-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a46c; box-shadow: 0 0 0 4px rgba(22, 164, 108, .18); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: 132px 0 72px; }
.hero-glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 46% at 50% -6%, rgba(70, 150, 104, .5), transparent 72%),
  radial-gradient(36% 30% at 50% 66%, rgba(94, 242, 194, .09), transparent 72%),
  radial-gradient(30% 24% at 80% 40%, rgba(166, 107, 255, .07), transparent 70%); }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; font-size: 15px; font-weight: 600; color: #cfe8dc; }
.eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: conic-gradient(var(--g1), var(--g2), var(--g3), var(--g4), var(--g5), var(--g1)); box-shadow: 0 0 12px rgba(94, 242, 194, .6); }
.hero h1 { margin: 0; font-size: clamp(46px, 8.6vw, 100px); line-height: .98; letter-spacing: -.048em; font-weight: 700; }
.h-a, .h-b { display: block; }
.h-b { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.035em; margin-top: .05em; padding-inline: .06em; }
.lead { max-width: 640px; margin: 24px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--on-dark2); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: #8e9792; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #4c5550; }
.facts li:first-child::before { display: none; }

/* The Mac screen */
.stage { width: min(1120px, 100% - 32px); margin: 64px auto 0; position: relative; }
.mac { position: relative; padding: 11px 11px 0; border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #2c302e, #121413 80%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 -30px 90px -30px rgba(94, 242, 194, .25); -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
.mac-screen { position: relative; height: 580px; overflow: hidden; border-radius: 18px 18px 0 0; background: #07120f; }
.screen-wall, .scene-wall { position: absolute; inset: 0; background:
  radial-gradient(70% 70% at 12% 108%, rgba(45, 140, 104, .85), transparent 62%),
  radial-gradient(60% 70% at 92% 96%, rgba(76, 72, 190, .7), transparent 62%),
  radial-gradient(50% 50% at 55% 82%, rgba(255, 140, 120, .18), transparent 70%),
  radial-gradient(90% 60% at 50% 0%, rgba(30, 70, 60, .7), transparent 70%),
  linear-gradient(180deg, #07110e, #0b1c18 60%, #10241f); }
.menubar, .scene-bar { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; justify-content: space-between; align-items: center; height: 32px; padding: 0 16px; font-size: 13px; color: rgba(255, 255, 255, .9); background: #000; }
.mb-l, .sb-l { display: flex; gap: 18px; align-items: center; white-space: nowrap; }
.mb-r, .sb-r { display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.mb-r .ico, .sb-r .ico { width: 15px; height: 15px; }
.notch, .scene-notch { position: absolute; top: 0; left: 50%; z-index: 3; width: 184px; height: 32px; translate: -50% 0; background: #000; border-radius: 0 0 11px 11px; }
.notch::before, .notch::after, .scene-notch::before, .scene-notch::after { content: ""; position: absolute; top: 0; width: 6px; height: 6px; }
.notch::before, .scene-notch::before { right: calc(100% - .5px); background: radial-gradient(circle at 0 100%, transparent 5.5px, #000 6px); }
.notch::after, .scene-notch::after { left: calc(100% - .5px); background: radial-gradient(circle at 100% 100%, transparent 5.5px, #000 6px); }

.win { position: absolute; z-index: 1; top: 104px; left: 50%; translate: -50% 0; width: min(760px, 88%); height: 440px; border-radius: 14px; overflow: hidden; background: rgba(20, 24, 22, .74); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -20px rgba(0, 0, 0, .6); display: grid; grid-template: 38px 1fr / 180px 1fr; }
.win-bar { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-side { padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid rgba(255, 255, 255, .06); }
.win-side b, .win-doc b { display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .1); }
.win-side b:nth-child(odd) { width: 70%; }
.win-doc { padding: 30px 40px; display: flex; flex-direction: column; gap: 14px; }
.win-doc .w1 { height: 22px; width: 46%; background: rgba(255, 255, 255, .16); margin-bottom: 8px; }
.win-doc .w2 { width: 92%; } .win-doc .w3 { width: 84%; } .win-doc .w4 { width: 60%; } .win-doc .w5 { width: 72%; }

/* Demo controls under the screen */
.demo-bar { position: relative; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin: -150px auto 0; padding: 8px; width: max-content; max-width: 100%; border-radius: 26px; background: rgba(20, 24, 22, .72); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 50px -20px rgba(0, 0, 0, .7); }
.moments-bar, .demo-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; }
.mbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 14.5px; font-weight: 600; transition: background-color .2s, transform .3s var(--e-soft); }
.mbtn:hover { background: rgba(255, 255, 255, .15); }
.mbtn:active { transform: scale(.96); }
.mbtn .ico { width: 13px; height: 13px; color: var(--mint); }
.mbtn-time { font-weight: 500; color: #9aa39f; font-size: 13px; font-variant-numeric: tabular-nums; }
.sel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #c9d0cc; font-size: 13.5px; }
.sel select { min-height: 32px; border: 0; border-radius: 999px; padding: 0 30px 0 12px; background: rgba(255, 255, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; color: #fff; font-weight: 600; font-size: 14px; -webkit-appearance: none; appearance: none; }
.sel select option { color: #000; }
.tbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 14px; font-weight: 600; }
.tbtn:hover { background: rgba(255, 255, 255, .15); }
.tbtn .ico { width: 17px; height: 17px; }
#playToggle { padding: 0; }
.tbtn .i-on, .tbtn[aria-pressed="true"] .i-off { display: none; }
.tbtn[aria-pressed="true"] .i-on { display: block; }
#playToggle .i-play, #playToggle[aria-pressed="true"] .i-pause { display: block; }
#playToggle .i-pause, #playToggle[aria-pressed="true"] .i-play { display: none; }
#soundToggle[aria-pressed="true"] { background: rgba(116, 227, 180, .18); color: var(--mint); }
.demo-hint { margin: 16px auto 0; text-align: center; font-size: 14px; color: #8a938e; }

/* ---------- The island (dynamic and static copies share these rules) ---------- */
.island { --w: 184px; --h: 32px; --r: 11px; position: absolute; top: 0; left: 50%; z-index: 4; width: var(--w); height: var(--h); translate: -50% 0; color: #fff;
  transition: width var(--t-open) var(--e-open), height var(--t-open) var(--e-open) 50ms; }
.island.is-closing { transition: height var(--t-close) var(--e-close), width var(--t-close) var(--e-close) 50ms; }
.isl-body { position: absolute; inset: 0; overflow: hidden; background: #000; border-radius: 0 0 var(--r) var(--r); transition: border-radius .5s var(--e-close); }
.isl-body::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 0 1.5px 1.5px; background: var(--conic); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s ease-out; pointer-events: none; }
/* Halo and burst follow the app's GlowView: halo 8 px past the sides and 12 px below, blur 18 px, 0.7 once lit (Slim: 10 px, blur 12, 0.55). */
.isl-halo { position: absolute; inset: -4px -8px -12px; border-radius: 0 0 44px 44px; background: var(--conic); filter: blur(18px); opacity: 0; transform: scale(.9); transform-origin: top; transition: opacity .45s var(--e-close), transform .45s var(--e-close); pointer-events: none; }
.island[data-state="large"] .isl-halo, .island[data-state="expanded"] .isl-halo { opacity: .7; transform: none; transition: opacity .75s var(--e-open), transform .75s var(--e-open); }
.island[data-state="slim"] .isl-halo { inset: -4px -10px -8px; filter: blur(12px); opacity: .55; transform: none; transition: opacity .75s var(--e-open), transform .75s var(--e-open); }
.island[data-state="large"] .isl-body::after, .island[data-state="expanded"] .isl-body::after, .island[data-state="slim"] .isl-body::after { opacity: .85; transition: opacity .6s ease-out .12s; }
/* One wave of light each time the island opens: in over 0.28 s, out by 1.25 s, growing to 1.55 x 2 from the top. */
.island::before { content: ""; position: absolute; inset: -2px; border-radius: 0 0 40px 40px; background: conic-gradient(from 200deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g5), var(--g1)); filter: blur(22px); opacity: 0; transform-origin: top; pointer-events: none; }
.island.is-burst::before { animation: wave 1.25s ease-out; }
@keyframes wave { 0% { opacity: 0; transform: scale(.7); } 22% { opacity: .95; } 100% { opacity: 0; transform: scale(1.55, 2); } }
/* One slow turn that settles, under 5 s (WCAG 2.2.2), each time the island opens. */
.island.is-spin .isl-halo, .island.is-spin .isl-body::after { animation: spin 4.8s cubic-bezier(.3, .2, .3, 1) 1; }
.is-off .island .isl-halo, .is-off .island .isl-body::after, .is-off .pulse { animation-play-state: paused; }
@keyframes spin { to { --a: 360deg; } }
.island.is-shake { animation: shake .5s; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-5px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.isl-content { position: absolute; top: 0; left: 50%; width: 100%; translate: -50% 0; }
.isl-content[data-k="large"] { top: auto; bottom: 0; }
.st { transition: opacity .3s ease, filter .3s ease, transform .5s var(--e-soft); transition-delay: calc(var(--i, 0) * 55ms + 70ms); }
.st.pre { opacity: 0; filter: blur(6px); transform: scale(.94); }
.isl-content.out .st { opacity: 0; filter: blur(4px); transition-duration: .12s; transition-delay: 0s; }

/* Large: glyph, word over meaning, tag and buttons */
.isl-large { position: relative; display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 14px 8px 18px; white-space: nowrap; }
.glyph { flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .92) 0 16%, rgba(255, 255, 255, 0) 48%), conic-gradient(from 200deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g5), var(--g1)); box-shadow: 0 0 16px rgba(94, 242, 194, .35); }
[data-phase="recall"] .glyph { background: radial-gradient(circle, rgba(255, 255, 255, .9) 0 16%, rgba(255, 255, 255, 0) 48%), conic-gradient(from 200deg, #6fa0ff, #a66bff, #5a7dff, #6fa0ff); box-shadow: 0 0 16px rgba(110, 120, 255, .4); }
[data-phase="review"] .glyph { background: radial-gradient(circle, rgba(255, 255, 255, .9) 0 16%, rgba(255, 255, 255, 0) 48%), conic-gradient(from 200deg, #ff9f43, #ff6fb1, #ffb86b, #ff9f43); box-shadow: 0 0 16px rgba(255, 140, 120, .4); }
.isl-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.isl-word { overflow: hidden; text-overflow: ellipsis; font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.isl-mean { overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0; border: 0; background: none; font-size: 15px; line-height: 1.35; color: #a6ecc9; text-align: left; white-space: nowrap; transition: filter .3s; }
.veil { filter: blur(6px); }
.island:hover .veil, .island.peek .veil, .veil.shown { filter: none; }
.isl-side { display: flex; align-items: center; gap: 7px; flex: none; position: relative; z-index: 1; }
.tag { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #e8ecea; font-size: 12px; font-weight: 600; }
.tag.is-known { background: rgba(116, 227, 180, .2); color: var(--mint); }
.tag.is-again { background: rgba(255, 159, 67, .2); color: #ffc08a; }
.ib { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; transition: background-color .2s, transform .3s var(--e-soft); }
.ib:hover { background: rgba(255, 255, 255, .24); }
.ib:active { transform: scale(.92); }
.ib .ico { width: 16px; height: 16px; }
.ib-ok { background: #fff; color: #000; }
.ib-ok:hover { background: #dff7ec; }
.ib-lg { width: 40px; height: 40px; }
.ib-lg .ico { width: 19px; height: 19px; }
.isl-open { position: absolute; inset: 0; z-index: 0; padding: 0; border: 0; background: transparent; border-radius: 0 0 var(--r) var(--r); cursor: pointer; }
.isl-open:focus-visible { outline-offset: -4px; border-radius: 0 0 var(--r) var(--r); }
.isl-large .isl-text { position: relative; z-index: 0; pointer-events: none; }
button.isl-text { justify-content: center; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.island.is-static .isl-large .isl-text { pointer-events: auto; }
.timer { position: absolute; bottom: 8px; left: 50%; width: 40px; height: 3px; margin-left: -20px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .18); pointer-events: none; }
.timer i { display: block; height: 100%; border-radius: inherit; background: rgba(255, 255, 255, .78); transform-origin: left; transform: scaleX(var(--p, 1)); }

/* Compact, Hidden and Slim: two wings beside the camera */
.isl-wings, .isl-slim { display: grid; grid-template-columns: 1fr 184px 1fr; align-items: center; height: 32px; white-space: nowrap; }
.isl-wings { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wing-l, .wing-r { justify-self: center; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.wing-l .ico { width: 14px; height: 14px; color: #cbd2ff; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #5fe3a8; animation: pulse 1.6s ease-in-out 3; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.72); } }
.sl-l { justify-self: end; padding: 0 14px 0 16px; font-size: 14.5px; font-weight: 700; }
.sl-r { justify-self: start; padding: 0 16px 0 14px; font-size: 14px; color: #a6ecc9; transition: filter .3s; }

/* Expanded: the full card */
.isl-card { padding: 44px 24px 22px; white-space: normal; text-align: left; }
.c-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.c-btns { display: flex; gap: 8px; flex: none; }
.c-word { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.04; letter-spacing: -.012em; }
.c-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; color: #a9b1ad; font-size: 14px; }
.c-pos { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 12.5px; font-weight: 600; }
.c-mean { margin-top: 16px; color: var(--mint); font-size: 21px; font-weight: 700; line-height: 1.35; text-align: left; }
.c-def { margin-top: 8px; color: #e8ecea; font-size: 15.5px; line-height: 1.5; }
.c-ex { margin-top: 10px; color: #b9c0bc; font-family: var(--serif); font-style: italic; font-size: 17.5px; line-height: 1.45; }
.c-ex u { color: #fff; text-decoration-color: var(--mint); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.c-extr { margin-top: 4px; color: #8f9893; font-size: 14.5px; line-height: 1.5; text-align: left; }
.c-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .07); color: #fff; font-size: 14.5px; font-weight: 600; transition: background-color .2s, transform .3s var(--e-soft); }
.pill-btn:hover { background: rgba(255, 255, 255, .13); }
.pill-btn:active { transform: scale(.97); }
.pill-btn .ico { width: 16px; height: 16px; }
.pill-btn.is-ok { background: #fff; color: #000; border-color: #fff; }
.c-actions .pill-btn.grow { flex: 1; justify-content: center; }

/* Static copies of the island inside the feature scenes */
.island.is-static { width: max-content; height: auto; min-width: min(330px, 100% - 24px); max-width: min(560px, 100% - 24px); transition: none; --r: 24px; }
.island.is-static .isl-body { position: relative; }
.island.is-static .isl-content { position: relative; left: auto; width: auto; translate: none; padding-top: 32px; }
.island.is-static .isl-halo { opacity: .7; transform: none; }
.island.is-static .isl-body::after { opacity: .85; }
.island.is-card { width: min(470px, 100% - 24px); --r: 30px; }
.island.is-card .isl-content { padding-top: 0; }
.island[data-pill] { --r: 16px; }
.island[data-pill] .isl-body { border-radius: 16px; }
.island[data-pill] .isl-halo { border-radius: 30px; }
.island[data-pill] .isl-content { padding-top: 24px; }

/* ---------- Sections ---------- */
.intro { padding: 104px 0 56px; text-align: center; }
.sec-title { margin: 0; font-size: clamp(34px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -.042em; font-weight: 700; text-wrap: balance; }
.sec-title.sm { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -.035em; }
.sec-text { max-width: 680px; margin: 16px auto 0; color: var(--ink2); font-size: 17.5px; text-wrap: pretty; }
.sec-note { margin-top: 18px; color: var(--ink2); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; margin: 30px auto 0; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--card); color: var(--ink2); font-size: 14px; font-weight: 500; }

.feature { margin-top: 24px; }
.panel { padding: 64px clamp(16px, 4.4vw, 52px) clamp(20px, 4.4vw, 52px); border-radius: 36px; background: var(--card); text-align: center; }
.panel > .scene, .panel > .seg { margin-top: 36px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.panel-half { display: flex; flex-direction: column; padding-top: 52px; }
.panel-half .sec-text { font-size: 16.5px; }
@media (max-width: 920px) { .duo { grid-template-columns: 1fr; } }

/* Scenes: small dark Mac screens */
.scene { position: relative; height: 210px; overflow: hidden; border-radius: 20px; background: #07120f; color: #fff; text-align: left; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .55); }
.scene-bar { font-size: 12.5px; padding: 0 14px; }
.scene-tall { height: 440px; }
.scene-short { height: 220px; }
.scene .island { z-index: 4; }
.scene-display { border-radius: 14px; box-shadow: 0 0 0 9px #161817, 0 24px 50px -24px rgba(0, 0, 0, .6); margin: 9px 9px 0; }
.scene-display .scene-bar { height: 24px; font-size: 11.5px; }
.scene-card { height: auto; min-height: 460px; padding-bottom: 32px; }
.scene-card .island.is-card { position: relative; margin-inline: auto; left: auto; translate: none; }

.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; text-align: left; }
.moment { display: flex; flex-direction: column; padding: 14px 14px 22px; border-radius: 26px; background: var(--bg); }
.moment .scene { height: 170px; border-radius: 16px; }
.moment-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 12px; }
.moment-name { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.moment-time { padding: 4px 10px; border-radius: 999px; background: var(--card); color: var(--ink2); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.moment-text { padding: 16px 6px 0; color: var(--ink2); font-size: 16px; }
.moment-hint { padding: 6px 6px 0; color: var(--link); font-size: 14px; font-weight: 600; }
.moment .island.is-static .isl-large { padding-left: 14px; gap: 10px; }
.moment .tag { display: none; } /* the card's own heading already names the moment */
@media (max-width: 980px) { .moments { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Segmented control (light page) */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card2); }
.seg-btn { min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2); font-size: 14.5px; font-weight: 600; transition: background-color .25s, color .25s; }
.seg-btn[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg-center { display: flex; width: max-content; margin-inline: auto; }

/* Large or Slim: a video under the notch shows what Slim leaves free */
.win-video { top: 120px; height: 290px; width: min(560px, 84%); display: block; background: linear-gradient(135deg, #1b2f4a, #3a2457 60%, #4d2a2a); }
.video { position: absolute; inset: 0; display: grid; place-items: center; }
.video span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.video .ico { width: 22px; height: 22px; margin-left: 3px; color: #fff; }

/* Focus */
.focus-ctl { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 26px 0 20px; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; border-radius: 999px; background: var(--bg); font-size: 15px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { position: relative; width: 40px; height: 24px; border-radius: 999px; background: #c9ccca; transition: background-color .25s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .4s var(--e-soft); }
.switch input:checked + .sw { background: #5ba332; }
.switch input:checked + .sw::after { transform: translateX(16px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch .ico { width: 15px; height: 15px; color: #6b5bd6; }
.panel-half .scene { margin-top: auto; }
.monitor { margin-top: 30px; }
.monitor-stand { width: 110px; height: 30px; margin: 9px auto 0; background: linear-gradient(#c9ccca, #a5a9a7); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
@media (prefers-color-scheme: dark) { .monitor-stand { background: linear-gradient(#2a2d2b, #1a1c1b); } .sw { background: #3a3e3c; } }

/* Progress tab copy */
.appwin { max-width: 640px; margin: 36px auto 0; padding: 14px 16px 16px; border-radius: 24px; text-align: left; color: var(--on-dark); background: radial-gradient(90% 60% at 50% 0, rgba(50, 120, 84, .4), transparent 72%), #050706; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 60px -30px rgba(0, 0, 0, .6); }
.appwin-tabs { display: flex; gap: 2px; width: max-content; margin: 0 auto 18px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 13px; font-weight: 600; color: #9ea6a2; }
.appwin-tabs span { padding: 6px 14px; border-radius: 999px; }
.appwin-tabs .on { background: rgba(255, 255, 255, .14); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); }
.stats b { font-family: var(--display); font-size: 30px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { color: #a1a9a5; font-size: 13px; }
.appwin .seg { margin-top: 14px; background: rgba(255, 255, 255, .07); }
.appwin .seg-btn { color: #a6aeaa; min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.appwin .seg-btn[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.p-list { margin: 12px 0 0; padding: 0; list-style: none; border-radius: 18px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.p-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .06); }
.p-row:first-child { border-top: 0; }
.p-row[hidden] { display: none; }
.p-word { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.p-mean { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #a7b0ab; font-size: 14.5px; text-align: left; }
.status { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.s-new { background: rgba(79, 139, 255, .2); color: #a9c6ff; }
.s-learning { background: rgba(255, 159, 67, .2); color: #ffc58f; }
.s-known { background: rgba(116, 227, 180, .2); color: var(--mint); }
@media (max-width: 520px) { .p-row { grid-template-columns: 1fr auto; } .p-mean { grid-column: 1; grid-row: 2; } .status { grid-row: 1 / 3; grid-column: 2; } }

/* Sounds */
.sound-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; padding-top: 30px; }
.snd-btn { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 10px 18px; border: 0; border-radius: 22px; background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 600; transition: transform .3s var(--e-soft); }
.snd-btn:active { transform: scale(.96); }
.snd-btn .ico { box-sizing: content-box; width: 16px; height: 16px; padding: 14px; border-radius: 50%; background: #000; color: #fff; }
.snd-btn.is-playing .ico { background: conic-gradient(from var(--a), var(--g1), var(--g2), var(--g3), var(--g4), var(--g5), var(--g1)); animation: spin 1.2s linear infinite; }
@media (prefers-color-scheme: dark) { .snd-btn .ico { background: #fff; color: #000; } }

/* Languages */
.lang-box { margin-top: auto; padding-top: 28px; }
.chip-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-btn { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--bg); color: var(--ink2); font-size: 14.5px; font-weight: 600; transition: background-color .2s, color .2s; }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang-word { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; max-width: 420px; margin: 20px auto 0; padding: 16px 22px; border-radius: 22px; background: #000; color: #fff; }
.lw-word { font-family: var(--serif); font-weight: 600; font-size: 26px; }
.lw-mean { color: var(--mint); font-size: 19px; font-weight: 700; }

/* ---------- Pricing ---------- */
.pricing { padding: 112px 0 0; text-align: center; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 940px; margin: 44px auto 0; text-align: left; }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; } }
.levels-card { padding: 28px 28px 24px; border-radius: 30px; background: var(--card); }
.card-h { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--ink2); }
.levels { margin: 0; padding: 0; list-style: none; }
.level { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.level:first-child { border-top: 0; }
.lv-code { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; color: #fff; font-size: 13px; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.lv-a1 { background: linear-gradient(160deg, #47d39a, #138a5e); }
.lv-a2 { background: linear-gradient(160deg, #3fc6c9, #13798c); }
.lv-b1 { background: linear-gradient(160deg, #6b9bff, #3157d6); }
.lv-b2 { background: linear-gradient(160deg, #a77dff, #6a3fd0); }
.lv-c1 { background: linear-gradient(160deg, #ffad66, #d4622a); }
.lv-name { font-weight: 600; font-size: 16.5px; }
.lv-free { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: rgba(22, 164, 108, .14); color: var(--link); font-size: 13px; font-weight: 700; }
.lv-lock { margin-left: auto; color: var(--ink2); }
.lv-lock .ico { width: 16px; height: 16px; }
.levels-note { margin-top: 12px; color: var(--ink2); font-size: 14.5px; }
.price-card { position: relative; overflow: hidden; padding: 70px 28px 28px; border-radius: 30px; color: #fff; background: radial-gradient(80% 50% at 50% 0, rgba(60, 140, 98, .45), transparent 70%), radial-gradient(60% 40% at 100% 100%, rgba(120, 90, 220, .3), transparent 70%), #050706; text-align: center; }
.price-tab { position: absolute; top: 0; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 2px 12px; border-radius: 0 0 18px 18px; background: #000; font-size: 14px; font-weight: 700; white-space: nowrap; }
.price-tab img { border-radius: 6px; }
.price-tab::before, .price-tab::after { content: ""; position: absolute; top: 0; width: 12px; height: 12px; }
.price-tab::before { right: calc(100% - .5px); background: radial-gradient(circle at 0 100%, transparent 11.5px, #000 12px); }
.price-tab::after { left: calc(100% - .5px); background: radial-gradient(circle at 100% 100%, transparent 11.5px, #000 12px); }
.price-badge { display: inline-block; margin-bottom: 14px; padding: 5px 13px; border-radius: 999px; background: rgba(116, 227, 180, .16); color: var(--mint); font-size: 13.5px; font-weight: 700; }
.price { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; font-family: var(--display); font-size: 68px; font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.price-was { color: var(--on-dark2); font-size: 32px; font-weight: 600; letter-spacing: -.02em; text-decoration: line-through; text-decoration-color: #ff8a7a; text-decoration-thickness: 3px; }
.price-note { margin-top: 10px; color: var(--on-dark2); font-size: 14px; }
.points { display: grid; gap: 10px; margin: 26px 0 26px; padding: 0; list-style: none; text-align: left; }
.points li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.points .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(116, 227, 180, .16); color: var(--mint); box-sizing: content-box; }

/* ---------- FAQ ---------- */
.faq-sec { padding: 112px 0 0; text-align: center; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; max-width: 980px; margin: 44px auto 0; text-align: left; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; max-width: 640px; } }
.qa { margin-bottom: 12px; border-radius: 20px; background: var(--card); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; border-radius: 20px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ico { width: 18px; height: 18px; color: var(--ink2); transition: transform .4s var(--e-soft); }
.qa[open] summary .ico { transform: rotate(45deg); }
.qa p { padding: 0 20px 18px; color: var(--ink2); font-size: 16px; }
.qa p + p { padding-top: 0; margin-top: -8px; }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; margin-top: 128px; padding-top: 100px; background: #000; color: #fff; }
.foot-cap { position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(1120px, 100% - 32px); height: 36px; border-radius: 0 0 28px 28px; background: var(--bg); }
.foot-cap::before, .foot-cap::after { content: ""; position: absolute; top: 0; width: 24px; height: 24px; }
.foot-cap::before { right: calc(100% - .5px); background: radial-gradient(circle at 0 100%, #000 23.5px, var(--bg) 24px); }
.foot-cap::after { left: calc(100% - .5px); background: radial-gradient(circle at 100% 100%, #000 23.5px, var(--bg) 24px); }
.foot-cap i { display: none; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.foot-logo img { border-radius: 8px; }
.foot-tag { margin-top: 22px; font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.foot-tag span { display: block; }
.foot-tag em { display: block; font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.foot-text { max-width: 400px; margin: 16px 0 22px; color: #9aa29e; font-size: 15px; }
.foot-col h2 { margin: 6px 0 14px; color: #868e8a; font-size: 14px; font-weight: 600; }
.foot-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.foot-col a { color: #fff; text-decoration: none; font-size: 15.5px; }
.foot-col a:hover { text-decoration: underline; }
.foot-col a[aria-current] { color: var(--mint); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); color: #868e8a; font-size: 13.5px; }
.foot-mark { margin: 6px 0 -.18em; text-align: center; font-family: var(--display); font-size: clamp(72px, 19vw, 260px); font-weight: 800; line-height: .9; letter-spacing: -.06em; color: #121413; user-select: none; white-space: nowrap; }
.foot-mark::before { content: attr(data-mark); }

/* ---------- Privacy, Support, 404 ---------- */
.is-doc main { padding: 120px 0 0; }
.doc { max-width: 740px; }
.doc-center { text-align: center; padding: 60px 0 20px; }
.doc-h { margin: 0; font-size: clamp(42px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.doc-meta { margin-top: 10px; color: var(--ink2); font-size: 14.5px; }
.doc-lead { margin-top: 22px; font-size: 20px; line-height: 1.5; }
.doc h2 { margin: 44px 0 10px; font-size: 23px; letter-spacing: -.02em; }
.doc p + p { margin-top: 12px; }
.doc > p:not(.doc-lead):not(.doc-meta) { color: var(--ink2); }
.doc-link { color: var(--link); font-weight: 600; text-underline-offset: 3px; }
.doc-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.doc-center .btn { margin-top: 30px; }
.mail-card { margin-top: 32px; padding: 24px 26px; border-radius: 26px; background: var(--card); }
.mail-card h2 { margin: 0 0 10px; font-size: 18px; }
.mail-link { display: inline-flex; align-items: center; gap: 10px; color: var(--link); font-size: 21px; font-weight: 700; text-decoration: none; }
.mail-link:hover { text-decoration: underline; }
.mail-link .ico { width: 22px; height: 22px; }
.faq-list .qa p { color: var(--ink2); }

/* ---------- Toast ---------- */
.toast { position: absolute; left: 50%; bottom: 18px; z-index: 6; translate: -50% 0; max-width: calc(100% - 32px); padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #000; font-size: 14px; font-weight: 600; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .45s var(--e-soft); pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .mac-screen { height: 480px; }
  .demo-bar { margin-top: -120px; }
  .mb-l span:nth-child(n+4) { display: none; }
  .win { grid-template-columns: 1fr; }
  .win-side { display: none; }
}
@media (max-width: 620px) {
  .hero { padding-top: 112px; }
  .stage { width: calc(100% - 20px); margin-top: 48px; }
  .mac { padding: 7px 7px 0; border-radius: 20px 20px 0 0; }
  .mac-screen { height: 400px; border-radius: 14px 14px 0 0; }
  .mb-l span, .mb-r .ico, .sb-l span, .sb-r .ico { display: none; }
  .menubar, .scene-bar { padding: 0 12px; }
  .demo-bar { margin-top: -96px; border-radius: 22px; }
  .demo-opts { width: 100%; }
  .mbtn { padding: 0 12px 0 10px; }
  .mbtn-time { display: none; }
  .panel { border-radius: 28px; padding-top: 48px; }
  .scene-tall { height: 360px; }
  .sound-box { grid-template-columns: 1fr; }
  .snd-btn { flex-direction: row; justify-content: center; padding: 12px; }
  .stats b { font-size: 24px; }
  .c-word { font-size: 34px; }
  .isl-card { padding: 42px 18px 18px; }
}

/* ---------- Touch: every tap target at least 44 px ---------- */
@media (max-width: 620px), (pointer: coarse) {
  .nav-cta { height: 44px; }
  .sel select, .seg-btn, .appwin .seg-btn, .chip-btn { min-height: 44px; }
  .foot-col ul { gap: 0; }
  .foot-col a, .doc-link, .mail-link { display: inline-flex; align-items: center; min-height: 44px; }
  .doc-links { gap: 0; }
  /* The circle stays 30 px; the tappable box around it is 48 px and takes no extra room. */
  .ib { width: 48px; height: 48px; margin: -9px; padding: 9px; background-clip: content-box; }
  .ib-lg { width: 48px; height: 48px; margin: -4px; padding: 4px; }
  .isl-side { gap: 18px; }
}
@media (max-width: 620px) {
  .moment { padding: 10px 10px 20px; }
  .island.is-static { min-width: min(330px, 100% - 12px); max-width: min(560px, 100% - 12px); }
  .island .tag:not(.is-known):not(.is-again) { display: none; }
  .isl-large { gap: 10px; padding: 0 10px 8px 12px; }
  .moment .island.is-static .isl-large { padding-left: 12px; gap: 10px; }
  .glyph { width: 28px; height: 28px; }
  .isl-word { font-size: 17px; }
  .isl-mean { font-size: 14px; }
}

/* Very narrow phones: the meaning wraps to a second line and the island grows taller, instead of cutting it off. */
@media (max-width: 400px) {
  .isl-large { height: auto; min-height: 68px; padding-block: 8px 14px; }
  .isl-text { white-space: normal; }
  .isl-mean { white-space: normal; line-height: 1.25; }
}

/* ---------- Reduce Motion: no bounce, blur, scale, shake, pulse, burst or rotating glow; short fades only ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .island, .island.is-closing { transition: width .2s ease, height .2s ease; }
  .st, .st.pre, .isl-content.out .st { transform: none; filter: none; transition: opacity .2s ease; transition-delay: 0s; }
  .btn, .mbtn, .pill-btn, .ib, .snd-btn, .sw::after, .toast, .qa summary .ico { transition-duration: .01s; }
}
