/* CoachStamp — promo site styles. No external JS, no tracking. */

:root {
  --blue: #2563EB;
  --blue-strong: #1D4ED8;
  --blue-soft: #E8EFFD;
  --blue-tint: #F0F5FF;
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #5B6576;
  --line: #E2E8F0;
  --ok: #157347;
  --radius: 20px;
  --radius-sm: 14px;
  --gutter: 16px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-strong); }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--text);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(246, 248, 251, .9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .7);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.header-nav a:hover { background: var(--blue-soft); color: var(--blue-strong); }
.header-nav .nav-section { display: none; }
.header-nav .lang-link {
  border: 1px solid var(--line);
  background: var(--surface);
}

@media (min-width: 720px) {
  .header-nav .nav-section { display: inline-flex; }
}

/* ---------- Phone frame (CSS only) ---------- */

.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 780 / 1688;
  padding: 9px;
  background: #0F172A;
  border-radius: 46px;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, .06),
    0 30px 60px -24px rgba(15, 23, 42, .45),
    0 12px 24px -12px rgba(37, 99, 235, .25);
}
.phone::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 30%;
  height: 7.5%;
  max-height: 24px;
  transform: translateX(-50%);
  background: #0F172A;
  border-radius: 999px;
  z-index: 1;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 37px;
  background: #fff;
}

.phone--sm { max-width: 240px; border-radius: 38px; padding: 7px; }
.phone--sm::before { top: 15px; height: 6.5%; max-height: 19px; }
.phone--sm img { border-radius: 31px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 40px 0 56px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .01em;
}

.hero-app {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 18px;
}
.hero-app img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .55);
}
.hero-app span {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 4.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-lead {
  margin-top: 18px;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: .95rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -10% -6%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .18), rgba(37, 99, 235, 0));
  z-index: 0;
}
.hero-visual .phone { z-index: 1; max-width: 290px; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero .container { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-visual .phone { max-width: 330px; }
}

/* ---------- Buttons / pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-strong); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: #c9d3e1; color: var(--text); }

.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
}
.soon-pill svg { width: 20px; height: 20px; }
.soon-pill small {
  display: block;
  font-weight: 500;
  font-size: .75rem;
  line-height: 1.2;
  opacity: .85;
}
.soon-pill span { display: block; line-height: 1.25; }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section--white { background: var(--surface); }

@media (min-width: 900px) {
  .section { padding: 96px 0; }
}

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px 0;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.step h3 { font-size: 1.25rem; font-weight: 800; }
.step p { color: var(--muted); }

.step-shot {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  height: 330px;
  overflow: hidden;
}
.step-shot .phone {
  max-width: 230px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  align-self: flex-start;
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step { padding: 28px 28px 0; }
  .step-shot { height: 360px; }
  .step-shot .phone { max-width: 250px; }
}

/* ---------- Feature grid ---------- */

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .split { grid-template-columns: 1.2fr .8fr; gap: 64px; }
  .split--reverse { grid-template-columns: .8fr 1.2fr; }
  .split--trainer { grid-template-columns: 1.1fr .9fr; }
  .split--reverse .split-media { order: -1; }
}

.features {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.feature {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.feature h3 {
  margin-top: 14px;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.feature p {
  margin-top: 6px;
  color: var(--muted);
  font-size: .975rem;
  line-height: 1.55;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}
.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-pair {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
}
.media-pair .phone { max-width: none; min-width: 0; padding: 6px; border-radius: 32px; }
.media-pair .phone::before { top: 13px; height: 5.5%; max-height: 18px; }
.media-pair .phone img { border-radius: 27px; }
.media-pair .phone:last-child { margin-top: 48px; }

.media-single {
  display: flex;
  justify-content: center;
}

/* ---------- Checklist (students) ---------- */

.checklist {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
}
.checklist .icon { flex: none; width: 40px; height: 40px; border-radius: 11px; }
.checklist .icon svg { width: 20px; height: 20px; }
.checklist strong { display: block; font-weight: 700; line-height: 1.35; }
.checklist span.desc { display: block; color: var(--muted); font-size: .95rem; margin-top: 2px; }
.checklist .text { padding-top: 2px; }

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .pricing { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.price-card--accent { border: 2px solid var(--blue); }
.price-card h3 { font-size: 1.125rem; font-weight: 800; }
.price-card .price {
  color: var(--text);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.price-card p { color: var(--muted); }
.price-card .tag {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-weight: 700;
  font-size: .9rem;
}

/* ---------- CTA band ---------- */

.cta {
  padding: 0 0 56px;
}
.cta-box {
  display: grid;
  gap: 24px;
  justify-items: center;
  padding: 44px 24px;
  border-radius: 28px;
  background: var(--blue);
  color: #fff;
  text-align: center;
}
.cta-box img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
}
.cta-box h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.cta-box p { max-width: 36em; color: #fff; font-size: 1.0625rem; }
.cta-box .soon-pill { background: #fff; color: var(--text); }
.cta-box :focus-visible { outline-color: #fff; }

@media (min-width: 900px) {
  .cta { padding: 0 0 88px; }
  .cta-box { padding: 64px 48px; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-footer .made-by a { padding: 0 2px; color: var(--blue); }
.site-footer .footer-links li:first-child a { padding-left: 0; }

/* ---------- Link landing pages (/j, /open, 404) ---------- */

.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.landing main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px var(--gutter) 40px;
}
@media (min-height: 760px) {
  .landing main { align-items: center; }
}

.card {
  width: 100%;
  max-width: 480px;
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}
.card .app-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 17px;
}
.card h1 {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.card .en {
  margin-top: 8px;
  color: var(--muted);
  font-size: .95rem;
}
.card .btn { width: 100%; margin-top: 24px; }
.card .stack { display: grid; gap: 12px; margin-top: 24px; }
.card .stack .btn { margin-top: 0; }

.code-box {
  margin-top: 24px;
  padding: 20px 16px;
  border-radius: 18px;
  background: var(--blue-tint);
  border: 1px dashed #A9C1F5;
}
.code-label {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.code-value {
  margin-top: 6px;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.15;
}
.code-help {
  margin-top: 10px;
  color: var(--muted);
  font-size: .95rem;
}
.copy-btn {
  margin-top: 14px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.copy-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.copy-btn:hover { border-color: #c9d3e1; }

.soon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-weight: 700;
}

.card .small {
  margin-top: 20px;
  color: var(--muted);
  font-size: .9rem;
}
.card .small a {
  display: inline-block;
  padding: 12px 2px;
  margin: -12px 0;
  font-weight: 600;
}

.landing .site-footer { padding: 20px 0 28px; }

[hidden] { display: none !important; }
