/* Coach Stack landing */
:root {
  --bg: #ffffff;
  --tint: #fff6f0;
  --ink: #141414;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --line: #ece7e2;
  --brand: #ff5a36;
  --brand2: #ffb21e;
  --grad: linear-gradient(135deg, #ff5a36 0%, #ff8a2a 55%, #ffb21e 100%);
  --display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(860px, 100% - 40px); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--display); color: var(--ink); white-space: nowrap; }
.logo { width: 34px; height: 34px; flex: none; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.bar nav a:hover { color: var(--ink); }
.top-r { display: flex; align-items: center; gap: 12px; }
.lang { text-decoration: none; font: 600 13px/1 var(--body); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: 999px; background: var(--grad); color: #fff; font: 600 16px/1.1 var(--body); text-decoration: none; box-shadow: 0 10px 24px rgba(255, 90, 54, .28); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255, 90, 54, .34); }
.btn.sm { padding: 10px 16px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid #d9d2cb; box-shadow: none; }
.btn.light { background: #fff; color: var(--ink); box-shadow: none; }
.btn.outline { background: transparent; border: 1px solid rgba(255,255,255,.6); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* hero */
.hero { background: radial-gradient(1200px 520px at 85% -10%, #ffe2d3 0%, rgba(255,226,211,0) 60%), radial-gradient(800px 420px at -10% 110%, #fff0d6 0%, rgba(255,240,214,0) 60%), var(--bg); padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid #ffd9c7; color: #c2410c; font-weight: 600; font-size: 14px; }
.hero h1 { font-size: clamp(32px, 3.9vw, 52px); line-height: 1.06; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #3d3d3d; margin: 22px 0 0; max-width: 40em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.badges li { font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.proof { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.proof a { color: var(--ink); font-weight: 600; }

/* screenshot frames */
.phone { margin: 0; border-radius: 38px; padding: 9px; background: #111; box-shadow: 0 30px 60px rgba(20, 20, 20, .22), inset 0 0 0 1px #333; }
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 780 / 1688; object-fit: cover; object-position: top; background: #f4f4f4; }
.desk { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #e3ddd7; box-shadow: 0 30px 60px rgba(20, 20, 20, .16); }
.desk img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.desk-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f6f3f0; border-bottom: 1px solid #ebe5df; }
.desk-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e4ddd6; }
.desk-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.combo { position: relative; padding: 0 0 60px; }
.combo .desk { width: 88%; }
.combo-phone { position: absolute; right: 0; bottom: 0; width: 34%; max-width: 240px; }
.hero .combo-phone { width: 32%; }

/* sections */
.sec { padding: 96px 0; }
.sec.tint { background: var(--tint); }
.sec-head { max-width: 760px; margin: 0 0 44px; }
.sec-head h2, .case-grid h2, .final h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }
.sec-head p { margin: 16px 0 0; color: #4a4a4a; font-size: 18px; }

.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pain { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: #fff; }
.pain-q { margin: 0; font-weight: 600; color: var(--ink); font-size: 17px; line-height: 1.4; }
.pain-q span { display: block; font: 700 13px/1 var(--display); color: var(--brand); margin: 0 0 12px; }
.pain-a { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed #eadfd7; color: #4a4a4a; font-size: 15.5px; }
.pain-a::before { content: "→ "; color: var(--brand); font-weight: 700; }

.gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.get { background: #fff; border-radius: var(--r); padding: 28px; border: 1px solid #f3e4d9; }
.get b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font: 700 17px/1 var(--display); }
.get h3 { font-size: 21px; margin: 18px 0 8px; }
.get p { margin: 0; color: #4a4a4a; font-size: 16px; }

.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 8px; }
.feature.rev .feature-text { order: 2; }
.kicker { margin: 0 0 10px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.feature h3 { font: 700 clamp(22px, 2.4vw, 30px)/1.2 var(--display); letter-spacing: -.01em; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.checks li { position: relative; padding: 9px 0 9px 34px; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); -webkit-mask: radial-gradient(circle, #000 70%, transparent 71%); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 17px; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.phones { display: grid; gap: 18px; justify-content: center; }
.phones.n1 { grid-template-columns: minmax(0, 300px); }
.phones.n2 { grid-template-columns: repeat(2, minmax(0, 270px)); }
.phones.n2 .phone:nth-child(2) { margin-top: 48px; }
.phones.n3 { grid-template-columns: repeat(3, minmax(0, 230px)); }
.phones.n3 .phone:nth-child(2) { margin-top: 40px; }
.desks { display: grid; gap: 22px; }

.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid #f0dfd2; background: #fff; }
.cmp { width: 100%; border-collapse: collapse; min-width: 620px; }
.cmp th, .cmp td { padding: 18px 22px; text-align: left; border-top: 1px solid var(--line); font-size: 16px; vertical-align: top; }
.cmp tr:first-child th { border-top: 0; font: 700 15px/1.2 var(--display); color: var(--ink); background: #fffaf6; }
.cmp th[scope=row] { font-weight: 600; color: var(--ink); width: 34%; }
.cmp td.yes { color: var(--ink); font-weight: 600; background: #fff8f3; }
.cmp td.yes::before { content: "✓ "; color: var(--brand); }
.cmp td:last-child { color: var(--muted); }

.case-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.case-grid .lead { margin-top: 16px; }
.case-grid .btn { margin-top: 26px; }

.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.how li { background: #fff; border-radius: var(--r); padding: 26px; border: 1px solid #f3e4d9; }
.how b { display: block; font: 700 34px/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.how h3 { margin: 14px 0 8px; font-size: 19px; }
.how p { margin: 0; color: #4a4a4a; font-size: 15.5px; }

.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 18px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 26px/1 var(--body); color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: #444; }

.final { background: var(--grad); color: #fff; padding: 88px 0; text-align: center; }
.final h2 { color: #fff; }
.final p { font-size: 19px; margin: 16px auto 0; max-width: 36em; opacity: .95; }
.final .actions { justify-content: center; }

.foot { padding: 36px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-in { display: grid; gap: 10px; }
.foot p { margin: 0; }
.foot .links a { color: var(--ink); }

a:focus-visible, summary:focus-visible { outline: 3px solid #ffb21e; outline-offset: 3px; border-radius: 6px; }

@media (max-width: 1080px) {
  .bar nav { display: none; }
  .top-r { margin-left: auto; }
  .hero-grid, .feature, .case-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.rev .feature-text { order: 0; }
  .pains, .gets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .bar { gap: 10px; }
  .brand span { font-size: 15px; }
  .btn.sm { padding: 9px 12px; font-size: 13px; }
  .hero { padding: 40px 0 48px; }
  .sec { padding: 64px 0; }
  .pains, .gets, .how { grid-template-columns: 1fr; }
  .feature { padding: 40px 0; }
  .phones.n2, .phones.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones.n3 .phone:nth-child(3) { display: none; }
  .phones .phone:nth-child(2) { margin-top: 28px; }
  .phone { border-radius: 26px; padding: 6px; }
  .phone img { border-radius: 21px; }
  .combo { padding-bottom: 40px; }
  .combo .desk { width: 92%; }
  .combo-phone, .hero .combo-phone { width: 38%; }
  .actions .btn { width: 100%; }
}
@media (max-width: 420px) { .top .btn.sm { display: none; } }
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; min-width: 0; width: auto; }
  .cmp tr:first-child { display: none; }
  .cmp tr { background: #fff; border: 1px solid #f0dfd2; border-radius: 18px; padding: 16px 18px; margin: 0 0 12px; }
  .cmp th, .cmp td { border: 0; padding: 4px 0; }
  .cmp th[scope=row] { width: auto; font-size: 17px; padding-bottom: 8px; }
  .cmp td::before { display: block; content: attr(data-label); font: 600 12px/1.4 var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .cmp td.yes { background: transparent; }
  .cmp td.yes::before { content: attr(data-label); color: var(--brand); }
}
/* phones keep their own height (no black chin when a neighbour is shifted down) */
.phones { align-items: start; }
.phone { align-self: start; height: auto; }
.phone img { height: auto; }
/* phone screens: lighter frames and air from the screen edges */
@media (max-width: 640px) {
  .feature-vis, .hero-vis, .case-grid .combo { padding: 0 14px; }
  .phones { width: 100%; max-width: 330px; margin: 0 auto; gap: 14px; }
  .phones.n2, .phones.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone { border-radius: 22px; padding: 4px; box-shadow: 0 16px 34px rgba(20, 20, 20, .18), inset 0 0 0 1px #333; }
  .phone img { border-radius: 18px; }
  .combo { padding-bottom: 32px; }
  .combo .desk { width: 84%; border-radius: 10px; }
  .desk-bar { height: 20px; padding: 0 8px; gap: 4px; }
  .desk-bar i { width: 7px; height: 7px; }
  .combo-phone, .hero .combo-phone { width: 34%; right: 14px; }
}
/* screen corners must not cut the app's corner elements (bottom tab labels) */
.phone { border-radius: 26px; padding: 7px; }
.phone img { border-radius: 12px; }
@media (max-width: 640px) {
  .phone { border-radius: 18px; padding: 4px; }
  .phone img { border-radius: 9px; }
}
@media (max-width: 640px) {
  .phone img { border-radius: 6px; }
  .combo-phone .phone { border-radius: 12px; padding: 3px; }
  .combo-phone .phone img { border-radius: 4px; }
}
