/* awaymode website. Design system.
 *
 * Matches the iOS app's awaymode canvas: void background, blue accent,
 * cream text, Plus Jakarta Sans throughout. Lowercase brand register.
 *
 * Single stylesheet, no build step. Plus Jakarta Sans pulled from
 * Google Fonts with the full weight axis for the wordmark + body.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
  /* Background void + subtle near-black surfaces */
  --void:      #05070D;
  --surface-1: #0A0E18;
  --surface-2: #121826;
  --surface-3: #1B2333;

  /* Text */
  --cream:     #F8FAFC;
  --subtext:   #C7CDDB;
  --grey:      #8B93A6;
  --dim:       #5A6275;

  /* Accent */
  --blue:      #7DD3FC;
  --blue-2:    #38BDF8;
  --green:     #86EFAC;
  --danger:    #FB7185;

  /* Lines + surface fills */
  --line:      rgba(125, 211, 252, 0.10);
  --line-2:    rgba(125, 211, 252, 0.22);
  --surface:   rgba(248, 250, 252, 0.04);
  --surface-strong: rgba(248, 250, 252, 0.07);

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
  --nav-h: 64px;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --f-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(ellipse 80% 50% at 80% -10%, rgba(125,211,252,.06), transparent 65%),
    radial-gradient(ellipse 60% 40% at 0% 20%, rgba(125,211,252,.03), transparent 55%),
    var(--void);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--cream); }

/* ─── Wordmark ─────────────────────────────────────────────── */

.wordmark {
  font-family: var(--f-sans);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--cream);
}
.wordmark .slash {
  font-weight: 300;
  color: var(--blue);
}

/* ─── Nav ──────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--cream);
}
.nav__brand .slash { font-weight: 300; color: var(--blue); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--subtext);
}
.nav__links a { color: var(--subtext); }
.nav__links a[aria-current="page"] { color: var(--cream); }
.nav__cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--void) !important;
  font-weight: 600;
  font-size: 13px;
}
.nav__cta:hover { background: var(--blue-2); color: var(--void); }
@media (max-width: 720px) {
  .nav__links { gap: 14px; font-size: 13px; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ─── Hero ─────────────────────────────────────────────────── */

.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 8vw, 80px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--grey);
  font-weight: 600;
  margin: 0 0 16px;
}
.hero h1 {
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  color: var(--cream);
}
.hero h1 .blue { color: var(--blue); font-weight: 300; }
.hero__sub {
  font-size: 18px;
  color: var(--subtext);
  margin: 0 0 12px;
  font-weight: 500;
}
.hero__body {
  color: var(--grey);
  font-size: 15.5px;
  max-width: 540px;
  margin: 0 0 28px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--dim);
}
.hero__meta strong { color: var(--subtext); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  background: var(--blue);
  color: var(--void);
  border: 1px solid transparent;
}
.btn:hover { background: var(--blue-2); color: var(--void); }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(2px); }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--surface); color: var(--cream); }

/* ─── Device mockup (CSS only) ───────────────────────────── */

.device {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 19;
  margin: 0 auto;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: 44px;
  padding: 18px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.device__inner {
  height: 100%;
  background: var(--void);
  border-radius: 30px;
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.device__brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.device__brand .wordmark { font-size: 20px; }
.device__brand .tag {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--grey);
}
.device__mode {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.device__time {
  font-size: clamp(80px, 17vw, 128px);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--cream);
  line-height: 0.95;
}
.device__time .sec {
  font-size: 0.45em;
  font-weight: 300;
  color: var(--dim);
  margin-left: -4px;
}
.device__descriptor {
  font-size: 13px;
  color: var(--grey);
}
.device__pills {
  display: flex;
  gap: 6px;
}
.device__pill {
  flex: 1;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--grey);
  font-weight: 500;
}
.device__pill--active {
  border-color: rgba(125,211,252,0.3);
  background: rgba(125,211,252,0.07);
  color: var(--blue);
  font-weight: 700;
}
.device__cta {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--void);
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}

