/* Twinlane website. Palette and type follow the app (docs/twinlane/PRODUCT.md §9).
   No web fonts: SF Pro / SF Pro Rounded on Apple devices, system fonts elsewhere. */

:root {
  --canvas: #F4F6F8;
  --surface: #FFFFFF;
  --surface2: #E9EDF1;
  --line: rgba(15, 23, 42, .09);
  --line-strong: rgba(15, 23, 42, .18);
  --ink: #0F172A;
  --ink2: #475467;
  --ink3: #8A94A6;
  --lane: #1E5EFF;
  --on-lane: #FFFFFF;
  --lane-wash: rgba(30, 94, 255, .10);
  --open: #15803D;
  --sluggish: #B45309;
  --shut: #B91C1C;
  --away: #7E22CE;
  --bezel: #0B0F16;
  --bezel-ring: #2A3140;
  --shadow: 0 40px 70px -40px rgba(15, 23, 42, .45);

  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 11vw, 136px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0A0D12;
    --surface: #131821;
    --surface2: #1B222E;
    --line: rgba(229, 234, 240, .10);
    --line-strong: rgba(229, 234, 240, .22);
    --ink: #EEF2F6;
    --ink2: #A2ACBB;
    --ink3: #677385;
    --lane: #7B9BFF;
    --on-lane: #0A0D12;
    --lane-wash: rgba(123, 155, 255, .18);
    --open: #4ADE80;
    --sluggish: #FBBF24;
    --shut: #F87171;
    --away: #C084FC;
    --bezel: #05070A;
    --bezel-ring: #2E3644;
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  }
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--round);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--lane); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

img { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 10px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* The mark ------------------------------------------------------------- */

.mark, .mode-mark, .nf-mark { fill: none; stroke-linecap: round; stroke-width: 10; }
.mk-d { stroke: var(--ink); }
.mk-s { stroke: var(--lane); }
.mode-mark .dim { stroke: var(--line-strong); stroke-dasharray: 0 16; }

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font: 650 21px/1 var(--round);
  letter-spacing: -.01em;
}
.brand .mark { width: 30px; height: 30px; }

.top nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.top nav a { color: var(--ink2); text-decoration: none; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav .lang {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 13px;
}
.top nav .lang:hover { border-color: var(--ink); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: min(760px, calc(100vh - 80px));
  padding-block: clamp(32px, 6vw, 72px) clamp(48px, 7vw, 96px);
}

.hero h1 {
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.035em;
  max-width: 9.2em;
}

.lead {
  margin-top: 28px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink2);
  max-width: 31em;
}

.cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.store {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 17px/1 var(--round);
  text-decoration: none;
  background: var(--ink);
  color: var(--canvas);
}
/* Not a link yet: a dashed outline, like a lane that is still to come. */
.store.soon {
  background: transparent;
  color: var(--ink2);
  border: 1.5px dashed var(--line-strong);
  cursor: default;
}
.platforms { color: var(--ink2); font-size: 15px; }

.hero-art { display: flex; justify-content: center; }

.lanes { width: 100%; max-width: 520px; height: auto; overflow: visible; }
.ln-d, .ln-s { fill: none; stroke-width: 18; stroke-linecap: round; }
.ln-d { stroke: var(--ink); }
.ln-s {
  stroke: var(--lane);
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: draw 1.5s .3s cubic-bezier(.55, 0, .2, 1) forwards;
}
.origin { fill: var(--canvas); stroke: var(--ink); stroke-width: 6; }
.p-d { fill: var(--canvas); }
.p-s { fill: var(--on-lane); }
.pulses { opacity: 0; animation: appear .8s 1.6s forwards; }
.lbl .l1 { font: 650 21px var(--round); fill: var(--ink); }
.lbl-s .l1 { fill: var(--lane); }
.l2 { font: 15px var(--text); fill: var(--ink2); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ln-s { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .pulses { display: none; }
  details summary::after { transition: none; }
}

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

main > section, .features { padding-block: var(--section); }
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(48px, 7vw, 96px); }

main h2 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.025em;
}

/* How it works: a real sequence, so it is numbered. */
.how { border-top: 1px solid var(--line); }
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font: 300 64px/1 var(--round);
  color: var(--lane);
  margin-bottom: 20px;
}
.steps h3 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.steps p { margin-top: 10px; color: var(--ink2); }

/* Features ------------------------------------------------------------ */

.features { border-top: 1px solid var(--line); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(48px, 7vw, 88px);
}
.feature + .feature { border-top: 1px solid var(--line); }
.features > h2 + .feature { padding-top: clamp(40px, 5vw, 64px); }
.feature.flip .f-text { order: 2; }

.f-text h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.f-text p { margin-top: 16px; font-size: 18px; color: var(--ink2); max-width: 30em; }

.f-media { display: flex; flex-direction: column; align-items: center; gap: 28px; }

.phone {
  margin: 0;
  width: min(300px, 74vw);
  padding: 9px;
  border-radius: 52px;
  background: var(--bezel);
  box-shadow: 0 0 0 1.5px var(--bezel-ring), var(--shadow);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 43px; }

.tv { margin: 0; width: 100%; max-width: 540px; }
.tv img {
  display: block;
  width: 100%;
  height: auto;
  border: 10px solid var(--bezel);
  border-radius: 16px;
  box-shadow: 0 0 0 1.5px var(--bezel-ring), var(--shadow);
}
.tv::after {
  content: "";
  display: block;
  width: 26%;
  height: 6px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: var(--line-strong);
}

