/* ============================================================================
   LiftLock — industrial spec-sheet aesthetic.

   The brand mark is a cast-iron weight plate with a padlock through it, so the
   site is built like a piece of gym hardware: machined edges, stamped labels,
   knurled dividers, and load-rating typography. No neon, no gradients-for-the-
   sake-of-it, nothing that looks like a generic SaaS template.

   Light is the default theme. Dark is the brand's native register and is one
   click away.
   ========================================================================= */

:root {
  /* Light — warm paper and ink, the way a spec sheet is printed. */
  --bg:            #f2f1ee;
  --bg-raised:     #fbfaf8;
  --bg-sunken:     #e7e5e0;
  --ink:           #14140f;
  --ink-secondary: #4a4a44;
  --ink-muted:     #77776f;
  --rule:          #d6d3cc;
  --rule-strong:   #b9b5ac;
  --steel:         #5d6469;
  --steel-bright:  #8b9298;
  --stamp:         #8a6d1f;   /* brass, the "locked" accent at print contrast */
  --stamp-wash:    rgba(138, 109, 31, 0.10);
  --on-accent:     #f7f6f3;
  --accent-solid:  #14140f;
  --grain:         0.035;
  --shadow-plate:  0 1px 0 rgba(255,255,255,0.7), 0 18px 40px -24px rgba(20,20,15,0.45);
  color-scheme: light;
}

[data-theme="dark"] {
  /* Dark — the product's own palette, lifted from the app. */
  --bg:            #0b0b0c;
  --bg-raised:     #141416;
  --bg-sunken:     #08080a;
  --ink:           #f5f4f2;
  --ink-secondary: #aeaeb2;
  --ink-muted:     #74747a;
  --rule:          #26262a;
  --rule-strong:   #3a3a40;
  --steel:         #bdc4c8;
  --steel-bright:  #e2e7ea;
  --stamp:         #d9cb9c;
  --stamp-wash:    rgba(217, 203, 156, 0.12);
  --on-accent:     #0b0b0c;
  --accent-solid:  #e8e6e1;
  --grain:         0.05;
  --shadow-plate:  0 1px 0 rgba(255,255,255,0.04), 0 24px 60px -30px rgba(0,0,0,0.9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}

/* Film grain. Gives the flat colour the tooth of printed card stock. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- typography */

h1, h2, h3, h4 {
  font-family: 'Archivo', ui-sans-serif, sans-serif;
  font-variation-settings: 'wdth' 112;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.9rem, 8.2vw, 6.1rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* The stamped label: engraved-looking micro type, used to number and title
   every section the way a parts diagram would. */
.stamp {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.688rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.stamp--accent { color: var(--stamp); }

.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  color: var(--ink-secondary);
  line-height: 1.52;
  max-width: 54ch;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------- layout */

.shell { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
@media (max-width: 640px) { .shell { width: min(1180px, 100% - 1.75rem); } }

section { padding-block: clamp(4.5rem, 10vw, 8.5rem); position: relative; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-bottom: 2.6rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.section-head h2 { flex: 1 1 auto; }

/* Knurling — the diamond grip cut into the rim of a real weight plate.
   Used as a divider so the page reads as machined rather than drawn. */
.knurl {
  height: 10px;
  background-image:
    repeating-linear-gradient(66deg,  var(--rule-strong) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-66deg, var(--rule-strong) 0 1px, transparent 1px 7px);
  opacity: .85;
}

/* -------------------------------------------------------------------- header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 66px;
}
.brandmark {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  letter-spacing: .1em;
  font-size: .95rem;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: auto;
}
.brandmark img { width: 30px; height: 30px; display: block; }

.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
@media (max-width: 780px) { .nav { display: none; } }

/* ------------------------------------------------------------ theme switcher */

.theme-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-sunken);
}
.theme-switch button {
  all: unset;
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-muted);
  transition: background-color .2s, color .2s;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] {
  background: var(--bg-raised);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.14);
}
.theme-switch svg { width: 15px; height: 15px; }
.theme-switch button:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }

/* --------------------------------------------------------------------- hero */