/* ─── Stat band ────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 26px 18px;
  background: var(--void);
  text-align: center;
}
.stat__big {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cream);
}
.stat__big .blue { color: var(--blue); font-weight: 300; }
.stat__cap {
  margin-top: 4px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--grey);
  text-transform: uppercase;
  font-weight: 600;
}

/* ─── Section + steps ─────────────────────────────────────── */

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section__head { max-width: 720px; margin: 0 0 40px; }
.section__head h2 {
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--cream);
  margin: 0 0 14px;
}
.section__head h2 .blue { color: var(--blue); font-weight: 300; }
.section__head p { color: var(--grey); font-size: 16px; max-width: 540px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step__num {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--blue);
  font-weight: 700;
}
.step h3 {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
  color: var(--cream);
}
.step p { color: var(--grey); font-size: 14.5px; margin: 0; }

/* ─── Modes ────────────────────────────────────────────────── */

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }
.mode {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.mode__name {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}
.mode__time {
  margin-top: 18px;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--cream);
  line-height: 1;
}
.mode__desc {
  margin-top: 14px;
  color: var(--grey);
  font-size: 14px;
}
.mode--free {
  border-color: var(--line-2);
}

/* ─── Pricing ──────────────────────────────────────────────── */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  padding: 32px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.plan--best {
  border-color: var(--blue);
  background: rgba(125,211,252,0.04);
  position: relative;
}
.plan__badge {
  position: absolute;
  top: -10px;
  right: 18px;
  background: var(--blue);
  color: var(--void);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.1em;
}
.plan__name {
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
}
.plan__price {
  margin-top: 18px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cream);
}
.plan__price .per {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  margin-left: 4px;
  letter-spacing: 0;
}
.plan__desc { color: var(--grey); font-size: 14px; margin-top: 10px; }
.plan__list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--subtext);
  font-size: 14px;
}
.plan__list li { padding: 6px 0; border-top: 1px solid var(--line); }
.plan__list li:first-child { border-top: 0; }

/* ─── Doc pages (privacy + support) ────────────────────────── */

.doc {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(40px, 6vw, 72px) 0;
  align-items: start;
}
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; }
  .doc__toc { position: static !important; }
}
.doc__toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  font-size: 13.5px;
  color: var(--grey);
}
.doc__toc h4 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}
.doc__toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.doc__toc li {
  counter-increment: toc;
  padding: 4px 0;
}
.doc__toc li::before {
  content: counter(toc, decimal-leading-zero) "  ";
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.doc__toc a { color: var(--subtext); }
.doc__toc a:hover { color: var(--cream); }
.doc__body { max-width: 720px; }
.doc__body h1 {
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--cream);
  margin: 0 0 10px;
}
.doc__body h2 {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 40px 0 12px;
}
.doc__body p { color: var(--subtext); font-size: 15.5px; margin: 12px 0; }
.doc__body ul, .doc__body ol { color: var(--subtext); font-size: 15.5px; padding-left: 22px; }
.doc__body ul li, .doc__body ol li { margin: 8px 0; }
.doc__body strong { color: var(--cream); font-weight: 600; }
.doc__body em { color: var(--cream); font-style: italic; }
.doc__meta { color: var(--grey); font-size: 13.5px; }

/* ─── FAQ collapse ─────────────────────────────────────────── */

.faq-group { margin-top: 32px; }
.faq-group h2 { margin-bottom: 4px; }
.faq-group__hint { color: var(--grey); font-size: 14px; margin: 0 0 14px; }
.q {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.q:last-of-type { border-bottom: 1px solid var(--line); }
.q summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: "+";
  color: var(--blue);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.q[open] summary::after { content: "−"; }
.q p, .q ol, .q ul { margin-top: 10px; color: var(--subtext); font-size: 14.5px; }

.callout {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--subtext);
  font-size: 14.5px;
}
.callout strong {
  display: block;
  color: var(--cream);
  font-weight: 700;
  margin-bottom: 4px;
}

/* ─── Footer ──────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 32px 0 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  color: var(--grey);
  font-size: 13.5px;
}
.foot a { color: var(--subtext); }
.foot a:hover { color: var(--cream); }
.foot__right { margin-left: auto; color: var(--dim); font-size: 12.5px; }
