/* Coax — trycoax site. Colours from the app's AppTheme. */
:root {
  --teal: #0f8a7e;
  --teal-deep: #05332f;
  --teal-soft: #d0f5f0;
  --yellow: #f3c64d;
  --yellow-soft: #ffe89a;
  --cream: #f3e4c8;
  --brown: #5a3a2e;

  --bg: #fbf9f5;
  --surface: #f4efe7;
  --surface-2: #ffffff;
  --ink: #1a1d23;
  --muted: #5a5550;
  --line: #e7ded0;
  --accent: var(--teal);
  --accent-ink: #ffffff;

  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141716;
    --surface: #1d2120;
    --surface-2: #232827;
    --ink: #f1ede6;
    --muted: #b3aca3;
    --line: #2f3533;
    --accent: #2cb3a3;
    --accent-ink: #05201d;
    --teal-soft: #11332f;
    --yellow-soft: #3d3317;
    --cream: #2a241c;
  }
}
:root[data-theme="dark"] {
  --bg: #141716;
  --surface: #1d2120;
  --surface-2: #232827;
  --ink: #f1ede6;
  --muted: #b3aca3;
  --line: #2f3533;
  --accent: #2cb3a3;
  --accent-ink: #05201d;
  --teal-soft: #11332f;
  --yellow-soft: #3d3317;
  --cream: #2a241c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* height:auto keeps the ratio when CSS sets only a width; the width and
   height attributes still reserve space while images load. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 26px;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: clamp(32px, 4.4vw, 48px); }
h3 { font-size: 24px; line-height: 1.2; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.hl { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface-2); }
.btn-ghost:hover { border-color: var(--muted); }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.soon { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-art { position: relative; justify-self: center; }
.hero-art .mascot {
  position: absolute; width: 132px; left: -64px; bottom: 40px;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.12));
}
@media (max-width: 860px) {
  .hero { padding: 32px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art .mascot { width: 104px; left: -24px; bottom: 24px; }
}

/* Phone frame around real screenshots */
.phone {
  width: min(300px, 78vw);
  border-radius: 44px; padding: 10px;
  background: #1a1d23;
  box-shadow: 0 30px 70px rgba(26, 29, 35, 0.22), 0 2px 0 rgba(255,255,255,.04) inset;
}
.phone img { border-radius: 34px; width: 100%; height: auto; }

/* The home-screen widget, on its bit of wallpaper */
.widget-shot {
  display: block; width: min(320px, 100%); height: auto; margin-top: 28px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(26, 29, 35, 0.18);
}

/* Sections */
section { padding: 80px 0; }
.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 14px 0 0; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 40px 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-art { order: -1; }
.feature-art { justify-self: center; }
.feature h3 { font-size: clamp(28px, 3.2vw, 36px); margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0 0 16px; max-width: 30em; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px;
  border-radius: 6px; background: var(--teal-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}
@media (max-width: 860px) {
  section { padding: 56px 0; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-art { order: 0; }
}

/* Band: come back */
.band { background: var(--yellow-soft); }
.band .wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.band img { width: 160px; }
.band p { font-size: 19px; color: var(--ink); opacity: .85; max-width: 36em; margin: 14px 0 0; }
@media (max-width: 700px) { .band .wrap { grid-template-columns: 1fr; } .band img { width: 120px; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
}
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Video */
.watch { padding-top: 24px; }
.watch-grid {
  display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 64px; align-items: center;
}
.watch-grid .section-head { margin-bottom: 28px; }
.video-frame {
  border-radius: 28px; overflow: hidden; background: #fbf9f5;
  box-shadow: 0 30px 70px rgba(26, 29, 35, 0.18);
  aspect-ratio: 9 / 16; width: 100%; max-width: 380px; margin: 0 auto;
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; background: #fbf9f5; }
.chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.chapters button {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left;
  font: inherit; font-size: 17px; color: inherit; cursor: pointer;
  padding: 14px 18px; border: 0; border-radius: 16px; background: var(--surface-2);
  transition: background .15s;
}
.chapters button:hover, .chapters button:focus-visible { background: var(--teal-soft); }
.chapters button span {
  flex: none; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--teal);
  min-width: 3.2em;
}
@media (max-width: 860px) {
  .watch-grid { grid-template-columns: 1fr; gap: 32px; }
  .watch-grid .section-head { text-align: center; margin-left: auto; margin-right: auto; }
  .video-frame { max-width: 340px; border-radius: 24px; }
}

/* Beta steps */
.beta { background: var(--teal-soft); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--surface-2); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.step h3 { font-size: 22px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.step .btn { margin-top: auto; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-family: var(--display); font-size: 20px;
}
.step-note { font-size: 14px !important; word-break: break-all; }
.beta-ios { margin: 28px 0 0; color: var(--ink); opacity: .85; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Closing CTA */
.closing { text-align: center; }
.closing .lede { margin: 16px auto 32px; }
.closing .cta-row { justify-content: center; }

/* Prose pages */
.prose { max-width: 720px; padding: 48px 0 80px; }
.prose h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 12px; }
.prose h2 { font-size: 28px; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--ink); }
.prose .meta { color: var(--muted); margin-bottom: 32px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.table-scroll { overflow-x: auto; }
.callout {
  background: var(--teal-soft); border-radius: 18px; padding: 18px 20px; margin: 24px 0;
}

/* Contact */
.contact-card {
  background: var(--surface); border-radius: 28px; padding: 36px;
  display: grid; gap: 18px; margin-top: 32px;
}
.contact-email {
  font-family: var(--display); font-weight: 700; font-size: clamp(22px, 4.6vw, 34px);
  color: var(--ink); text-decoration: none; word-break: break-all;
}
.contact-email:hover { color: var(--accent); }
.crisis {
  border: 1.5px solid var(--line); border-radius: 20px; padding: 20px 22px; margin-top: 32px;
}
.crisis h2 { font-size: 22px; margin: 0 0 6px; }
.crisis p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .hero-art .mascot { animation: bob 3.2s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-8px); } }
}
