/* Smoozy's website. One stylesheet for every page.
   The values are the app's own, copied from Website/Mockup/Website.html,
   which copied them from the Design mockup's token block. Light and dark
   follow the operating system. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { max-width: 100%; }

:root {
  --bg: #fdfdfc; --rail: #f2f2f0; --sel: #e4e5e2; --sunk: #f7f7f5;
  --line: #e4e4e0; --ink: #1c1d1a; --ink2: #5f615c; --ink3: #656761;
  --accent: #35618c; --accent-fill: #6d9fd8; --accent-solid: #35618c; --on-fill: #fff;
  --alert: #b3453a; --alert-bg: #f7e9e7;
  --b3: #5a9e12; --b5: #0f9fc4; --b7: #9535d6;

  --face-ui:   system-ui, -apple-system, "Segoe UI", sans-serif;
  --face-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-xs: 3px; --r-sm: 5px; --r-md: 6px; --r-lg: 7px; --r-xl: 10px;

  --wide: 1060px;
  --gutter: 28px;
  --top: 0px;          /* how far below the window's top the bar sits */

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1d1c; --rail: #171817; --sel: #2a2c2a; --sunk: #212220;
    --line: #2e302d; --ink: #e5e5e1; --ink2: #9b9d97; --ink3: #9d9f96;
    --accent: #82a9cd; --accent-fill: #5f96d4; --accent-solid: #4477a8; --on-fill: #fff;
    --alert: #d3796c; --alert-bg: #35211f;
    color-scheme: dark;
  }
}

body {
  font-family: var(--face-ui);
  color: var(--ink); background: var(--bg);
  font-size: 16.5px; line-height: 1.55;
}
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { margin: 0; font-weight: 620; letter-spacing: -.015em; line-height: 1.15; }
h1 { font-size: 46px; }
h2 { font-size: 29px; }
h3 { font-size: 19px; }
p  { margin: 0; }
a  { color: var(--accent); }
.lede  { font-size: 19px; color: var(--ink2); line-height: 1.5; }
.sub   { color: var(--ink2); }
.small { font-size: 13.5px; color: var(--ink3); }
.eyebrow { font-size: 12px; font-weight: 620; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin-bottom: 12px; }

/* A button leaves the site: it fetches a file. Everything else is a link. */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-family: inherit; font-size: 16.5px; font-weight: 600;
  padding: 14px 26px; border-radius: var(--r-md);
  background: var(--accent-solid); border: 1px solid var(--accent-solid); color: var(--on-fill);
}
.btn:hover { filter: brightness(1.07); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Placeholders: a solid block with a label saying what goes there. */
.ph { position: relative; border-radius: var(--r-lg); background: var(--sel); overflow: hidden; }
.ph::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  font: 500 11px/1.3 var(--face-mono); color: var(--ink3);
}
.ph.w { background: color-mix(in srgb, #c08707 16%, var(--sel)); }
.ph.tall { aspect-ratio: 3/4; }
.ph.video { background: #24272b; aspect-ratio: 16/9; border-radius: var(--r-xl); }
.ph.video::before {
  content: "▶"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 40px; color: rgba(255,255,255,.32);
}
.ph.video::after { color: rgba(255,255,255,.55); }

/* Screenshots: the app's own screens, saved at twice the size they are shown,
   each in the light theme and a -dark twin that the page shows when the system
   is dark. The phone and the window carry their own frames. */
picture { display: block; }
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); box-shadow: 0 6px 24px rgba(0,0,0,.07); }
.shot.phone { width: auto; max-width: 340px; margin: 0 auto; border: 0; border-radius: 0; background: none; box-shadow: none; }
.shot.window { border: 0; border-radius: 0; background: none; box-shadow: none; }

/* ── The top bar ── */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: var(--top); z-index: 40; }
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.mark {
  font-weight: 700; font-size: 18.5px; letter-spacing: -.025em;
  margin-right: auto; display: flex; align-items: center; gap: 7px;
  color: var(--ink); text-decoration: none;
}
.logo { display: block; flex: none; }
.mark .logo { width: 30px; height: 30px; }
.hero-mark { width: 88px; height: 88px; margin: 0 auto 20px; }
.topbar nav { display: flex; gap: 22px; font-size: 15px; }
.topbar nav a { color: var(--ink2); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); }
.topbar nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ── One line of fine print, no footer ── */
.fineprint { border-top: 1px solid var(--line); background: var(--sunk); padding: 20px 0; font-size: 13px; color: var(--ink3); }
.fineprint .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.fineprint a { color: var(--ink3); text-decoration: none; }
.fineprint a:hover { color: var(--ink); }
.fineprint .sep { color: var(--line); }

