/* Fonts are served from this site, not Google, so visitors' addresses aren't
   sent anywhere. Both are variable fonts (SIL Open Font License). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); }

/* Half Stop landing page. Colours are the app's own (Shared/Theme.swift).
   Layout: a split hero (pitch + sign-up beside the phone), then alternating
   plain and tinted bands, one idea each. */
:root {
  --ground: #F4F4F2;
  --band: #ECECE9;
  --panel: #FFFFFF;
  --ink: #111111;
  --secondary: #6B6B6B;
  --divider: #E4E4E0;
  --accent: #2F54EB;
  --accent-text: #2F54EB;
  --accent-soft: #EAEDF8;
  --tag: #E6E6E2;
  --connected: #1E6B3A;
  --phone: #111111;
  --phone-edge: #111111;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 8px 24px rgba(17, 17, 17, .06);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
:root[data-theme="dark"] {
  --ground: #0E0E0E; --band: #141414; --panel: #1C1C1C; --ink: #F2F2F2; --secondary: #9C9C9C;
  --divider: #2C2C2C; --accent: #3656E0; --accent-text: #93A6FF; --accent-soft: #1B2340; --tag: #262626;
  --connected: #5FD08A; --phone: #3A3A3C; --phone-edge: #5A5A5E; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
a { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.mono { font-family: var(--mono); }
.muted { color: var(--secondary); margin: 0; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 32px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 600; }
.label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text);
}
.label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--divider); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.theme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--divider); background: var(--panel); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-block: 72px 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-copy .label { margin: 0; }
.lede { margin: 0; font-size: 18px; color: var(--secondary); max-width: 34em; }

.signup { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.join { display: flex; gap: 10px; max-width: 520px; }
.join input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--divider); background: var(--panel); color: var(--ink);
  font: 400 16px var(--sans);
}
.join input::placeholder { color: var(--secondary); opacity: .75; }
.join input:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
.join button {
  height: 52px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--accent); color: #FFFFFF;
  font: 600 16px var(--sans); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}
.join button:hover { filter: brightness(1.08); }
.join button:active { transform: scale(.98); }
.join button:disabled { opacity: .6; cursor: default; }
.join button svg, .joined svg, .share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.joined { display: flex; flex-direction: column; gap: 10px; }
.joined-msg { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 52px; font-weight: 500; }
.joined-msg svg { width: 24px; height: 24px; color: var(--accent-text); flex: none; }
.form-error { margin: 0; color: #C0271D; font-size: 14px; }
:root[data-theme="dark"] .form-error { color: #FF7A6E; }
.fine { margin: 0; font-size: 14px; color: var(--secondary); }

/* Phone frame */
.hero-phone { display: flex; justify-content: center; min-width: 0; }
.phone { width: min(320px, 100%); aspect-ratio: 9 / 19.5; max-width: 100%; padding: 10px; border-radius: 48px; background: var(--phone); box-shadow: inset 0 0 0 1px var(--phone-edge), 0 30px 60px -20px rgba(17, 17, 17, .35); }

/* Sections */
.section, .band { padding-block: 88px; }
.band { background: var(--band); }
.section h2, .band h2 { margin-bottom: 40px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--panel); border-radius: 16px; padding: 16px 16px 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.step p { margin: 0; color: var(--secondary); font-size: 15px; }
.num { font: 600 12px var(--mono); color: var(--accent-text); margin-top: 14px; letter-spacing: .08em; }
.thumb { height: 220px; border-radius: 12px; background: var(--ground); display: grid; place-items: center; overflow: hidden; padding: 14px; }



.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.features article { background: var(--panel); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--divider); }
.features p { margin: 0; color: var(--secondary); font-size: 15px; }
.icon { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 8px; }
.icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.extras { margin: 28px 0 0; text-align: center; color: var(--secondary); font-size: 14px; }

.cams { list-style: none; margin: -16px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cams li { padding: 7px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--divider); font: 500 13px var(--mono); }

.creators { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.creators-copy h2 { margin: 0 0 14px; }
.creators-copy .muted { font-size: 18px; max-width: 30em; }

.faq-wrap { max-width: 760px; }
.faq { border-top: 1px solid var(--divider); }
.faq details { border-bottom: 1px solid var(--divider); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--sans); color: var(--secondary); transition: transform .2s ease; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: -6px 0 20px; color: var(--secondary); font-size: 15px; max-width: 60ch; }

.final { max-width: 640px; margin: 0 auto; background: var(--panel); border-radius: 20px; padding: 48px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.final h2 { margin: 0; }
.final .signup { width: 100%; align-items: center; margin-top: 14px; }
.final .join { width: 100%; }

.foot { padding-block: 32px 40px; border-top: 1px solid var(--divider); font-size: 14px; color: var(--secondary); }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--secondary); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.copy { display: block; margin-top: 10px; font-size: 13px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 40px 64px; }
  .steps, .features { grid-template-columns: 1fr; }
  .creators { grid-template-columns: 1fr; gap: 40px; }
  .section, .band { padding-block: 64px; }
}
@media (max-width: 520px) {
  .join { flex-direction: column; }
  .join input { flex: none; }
  .join button { justify-content: center; }
  .final { padding: 36px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* App screenshots */
.phone .shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 38px; }
.thumb-shot { display: block; width: 100%; height: 100%; object-fit: contain; }
.thumb-shot.post { width: 100%; height: auto; max-height: 100%; object-fit: cover; object-position: top; border-radius: 10px; box-shadow: var(--shadow); }

/* Header button */
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-cta { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; }
.top-cta:hover { filter: brightness(1.08); }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Spam trap: off screen for people, there for bots */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Why I made it */
.note { max-width: 760px; }
.note blockquote { margin: 0; }
.note blockquote p { margin: 0; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; letter-spacing: -.01em; font-weight: 500; text-wrap: pretty; }
.sign { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; color: var(--secondary); font-size: 15px; }
.sign img { border-radius: 7px; }

/* Creators card. Fixed proportions and no stretching: Safari can stretch images in a grid. */
.story-shot { display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 600 / 1067; object-fit: cover; justify-self: center; align-self: center; border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(17, 17, 17, .3); }

/* Text pages: support, privacy, not found */
.doc { max-width: 720px; padding-block: 56px 88px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 46px); margin-bottom: 18px; }
.doc h1 span { color: var(--secondary); }
.doc h2 { font-size: 22px; letter-spacing: -.01em; margin: 44px 0 10px; }
.doc h3 { font-size: 17px; margin: 26px 0 6px; }
.doc p, .doc li { margin: 0 0 14px; max-width: 65ch; }
.doc .muted { margin: 0 0 8px; }
.doc .card { background: var(--panel); border: 1px solid var(--divider); border-radius: 16px; padding: 18px 22px; margin: 22px 0; }
.doc .card p:last-child { margin-bottom: 0; }
.doc em { font-style: normal; font-family: var(--mono); font-size: 14px; background: var(--tag); padding: 1px 6px; border-radius: 6px; }
.doc .legal { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--divider); font-size: 14px; color: var(--secondary); }
.lede-doc { font-size: 18px; color: var(--secondary); }
.links { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.links a { font-weight: 500; }
.doc .faq { margin-top: 12px; }
.doc .faq details p { margin: -6px 0 20px; }

/* Share after signing up */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 15px; color: var(--secondary); }
.share { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--divider); background: var(--panel); color: var(--ink); font: 600 14px var(--sans); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.share:hover { border-color: var(--accent-text); }
.share svg { width: 16px; height: 16px; }
.final .joined { align-items: center; }
.final .share-row { justify-content: center; }
