/* Split Drive website. One stylesheet for every page. */
:root {
  --bg: #0a1713;
  --bg-2: #0f221c;
  --card: #12281f;
  --card-line: rgba(255, 255, 255, 0.09);
  --text: #f2f7f4;
  --muted: #a9bdb4;
  --mint: #5fd8a4;
  --mint-ink: #05261a;
  --amber: #f5b64a;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(95, 216, 164, 0.12), transparent 60%), var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #8ae9c0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--mint-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
header.site { padding: 18px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand span { color: var(--mint); }
nav.main { display: flex; gap: 6px; }
nav.main a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
h1 { font-size: clamp(44px, 8vw, 84px); line-height: 0.98; letter-spacing: -0.04em; margin: 0 0 22px; font-weight: 800; }
h1 em { font-style: normal; color: var(--mint); }
.lede { font-size: clamp(19px, 2.4vw, 23px); color: var(--muted); max-width: 30ch; margin: 0 0 28px; line-height: 1.45; }
.badges { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; color: var(--muted); font-size: 15px; }
.badges li { list-style: none; display: flex; align-items: center; gap: 8px; }
.badges ul { display: contents; }
.badges svg { width: 18px; height: 18px; stroke: var(--mint); fill: none; stroke-width: 2; flex: none; }

.store { display: inline-flex; align-items: center; gap: 12px; background: #f2f7f4; color: #0a1713; padding: 11px 20px; border-radius: 14px; text-decoration: none; font-weight: 700; line-height: 1.15; }
.store small { display: block; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; opacity: 0.7; }
.store b { font-size: 21px; }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store[aria-disabled="true"] { cursor: default; }
.note { color: var(--muted); font-size: 14px; margin-left: 12px; }

/* Phone illustration */
.phone { width: min(300px, 78vw); aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 44px; background: #07110e; border: 8px solid #1b3329; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.phone .screen { position: absolute; inset: 0; background: linear-gradient(160deg, #123327, #0b1f18); }
.phone .notch { position: absolute; top: 10px; left: 50%; width: 34%; height: 22px; transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 3; }
.phone .road { position: absolute; background: rgba(255, 255, 255, 0.07); height: 14px; width: 150%; left: -25%; }
.phone .r1 { top: 34%; transform: rotate(-24deg); }
.phone .r2 { top: 52%; transform: rotate(34deg); }
.phone .r3 { top: 24%; transform: rotate(60deg); width: 110%; }
.pin { position: absolute; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4); }
.pin::after { content: ""; position: absolute; inset: 8px; background: #0a1713; border-radius: 50%; }
.p1 { top: 28%; left: 38%; background: var(--mint); }
.p2 { top: 38%; left: 66%; background: #5aa9ff; }
.p3 { top: 55%; left: 48%; background: var(--amber); }
.chip { position: absolute; background: rgba(10, 23, 19, 0.88); border: 1px solid var(--card-line); border-radius: 12px; padding: 8px 12px; font-size: 12px; font-weight: 600; z-index: 2; }
.chip.top { top: 56px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; }
.avatars { display: flex; }
.avatars .a1 { background: #5fd8a4; }
.avatars .a2 { background: #5aa9ff; }
.avatars .a3 { background: #f5b64a; }
.avatars i { width: 18px; height: 18px; border-radius: 50%; margin-left: -4px; border: 2px solid #0a1713; }
.sheet { position: absolute; left: 12px; right: 12px; bottom: 14px; background: rgba(10, 23, 19, 0.94); border: 1px solid var(--card-line); border-radius: 18px; padding: 14px; z-index: 2; }
.sheet b { display: block; font-size: 15px; }
.sheet span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); margin-top: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 72%; background: var(--mint); border-radius: 99px; }

/* Sections */
section.block { padding: 72px 0; }
section.block.alt { background: var(--bg-2); border-block: 1px solid var(--card-line); }
.eyebrow { color: var(--mint); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 18ch; }
h2.wide { max-width: 26ch; }
h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.sub { color: var(--muted); max-width: 52ch; margin: 0 0 36px; font-size: 19px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .num { color: var(--mint); font-weight: 800; font-size: 15px; letter-spacing: 0.08em; margin-bottom: 12px; display: block; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--amber); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }

.promise { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.promise li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; }
.promise svg { width: 24px; height: 24px; flex: none; stroke: var(--mint); fill: none; stroke-width: 2.4; margin-top: 3px; }

.cta { text-align: center; padding: 88px 0; }
.cta h2 { margin-inline: auto; max-width: 20ch; }
.cta p { color: var(--muted); font-size: 19px; margin: 0 0 28px; }

/* Text pages */
main.doc { padding: 28px 0 80px; }
main.doc h1 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 8px; }
main.doc .meta { color: var(--muted); margin: 0 0 36px; }
main.doc h2 { font-size: 26px; max-width: none; margin: 44px 0 12px; letter-spacing: -0.02em; }
main.doc p, main.doc li { color: #d3e0da; }
main.doc ul { padding-left: 22px; }
main.doc li { margin: 6px 0; }
.narrow { max-width: 760px; }
details { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
details[open] summary { color: var(--mint); }
details p { margin: 0 0 16px; }
.callout { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 22px 24px; margin: 26px 0; }
.btn { display: inline-block; background: var(--mint); color: var(--mint-ink); padding: 13px 22px; border-radius: 14px; font-weight: 800; text-decoration: none; border: 0; font-size: 17px; cursor: pointer; font-family: inherit; }
.btn:hover { background: #8ae9c0; color: var(--mint-ink); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--card-line); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

/* Join page */
.join { text-align: center; padding: 48px 0 80px; }
.join .card { max-width: 520px; margin: 28px auto 0; text-align: left; }
.join ol { margin: 8px 0 0; padding-left: 22px; color: var(--muted); }
.join ol li { margin: 8px 0; }
.join .icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 20px; background: linear-gradient(145deg, var(--mint), #2d9c72); display: grid; place-items: center; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.join .icon svg { width: 40px; height: 40px; stroke: var(--mint-ink); fill: none; stroke-width: 2.4; }
.join h1 { font-size: clamp(32px, 6vw, 46px); margin-bottom: 12px; }
.join .lede { margin-inline: auto; max-width: 34ch; }
.hidden { display: none !important; }

footer.site { border-top: 1px solid var(--card-line); padding: 36px 0 56px; color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; gap: 20px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 16px; }
  .grid { grid-template-columns: 1fr; }
  nav.main a { padding: 8px 10px; }
  section.block { padding: 56px 0; }
}

.mt { margin-top: 14px; }
.mt0 { margin: 14px 0 0; }
.actions.center { justify-content: center; }

/* Real app screenshots */
.phone.shot { aspect-ratio: 1320 / 2868; border-radius: 46px; border-width: 6px; background: #000; }
.phone.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shots figure, figure.ipad { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 30px; border: 1px solid var(--card-line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
figure figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; text-align: center; }
figure.ipad { margin-top: 40px; }
figure.ipad img { display: block; width: min(640px, 100%); height: auto; margin: 0 auto; border-radius: 26px; border: 1px solid var(--card-line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
@media (max-width: 760px) {
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots figure { scroll-snap-align: center; }
}