section { padding: 78px 0; }
section.tight { padding: 52px 0; }
section.sunk { background: var(--sunk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ── Home ── */
.hero { padding: 80px 0 44px; text-align: center; }
.hero h1 { max-width: 17ch; margin: 0 auto 20px; text-wrap: balance; }
.hero .lede { max-width: 50ch; margin: 0 auto 30px; text-wrap: balance; }
.hero .undercta { margin-top: 16px; font-size: 14.5px; color: var(--ink3); }
.hero .undercta a { color: var(--ink2); }
.videowrap .ph { max-width: 900px; margin: 0 auto; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { border-top: 1px solid var(--line); padding-top: 16px; counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--rail); border: 1px solid var(--line);
  font-size: 13px; font-weight: 620; color: var(--ink2); margin-bottom: 12px;
}
.steps b { display: block; font-size: 16.5px; font-weight: 620; margin-bottom: 5px; }
.steps span { display: block; font-size: 15px; color: var(--ink2); line-height: 1.5; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.feature + .feature { margin-top: 70px; }
.feature.flip .words { order: 2; }
.feature.wide { grid-template-columns: minmax(0, 1fr); gap: 30px; }
.feature.wide .words { max-width: 60ch; }
.feature h3 { font-size: 25px; margin-bottom: 13px; }
.feature p { color: var(--ink2); }
.feature p + p { margin-top: 12px; }
.credit { margin-top: 56px; font-size: 13.5px; color: var(--ink3); }
.credit a { color: var(--ink2); }
.feature .tag {
  display: inline-block; font-size: 11px; font-weight: 620;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink3);
  border: 1px solid var(--line); border-radius: var(--r-xs);
  padding: 2px 7px; margin-bottom: 13px;
}

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg); padding: 28px 28px 26px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--ink2); }
.card p + p { margin-top: 10px; }

/* ── Page heads ── */
.pagehead { padding: 56px 0 34px; }
.pagehead h1 { font-size: 40px; margin-bottom: 12px; }
.pagehead .lede { max-width: 56ch; }

/* ── Help ── */
.helpgrid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 54px; align-items: start; padding-bottom: 80px; }
.helpnav { position: sticky; top: calc(var(--top) + 84px); font-size: 15px; }
.helpnav ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.helpnav li { counter-increment: n; }
.helpnav a { display: flex; gap: 10px; color: var(--ink2); text-decoration: none; padding: 6px 0; }
.helpnav a:hover { color: var(--ink); }
.helpnav a::before { content: counter(n); width: 18px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.helpnav .last a::before { content: "?"; }
.helpnav hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

.newhere { border: 1px solid var(--line); background: var(--sunk); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 44px; font-size: 15px; color: var(--ink2); }
.newhere b { color: var(--ink); font-weight: 600; }

.hsec { padding: 0 0 46px; scroll-margin-top: calc(var(--top) + 84px); }
.hsec h2 { font-size: 24px; margin-bottom: 14px; }
details { border-top: 1px solid var(--line); scroll-margin-top: calc(var(--top) + 84px); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 13px 30px 13px 0; position: relative; font-weight: 560; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 11px; color: var(--ink3); font-size: 19px; font-weight: 400; }
details[open] summary::after { content: "–"; }
details .a { padding: 0 0 18px; color: var(--ink2); max-width: 62ch; }
details .a p + p, details .a ul + p, details .a p + ul { margin-top: 10px; }
details .a ul { margin: 0; padding-left: 20px; }
details .a li { margin: 3px 0; }
details .a b { color: var(--ink); font-weight: 600; }
details .a .shot { margin-top: 14px; }
.says { font-family: var(--face-mono); font-size: 13.5px; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 1px 5px; color: var(--ink); }

/* The first answer: the driver, before anything is paid. */
.first { border-left: 2px solid var(--accent-fill); padding: 2px 0 2px 14px; }

.stuck { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px 28px; background: var(--sunk); scroll-margin-top: calc(var(--top) + 84px); }
.stuck h2 { font-size: 24px; margin-bottom: 10px; }
.stuck p { color: var(--ink2); }
.stuck p + p { margin-top: 10px; }
.mailbox { display: inline-block; font-family: var(--face-mono); font-size: 15px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 12px; color: var(--ink); text-decoration: none; }

/* ── Get it ── */
.builds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.build { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; background: var(--bg); }
.build h3 { margin: 0 0 17px; font-size: 20px; }
.build .btn { display: block; width: 100%; font-size: 15.5px; padding: 10px 20px; }
.build .btn + .btn { margin-top: 10px; }

/* ── About ── */
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--r-lg); }
.aboutgrid { display: grid; grid-template-columns: 240px 1fr; gap: 46px; align-items: start; }
.prose p { margin-bottom: 17px; color: var(--ink2); }
.prose h3 { margin: 32px 0 11px; }

/* ── Legal ── */
.legalgrid { display: grid; grid-template-columns: 200px 1fr; gap: 46px; align-items: start; }
.legalnav { position: sticky; top: calc(var(--top) + 84px); }
.legalnav a { display: block; font-size: 15px; color: var(--ink2); text-decoration: none; padding: 5px 0; }
.legalnav a:hover { color: var(--accent); }
.legalbody h2 { font-size: 24px; margin-bottom: 12px; }
.legalbody section { padding: 0 0 40px; scroll-margin-top: calc(var(--top) + 84px); }
.legalbody p { color: var(--ink2); margin-bottom: 14px; font-size: 16px; }
.legalbody ul { color: var(--ink2); margin: 0 0 14px; padding-left: 20px; font-size: 16px; }
.legalbody li + li { margin-top: 6px; }
.draftnote {
  margin-bottom: 34px; padding: 12px 15px;
  background: var(--alert-bg); border-left: 2px solid var(--alert);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 15px; color: var(--ink2);
}
.draftnote b { color: var(--ink); }

@media (max-width: 900px) {
  h1 { font-size: 34px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builds { grid-template-columns: 1fr; }
  .feature, .two, .helpgrid, .aboutgrid, .legalgrid { grid-template-columns: 1fr; gap: 26px; }
  .feature.flip .words { order: 0; }
  .helpnav, .legalnav { position: static; }
}
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  section { padding: 56px 0; }
}
