/* MorseVibes website. Built like readymaxer.com: white and sand sections,
   heavy headings, hairline grids, one accent. Black and white like the app. */
:root {
  /* Tokens copied from ReadyMaxer (cloud/src/web/styles.ts, design system 2.0). */
  --yellow: #FFE14D;
  --yellow-hi: #FFEA6B;
  --amber: #B07A18;
  --ink: #1A1206;
  --ink-soft: #5C5142;
  --ink-faint: #8A8170;
  --ink-mute: #A39A88;
  --bg: #FFFFFF;
  --sand: #F5F5F3;
  --night: #0b0b0c;
  --accent: var(--yellow);
  --accent-hi: var(--yellow-hi);
  --accent-ink: var(--amber);
  --hairline: rgba(26,18,6,0.08);
  --hairline-2: rgba(26,18,6,0.12);
  --shadow-sm: 0 1px 3px rgba(20,16,10,0.06);
  --shadow-md: 0 8px 24px rgba(20,16,10,0.08);
  --shadow-lg: 0 20px 50px rgba(20,16,10,0.10);
  --r-xl: 22px; --r-lg: 16px; --r-md: 13px; --r-sm: 11px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* ---- Nav ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.mark img { width: 30px; height: 30px; border-radius: 8px; }
.mark b { background: var(--yellow); color: var(--ink); border-radius: 7px; padding: 1px 8px 2px; margin-left: 2px; font-weight: 800; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 14px; padding: 6px 0; white-space: nowrap; }
.nav nav a:hover { color: var(--ink); }
.nav nav a.pill { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 15px; color: var(--ink); background: var(--yellow); padding: 2px 10px 4px; border-radius: 7px; }
.nav nav a.pill:hover { background: var(--accent-hi); }
@media (max-width: 640px) { .nav nav a.hide-sm { display: none; } .nav nav { gap: 14px; } }

/* ---- Type ----------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; color: inherit; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.25; }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--amber); margin: 0 0 12px; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 580px; margin: 18px 0 0; }
.lede b { color: var(--ink); }
.swoosh { position: relative; white-space: nowrap; display: inline-block; }
.swoosh svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.32em; overflow: visible; }
.swoosh path { stroke: var(--accent); stroke-width: 9; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 0.9s 0.3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 15px 26px; border-radius: var(--r-md); border: 1.5px solid var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
}
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 rgba(26,18,6,0.12); }
.btn-primary:hover { background: var(--yellow-hi); }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--hairline-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 20px; height: 20px; }
.store-btn { flex-direction: row; text-align: left; padding: 11px 20px 11px 16px; }
.store-btn small { display: block; font-size: 11px; font-weight: 700; opacity: 0.8; letter-spacing: 0.02em; }
.store-btn span { display: block; font-size: 18px; line-height: 1.1; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 30px; }
.cta-note { font-size: 14px; color: var(--ink-faint); margin-top: 12px; }

/* ---- Sections ------------------------------------------------------- */
section { padding: 66px 0; }
.section-sand { background: var(--sand); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-night { background: var(--night); color: #f2f2f2; }
.section-night .lede { color: #a9a9b0; }
.section-night .eyebrow { color: var(--accent); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---- Hero ----------------------------------------------------------- */
.hero { text-align: center; position: relative; }
.hero { padding: 66px 0 40px; background: radial-gradient(640px 420px at 82% 12%, rgba(255,225,77,.16), transparent 70%); }
.hero .lede { margin: 20px auto 0; }

/* Two phones: tap the left one, the right one feels it. */
.demo { position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(18px, 5vw, 70px); margin: 54px auto 0; max-width: 820px; }
.demo .arrow { font: 600 10px/1.5 var(--mono); color: var(--ink-faint); letter-spacing: 0.1em; text-align: center; text-transform: uppercase; }
.demo .arrow i { display: block; font-style: normal; font-size: 22px; color: var(--ink); }
.phone {
  position: relative; width: min(250px, 40vw); aspect-ratio: 9 / 19.2; flex: none;
  background: var(--night); border: 9px solid #1c1c1f; border-radius: 42px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #333;
  overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
}
.phone::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 20px; background: #000; z-index: 3; }
.phone .who { position: absolute; top: 44px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 800; font-size: 15px; z-index: 2; }
.phone .who small { display: block; color: #8b8b92; font-weight: 700; font-size: 11.5px; }
.phone .who small i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #35d07f; margin-right: 5px; font-style: normal; vertical-align: 1px; }
.phone .spell { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; z-index: 2; color: #fff; }
.phone .spell .code { font: 800 20px/1 var(--mono); letter-spacing: 0.16em; min-height: 22px; color: var(--accent); }
.phone .spell .text { font-weight: 800; font-size: 26px; letter-spacing: 0.08em; min-height: 34px; margin-top: 6px; }
.phone .hint { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; color: #7a7a82; font-size: 13.5px; font-weight: 700; line-height: 1.5; padding: 0 22px; transition: opacity 0.3s; z-index: 1; pointer-events: none; }
.phone.sender { cursor: pointer; }
.phone.receiver.buzz { animation: buzz 0.16s linear infinite; }
@keyframes buzz { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1.5px, 1px); } 75% { transform: translate(1.5px, -1px); } }
.touch { position: absolute; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, var(--c, #fff) 0 34%, transparent 36%); z-index: 1; }
.touch::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c, #fff); opacity: 0.55; animation: ring 0.9s ease-out infinite; }
@keyframes ring { from { transform: scale(0.5); opacity: 0.7; } to { transform: scale(1.5); opacity: 0; } }
.try-badge { position: absolute; top: -14px; right: -16px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; background: var(--yellow); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 12px; font-family: var(--font-display); font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 3px 0 rgba(26,18,6,0.12); transform: rotate(4deg); pointer-events: none; animation: bob 2.4s ease-in-out infinite; transition: opacity .4s; }
.demo.used .try-badge { opacity: 0; animation: none; }
.sender-wrap { position: relative; }
@keyframes bob { 50% { transform: rotate(4deg) translateY(-4px); } }
.demo-cap { font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 14px; text-align: center; }
.demo-caption { font-size: 14px; color: var(--ink-faint); margin-top: 26px; }
@media (max-width: 560px) { .demo .arrow { display: none; } .try-badge { right: -6px; } .phone { border-width: 7px; border-radius: 34px; } }

/* ---- Trust strip ---------------------------------------------------- */
.strip { background: var(--sand); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.strip ul { list-style: none; margin: 0 auto; max-width: var(--maxw); padding: 16px 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #7a6f5c; font-weight: 600; }
.strip li + li::before { content: "/"; color: #cbbfa6; margin-right: 22px; }

/* ---- Steps ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 44px; }
.step .num { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 19px; margin-bottom: 16px; }
.step h3 { font-size: 20px; }
.step p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 30px; } }

/* ---- Split (text + visual) ----------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split ul.ticks { list-style: none; padding: 0; margin: 26px 0 0; }
.split ul.ticks li { position: relative; padding-left: 30px; margin: 12px 0; color: var(--ink-soft); }
.split ul.ticks li b { color: var(--ink); }
.split ul.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 4px var(--sand); border: 1.5px solid var(--ink); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* Morse chart card */
.chart { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chart button { all: unset; cursor: pointer; border-radius: 12px; padding: 10px 6px; text-align: center; background: var(--sand); transition: background 0.15s, transform 0.1s; }
.chart button:hover { background: #ececea; }
.chart button.on { background: var(--accent); transform: scale(0.97); }
.chart b { display: block; font-size: 20px; line-height: 1.1; }
.chart span { display: block; font: 800 13px/1.3 var(--mono); letter-spacing: 0.08em; color: var(--ink-soft); }
.chart-note { grid-column: 1 / -1; font-size: 13px; color: var(--ink-faint); text-align: center; margin-top: 6px; }

/* ---- Feature grid --------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline-2); border-radius: 18px; overflow: hidden; margin-top: 40px; }
.features > div { background: #fff; padding: 26px 24px; transition: background .15s ease; }
.features > div:hover { background: #FFFDF3; }
.features h3 { font-size: 18px; }
.features .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--sand); display: grid; place-items: center; margin-bottom: 16px; }
.features .ic svg { width: 20px; height: 20px; }
.features p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---- Price card ----------------------------------------------------- */
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; max-width: 820px; margin-left: auto; margin-right: auto; }
.price { border-radius: var(--r-xl); padding: 30px; border: 1px solid var(--hairline); background: #fff; text-align: left; }
.price.dark { background: var(--night); color: #f2f2f2; border-color: #000; }
.price .tag { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); }
.price.dark .tag { color: var(--accent); }
.price .big { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 2px; }
.price ul { padding-left: 20px; margin: 16px 0 0; color: var(--ink-soft); }
.price.dark ul { color: #b5b5bb; }
.dots { display: flex; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
.dots i { width: 22px; height: 22px; border-radius: 50%; display: block; border: 2px solid rgba(255, 255, 255, 0.18); }
@media (max-width: 700px) { .price-wrap { grid-template-columns: 1fr; } }

/* ---- FAQ ------------------------------------------------------------ */
.faq { max-width: 780px; margin: 36px auto 0; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 18px; padding: 14px 36px 14px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; font-weight: 700; color: var(--ink-faint); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* ---- CTA band ------------------------------------------------------- */
.band { background: var(--sand); border-top: 1px solid var(--hairline); padding: 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.band h2 { max-width: 16em; margin: 0; }
@media (max-width: 520px) { .band .btn { width: 100%; } }
.band .morse-line { font: 700 15px/1 var(--mono); letter-spacing: 0.3em; margin-top: 12px; color: var(--ink-faint); }

/* ---- Footer --------------------------------------------------------- */
footer { background: var(--ink); color: #c9c4bb; padding: 50px 0 36px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
footer a { color: #e9e5dd; text-decoration: none; display: block; margin: 7px 0; }
footer a:hover { color: #fff; }
footer .mark { color: #fff; }
footer .mark b { background: var(--yellow); color: var(--ink); }
footer p { margin: 12px 0 0; max-width: 26em; }
footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---- Documents (legal, support) ------------------------------------ */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.1rem); }
.doc .meta { color: var(--ink-faint); font-size: 15px; margin: 12px 0 30px; }
.doc .summary { background: var(--sand); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 18px 22px; margin: 0 0 30px; color: var(--ink-soft); }
.doc .summary b { color: var(--ink); }
.doc h2 { font-size: 23px; margin: 42px 0 10px; letter-spacing: -0.015em; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; }
.doc p, .doc li { color: #33333a; }
.doc li { margin: 6px 0; }
.doc a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.doc th { background: var(--sand); font-weight: 800; }
.doc .toc { columns: 2; column-gap: 30px; font-size: 15px; padding-left: 20px; }
@media (max-width: 600px) { .doc .toc { columns: 1; } .doc table { display: block; overflow-x: auto; } }
.card-list { display: grid; gap: 14px; margin: 26px 0; }
.card-list a { display: block; text-decoration: none; border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 18px 20px; }
.card-list a:hover { border-color: var(--ink); }
.card-list b { display: block; }
.card-list span { color: var(--ink-soft); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .swoosh path { stroke-dashoffset: 0; }
}