.hero { padding-top: clamp(3.2rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

.hero h1 { margin-block: 1.1rem .1rem; }
.hero h1 em {
  font-style: normal;
  color: var(--stamp);
  /* Struck through with a hairline, the way a spec is corrected by hand. */
  background-image: linear-gradient(var(--stamp), var(--stamp));
  background-size: 100% 2px;
  background-position: 0 92%;
  background-repeat: no-repeat;
}
.hero .lede { margin-top: 1.5rem; }

.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.6rem;
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.spec-strip div { display: flex; flex-direction: column; gap: .15rem; }
.spec-strip b {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* The plate. A real one is a disc with an inner hub, so it is drawn that way
   and given a slow idle rotation that stops on hover. */
.hero-art { display: grid; place-items: center; position: relative; }
.plate {
  position: relative;
  width: min(400px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.plate::before {
  content: '';
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--stamp-wash), transparent 62%);
}
.plate img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  filter: drop-shadow(0 30px 45px rgba(0,0,0,.32));
}
/* Engraved rating ring around the plate. */
.plate-ring {
  position: absolute;
  inset: -6%;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  animation: spin 68s linear infinite;
}
.plate-ring::after {
  content: '';
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 1px dashed var(--rule);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .plate-ring { animation: none; } }

/* On a phone the mark is a crest above the headline, not a full screen of it.
   This block has to come *after* the base `.plate` rule to win the cascade. */
@media (max-width: 900px) {
  .plate { width: min(190px, 42vw); }
  .hero { padding-top: 2rem; padding-bottom: 2.5rem; }
  .hero-grid { gap: 1.6rem; }
}

/* -------------------------------------------------------------------- buttons */

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s cubic-bezier(.2,.8,.3,1), box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; }

.btn--primary {
  background: var(--accent-solid);
  color: var(--on-accent);
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.7);
}
.btn--ghost {
  border-color: var(--rule-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { background: var(--bg-raised); }

.btn-note {
  font-size: .8rem;
  color: var(--ink-muted);
  margin-top: .9rem;
}

/* --------------------------------------------------------------- ledger grid */

/* The honesty ledger: what it does on the left, what it cannot do on the right.
   This is the product's actual differentiator, so it gets the boldest layout. */
.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule-strong);
  background: var(--bg-raised);
  box-shadow: var(--shadow-plate);
}
@media (max-width: 820px) { .ledger { grid-template-columns: 1fr; } }

.ledger-col { padding: clamp(1.6rem, 3vw, 2.5rem); }
.ledger-col + .ledger-col { border-left: 1px solid var(--rule); }
@media (max-width: 820px) {
  .ledger-col + .ledger-col { border-left: 0; border-top: 1px solid var(--rule); }
}
.ledger-col h3 { margin-block: .7rem 1.2rem; }

.ledger-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.ledger-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .7rem;
  font-size: .95rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}
.ledger-list svg { width: 16px; height: 16px; margin-top: .22rem; }
.tick { color: var(--stamp); }
.cross { color: var(--ink-muted); }

/* ------------------------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.step { background: var(--bg); padding: clamp(1.4rem, 2.6vw, 2rem); }
.step b { display: block; font-family: 'IBM Plex Mono', monospace; color: var(--stamp); font-size: .8rem; letter-spacing: .12em; margin-bottom: .9rem; }
.step h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.step p { font-size: .9rem; color: var(--ink-muted); margin: 0; }

/* ------------------------------------------------------------- watch mockup */

.showcase { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } }

