/* Roomath: site styles */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #19191c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #ffd43b;
  --accent-ink: #1a1400;
  --green: #4ade80;
  --radius: 20px;
  --max: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip {
  position: absolute; left: -9999px; top: 12px;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { color: var(--text) !important; border: 1px solid var(--line-strong); padding: 8px 16px; border-radius: 999px; }
.nav-cta:hover { border-color: rgba(255, 255, 255, 0.3); }

@media (max-width: 720px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* ---------- Type ---------- */
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.08; margin: 0; font-weight: 700; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.3; font-weight: 600; }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; }
.hl { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  cursor: pointer; transition: transform 0.15s, background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.3); }
.btn:active { transform: translateY(1px); }

.btn-play { background: var(--text); color: #0a0a0b; border-color: var(--text); padding: 10px 20px 10px 16px; }
.btn-play:hover { background: #fff; }
.btn-play svg { width: 26px; height: 26px; }
.btn-play .stack { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-play small { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; }
.btn-play strong { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; right: -260px; top: -120px;
  background: radial-gradient(closest-side, rgba(255, 212, 59, 0.10), rgba(255, 212, 59, 0.03) 45%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 .today { position: relative; white-space: nowrap; }
.hero h1 .today::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 0.04em; height: 0.09em;
  background: var(--accent); border-radius: 4px;
  transform-origin: left; animation: underline 0.9s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.tagline { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--text); opacity: 0.8; }

@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero::before { right: -400px; top: 280px; }
}

/* ---------- Phone mockup ---------- */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone {
  width: 300px; aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 10px;
  background: linear-gradient(145deg, #2a2a2e, #111113 40%, #1d1d20);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 40px 80px -20px rgba(0,0,0,0.8), 0 0 120px -30px rgba(255,212,59,0.18);
  transform: rotate(-3deg);
}
.screen {
  position: relative; height: 100%; border-radius: 37px; background: #050505; overflow: hidden;
  padding: 44px 18px 18px; display: flex; flex-direction: column;
}
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #1a1a1a; box-shadow: inset 0 0 0 2px #0d0d0d; }

.ring { position: relative; width: 168px; height: 168px; margin: 6px auto 14px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: #232326; }
.ring .bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 440; animation: ring 1.6s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes ring { to { stroke-dashoffset: 154; } }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-label span { font-size: 11px; color: var(--muted); }
.ring-label strong { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }

.tx-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.tx-head span { color: var(--dim); font-weight: 500; font-size: 11px; }
.tx { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tx li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 12px; }
.tx .ic { width: 28px; height: 28px; border-radius: 9px; background: #18181b; display: grid; place-items: center; flex: none; }
.tx .ic svg { width: 14px; height: 14px; color: #d4d4d8; }
.tx .who { flex: 1; min-width: 0; line-height: 1.3; }
.tx .who b { display: block; font-weight: 550; }
.tx .who small { color: var(--dim); font-size: 10.5px; }
.tx .amt { font-weight: 550; font-variant-numeric: tabular-nums; }
.tx .amt.in { color: var(--green); }

.tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 4px; border-radius: 22px; background: #121214; border: 1px solid rgba(255,255,255,0.05); font-size: 9.5px; color: var(--dim); }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tabbar span:first-child { color: var(--text); }
.tabbar svg { width: 15px; height: 15px; }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(24, 24, 27, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 10px 14px; font-size: 13px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.7);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip small { display: block; color: var(--muted); font-size: 11px; }
.float-chip .badge { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #232326; font-size: 15px; }
.chip-sms { left: 0; top: 50%; }
.chip-goal { right: 0; top: 14%; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 520px) {
  .chip-sms { left: -6px; top: 52%; }
  .chip-goal { right: -6px; top: 6%; }
  .phone { width: 272px; }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 56px; }
.center { text-align: center; align-items: center; margin-left: auto; margin-right: auto; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.compare .card { display: flex; flex-direction: column; gap: 18px; }
.compare .label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.compare .big { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.compare .old .big { color: #52525b; }
.compare .q { color: var(--muted); }
.compare .new { border-color: var(--line-strong); background: linear-gradient(180deg, #17171a, var(--surface)); }
.compare .new .label { color: var(--text); }
.compare .new .label i { font-style: normal; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.steps li::before { content: "0" counter(step); font-size: 14px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.feature .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 8px; }
.feature .fi svg { width: 20px; height: 20px; }
.feature p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Works with */
.apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0 auto; max-width: 820px; }
.apps li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-size: 15px; font-weight: 500; background: var(--surface); }
.apps li.more { color: var(--muted); border-style: dashed; background: transparent; }
.fine { margin-top: 24px; text-align: center; color: var(--dim); font-size: 13px; }

/* Privacy band */
.privacy-band { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.checks b { display: block; font-weight: 600; }
.checks span { color: var(--muted); font-size: 15px; }
.textlink { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 4px; }
.textlink:hover { text-decoration-color: var(--accent); }
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; gap: 40px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 680px; }

/* Final CTA */
.final { text-align: center; padding: 120px 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,212,59,0.08), transparent 70%); }
.final .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .copy { width: 100%; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Legal / content pages ---------- */
.page { padding: 64px 0 96px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.prose .meta { color: var(--dim); font-size: 14px; margin-bottom: 40px; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; letter-spacing: -0.02em; line-height: 1.25; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: #d4d4d8; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--dim); }
.prose a { color: var(--text); text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.35); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--text); }
.summary-box { border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 14px; padding: 22px 24px; margin: 8px 0 32px; }
.summary-box h2 { margin: 0 0 10px; font-size: 18px; }
.summary-box ul { margin: 0; }
.toc { border: 1px solid var(--line); border-radius: 14px; padding: 18px 24px; margin-bottom: 8px; }
.toc p { font-weight: 600; color: var(--text); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #d4d4d8; }
th { color: var(--text); font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: 0; }

/* Contact form */
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 13px 14px; width: 100%; transition: border-color 0.15s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn-submit { align-self: flex-start; background: var(--text); color: #0a0a0b; border-color: var(--text); }
.form .btn-submit:disabled { opacity: 0.6; cursor: wait; }
.form-note { font-size: 13px; color: var(--dim); }
.form-status { font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #f87171; }

/* 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; }
.notfound .code { font-size: clamp(80px, 16vw, 160px); font-weight: 750; letter-spacing: -0.06em; line-height: 1; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.mb0 { margin-bottom: 0; }
.cta-center { justify-content: center; }