/* Mac: shown automatically once Mac screenshots exist. */
.mac { margin: 0; width: 100%; max-width: 560px; }
.mac-screen {
  padding: 10px 10px 14px;
  background: var(--bezel);
  border-radius: 18px 18px 6px 6px;
  box-shadow: 0 0 0 1.5px var(--bezel-ring), var(--shadow);
}
.mac-screen img { display: block; width: 100%; height: auto; border-radius: 6px; }
.mac::after {
  content: "";
  display: block;
  height: 12px;
  margin: 0 -6%;
  border-radius: 0 0 12px 12px;
  background: var(--surface2);
  box-shadow: inset 0 1px 0 var(--line-strong);
}

/* Modes: the mark itself shows which lane is in use. */
.feature.modes-block { grid-template-columns: 1fr; gap: 36px; }
.modes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mode {
  padding: 22px 20px 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.mode-smart { border-color: var(--lane); box-shadow: inset 0 0 0 1px var(--lane); }
.mode-mark { width: 64px; height: 64px; display: block; margin: -4px 0 14px -8px; }
.mode h4 { font-size: 20px; font-weight: 650; }
.mode p { margin-top: 6px; font-size: 15.5px; color: var(--ink2); }

/* Bring your own provider ---------------------------------------------- */

.byo { background: var(--surface); border-block: 1px solid var(--line); }
.byo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.byo .big {
  margin-top: 28px;
  font: 600 clamp(24px, 2.6vw, 32px)/1.25 var(--round);
  letter-spacing: -.015em;
  max-width: 20em;
}
.byo-text p:not(.big) { margin-top: 20px; font-size: 18px; color: var(--ink2); max-width: 30em; }

/* Privacy -------------------------------------------------------------- */

.privacy .lead { margin-top: 20px; }
.who { width: 100%; margin-top: 48px; border-collapse: collapse; }
.who caption {
  text-align: left;
  font: 650 19px var(--round);
  padding-bottom: 14px;
}
.who tr { border-top: 1px solid var(--line); }
.who tr:last-child { border-bottom: 1px solid var(--line); }
.who th, .who td { padding: 22px 0; vertical-align: top; text-align: left; }
.who th { width: 32%; padding-right: 32px; font: 650 18px/1.35 var(--round); }
.who td { color: var(--ink2); }
.more { display: inline-block; margin-top: 28px; font-weight: 600; }

/* Questions ------------------------------------------------------------ */

.questions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
}
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  font: 600 19px/1.35 var(--round);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font: 400 26px/1 var(--round);
  color: var(--lane);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink2); max-width: 40em; }
.faq.compact summary { font-size: 17px; padding: 16px 0; }

/* Documents ------------------------------------------------------------ */

.doc { max-width: 800px; padding-block: clamp(32px, 6vw, 72px) var(--section); }
.doc h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -.025em; }
.doc .meta { margin-top: 14px; color: var(--ink2); }
.doc h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; margin-top: 52px; }
.doc p, .doc ul, .doc ol { margin-top: 16px; }
.doc p, .doc li { line-height: 1.65; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--ink3); }
.doc strong, .doc b { color: var(--ink); font-weight: 600; }
.doc article > p:not(.meta), .doc section > p, .doc li { color: var(--ink2); }
.doc code {
  font: .88em var(--mono);
  background: var(--surface2);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}

.contact {
  margin-top: 36px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.doc .contact h2 { margin-top: 0; }
.doc .contact .reply { margin-top: 8px; color: var(--ink); font-size: 18px; }
.contact dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 28px;
  margin: 22px 0 0;
}
.contact dt { color: var(--ink2); }
.contact dd { margin: 0; }

/* 404 ----------------------------------------------------------------- */

.nf {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: 14vh 18vh;
}
.nf-mark { width: 120px; height: 120px; }
.nf h1, .nf h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.nf p { margin-top: 12px; color: var(--ink2); }
.nf .more { margin-top: 16px; }

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

.foot { background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-block: 56px 40px;
}
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand .mark { width: 40px; height: 40px; flex: none; }
.foot-brand p { color: var(--ink2); line-height: 1.45; }
.foot-brand b { color: var(--ink); font: 650 18px var(--round); }
.foot h2 { font: 600 15px var(--round); margin-bottom: 12px; }
.foot address { font-style: normal; color: var(--ink2); line-height: 1.6; }
.foot ul { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 20px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink2);
}
.foot-legal p:last-child { max-width: 46em; }

/* Narrow screens ------------------------------------------------------ */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { order: 2; }
  .lanes { max-width: 380px; }
  .feature, .byo-grid { grid-template-columns: 1fr; }
  .feature.flip .f-text { order: 0; }
  .modes { grid-template-columns: 1fr; }
  .feature.modes-block { gap: 24px; }
  .mode { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; padding: 16px 18px; }
  .mode-mark { grid-row: span 2; width: 56px; height: 56px; margin: 0; }
  .mode p { margin-top: 2px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; }
  .steps li::before { grid-row: span 2; font-size: 48px; margin: 0; }
  .questions { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .nf { grid-template-columns: 1fr; }
  .nf-mark { width: 80px; height: 80px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .lanes { max-width: 340px; }
  .l2 { font-size: 17px; }
  .top nav .nav-how { display: none; }
  .top nav .nav-privacy { display: none; }
  .who th, .who td { display: block; width: auto; padding: 0; }
  .who th { padding-top: 18px; }
  .who td { padding: 6px 0 18px; }
  .foot-grid { grid-template-columns: 1fr; }
  .contact dl { grid-template-columns: 1fr; gap: 2px; }
  .contact dd + dt { margin-top: 10px; }
}