.watch {
  width: min(232px, 62vw);
  aspect-ratio: 40 / 49;
  margin-inline: auto;
  border-radius: 26% / 21%;
  background: linear-gradient(160deg, #3a3d41, #17181a 42%, #0a0a0b);
  padding: 13px;
  box-shadow: 0 40px 70px -34px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.14);
  position: relative;
}
/* Digital Crown. */
.watch::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 30%;
  width: 5px;
  height: 40px;
  border-radius: 3px;
  background: linear-gradient(90deg, #6a6e73, #2c2e31);
}
.watch-screen {
  height: 100%;
  border-radius: 20% / 16%;
  background: #000;
  display: grid;
  place-content: center;
  text-align: center;
  gap: .3rem;
  padding: 1rem .6rem;
}
.watch-screen .lock { font-size: 1.5rem; line-height: 1; color: #d9cb9c; }
.watch-screen .word { font-family: 'Archivo', sans-serif; font-size: .58rem; letter-spacing: .26em; color: #8e8e93; font-weight: 600; }
.watch-screen .state { font-family: 'Archivo', sans-serif; font-size: .6rem; letter-spacing: .2em; color: #d9cb9c; font-weight: 700; }
.watch-screen .time { font-family: 'IBM Plex Mono', monospace; font-size: 1.32rem; color: #fff; font-weight: 500; letter-spacing: -.02em; }
.watch-screen .hint { font-size: .5rem; color: #5a5a5f; }

/* --------------------------------------------------------------------- FAQ */

.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.3rem;
  color: var(--ink-muted);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .85rem; color: var(--ink-secondary); font-size: .95rem; max-width: 70ch; }
.faq summary:focus-visible { outline: 2px solid var(--stamp); outline-offset: 4px; }

/* ------------------------------------------------------------------- footer */

.footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--rule);
  padding: 40px 0 32px;
  margin-top: 32px;
}
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: .06em; }
.footer-brand img { width: 24px; height: 24px; }
.footer p { margin: 0; font-size: 13px; color: var(--ink-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a, .footer-links button {
  all: unset;
  cursor: pointer;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.footer-links a:hover, .footer-links button:hover { color: var(--ink); }
.footer-links a:focus-visible, .footer-links button:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------------------------------------------------------- consent banner */

.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 440px;
  padding: 1.15rem 1.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  box-shadow: 0 26px 60px -26px rgba(0,0,0,.6);
  display: none;
}
.consent[data-open="true"] { display: block; animation: rise .38s cubic-bezier(.2,.8,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .consent[data-open="true"] { animation: none; } }
.consent p { font-size: .85rem; color: var(--ink-secondary); }
.consent-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.consent .btn { padding: .6rem 1.1rem; font-size: .85rem; }

/* --------------------------------------------------------- scroll reveal */

/* Progressive enhancement: content is visible by default and only starts hidden
   when JavaScript is running to bring it back. Hiding it unconditionally would
   leave the whole page blank for anyone with a blocked script, a failed
   IntersectionObserver, or a crawler that does not execute JS. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.2,.8,.3,1), transform .7s cubic-bezier(.2,.8,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.in { transition: none; }
}

/* Staggered hero entrance. */
.js .hero .stagger > * { opacity: 0; animation: fadeUp .8s cubic-bezier(.2,.8,.3,1) forwards; }
.hero .stagger > *:nth-child(1) { animation-delay: .05s; }
.hero .stagger > *:nth-child(2) { animation-delay: .14s; }
.hero .stagger > *:nth-child(3) { animation-delay: .23s; }
.hero .stagger > *:nth-child(4) { animation-delay: .32s; }
.hero .stagger > *:nth-child(5) { animation-delay: .41s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero .stagger > * { opacity: 1; animation: none; }
}

/* --------------------------------------------------------------- prose page */

.prose { max-width: 68ch; padding-block: clamp(3rem, 7vw, 5rem); }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .6rem; }
.prose h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-top: 2.6rem; margin-bottom: .7rem; }
.prose h3 { font-size: 1.08rem; margin-top: 1.8rem; margin-bottom: .5rem; }
.prose p, .prose li { color: var(--ink-secondary); font-size: 1rem; }
.prose ul { padding-left: 1.15rem; display: grid; gap: .5rem; margin: 0 0 1.1em; }
.prose a { color: var(--stamp); }
.prose .updated { font-family: 'IBM Plex Mono', monospace; font-size: .78rem; color: var(--ink-muted); letter-spacing: .06em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: .6rem .7rem; border: 1px solid var(--rule); vertical-align: top; }
.prose th { background: var(--bg-sunken); font-weight: 600; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-solid);
  color: var(--on-accent);
  padding: .7rem 1.1rem;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }
