/* Hinge Count: one dark look, on purpose. The Hinge Cam family: warm black body, cream engraving,
   the shutter-button orange, lens blue. */
:root {
  color-scheme: dark;
  --ground: #171412;
  --surface: #221e1b;
  --well: #0d0b0a;
  --hairline: #3a332e;
  --track: #4a413a;
  --text: #f4ecdc;
  --soft: #b9ae9c;
  --accent: #f0743a;
  --on-accent: #171412;
  --open: #9dbcf0;
  --good: #7fd18b;
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --body: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}
* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font-family: var(--body); font-size: 18px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--open); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: 0.01em; line-height: 1; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.bar nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 16px; }
.bar nav a { color: var(--soft); text-decoration: none; }
.bar nav a:hover { color: var(--text); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.95; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(64px, 11vw, 148px); letter-spacing: -0.005em; }
h2 { font-size: clamp(44px, 6.4vw, 84px); }
h3 { font-size: 30px; line-height: 1.05; }
p { margin: 0; }
.lede { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.45; color: var(--soft); max-width: 34ch; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(20px, 5vw, 64px) clamp(48px, 8vw, 104px); }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.soon { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 18px; }
.cta-note { color: var(--soft); font-size: 16px; }

/* the demo */
.rig { background: var(--surface); border: 1px solid var(--hairline); border-radius: 28px; padding: clamp(16px, 3vw, 28px); display: grid; gap: 14px; min-width: 0; }
.rig-top { display: flex; align-items: center; gap: clamp(12px, 3vw, 24px); }
.window { flex: none; background: var(--well); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: inset 0 6px 16px rgba(0, 0, 0, 0.85); padding: 4px 18px 10px; display: flex; overflow: hidden; height: clamp(92px, 17vw, 150px); }
.digit { width: 0.5em; height: 1em; font-family: var(--display); font-weight: 800; font-size: clamp(86px, 16vw, 140px); line-height: 1; overflow: hidden; }
.digit span { display: block; transition: transform 0.55s cubic-bezier(0.2, 1.3, 0.4, 1); }
.digit b { display: block; height: 1em; font-weight: 800; text-align: center; }
.window.bump { animation: bump 0.5s ease-out; }
@keyframes bump { 0% { box-shadow: inset 0 6px 16px rgba(0,0,0,.85), 0 0 0 2px var(--accent); } 100% { box-shadow: inset 0 6px 16px rgba(0,0,0,.85), 0 0 0 2px transparent; } }
.rig-say { display: grid; gap: 4px; min-width: 0; }
.rig-say strong { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 34px); line-height: 1; }
.rig-say span { color: var(--soft); font-size: 16px; }
.hinge { width: 100%; height: auto; touch-action: none; cursor: grab; display: block; }
.hinge:active { cursor: grabbing; }
.hinge .leaf { transition: transform 0.08s linear; }
.rig-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rig-foot input[type="range"] { flex: 1 1 180px; accent-color: var(--accent); height: 44px; min-width: 0; }
.rig-foot button { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid #7a3f22; background: #3a2014; color: var(--text); font: 600 16px var(--body); cursor: pointer; }
.rig-foot button:hover { background: #4a2a1a; }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tally div { background: var(--ground); border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.tally dt { color: var(--soft); font-size: 14px; }
.tally dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.1; }
.tally .o dd { color: var(--open); }
dl { margin: 0; }

/* sections */
.band { border-top: 1px solid var(--hairline); padding-block: clamp(56px, 9vw, 120px); }
.band > .wrap { display: grid; gap: clamp(28px, 4vw, 48px); }
.band p.intro { color: var(--soft); max-width: 52ch; font-size: clamp(18px, 1.9vw, 21px); }

/* screens: three phones, the middle one raised */
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 28px); align-items: start; }
.screens figure { margin: 0; display: grid; gap: 14px; }
.screens figure:nth-child(odd) { margin-top: clamp(24px, 5vw, 56px); }
.screens img { border-radius: clamp(14px, 2.6vw, 28px); border: 1px solid var(--hairline); width: 100%; height: auto; }
.screens figcaption { color: var(--soft); font-size: 16px; max-width: 30ch; }
.screens figcaption b { display: block; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; }

/* setup: a real sequence, so it is numbered */
.setup { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--hairline); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.steps li::before { content: counter(s); grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 0.9; color: var(--accent); }
.steps b { font-weight: 700; }
.steps span { color: var(--soft); font-size: 16px; }
.proof { background: var(--surface); border: 1px solid #2e4a33; border-radius: 16px; padding: 18px 20px; display: grid; gap: 6px; }
.proof b { color: var(--good); }

/* free and paid */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.plan { border: 1px solid var(--hairline); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; align-content: start; background: var(--surface); }
.plan.full { border-color: #7a3f22; background: #2a1a12; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 7vw, 88px); line-height: 0.9; }
.plan .price small { font-family: var(--body); font-weight: 400; font-size: 17px; color: var(--soft); margin-left: 8px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plan .fine { color: var(--soft); font-size: 16px; }

.plain { color: var(--soft); max-width: 62ch; font-size: 17px; }

footer.site { border-top: 1px solid var(--hairline); padding-block: 32px 48px; color: var(--soft); font-size: 16px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site a { color: var(--soft); }
footer.site a:hover { color: var(--text); }

/* document pages: privacy and support */
.doc { max-width: 720px; padding-block: clamp(24px, 5vw, 56px) clamp(56px, 8vw, 96px); display: grid; gap: 18px; }
.doc h1 { font-size: clamp(56px, 9vw, 104px); }
.doc h2 { font-size: clamp(32px, 4.4vw, 44px); margin-top: 22px; line-height: 1; }
.doc p, .doc li { color: #ddd3c1; max-width: 64ch; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.doc .date { color: var(--soft); font-size: 16px; }
.doc .short { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 18px 20px; color: var(--text); font-size: 20px; line-height: 1.45; }
.doc details { border-bottom: 1px solid var(--hairline); padding: 14px 0; }
.doc details:first-of-type { border-top: 1px solid var(--hairline); }
.doc summary { cursor: pointer; font-weight: 700; font-size: 19px; min-height: 30px; }
.doc details p { margin-top: 10px; }
.doc code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; background: var(--surface); border: 1px solid var(--hairline); border-radius: 6px; padding: 1px 6px; }

@media (max-width: 860px) {
  .hero, .setup { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .lede { max-width: 40ch; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .screens { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
  .screens figure:nth-child(odd) { margin-top: 0; }
  .bar nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .digit span, .hinge .leaf { transition: none; }
  .window.bump { animation: none; }
}
