/* Swish — swishphotos.app
   Coded to DESIGN.md "The Light Table": white surface, azure accent, the dark
   odometer instrument as the one signature object, photos as prints / screens
   in device frames. No gradients-as-decor, no glows, no serifs (all banned).
   Numerals and labels in the mono "instrument voice". */

:root {
  --canvas: #ffffff;
  --well: #f2f4f7;
  --ink: #10151c;
  --ink-2: #5a6572;
  --hair: rgba(16, 21, 28, .08);
  --azure: #4c8dff;
  --azure-ink: #2e6be6;
  --cut: #f0544f;
  --inst: #141920;
  --inst-well: #0c1015;
  --inst-txt: #f2f6fb;
  --shadow: rgba(30, 60, 120, .16);
  --shadow-soft: rgba(30, 60, 120, .10);
  --ui: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ui);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.tag {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink-2);
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: -.4px; }
.brand .glyph {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--azure); position: relative;
  box-shadow: 0 4px 12px rgba(76, 141, 255, .35);
}
.brand .glyph::after {
  content: ""; position: absolute; inset: 6px 6px 7px 8px;
  background: #fff; border-radius: 2px; transform: rotate(-8deg);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--azure); color: #fff; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(76, 141, 255, .34);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(76, 141, 255, .42); }
.btn svg { width: 17px; height: 17px; fill: #fff; }
.btn small { font-weight: 500; opacity: .75; font-size: 11px; font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; }

.cta-note { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--ink-2); text-transform: uppercase; }

/* ---- device frame (a phone screen, on the light surface) ---- */
.device {
  width: min(290px, 84%);
  background: linear-gradient(158deg, #40444c 0%, #202329 42%, #14161a 78%, #33373f 100%);
  padding: 10px; border-radius: 46px; flex: none;
  box-shadow: 0 46px 92px var(--shadow), 0 16px 34px var(--shadow-soft);
}
.device .screen { border-radius: 36px; overflow: hidden; background: #fff; line-height: 0; }
.device .screen img { width: 100%; }

/* ---- the signature: the dark odometer instrument ---- */
.odometer {
  --cell: 44px;
  display: inline-block;
  background: var(--inst); border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 20px; padding: 20px 22px 16px;
  box-shadow: 0 26px 56px rgba(8, 22, 60, .30);
}
.odometer .digits { display: flex; align-items: center; gap: 7px; justify-content: center; }
.odometer .cell {
  width: var(--cell); height: calc(var(--cell) * 1.42); border-radius: 9px;
  background: var(--inst-well); border: 1px solid rgba(255, 255, 255, .06);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: calc(var(--cell) * .98); font-weight: 600;
  color: var(--inst-txt);
}
.odometer .dot { color: var(--inst-txt); font-family: var(--mono); font-size: calc(var(--cell) * .9); font-weight: 600; align-self: flex-end; padding-bottom: 8px; }
.odometer .unit { color: var(--inst-txt); font-family: var(--mono); font-size: calc(var(--cell) * .58); font-weight: 600; margin-left: 10px; }
.odometer .cap {
  text-align: center; margin-top: 15px; font-family: var(--mono);
  font-size: 11px; letter-spacing: 3.5px; color: var(--azure); font-weight: 600;
}

/* ---- hero ---- */
.hero { padding: 76px 0 92px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(42px, 6vw, 66px); line-height: 1.03;
  letter-spacing: -2.4px; font-weight: 800; margin: 20px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--azure-ink); }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 32ch; }
.hero .cta-row { display: flex; align-items: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.hero .stage { display: flex; justify-content: center; }
.hero .device { transform: rotate(-1.4deg); }

/* ---- odometer signature band ---- */
.odoband { border-block: 1px solid var(--hair); background: var(--well); padding: 96px 0; text-align: center; }
.odoband .odometer { --cell: 82px; }
.odoband h2 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -1.6px; font-weight: 800; margin-top: 40px; }
.odoband p { color: var(--ink-2); font-size: 18px; margin: 14px auto 0; max-width: 46ch; }

/* ---- truths ---- */
.truths { padding: 92px 0; }
.truths .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 34px; }
.truth { background: #fff; border: 1px solid var(--hair); border-radius: 22px; padding: 30px; }
.truth .n { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--azure-ink); text-transform: uppercase; }
.truth h3 { font-size: 21px; font-weight: 700; letter-spacing: -.4px; margin: 14px 0 8px; }
.truth p { color: var(--ink-2); font-size: 15.5px; }
.section-head { max-width: 32ch; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -1.2px; font-weight: 800; margin-top: 12px; }

/* ---- device strip ---- */
.strip { background: var(--well); border-top: 1px solid var(--hair); padding: 92px 0 100px; }
.strip .section-head { margin: 0 auto; text-align: center; }
.strip .rail { display: flex; gap: 30px; justify-content: center; align-items: flex-end; margin-top: 52px; flex-wrap: wrap; }
.strip .device { width: min(240px, 72vw); }
.strip .device:nth-child(1) { transform: rotate(-2.2deg); }
.strip .device:nth-child(2) { transform: translateY(-14px); }
.strip .device:nth-child(3) { transform: rotate(2.2deg); }

/* ---- closer ---- */
.closer { text-align: center; padding: 100px 0 40px; }
.closer h2 { font-size: clamp(30px, 5vw, 52px); letter-spacing: -1.6px; font-weight: 800; line-height: 1.05; }
.closer .cta-row { display: flex; justify-content: center; gap: 16px; margin-top: 32px; align-items: center; flex-wrap: wrap; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--hair); margin-top: 40px; padding: 40px 0 56px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .brand { font-size: 16px; }
footer .meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); display: flex; gap: 18px; flex-wrap: wrap; letter-spacing: .3px; }
footer .meta a:hover { color: var(--ink); }

/* ---- legal document pages ---- */
.doc { padding: 64px 0 20px; }
.doc .wrap { max-width: 760px; }
.doc .tag { display: block; margin-bottom: 12px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); letter-spacing: -1.4px; font-weight: 800; }
.doc .updated { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); margin-top: 12px; letter-spacing: .5px; }
.doc h2 { font-size: 21px; font-weight: 700; letter-spacing: -.4px; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--hair); }
.doc h2:first-of-type { border-top: 0; padding-top: 8px; }
.doc p, .doc li { color: #29313c; font-size: 16.5px; line-height: 1.62; margin-bottom: 14px; }
.doc ul { padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--azure-ink); text-decoration: underline; text-underline-offset: 2px; }
.doc strong { color: var(--ink); }
.doc .callout { background: var(--well); border: 1px solid var(--hair); border-radius: 16px; padding: 20px 22px; margin: 6px 0 22px; }
.doc .callout p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .stage { order: -1; }
  .truths .grid { grid-template-columns: 1fr; }
  .nav-links .l-hide { display: none; }
  .odoband .odometer { --cell: 58px; }
  .strip .device:nth-child(2) { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 4px; }
