/* Rise — get-risealarm.app
   One accent (Rise violet) on near-black ink. One easing for everything.
   Motion is progressive: no-JS and reduced-motion visitors see a finished page. */

:root {
  --ink: #0b0b0a;
  --ink-2: #10100e;
  --panel: #151513;
  --panel-2: #1b1b18;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f5f4f0;
  --silver: #dcd8cf;
  --muted: #a8a49b;
  --dim: #706c63;
  --accent: #4ade80;
  --accent-strong: #34c759;
  --accent-soft: #bbf7d0;
  --glow: 52, 199, 89;
  --green: #30d158;

  --t-barcode: #d946ef;
  --t-math: #f05252;
  --t-typing: #34c759;
  --t-shake: #f59e0b;
  --t-captcha: #14b8a6;
  --t-tap: #38bdf8;
  --t-target: #22c55e;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
  --max: 1160px;
  --font-display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(var(--glow), 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.dot {
  display: inline-block;
  width: 0.16em; height: 0.16em;
  margin-left: 0.05em;
  border-radius: 28%;
  background: var(--accent);
  vertical-align: baseline;
}
.accent { color: var(--accent); }

/* ---------- Reveal (armed only when JS sets data-reveal-ready) ---------- */
html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}
html[data-reveal-ready] [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav-bar { position: sticky; top: 0; z-index: 50; padding: 12px 16px; }
.nav {
  max-width: 56rem;
  margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(11, 11, 10, 0.7);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: max-width 0.42s var(--ease), padding 0.34s var(--ease), border-radius 0.34s var(--ease), border-color 0.28s, background-color 0.28s, box-shadow 0.32s;
}
.nav.is-scrolled {
  max-width: 46rem;
  padding: 6px 6px 6px 0.9rem;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(11, 11, 10, 0.86);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
.brand { display: flex; align-items: center; gap: 10px; padding-right: 6px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--muted);
  padding: 7px 12px; border-radius: 10px;
  transition: color 0.15s, background-color 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 9px 14px; border-radius: 10px;
  background: var(--text); color: #11110f;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.nav-cta:hover { background: #fff; transform: translateY(-1px); }
.nav-cta svg { width: 13px; height: 13px; }
@media (max-width: 760px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: -86px; padding-top: 86px; overflow: hidden; }
.hero::before { /* dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 10%, transparent 80%);
  mask-image: radial-gradient(70% 90% at 50% 0%, #000 10%, transparent 80%);
}
.hero::after { /* top glow */
  content: ""; position: absolute; left: 50%; top: -300px; width: min(920px, 120vw); height: 640px;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--glow), 0.28), transparent 68%);
  filter: blur(10px);
}
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 80px 20px 8px; text-align: center; }
.hero h1 {
  margin: 0; max-width: 860px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 8.4vw, 86px); line-height: 1.0; letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 s { text-decoration: none; color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 s::after { /* strike-through that draws in: snooze, denied */
  content: ""; position: absolute; left: -3%; right: -3%; top: 55%; height: 0.07em;
  background: var(--accent); border-radius: 99px;
  transform: scaleX(var(--strike, 1)); transform-origin: left;
  transition: transform 0.75s var(--ease) 0.55s;
}
html[data-reveal-ready] .hero h1 s::after { --strike: 0; }
html[data-reveal-ready] .hero h1.is-revealed s::after { --strike: 1; }
.lede { margin: 0; max-width: 540px; color: var(--muted); font-size: clamp(16px, 2vw, 18.5px); line-height: 1.6; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 4px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  height: 60px; padding: 0 22px 0 18px; border-radius: 16px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color 0.2s;
}
.store-btn:hover { border-color: rgba(255, 255, 255, 0.4); }
.store-btn svg { width: 25px; height: 30px; flex: none; }
.store-btn span { display: flex; flex-direction: column; text-align: left; font-size: 22px; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.store-btn small { font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em; opacity: 0.85; }
.hero-meta b { color: var(--silver); font-weight: 500; }

/* Phone fan: one Matte 3D render, centre phone in front, sides turned in */
.fan-stage { position: relative; z-index: 1; margin: 34px auto 0; max-width: 720px; padding: 16px 20px 0; }
.fan-stage::before {
  content: ""; position: absolute; inset: 6% 8% 0; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 50%, rgba(var(--glow), 0.3), transparent 72%);
}
.fan { position: relative; --px: 0; --sy: 0; transform: translate3d(calc(var(--px) * 8px), calc(var(--sy) * -12px), 0); transition: transform 0.9s var(--ease); }
.fan img {
  width: 100%; height: auto; margin: 0 auto;
  -webkit-mask-image: linear-gradient(#000 82%, transparent 100%);
  mask-image: linear-gradient(#000 82%, transparent 100%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}
html[data-reveal-ready] .fan[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
html[data-reveal-ready] .fan[data-reveal].is-revealed { opacity: 1; transform: translate3d(calc(var(--px) * 8px), calc(var(--sy) * -12px), 0); }
html[data-reveal-ready] .fan.is-settled { transition: transform 0.9s var(--ease); }
@media (max-width: 560px) { .fan-stage { margin: 26px 0 0; padding: 8px 0 0; overflow: hidden; } .fan img { width: 118%; max-width: none; margin-left: -9%; } }

/* ---------- Facts strip ---------- */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 18px 20px 0; }
.facts span { display: inline-flex; align-items: center; gap: 9px; }
.facts span::before { content: ""; width: 5px; height: 5px; border-radius: 2px; background: var(--accent); opacity: 0.8; }

/* ---------- Sections ---------- */
.section { padding: 116px 0 0; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 52px; }
.section-head h2, .h2 {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 5vw, 50px); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance;
}
.section-head p { margin: 0; max-width: 560px; color: var(--muted); font-size: 16.5px; text-wrap: pretty; }

/* ---------- Try it (live alarm) ---------- */
.try { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .try { grid-template-columns: 1fr; gap: 36px; } }
.try-copy p { color: var(--muted); font-size: 17px; max-width: 470px; margin: 18px 0 0; }
.try-copy .mono { display: block; margin-bottom: 16px; }
.try-copy ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.try-copy li { display: flex; gap: 12px; align-items: baseline; color: var(--silver); font-size: 15px; }
.try-copy li b { flex: none; width: 22px; font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; font-weight: 500; }

.demo {
  position: relative; isolation: isolate;
  border-radius: 37px; padding: 22px;
  background: linear-gradient(180deg, #1c1c19, #121210);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.demo::before { /* ringing glow */
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background: radial-gradient(40% 35% at 50% 32%, rgba(240, 82, 82, 0.26), transparent 70%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.demo.is-ringing::before { opacity: 1; animation: ringglow 1.2s ease-in-out infinite; }
.demo::after {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background: radial-gradient(40% 35% at 50% 32%, rgba(48, 209, 88, 0.2), transparent 70%);
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.demo.is-off::after { opacity: 1; }
@keyframes ringglow { 50% { opacity: 0.5; } }
.demo-top { display: flex; justify-content: space-between; align-items: center; }
.demo-label { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 15px; font-size: 12.5px; font-weight: 600;
  color: var(--t-math); background: rgba(240, 82, 82, 0.1); border: 1.5px solid rgba(240, 82, 82, 0.4); }
.demo-label svg { width: 14px; height: 14px; }
.demo-clock { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.14em; text-transform: uppercase; }
.demo-clock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t-math); box-shadow: 0 0 0 0 rgba(240, 82, 82, 0.6); }
.demo.is-ringing .demo-clock::before { animation: live 1.2s ease-out infinite; }
.demo.is-off .demo-clock::before { background: var(--green); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(240, 82, 82, 0.55); } 100% { box-shadow: 0 0 0 9px rgba(240, 82, 82, 0); } }
.bell { display: grid; place-items: center; margin: 22px auto 2px; width: 84px; height: 84px; position: relative; }
.bell svg { width: 40px; height: 40px; color: var(--text); position: relative; z-index: 1; transition: color 0.4s; }
.bell i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(240, 82, 82, 0.55); opacity: 0; }
.demo.is-ringing .bell svg { animation: shake 0.55s cubic-bezier(.36,.07,.19,.97) infinite; transform-origin: 50% 12%; }
.demo.is-ringing .bell i { animation: pulse 1.6s var(--ease) infinite; }
.demo.is-ringing .bell i:nth-child(2) { animation-delay: 0.53s; }
.demo.is-ringing .bell i:nth-child(3) { animation-delay: 1.06s; }
@keyframes shake { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.75); opacity: 0; } }
.demo.is-off .bell svg { color: var(--green); }
.demo-time { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 62px; line-height: 1; letter-spacing: -0.03em; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.demo-time small { font-size: 0.36em; font-weight: 600; margin-left: 4px; color: var(--muted); }
.demo-q { text-align: center; margin: 22px 0 14px; font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.demo form { display: flex; gap: 10px; transition: opacity 0.4s; }
.demo input {
  flex: 1; min-width: 0; height: 54px; padding: 0 16px; border-radius: 15px;
  background: #2a2925; border: 2px solid #4a4842; color: var(--text);
  font: 600 22px/1 var(--font-display); text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}
.demo input::-webkit-outer-spin-button, .demo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.demo input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--glow), 0.2); }
.demo input::placeholder { color: #6e6b64; font-weight: 500; font-size: 16px; }
.demo button[type=submit] {
  flex: none; height: 54px; padding: 0 20px; border: 0; border-radius: 15px; cursor: pointer;
  background: var(--green); color: #fff; font-weight: 700; font-size: 15.5px;
  transition: transform 0.2s var(--ease), filter 0.2s;
}
.demo button[type=submit]:hover { filter: brightness(1.08); transform: translateY(-1px); }
.demo.is-wrong form { animation: nope 0.42s cubic-bezier(.36,.07,.19,.97); }
.demo.is-wrong input { border-color: var(--t-math); }
@keyframes nope { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.demo-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; min-height: 26px; font-size: 13.5px; color: var(--muted); }
.demo-status button { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.demo.is-off .demo-status button { opacity: 1; pointer-events: auto; }
.demo.is-off [data-demo-status] { color: var(--green); }
.demo.is-off form { opacity: 0.35; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .demo * { animation: none !important; } .demo::before { animation: none !important; } }
@media (max-width: 460px) {
  .demo { padding: 18px; border-radius: 33px; }
  .demo form { flex-direction: column; }
  .demo button[type=submit] { width: 100%; }
  .demo-time { font-size: 54px; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 26px 26px 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step-n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { margin: 14px 0 8px; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.steps-note { margin: 24px auto 0; max-width: 620px; text-align: center; color: var(--dim); font-size: 14.5px; text-wrap: pretty; }

/* ---------- Feature tour ---------- */
.tour { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; max-width: 1060px; margin: 0 auto; }
@media (max-width: 1000px) { .tour { grid-template-columns: 1fr; gap: 34px; } .tour-stage { order: -1; } }
.tour-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .tour-cards { grid-template-columns: 1fr; } .tour-card p { display: none; } .tour-card.is-active p { display: block; } }
.tour-card {
  position: relative; text-align: left; cursor: pointer; width: 100%;
  padding: 16px; border-radius: 24px;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tour-card:hover { border-color: var(--line-2); }
.tour-card.is-active {
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
  background: linear-gradient(115deg, color-mix(in srgb, var(--c) 10%, transparent), rgba(255, 255, 255, 0.01) 55%), var(--panel);
  box-shadow: 0 0 34px color-mix(in srgb, var(--c) 12%, transparent);
}
.tour-card h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; letter-spacing: -0.005em; }
.tour-card h3 i { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.tour-card h3 i svg { width: 15px; height: 15px; }
.tour-card p { margin: 7px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.tag { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.1em; padding: 3px 7px; border-radius: 99px; color: var(--accent-soft); background: rgba(var(--glow), 0.14); border: 1px solid rgba(var(--glow), 0.3); }
.tag.free { color: #86efac; background: rgba(48, 209, 88, 0.1); border-color: rgba(48, 209, 88, 0.3); }

.tour-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.tour-stage::before { content: ""; position: absolute; top: 44%; left: 50%; width: 560px; max-width: 120vw; height: 460px; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--stage-c, var(--accent)) 24%, transparent), transparent 66%); filter: blur(8px); transition: background 0.8s var(--ease); }
.tour-frame { position: relative; width: min(290px, 70vw); aspect-ratio: 720 / 1481; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tour-frame:active { cursor: grabbing; }
.tour-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transform: translateY(8px) scale(0.975);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  filter: drop-shadow(0 34px 50px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.tour-slide.is-active { opacity: 1; transform: none; transition-duration: 0.6s; }
.tour-slide.is-leaving { transform: translateY(-8px) scale(1.015); }
.tour-dots { display: flex; gap: 6px; }
.tour-dot { position: relative; width: 22px; height: 4px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.13); cursor: pointer; transition: width 0.42s var(--ease); }
.tour-dot::before { content: ""; position: absolute; inset: -14px -3px; }
.tour-dot.is-active { width: 40px; }
.tour-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--text); transform: scaleX(0); transform-origin: left; }
.tour-dot.is-active::after { transform: scaleX(1); }
.tour-dot.is-active.is-filling::after { animation: fill var(--tour-ms, 5200ms) linear forwards; }
.tour.is-paused .tour-dot.is-filling::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .tour-dot.is-active::after { animation: none !important; transform: scaleX(1); } }

/* ---------- Wake-up check ---------- */
.check { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 28px 28px 28px 52px; border-radius: 60px; background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.check > .ring-card { justify-self: end; }
.check::before { content: ""; position: absolute; right: -10%; top: -30%; width: 70%; height: 160%; background: radial-gradient(closest-side, rgba(var(--glow), 0.16), transparent); pointer-events: none; }
@media (max-width: 880px) { .check { grid-template-columns: 1fr; padding: 32px 16px 16px; gap: 28px; border-radius: 48px; } .check > div:first-child { padding: 0 10px; } .ring-card { width: 100%; } }
.check > * { position: relative; }
.check p { color: var(--muted); font-size: 16.5px; margin: 16px 0 0; max-width: 460px; }
.check .mono { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.ring-card { justify-self: center; width: min(340px, 100%); padding: 18px; border-radius: 32px; background: #1c1b20; border: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); text-align: center; }
.ring-card h4 { margin: 4px 4px 16px; text-align: left; font-size: 16px; font-weight: 600; color: var(--silver); display: flex; justify-content: space-between; align-items: center; }
.ring-card h4 span { color: var(--dim); font-weight: 400; font-size: 13px; }
.ring { position: relative; width: 168px; height: 168px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: rgba(255, 255, 255, 0.08); }
.ring .bar { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 465; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke 0.4s; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 54px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ring-card p { margin: 14px 0 18px; color: var(--muted); font-size: 15px; max-width: none; }
.ring-card button { width: 100%; height: 52px; border: 0; border-radius: 14px; background: var(--green); color: #fff; font-weight: 700; font-size: 17px; cursor: pointer; transition: filter 0.2s, transform 0.2s var(--ease), background 0.3s; }
.ring-card button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ring-card.is-done .bar { stroke: var(--accent); }
.ring-card.is-done button { background: #2a2925; color: var(--silver); }
.ring-card.is-late .bar { stroke: var(--t-math); }

/* ---------- Bento extras ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { grid-column: span 2; padding: 20px; border-radius: 30px; background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color 0.3s; }
.tile:hover { border-color: var(--line-2); }
.tile.wide { grid-column: span 3; }
@media (max-width: 900px) { .tile, .tile.wide { grid-column: span 3; } .tile:last-child { grid-column: span 6; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide, .tile:last-child { grid-column: auto; } }
.tile h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips span { font-size: 12px; line-height: 20px; padding: 0 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--silver); }
.days { display: flex; gap: 6px; margin-top: 16px; }
.days span { flex: 1; max-width: 40px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--dim); }
.days span.on { background: rgba(var(--glow), 0.18); border-color: rgba(var(--glow), 0.45); color: var(--accent-soft); }
.phrase { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px dashed var(--line-2); font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--silver); }
.phrase .caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tile-shot { margin: 16px -20px -20px; height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.tile-shot img { width: 78%; margin: 0 auto; }

/* ---------- Guides ---------- */
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; max-width: 900px; margin: 0 auto; }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.3s, transform 0.4s var(--ease); }
.guide-card:hover { border-color: rgba(var(--glow), 0.45); transform: translateY(-3px); }
.guide-card h3 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.guide-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.guide-card .more { margin-top: auto; padding-top: 6px; color: var(--accent); font-size: 14px; font-weight: 600; }
.guide-card .more::after { content: " →"; display: inline-block; transition: transform 0.3s var(--ease); }
.guide-card:hover .more::after { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 4px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); transition: transform 0.4s var(--ease), background 0.3s; }
.faq summary i::before { content: "+"; font-style: normal; font-size: 18px; color: var(--accent); line-height: 1; }
.faq details.is-open summary i { transform: rotate(45deg); background: rgba(var(--glow), 0.16); }
.faq-panel { display: grid; grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; }
.faq-panel p { margin: 0; padding: 0 44px 22px 4px; color: var(--muted); font-size: 15.5px; }
html[data-js] .faq-panel { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.38s var(--ease), opacity 0.3s var(--ease); }
html[data-js] .faq details.is-open .faq-panel { grid-template-rows: 1fr; opacity: 1; }

/* ---------- Final CTA ---------- */
.final { position: relative; margin: 130px auto 0; max-width: var(--max); padding: 0 20px; }
.final-inner { position: relative; overflow: hidden; border-radius: 32px; padding: 84px 24px 76px; text-align: center; border: 1px solid var(--line); background: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final-inner::before { content: ""; position: absolute; left: 50%; top: -55%; width: 900px; height: 700px; transform: translateX(-50%); background: radial-gradient(circle, rgba(var(--glow), 0.32), transparent 62%); pointer-events: none; }
.final-inner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%); }
.final-inner > * { position: relative; z-index: 1; }
.final img { border-radius: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* ---------- Footer ---------- */
.footer { max-width: var(--max); margin: 0 auto; padding: 64px 20px 44px; text-align: center; color: var(--dim); font-size: 13px; }
.footer .brand { font-size: 17px; color: var(--text); }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; color: var(--muted); transition: color 0.15s; }
.footer a:hover { color: var(--text); }
.footer .legal { flex-basis: 100%; font-size: 12px; color: #55524b; }

/* ---------- Articles / guides (shared) ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 72px 20px 0; font-size: 17.5px; }
.article h1 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 6vw, 58px); line-height: 1.04; letter-spacing: -0.03em; }
.article h1 em { font-style: normal; color: var(--accent); }
.article .lede { margin: 20px 0 0; max-width: none; }
.article p, .article li { color: #dedad1; }
.article ul { padding-left: 22px; }
.article li { margin: 6px 0; }
.article a { color: var(--accent); }
.article .eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.crumbs { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.h2-left { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.1; margin: 56px 0 14px; }
.disclosure { margin: 28px 0 0; padding: 16px 18px; border-radius: 14px; font-size: 15px; color: var(--muted); background: rgba(var(--glow), 0.08); border: 1px solid rgba(var(--glow), 0.25); }
.disclosure strong { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { color: var(--dim); font-family: var(--font-mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.compare td:first-child { font-weight: 700; white-space: nowrap; }
.pick { margin: 40px 0 0; padding: 22px; border-radius: 40px; background: var(--panel); border: 1px solid var(--line); scroll-margin-top: 96px; }
.pick-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pick-head img { border-radius: 9px; }
.pick-head h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.pick-sub { margin: 4px 0 0 !important; color: var(--accent) !important; font-size: 15px; font-weight: 600; }
.pick-num { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-strong); font-weight: 800; }
.pick p { margin: 0 0 14px; }
.proscons { list-style: none; padding: 0 !important; margin: 18px 0; display: grid; gap: 6px; font-size: 16px; }
.proscons li { margin: 0; padding-left: 26px; position: relative; }
.proscons .pro::before { content: "+"; position: absolute; left: 4px; color: #86efac; font-weight: 800; }
.proscons .con::before { content: "–"; position: absolute; left: 4px; color: #f87171; font-weight: 800; }
.pick-meta { font-size: 14px; color: var(--muted) !important; margin: 0 !important; }
.article .faq { margin-top: 10px; }
.article .faq summary { font-size: 17px; }
.guide-list { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
.faq details > p { margin: 0; padding: 0 44px 22px 4px; color: var(--muted); font-size: 15.5px; }
.article .eyebrow.mono { color: var(--accent); margin: 0 0 10px; }
.article ~ .final, main > .final { margin-top: 110px; }

.footer p { margin: 0; }
.ring-card button:disabled { cursor: default; filter: none; transform: none; }
.demo input:disabled, .demo button:disabled { cursor: default; }

@media (max-width: 880px) { .check > .ring-card { width: 100%; justify-self: stretch; } }

/* ---------- Guide article components ---------- */
.guide h1 .dot { font-size: inherit; }
.guide .lede strong { color: var(--text); font-weight: 600; }
.mornings { margin: 40px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .mornings { grid-template-columns: 1fr; } }
.morning { padding: 22px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.morning .mono { display: block; margin-bottom: 14px; }
.morning ol { list-style: none; margin: 0; padding: 0; position: relative; }
.morning ol::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.morning li { position: relative; display: flex; gap: 14px; align-items: baseline; padding: 6px 0 6px 22px; margin: 0; color: var(--silver); font-size: 15px; }
.morning li::before { content: ""; position: absolute; left: 0; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: #2a2925; border: 2px solid var(--line-2); }
.morning li b { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; color: var(--dim); min-width: 38px; }
.morning.bad li.end span { color: #f87171; font-weight: 600; }
.morning.bad li.end::before { background: #f05252; border-color: #f05252; }
.morning.good { border-color: rgba(var(--glow), 0.35); background: linear-gradient(160deg, rgba(var(--glow), 0.12), transparent 60%), var(--panel); }
.morning.good li.end span { color: #86efac; font-weight: 600; }
.morning.good li.end::before { background: var(--green); border-color: var(--green); }
.morning.good .mono { color: var(--accent); }

.guide sup a { color: var(--accent); text-decoration: none; font-size: 0.75em; margin-left: 1px; }
.stat { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin: 26px 0; padding: 22px 24px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 6vw, 52px); letter-spacing: -0.03em; color: var(--accent); white-space: nowrap; }
.stat p { margin: 0; font-size: 15.5px; }
@media (max-width: 520px) { .stat { grid-template-columns: 1fr; gap: 6px; } }

.fix { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; margin: 34px 0 0; padding: 34px 0 6px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .fix { grid-template-columns: 1fr; gap: 24px; } }
.fix-n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.fix h3 { margin: 8px 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.015em; line-height: 1.15; }
.fix p { margin: 0 0 12px; font-size: 16.5px; }
.fix-rise { padding-left: 14px; border-left: 2px solid var(--accent); color: var(--silver) !important; }
.demo-sm { max-width: 380px; justify-self: center; width: 100%; }
.demo-sm .demo-time { font-size: 48px; }
.demo-sm .demo-q { font-size: 26px; margin: 16px 0 12px; }
.demo-sm .bell { width: 66px; height: 66px; margin-top: 14px; }
.demo-sm .bell svg { width: 32px; height: 32px; }
.demo-sm form { flex-direction: column; }
.demo-sm button[type=submit] { width: 100%; }
.fix-phone { margin: 0; justify-self: center; text-align: center; }
.fix-phone img { width: min(250px, 62vw); margin: 0 auto; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5)); }
.fix-phone figcaption, .setup figcaption .note { margin-top: 12px; font-size: 13px; color: var(--dim); }
.fix .ring-card { justify-self: center; }

.tips { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .tips { grid-template-columns: 1fr; } }
.tips li { margin: 0 !important; padding: 18px 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; color: var(--muted) !important; }
.tips li b { display: block; color: var(--text); font-family: var(--font-display); font-size: 16.5px; margin-bottom: 4px; }

.setup { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin: 10px 0 0; }
@media (max-width: 680px) { .setup { grid-template-columns: 1fr; gap: 26px; justify-items: center; } }
.setup img { width: min(260px, 64vw); filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5)); }
.setup ol { margin: 0 0 22px; padding-left: 20px; display: grid; gap: 10px; }
.setup li { color: var(--muted) !important; font-size: 15.5px; }
.setup li b { color: var(--text); }

.sources { margin: 56px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.sources ol { margin: 10px 0 0; padding-left: 20px; }
.sources li { font-size: 13.5px; color: var(--muted) !important; }
.guide .faq summary { font-size: 17px; }
.demo-sm input { flex: none; width: 100%; }
@media (max-width: 460px) { .demo input { flex: none; width: 100%; } }
.article .store-btn { color: #fff; text-decoration: none; }

/* ---------- Free tools ---------- */
.tool { margin: 34px 0 10px; padding: 24px; border-radius: 32px; background: linear-gradient(160deg, rgba(var(--glow), 0.12), transparent 55%), var(--panel); border: 1px solid rgba(var(--glow), 0.3); }
.tool-label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.tool-time { width: 100%; height: 64px; padding: 0 16px; border-radius: 8px; background: #2a2925; border: 2px solid #4a4842; color: var(--text); font: 700 30px/1 var(--font-display); color-scheme: dark; }
.tool-time:focus { outline: none; border-color: var(--accent); }
.tool-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
@media (max-width: 560px) { .tool-results { grid-template-columns: 1fr; } }
.tool-result { padding: 14px 16px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.tool-result b { display: block; font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; }
.tool-result span { font-size: 13px; color: var(--muted); }
.tool-result.best { border-color: rgba(var(--glow), 0.55); background: rgba(var(--glow), 0.12); }
.tool-note { margin: 14px 0 0 !important; font-size: 13px; color: var(--dim) !important; }
.tool-row { display: grid; grid-template-columns: 1fr 2fr 40px; gap: 14px; align-items: center; margin: 0 0 14px; }
.tool-row .tool-label { margin: 0; }
.tool-row output { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-align: right; }
@media (max-width: 560px) { .tool-row { grid-template-columns: 1fr 40px; } .tool-row input { grid-column: 1 / -1; grid-row: 2; } }
.tool input[type=range] { width: 100%; accent-color: var(--accent-strong); }
.tool-big { margin-top: 10px; padding: 18px 20px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.tool-big b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 8vw, 60px); letter-spacing: -0.03em; color: var(--accent); }
.tool-big span { color: var(--muted); font-size: 15px; }
.sound-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
@media (max-width: 560px) { .sound-grid { grid-template-columns: 1fr 1fr; } }
.sound { text-align: left; padding: 14px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.25); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.sound:hover { border-color: rgba(var(--glow), 0.5); }
.sound b { display: block; font-family: var(--font-display); font-size: 16px; }
.sound span { font-size: 12.5px; color: var(--muted); }
.sound.is-playing { border-color: var(--accent); background: rgba(var(--glow), 0.16); }
.pick-top { border-color: rgba(var(--glow), 0.45); background: linear-gradient(160deg, rgba(var(--glow), 0.1), transparent 55%), var(--panel); }
.fix-phone + .fix-copy, .fix > .demo + .fix-phone { }
.pick-head h2 { line-height: 1.1; }
.pick-head .pick-sub { margin: 3px 0 0 !important; line-height: 1.3; }

/* ---------- Interactive checklist ---------- */
.checklist { display: grid; gap: 8px; }
.check-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.check-item:hover { border-color: var(--line-2); }
.check-item input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 2px 0 0; border-radius: 7px; border: 2px solid #4a4842; background: #2a2925; display: grid; place-items: center; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.check-item input:checked { background: var(--green); border-color: var(--green); }
.check-item input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check-item input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-item span { font-size: 14.5px; color: var(--muted); }
.check-item span b { display: block; color: var(--text); font-family: var(--font-display); font-size: 16px; margin-bottom: 2px; }
.check-item:has(input:checked) { border-color: rgba(48, 209, 88, 0.35); background: rgba(48, 209, 88, 0.06); }
.check-item:has(input:checked) span b { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
.check-progress { position: relative; margin-top: 6px; height: 34px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.check-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(var(--glow), 0.35); transition: width 0.4s var(--ease); }
.checklist.is-done .check-progress i { background: rgba(48, 209, 88, 0.35); }
.check-progress span { position: relative; font-size: 13px; font-weight: 600; color: var(--silver); }

/* ---------- Mobile polish ---------- */
html, body { overflow-x: clip; }
.nav-cta { min-height: 40px; padding-top: 0; padding-bottom: 0; }
.brand { min-height: 40px; }
.guide sup { font-size: 12px; line-height: 0; }
.guide sup a { padding: 0 2px; }
.try-copy li b { font-size: 12px; }
@media (max-width: 560px) {
  .hero-copy { padding-top: 64px; gap: 18px; }
  .lede { font-size: 16.5px; }
  .section { padding-top: 88px; }
  .section-head { margin-bottom: 36px; }
  .article { padding-top: 48px; font-size: 17px; }
  .h2-left { margin-top: 44px; }
  .final { margin-top: 96px; }
  .final-inner { padding: 60px 20px 54px; }
  .tour-cards { gap: 8px; }
}
.hero-meta, .final .mono { text-wrap: balance; }
@media (max-width: 420px) { .hero-meta, .final .mono { letter-spacing: 0.1em; font-size: 11px; max-width: 290px; } }
@media (max-width: 560px) {
  .tour { gap: 22px; }
  .tour-cards {
    display: flex; grid-template-columns: none; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -20px; padding: 2px 20px 6px; scroll-padding: 0 20px;
  }
  .tour-cards::-webkit-scrollbar { display: none; }
  .tour-card { flex: 0 0 78%; scroll-snap-align: start; }
  .tour-card p { display: block !important; }
  .tour-frame { width: min(250px, 64vw); }
}
.guide sup a { font-size: inherit; }

/* ---------- Support ---------- */
.support-top { padding-top: 150px; }
.contact { position: relative; overflow: hidden; max-width: 560px; margin: 0 auto; padding: 40px 24px 34px; border-radius: 32px; border: 1px solid var(--line); background: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.contact::before { content: ""; position: absolute; left: 50%; top: -70%; width: 640px; height: 480px; transform: translateX(-50%); background: radial-gradient(circle, rgba(var(--glow), 0.26), transparent 62%); pointer-events: none; }
.contact > * { position: relative; }
.contact-addr { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 5.4vw, 30px); letter-spacing: -0.02em; color: var(--text, #fff); text-decoration: none; overflow-wrap: anywhere; }
.contact-addr:hover { color: var(--accent); }
.contact p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.mail-btn { height: 52px; margin-top: 6px; }
.mail-btn svg { width: 22px; height: 22px; }
.mail-btn span { font-size: 17px; }
.nav-links a[aria-current="page"] { color: var(--text, #fff); }
@media (max-width: 600px) { .support-top { padding-top: 120px; } .contact { padding: 32px 18px 28px; } }
.faq-panel a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.faq-panel a:hover { text-decoration-color: var(--accent); }
.support-top + .section { padding-top: 92px; }

/* ---------- In-app browser (TikTok / Instagram) App Store help ---------- */
.inapp-coach { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 100; max-width: 420px; margin: 0 auto; padding: 20px; border-radius: 24px; border: 1px solid var(--line); background: rgba(22, 22, 20, 0.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); color: var(--text); transform: translateY(calc(100% + 40px)); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.3s var(--ease); }
.inapp-coach.is-open { transform: none; opacity: 1; }
.inapp-coach strong { font-family: var(--font-display); font-size: 18px; }
.inapp-coach p { margin: 6px 0 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.inapp-coach b { color: var(--text); font-weight: 600; }
.inapp-coach button { width: 100%; height: 44px; border: 0; border-radius: 12px; background: #fff; color: #000; font: 600 15px var(--font-body, inherit); cursor: pointer; }

/* ---------- Reviews (real App Store reviews, quoted as written) ---------- */
/* An endless marquee: JS clones the set once, the track slides by exactly one set. */
.reviews { width: 100vw; margin-left: calc(50% - 50vw); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews::-webkit-scrollbar { display: none; }
.reviews-track { display: flex; align-items: center; gap: 12px; width: max-content; padding: 0 20px; }
.reviews.is-looping { overflow: hidden; }
.reviews.is-looping .reviews-track { padding: 0; animation: reviews-marquee var(--marquee-s, 70s) linear infinite; }
.reviews.is-looping:hover .reviews-track { animation-play-state: paused; }
@keyframes reviews-marquee { to { transform: translateX(calc(-50% - 6px)); } }
.review { flex: none; width: 320px; margin: 0; padding: 22px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.review .stars { color: #ffc93c; letter-spacing: 2px; font-size: 14px; }
.review h3 { margin: 10px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.review blockquote { margin: 8px 0 14px; color: #dedad1; font-size: 15.5px; line-height: 1.55; }
.review figcaption { font-size: 13.5px; font-weight: 600; color: var(--text); }
@media (max-width: 600px) { .review { width: 280px; } }
.review figcaption span { font-weight: 400; color: var(--muted); }

/* ===================== Gambit ===================== */
/* Find-the-move board (outer 32 = board 14 + padding 18) */
.board-demo { position: relative; justify-self: center; width: min(440px, 100%); padding: 18px; border-radius: 32px; background: linear-gradient(180deg, #1c1c19, #121210); border: 1px solid var(--line-2); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.board-top { display: flex; justify-content: space-between; align-items: center; margin: 2px 4px 14px; font-size: 14px; font-weight: 600; color: var(--silver); }
.board-top .board-move { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.board { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); aspect-ratio: 1; border-radius: 14px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.sq { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; background: #edd9bd; border: 0; padding: 0; font: inherit; cursor: default; }
.sq.dark { background: #9e704c; }
.sq .pc { width: 84%; height: 84%; transition: transform 0.45s var(--ease); pointer-events: none; position: relative; z-index: 1; }
.sq.can { cursor: pointer; }
.sq.sel { box-shadow: inset 0 0 0 999px rgba(74, 222, 128, 0.45); }
.sq.hint::after { content: ""; position: absolute; width: 28%; height: 28%; border-radius: 50%; background: rgba(0, 0, 0, 0.22); }
.sq.from, .sq.to { box-shadow: inset 0 0 0 999px rgba(245, 165, 36, 0.42); }
.sq .coord { position: absolute; left: 4px; top: 3px; font-size: 9px; font-weight: 700; color: rgba(0,0,0,.35); pointer-events: none; }
.sq.dark .coord { color: rgba(255,255,255,.45); }
.board.is-wrong { animation: boardshake 0.4s var(--ease); }
@keyframes boardshake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.coach { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.25); animation: coachin 0.5s var(--ease) both; }
.coach img { flex: none; border-radius: 9px; }
.coach b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--text); }
.coach p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
@keyframes coachin { from { opacity: 0; transform: translateY(8px); } }
.board-demo.is-solved .board { cursor: default; }

/* Pattern card (outer 32 = rows 14 + padding 18) */
.pattern-card { justify-self: end; width: min(360px, 100%); padding: 18px; border-radius: 32px; background: #1c1c19; border: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.pattern-head { display: inline-flex; align-items: center; gap: 8px; margin: 4px 4px 14px; font-size: 14px; font-weight: 600; color: #f5a524; }
.pattern-head svg { width: 18px; height: 18px; }
.pattern-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pattern-games li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px 10px 34px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); position: relative; font-size: 14px; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.4s; }
.pattern-games li::before { content: ""; position: absolute; left: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--dim); transition: background 0.4s; }
.pattern-games li b { font-weight: 600; color: var(--silver); }
.pattern-games li span { color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.pattern-card.is-lit li.bad { background: rgba(248, 113, 113, 0.1); }
.pattern-card.is-lit li.bad::before { background: #f87171; }
.pattern-card.is-lit li.good::before { background: var(--accent); }
.pattern-result { margin-top: 12px; padding: 14px; border-radius: 14px; background: rgba(245, 165, 36, 0.1); border: 1px solid rgba(245, 165, 36, 0.3); }
.pattern-result b { display: block; font-family: var(--font-display); font-size: 17px; color: var(--text); }
.pattern-result p { margin: 4px 0 0 !important; font-size: 14px !important; color: var(--muted); }
html[data-js] .pattern-card:not(.is-run) li { opacity: 0; transform: translateY(6px); }
html[data-js] .pattern-card:not(.is-done) .pattern-result { opacity: 0; transform: translateY(8px); }
.pattern-result { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
@media (max-width: 900px) { .pattern-card { justify-self: center; } }

/* Board theme swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.swatches span { width: 34px; height: 34px; border-radius: 10px; background: conic-gradient(var(--a) 0 25%, var(--b) 0 50%, var(--a) 0 75%, var(--b) 0); border: 1px solid var(--line-2); }
.coach[hidden] { display: none; }
