:root {
  --bg: #0c0c0c;
  --card: #161616;
  --card-2: #1c1c1c;
  --gold: #f2c43a;
  --ink: #111111;
  --text: #f4f4f1;
  --muted: #a3a39e;
  --line: #2c2c2c;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: clip;
  /* Each edge is its own inset. On a foldable the left and right safe areas are not equal. */
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 14px 0;
  min-width: 0;
}
.logo { width: clamp(104px, 18vw, 168px); height: auto; }
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  margin-left: auto;
  max-width: 100%;
  min-width: 0;
}
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.line { border-color: #3a3a3a; color: var(--text); background: transparent; }
.btn.wide { width: 100%; margin-top: 16px; letter-spacing: 0.04em; font-size: 13px; }

.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 800;
}
h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.lede { max-width: 520px; margin: 16px 0 0; color: #d5d5d0; font-size: 17px; }
.sub { margin: 12px 0 0; color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0 16px;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stores { display: flex; gap: 10px; margin-top: 18px; }
.store {
  min-width: 132px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.phone {
  justify-self: start;
  width: min(240px, 100%);
  aspect-ratio: 9 / 18;
  border: 1px solid #333;
  border-radius: 28px;
  background:
    linear-gradient(#222, #222) center 12px / 72px 8px no-repeat,
    #141414;
  display: grid;
  place-items: end center;
  padding: 18px;
  color: #6d6d68;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.section { padding: 56px 0 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; margin-top: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 20px;
}
.card h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0.08em; }
.card p, .card li { margin: 0; color: var(--muted); font-size: 14px; }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; }
.card li { padding-left: 18px; position: relative; }
.card li + li { margin-top: 8px; }
.card li:before, .ticks li:before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.ticks { margin: 16px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 18px; color: var(--muted); }
.ticks li + li { margin-top: 8px; }
.card.gold { border-color: var(--gold); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(168px, 100%), 1fr)); gap: 12px; margin-top: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-height: 180px; }
.step b { display: block; color: var(--gold); font-size: 13px; margin-bottom: 10px; }
.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.coach {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding-top: 28px;
}
.banner {
  margin-top: 64px;
  background: var(--gold);
  color: var(--ink);
}
.banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0;
}
.banner h2 { font-size: clamp(28px, 4vw, 40px); }
.banner .btn { background: var(--ink); color: var(--text); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 32px;
  color: #7d7d78;
  font-size: 13px;
}
.foot nav { display: flex; gap: 18px; }
.foot a { color: #b5b5b0; text-decoration: none; }
.foot a:hover { color: var(--text); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-top: 28px; }
.price { margin: 8px 0 4px; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; }
.price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.fine { margin-top: 8px; color: var(--muted); font-size: 14px; }
.rule { height: 1px; background: var(--line); margin: 14px 0; }

.four { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-top: 22px; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; margin-top: 22px; }
.contact h3 { letter-spacing: 0; font-size: 16px; }
.mark { color: var(--gold); font-weight: 800; margin-bottom: 8px; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary:before { content: "▸ "; color: var(--gold); }
details[open] summary:before { content: "▾ "; }
details p { margin: 10px 0 4px; color: var(--muted); }
.group { margin-top: 28px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; }

.prose { max-width: 760px; }
.prose h2 { font-size: 18px; letter-spacing: 0; margin: 28px 0 8px; }
.prose p, .prose li { color: #c8c8c3; }
.prose ul { margin: 8px 0 0; padding-left: 18px; }
.draft {
  margin-top: 18px;
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.code {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 14px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Open phone upright is about 670px wide, so the two-column hero starts there. */
@media (min-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 48px)); }
  .hero { grid-template-columns: 1.2fr 0.8fr; gap: 40px; }
  .coach { grid-template-columns: 0.7fr 1.1fr; gap: 36px; }
  .phone { justify-self: end; }
}

/*
  Short windows. The closed phone on its side is only about 370px tall,
  and the open phone sideways is wide but still under 620px tall.
*/
@media (max-height: 640px) {
  .phone { width: min(150px, 42vw); }
  .hero { padding-top: 12px; }
  .section { padding: 32px 0 4px; }
  .banner { margin-top: 32px; }
}

@media (max-height: 430px) {
  .phone { display: none; }
  .top { padding: 8px 0; }
  .hero { padding: 8px 0 4px; gap: 12px; }
  .section { padding: 20px 0 4px; }
  .step { min-height: 0; }
  .banner { margin-top: 20px; }
  .banner .wrap { padding: 16px 0; }
  .foot { padding: 14px 0 18px; }
  h1 { font-size: clamp(32px, 7vw, 48px); }
}

/* Closed phone upright, and a split window beside another app. Both are under 420px wide. */
@media (max-width: 420px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .nav { justify-content: flex-start; gap: 8px 12px; }
  .nav a { font-size: 13px; }
  .btn { min-height: 44px; }
  h1 { font-size: clamp(34px, 11vw, 48px); }
  .lede { font-size: 16px; }
  .step { min-height: 0; }
  .price { font-size: 32px; }
  .foot nav { flex-wrap: wrap; gap: 8px 14px; }
  .stores { flex-wrap: wrap; }
}
