/* ==========================================================================
   Design system
   Palette is derived from the product itself: warm paper, ink, crimson
   accent, deep forest green for completed work, painter's-tape blue as the
   category motif.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/inter-latin-variable.woff2") format("woff2");
}

:root {
  /* --- Ink ------------------------------------------------------------- */
  --ink:        #14110f;
  --ink-2:      #3a3430;
  --muted:      #5c544c;
  --muted-2:    #6b6259;

  /* --- Paper ----------------------------------------------------------- */
  --paper:      #f3f0ea;
  --paper-2:    #eae5db;
  --paper-3:    #e0d9cc;
  --card:       #ffffff;
  --line:       #ddd6c9;
  --line-soft:  #e8e2d7;

  /* --- Accents --------------------------------------------------------- */
  --crimson:      #c83e49;
  --crimson-deep: #a72f3a;
  --crimson-soft: #fae9eb;
  --crimson-tint: rgba(200, 62, 73, .10);

  --forest:       #17372c;
  --forest-2:     #1f4a3a;
  --forest-soft:  #e4efe8;

  --tape:         #2f6fd0;
  --tape-soft:    #e6eefb;

  --amber:        #b4770f;
  --amber-soft:   #fbf0da;

  /* --- Type ------------------------------------------------------------ */
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Fraunces, "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --fs-micro:  .75rem;
  --fs-sm:     .875rem;
  --fs-base:   1rem;
  --fs-md:     1.0625rem;
  --fs-lg:     1.1875rem;
  --fs-xl:     1.375rem;
  --fs-h3:     clamp(1.25rem, 1.9vw, 1.5rem);
  --fs-h2:     clamp(1.875rem, 3.6vw, 2.75rem);
  --fs-h1:     clamp(2.375rem, 5.2vw, 3.75rem);
  --fs-hero:   clamp(2.75rem, 7.4vw, 5.5rem);

  /* --- Space ----------------------------------------------------------- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px; --s11: 176px;

  /* --- Form ------------------------------------------------------------ */
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

  --shadow-sm:  0 1px 2px rgba(20, 17, 15, .05), 0 1px 1px rgba(20, 17, 15, .03);
  --shadow:     0 4px 14px -4px rgba(20, 17, 15, .10), 0 2px 5px -2px rgba(20, 17, 15, .06);
  --shadow-lg:  0 24px 56px -20px rgba(20, 17, 15, .22), 0 8px 20px -10px rgba(20, 17, 15, .12);
  --shadow-xl:  0 48px 96px -32px rgba(20, 17, 15, .32), 0 16px 36px -18px rgba(20, 17, 15, .16);

  /* Layered gradient that makes a flat swatch read as an interior photo:
     a floor line, a corner shadow, and a window bloom. */
  --shot-tex:
    linear-gradient(to bottom, transparent 0 60%, rgba(28,20,10,.13) 72%, rgba(28,20,10,.09) 100%),
    linear-gradient(to right, rgba(28,20,10,.10) 0 14%, rgba(28,20,10,0) 32%),
    radial-gradient(ellipse 55% 45% at 72% 20%, rgba(255,255,255,.5), transparent 64%);

  --maxw: 1140px;
  --maxw-narrow: 760px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-feature-settings: "cv05" 1, "cv08" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .16s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

::selection { background: var(--crimson); color: #fff; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  width: min(100% - 44px, var(--maxw));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 44px, var(--maxw-narrow)); margin-inline: auto; }

.section { padding-block: clamp(72px, 10vw, 148px); position: relative; }
.section-tight { padding-block: clamp(56px, 7vw, 104px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--s4);
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--crimson-deep);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow-plain::before { display: none; }

.lede {
  font-size: var(--fs-lg);
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 62ch;
}
.sub {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}

.section-head { max-width: 740px; margin-bottom: var(--s8); }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: var(--s4); }

/* Hairline rule with a crimson tick, used between major sections */
.rule {
  height: 1px;
  background: var(--line);
  position: relative;
}
.rule::after {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 64px; height: 3px;
  background: var(--crimson);
  border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: transform .16s var(--ease), background-color .16s var(--ease),
              box-shadow .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.995); }

.btn-primary {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 1px 2px rgba(167,47,58,.28), 0 6px 18px -6px rgba(167,47,58,.42);
}
.btn-primary:hover {
  background: var(--crimson-deep);
  box-shadow: 0 2px 4px rgba(167,47,58,.3), 0 12px 26px -8px rgba(167,47,58,.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--muted-2); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-ghost { color: var(--ink-2); padding-inline: 14px; }
.btn-ghost:hover { color: var(--ink); }

.btn-on-dark {
  background: rgba(255,255,255,.09);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.btn-on-dark:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); transform: translateY(-1px); }

.btn-lg { padding: 16px 30px; font-size: var(--fs-md); }
.btn-sm { padding: 9px 16px; font-size: var(--fs-sm); }

/* Arrow that slides on hover */
.btn .arw { transition: transform .22s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* Text link with an underline that draws in */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--crimson);
  position: relative;
  padding-bottom: 2px;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink .arw { transition: transform .22s var(--ease); }
.tlink:hover .arw { transform: translateX(3px); }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(243, 240, 234, .93);
  backdrop-filter: saturate(190%) blur(20px);
  -webkit-backdrop-filter: saturate(190%) blur(20px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px -6px rgba(20, 17, 15, .28);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: 72px;
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-contact-mobile { display: none; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink-2);
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(20,17,15,.05); }
.header-cta { display: flex; align-items: center; gap: var(--s2); margin-left: var(--s4); }

/* --- Logo -------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--crimson);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px -1px rgba(167,47,58,.4);
  flex: none;
}
.logo-mark svg { width: 19px; height: 19px; }
.logo-word {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 24;
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -.022em;
}

/* Mobile nav toggle */
.nav-toggle { display: none; flex: none; width: 44px; height: 44px; margin-left: auto; border-radius: 10px; }
.nav-toggle:hover { background: rgba(20,17,15,.05); }
.nav-toggle span {
  display: block; width: 18px; height: 1.75px; margin: 0 auto;
  background: var(--ink); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .18s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   Product frames
   Faithful recreations of the real app UI, built as live DOM so they stay
   crisp at any density and can respond to the page's language toggle.
   ========================================================================== */

/* --- Phone ------------------------------------------------------------- */
.phone {
  --phone-w: 272px;
  width: var(--phone-w);
  flex: none;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(168deg, #2b2724 0%, #17130f 42%, #322c27 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.14),
    inset 0 0 0 4px rgba(0,0,0,.55),
    var(--shadow-xl);
  position: relative;
}
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 2px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, #0d0b09, #3a3430);
}
.phone::before { top: 108px; height: 30px; }
.phone::after  { top: 152px; height: 52px; }

.phone-screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 300 / 620;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.42;
}
.phone-notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 23px;
  background: #17130f;
  border-radius: var(--r-pill);
  z-index: 6;
}
.phone-status {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 5px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .01em;
  color: var(--ink);
  flex: none;
}
.phone-status-icons { display: flex; align-items: center; gap: 4px; }
.phone-status-icons i {
  display: block; width: 3px; border-radius: 1px; background: var(--ink);
}
.phone-status-icons i:nth-child(1) { height: 4px; }
.phone-status-icons i:nth-child(2) { height: 6px; }
.phone-status-icons i:nth-child(3) { height: 8px; }
.phone-status-icons b {
  width: 17px; height: 8.5px; border: 1.2px solid var(--ink); border-radius: 2.5px;
  position: relative; opacity: .85;
}
.phone-status-icons b::after {
  content: ""; position: absolute; inset: 1.5px; right: 5px;
  background: var(--ink); border-radius: 1px;
}

/* Crimson hairline at the very top of the app, as in the product */
.app-topline { height: 3px; background: var(--crimson); flex: none; }

.phone-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

/* --- App chrome inside the phone ---------------------------------------- */
.app-head { padding: 12px 15px 10px; background: var(--card); flex: none; }
.app-eyebrow {
  font-size: 8px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--crimson); margin-bottom: 3px;
}
.app-title {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 20;
  font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.12;
}
.app-sub { font-size: 10px; color: var(--muted); margin-top: 2px; }

.app-chips { display: flex; align-items: center; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3.5px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--card);
  font-size: 9.5px; font-weight: 600; color: var(--ink-2);
  white-space: nowrap;
}
.chip-live { border-color: var(--forest-soft); background: var(--forest-soft); color: var(--forest); }
.chip-live::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: #2f9e6b;
  box-shadow: 0 0 0 0 rgba(47,158,107,.6);
  animation: livePulse 2.4s var(--ease) infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(47,158,107,.55); }
  70%  { box-shadow: 0 0 0 5px rgba(47,158,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,158,107,0); }
}
.chip-offline { border-color: var(--amber-soft); background: var(--amber-soft); color: var(--amber); }
.chip-offline::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.chip-lang { border-color: var(--crimson-soft); background: var(--crimson-soft); color: var(--crimson-deep); }

/* Progress */
.app-progress { padding: 9px 15px 11px; background: var(--card); border-bottom: 1px solid var(--line-soft); flex: none; }
.app-progress-row {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 10px; font-weight: 700; margin-bottom: 5px;
}
.app-progress-row span:last-child { color: var(--forest); }
.app-track { height: 5px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.app-track i {
  display: block; height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--forest-2), #2f9e6b);
  width: 0;
  transition: width 1.4s var(--ease-out);
}
.phone.in-view .app-track i { width: var(--pct, 62%); }

/* Filters */
.app-filters {
  display: flex; gap: 4px; padding: 9px 15px; flex: none;
  background: var(--paper-2); border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.app-filter {
  padding: 5px 9px; border-radius: 8px; font-size: 9.5px; font-weight: 650;
  color: var(--muted); white-space: nowrap; background: transparent;
}
.app-filter.on { background: var(--crimson); color: #fff; box-shadow: 0 1px 3px rgba(167,47,58,.35); }

/* Item list */
.app-list { flex: 1; overflow: hidden; padding: 11px 13px 14px; display: flex; flex-direction: column; gap: 7px; }
.app-group {
  font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); margin: 3px 2px 1px;
}
.app-item {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 9px 10px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line-soft);
  box-shadow: 0 1px 2px rgba(20,17,15,.035);
}
.app-item-thumb {
  width: 38px; height: 38px; border-radius: 8px; flex: none;
  background: var(--paper-3); position: relative; overflow: hidden;
}
.app-item-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: var(--shot-tex), linear-gradient(150deg, var(--th-a, #cfc8ba), var(--th-b, #a89f92));
}
.app-item-thumb.has-mark::before {
  content: ""; position: absolute; z-index: 2;
  inset: 26% 30% 30% 24%;
  border: 1.6px solid var(--crimson);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5);
}
.app-item-main { min-width: 0; flex: 1; }
.app-item-title {
  font-size: 10.5px; font-weight: 620; line-height: 1.32; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-item-meta {
  display: flex; align-items: center; gap: 5px; margin-top: 5px;
  font-size: 8.5px; color: var(--muted-2); font-weight: 550;
}
.pill {
  padding: 2px 6px; border-radius: var(--r-pill);
  font-size: 8px; font-weight: 750; letter-spacing: .02em; white-space: nowrap;
}
.pill-open     { background: var(--paper-3); color: var(--ink-2); }
.pill-ready    { background: var(--amber-soft); color: var(--amber); }
.pill-done     { background: var(--forest-soft); color: var(--forest); }
.pill-pending  { background: var(--tape-soft); color: var(--tape); }

/* Floating add button */
.app-fab {
  position: absolute; right: 15px; bottom: 17px; z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--crimson); color: #fff;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 300; line-height: 1;
  box-shadow: 0 4px 14px -2px rgba(167,47,58,.55), 0 2px 4px rgba(167,47,58,.3);
}

/* --- Desktop browser frame ---------------------------------------------- */
.browser {
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
}
.browser-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 6px; flex: none; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.browser-dots i:nth-child(1) { background: #e4a09a; }
.browser-dots i:nth-child(2) { background: #e5cd9a; }
.browser-dots i:nth-child(3) { background: #a9cdb1; }
.browser-url {
  flex: 1; max-width: 380px; margin-inline: auto;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--card); border: 1px solid var(--line-soft);
  font-size: var(--fs-micro); color: var(--muted); text-align: center;
  font-family: var(--mono); letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body { background: var(--paper-2); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(64px, 8vw, 112px); overflow: hidden; }

/* Warm light bloom + faint blueprint grid, sitting under everything */
.hero-bg { position: absolute; inset: -20% -10% auto; height: 780px; z-index: 0; pointer-events: none; }
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 46% at 22% 12%, rgba(200,62,73,.09), transparent 68%),
    radial-gradient(52% 42% at 84% 4%,  rgba(23,55,44,.07),  transparent 66%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(20,17,15,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,17,15,.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(72% 58% at 50% 26%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(72% 58% at 50% 26%, #000 20%, transparent 78%);
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  letter-spacing: -.032em;
  line-height: .97;
  margin-bottom: var(--s5);
}
.hero h1 em {
  font-style: normal;
  color: var(--crimson);
  position: relative;
  white-space: nowrap;
}
.hero .lede { margin-bottom: var(--s6); font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); }

.hero-actions { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s6); }

.hero-proof {
  display: flex; align-items: center; gap: var(--s4) var(--s5);
  flex-wrap: wrap;
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.hero-proof strong { color: var(--ink); font-weight: 650; }
.hero-proof-item { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof-item svg { width: 15px; height: 15px; color: var(--forest); flex: none; }

/* Hero product staging: one phone, held up by floating context cards.
   The builder desktop gets its own full-width section further down rather
   than fighting the phone for room here. */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  /* Bleed toward the viewport edge; collapses to 0 on narrow screens. */
  margin-right: min(0px, calc((var(--maxw) - 100vw) / 2 + 26px));
}
/* Warm paper slab behind the phone, for depth */
.hero-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 272px; height: 388px;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(234,229,219,.55));
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-lg);
  transform: translate(46px, -34px) rotate(5deg);
}
.hero-stage .phone {
  position: relative;
  z-index: 2;
  transform: perspective(1800px) rotateY(-7deg) rotateX(2deg) rotateZ(-.8deg);
}

/* Floating activity card, upper left */
.float-card {
  position: absolute;
  z-index: 3;
  width: 232px;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: var(--shadow-lg);
}
.float-verified {
  left: 0;
  top: 52px;
  animation: floatY 8.5s ease-in-out infinite .8s;
}
.float-row { display: flex; align-items: flex-start; gap: 10px; }
.float-icon {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--forest-soft); color: var(--forest);
}
.float-icon svg { width: 15px; height: 15px; }
.float-title { font-size: 12.5px; font-weight: 650; line-height: 1.35; color: var(--ink); }
.float-meta { margin-top: 3px; font-size: 11px; color: var(--muted); line-height: 1.4; }
.float-shot {
  margin-top: 10px; height: 62px; border-radius: 9px;
  background: linear-gradient(150deg, #ded9cc, #ada393);
  position: relative; overflow: hidden;
}
.float-shot::after { content: ""; position: absolute; inset: 0; background: var(--shot-tex); }

/* Floating "invite link" card that lands next to the phone */
.invite-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 58px;
  width: 232px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-lg);
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.invite-card-head {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--fs-micro); font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--tape); margin-bottom: 9px;
}
.invite-card-head svg { width: 13px; height: 13px; }
.invite-url {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px;
  background: var(--paper-2); border: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden;
}
.invite-url span { overflow: hidden; text-overflow: ellipsis; }
.invite-copy {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; min-height: 24px;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 10px; font-weight: 650;
}
.invite-note { margin-top: 9px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.invite-note b { color: var(--ink-2); font-weight: 650; }

/* --- Logo strip --------------------------------------------------------- */
.strip { padding-block: var(--s7); border-top: 1px solid var(--line); }
.strip-label {
  text-align: center; font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2);
  margin-bottom: var(--s5);
}
.strip-row {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(24px, 5vw, 60px); flex-wrap: wrap;
}
.strip-row span {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 24;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em;
  color: var(--muted); opacity: .78;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.strip-row span:hover { opacity: 1; color: var(--ink-2); }

/* ==========================================================================
   The problem — three failure lanes
   ========================================================================== */

.problem { background: var(--paper-2); border-block: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.problem-card {
  padding: var(--s6) var(--s5) var(--s5);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--crimson); opacity: .5;
}
.problem-card h3 { font-size: var(--fs-h3); margin-bottom: var(--s3); }
.problem-card p { font-size: var(--fs-base); color: var(--muted); line-height: 1.62; }
.problem-quote {
  margin-top: var(--s4); padding-top: var(--s4);
  border-top: 1px dashed var(--line);
  font-size: var(--fs-sm); font-style: italic; color: var(--muted-2); line-height: 1.55;
}

/* ==========================================================================
   Feature blocks — alternating text / product
   ========================================================================== */

.feature { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(36px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 132px); }
.feature-flip .feature-copy { order: 2; }

.feature-copy h3 { font-size: var(--fs-h2); margin-bottom: var(--s4); }
.feature-copy .sub { margin-bottom: var(--s5); }

.feature-points { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s5); }
.feature-points li { display: flex; gap: 11px; align-items: flex-start; font-size: var(--fs-base); color: var(--ink-2); line-height: 1.55; }
.feature-points svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--forest); }
.feature-points b { font-weight: 650; color: var(--ink); }

.feature-visual { display: flex; justify-content: center; position: relative; }

/* ==========================================================================
   Dark section — the record / evidence
   ========================================================================== */

.dark {
  background: var(--forest);
  color: #eef3f0;
  position: relative;
  overflow: hidden;
}
.dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 40% at 12% 0%, rgba(200,62,73,.20), transparent 62%),
    radial-gradient(46% 40% at 88% 100%, rgba(47,158,107,.20), transparent 62%);
  pointer-events: none;
}
.dark::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 76%);
  pointer-events: none;
}
.dark .wrap, .dark .wrap-narrow { position: relative; z-index: 1; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #f0a5ab; }
.dark .sub, .dark .lede { color: rgba(238,243,240,.76); }
.dark .rule { background: rgba(255,255,255,.16); }

/* --- Evidence timeline (inside the dark section) ------------------------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute; left: 7px; top: 12px; bottom: 12px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.06));
}
.tl-item { position: relative; padding-bottom: var(--s5); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute; left: -30px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--forest);
  border: 2.5px solid rgba(255,255,255,.5);
}
.tl-item.is-crimson::before { border-color: var(--crimson); background: var(--crimson); }
.tl-item.is-green::before   { border-color: #4fd39a; background: #2f9e6b; }
.tl-when {
  font-size: var(--fs-micro); font-weight: 750; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(238,243,240,.5); margin-bottom: 5px;
}
.tl-item .tl-h { font-family: var(--sans); font-size: var(--fs-md); font-weight: 650; color: #fff; margin-bottom: 4px; letter-spacing: -.005em; }
.tl-item p { font-size: var(--fs-base); color: rgba(238,243,240,.72); line-height: 1.55; }
.tl-tag {
  display: inline-block; margin-top: 9px;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  font-size: var(--fs-micro); font-weight: 650; color: rgba(255,255,255,.86);
}

.evidence-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 84px); align-items: start; }

/* Preserved-photo pair */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.photo-cell {
  border-radius: var(--r); overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  padding: 10px;
}
.photo-cell-label {
  font-size: var(--fs-micro); font-weight: 750; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(238,243,240,.56); margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.photo-shot {
  aspect-ratio: 4/3; border-radius: 8px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #cfc8ba, #97907f);
}
.photo-shot.before { background: linear-gradient(150deg, #d6cfc0, #9d9484); }
.photo-shot.after  { background: linear-gradient(150deg, #dfdccf, #b0ab99); }
.photo-shot::after { content: ""; position: absolute; inset: 0; background: var(--shot-tex); }
.photo-shot .mark {
  position: absolute; z-index: 2; inset: 30% 34% 32% 26%;
  border: 2.5px solid var(--crimson); border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.45);
}
.photo-meta { margin-top: 8px; font-size: 11.5px; color: rgba(238,243,240,.64); line-height: 1.42; }

/* ==========================================================================
   Roles — three columns
   ========================================================================== */

.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.role {
  padding: var(--s6);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.role:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.role-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: var(--s4);
}
.role-icon svg { width: 21px; height: 21px; }
.role-builder   .role-icon { background: var(--crimson-soft); color: var(--crimson-deep); }
.role-crew      .role-icon { background: var(--tape-soft);    color: var(--tape); }
.role-homeowner .role-icon { background: var(--forest-soft);  color: var(--forest); }
.role h3 { font-size: var(--fs-h3); margin-bottom: 5px; }
.role-who { font-size: var(--fs-sm); font-weight: 650; color: var(--muted-2); margin-bottom: var(--s4); }
.role p { font-size: var(--fs-base); color: var(--muted); line-height: 1.62; margin-bottom: var(--s5); }
.role ul { display: flex; flex-direction: column; gap: 9px; margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line-soft); }
.role li { display: flex; gap: 9px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.role li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; opacity: .8; }
.role-builder   li svg { color: var(--crimson); }
.role-crew      li svg { color: var(--tape); }
.role-homeowner li svg { color: var(--forest); }
.role-entry {
  margin-top: var(--s4); padding: 9px 12px; border-radius: 10px;
  background: var(--paper-2); font-size: var(--fs-sm); color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.role-entry svg { width: 15px; height: 15px; flex: none; color: var(--muted-2); }

/* ==========================================================================
   Comparison table
   ========================================================================== */

.compare-scroll {
  overflow-x: auto;
  margin-inline: -22px;
  padding-inline: 22px;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent);
}
.compare {
  width: 100%; min-width: 660px;
  border-collapse: separate; border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare th, .compare td { padding: 15px 18px; text-align: left; vertical-align: middle; }
.compare thead th {
  background: var(--paper-2);
  font-family: var(--sans); font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: -.005em; color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.compare thead th.col-us { background: var(--crimson); color: #fff; }
.compare tbody td { border-bottom: 1px solid var(--line-soft); font-size: var(--fs-base); color: var(--muted); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th {
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--sans); font-size: var(--fs-base); font-weight: 650; color: var(--ink);
  width: 30%;
}
.compare tbody tr:last-child th { border-bottom: 0; }
.compare td.col-us {
  background: var(--crimson-tint);
  color: var(--ink); font-weight: 600;
}
.compare tbody tr:hover td:not(.col-us) { background: rgba(20,17,15,.018); }
.cmark { display: inline-flex; align-items: center; gap: 7px; }
.cmark svg { width: 16px; height: 16px; flex: none; }
.cmark.yes svg { color: var(--forest); }
.cmark.no  svg { color: var(--muted-2); opacity: .6; }
.compare-note { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--muted-2); }

/* ==========================================================================
   Pricing / invite
   ========================================================================== */

.invite-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(36px, 5vw, 72px); align-items: start; }

.plan {
  padding: var(--s7);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.plan::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-deep) 48%, var(--forest));
}
.plan-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--crimson-soft); color: var(--crimson-deep);
  font-size: var(--fs-micro); font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: var(--s4);
}
.plan h3 { font-size: var(--fs-h2); margin-bottom: var(--s3); }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin-block: var(--s5); }
.plan-price b {
  font-family: var(--serif); font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 60;
  font-size: 3rem; font-weight: 600; letter-spacing: -.03em; line-height: 1;
}
.plan-price span { font-size: var(--fs-base); color: var(--muted); }
.plan ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: var(--s6); }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-base); color: var(--ink-2); line-height: 1.5; }
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--forest); }

/* Form */
.form-card {
  padding: var(--s6);
  border-radius: var(--r-xl);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.form-card h3 { font-size: var(--fs-h3); margin-bottom: var(--s2); }
.form-card > p { font-size: var(--fs-base); color: var(--muted); margin-bottom: var(--s5); line-height: 1.55; }
.contact-card { display: grid; align-self: stretch; align-content: center; }
.contact-card .eyebrow { margin-bottom: var(--s2); color: var(--crimson-deep); }
.contact-card .btn { width: fit-content; margin-top: var(--s2); }
.contact-card .form-fine { margin: var(--s4) 0 0; max-width: 42ch; }
.field { display: block; margin-bottom: var(--s4); }
.field > span {
  display: block; margin-bottom: 6px;
  font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  font-family: var(--sans); font-size: var(--fs-base); color: var(--ink);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3.5px var(--crimson-tint);
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.55; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%236d645c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
.form-actions { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s5); }
.form-fine { font-size: var(--fs-sm); color: var(--muted-2); line-height: 1.5; }
.form-ok {
  display: none;
  padding: var(--s5);
  border-radius: var(--r);
  background: var(--forest-soft);
  border: 1px solid #bcd9c9;
  color: var(--forest);
  font-size: var(--fs-base);
  line-height: 1.55;
}
.form-ok b { display: block; font-weight: 700; margin-bottom: 4px; font-size: var(--fs-md); }
.form-card.sent form { display: none; }
.form-card.sent .form-ok { display: block; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5) clamp(32px, 5vw, 64px); }
.faq-item { border-bottom: 1px solid var(--line); padding-bottom: var(--s5); }
.faq-item h3 { font-family: var(--sans); font-size: var(--fs-md); font-weight: 650; letter-spacing: -.008em; margin-bottom: 9px; }
.faq-item p { font-size: var(--fs-base); color: var(--muted); line-height: 1.62; }
.faq-item p + p { margin-top: 10px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--ink); color: rgba(255,255,255,.68); padding-block: var(--s8) var(--s6); }
.footer-top { display: flex; justify-content: space-between; gap: var(--s7); flex-wrap: wrap; padding-bottom: var(--s7); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo-word { color: #fff; }
.footer-blurb { max-width: 36ch; margin-top: var(--s4); font-size: var(--fs-sm); line-height: 1.6; color: rgba(255,255,255,.56); }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.footer-col-label { font-family: var(--sans); font-size: var(--fs-micro); font-weight: 750; letter-spacing: .11em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: var(--s4); }
.footer-col a { display: block; padding: 5px 0; font-size: var(--fs-sm); color: rgba(255,255,255,.72); transition: color .16s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; padding-top: var(--s5); font-size: var(--fs-sm); color: rgba(255,255,255,.5); }
.footer-lang { display: inline-flex; gap: 4px; padding: 3px; border-radius: var(--r-pill); background: rgba(255,255,255,.07); }
.footer-lang button { padding: 4px 12px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,.6); }
.footer-lang button.on { background: rgba(255,255,255,.14); color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
  .hero-stage { min-height: 470px; margin-top: var(--s4); }
  .hero-stage .browser { width: 92%; right: 0; left: 8%; top: 30px; transform: perspective(1900px) rotateY(-8deg) rotateX(3deg); }
  .hero-stage .phone { margin-right: 42%; }
  .invite-card { left: 2%; bottom: 20px; }
  .evidence-grid, .invite-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
}

@media (max-width: 960px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .nav-contact-mobile { display: block; }
  .nav-toggle { display: block; }
  .header-cta { margin-left: 0; }
  /* Logo + CTA + a 44px toggle do not fit across 358px at the desktop gap. */
  .header-inner { gap: 8px; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px; left: 0; right: 0;
    padding: var(--s4) 22px var(--s5);
    background: rgba(243,240,234,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    gap: 2px;
  }
  .nav.is-open a { padding: 12px 14px; font-size: var(--fs-md); }
}

@media (max-width: 900px) {
  .problem-grid, .roles-grid { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .feature-flip .feature-copy { order: 0; }
  .feature-visual { order: 2; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .footer-top { flex-direction: column; gap: var(--s6); }
}

@media (max-width: 620px) {
  .wrap, .wrap-narrow { width: min(100% - 32px, var(--maxw)); }
  html { scroll-padding-top: 80px; }
  .header-cta { display: none; }
  .logo-word { white-space: nowrap; }
  .hero-stage { min-height: 430px; }
  .hero-stage .browser { display: none; }
  .hero-stage .phone { margin-right: 0; margin-top: 0; transform: none; --phone-w: 268px; }
  .invite-card {
    position: static; width: 100%; max-width: 320px;
    margin: var(--s5) auto 0; animation: none;
  }
  .hero-stage { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 100%; }
  .plan { padding: var(--s6) var(--s5); }
  .form-card { padding: var(--s5); }
  .compare-scroll { margin-inline: -16px; padding-inline: 16px; }
  .photo-pair { grid-template-columns: 1fr; }
  .footer-cols { gap: var(--s6) var(--s7); }
}

@media (max-width: 400px) {
  .hero-stage .phone { --phone-w: 240px; }
}

/* --- Print --------------------------------------------------------------- */
@media print {
  .header, .nav-toggle, .hero-bg, .footer-lang { display: none; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Builder portfolio, rendered inside the browser frame ---------------- */
.bp { padding: 20px 22px 24px; font-size: 12px; }
.bp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.bp-eyebrow {
  font-size: 8.5px; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--crimson); margin-bottom: 3px;
}
.bp-title {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 48;
  font-size: 26px; font-weight: 600; letter-spacing: -.028em; line-height: 1;
}
.bp-btn {
  padding: 7px 15px; border-radius: var(--r-pill);
  background: var(--crimson); color: #fff;
  font-size: 11px; font-weight: 650; white-space: nowrap;
  box-shadow: 0 2px 6px -1px rgba(167,47,58,.4);
}
.bp-cards { display: flex; flex-direction: column; gap: 10px; }
.bp-card {
  padding: 13px 15px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line-soft);
  box-shadow: 0 1px 2px rgba(20,17,15,.04);
}
.bp-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.bp-card-name {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 24;
  font-size: 15px; font-weight: 600; letter-spacing: -.018em;
}
.bp-card-when { font-size: 10px; color: var(--muted-2); white-space: nowrap; }
.bp-stats { display: flex; gap: 8px; margin-bottom: 10px; }
.bp-stats span {
  flex: 1; padding: 7px 4px; border-radius: 8px;
  background: var(--paper-2); border: 1px solid var(--line-soft);
  text-align: center;
  font-size: 8.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-direction: column; gap: 2px;
}
.bp-stats b {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 24;
  font-size: 16px; font-weight: 600; letter-spacing: -.02em; color: var(--ink);
}
.bp-card:first-child .bp-stats span:first-child b { color: var(--crimson); }
.bp-track { height: 4px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.bp-track i {
  display: block; height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--forest-2), #2f9e6b);
  width: 0; transition: width 1.5s var(--ease-out) .2s;
}
.browser.in-view .bp-track i { width: var(--w, 50%); }

/* ==========================================================================
   Feature demos
   ========================================================================== */

/* --- 01 The link --------------------------------------------------------- */
.link-demo {
  width: 100%;
  max-width: 440px;
  padding: var(--s6);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.link-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: var(--r);
  background: var(--paper-2); border: 1px solid var(--line-soft);
}
.link-row + .link-row { margin-top: 10px; }
.link-role {
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: var(--fs-micro); font-weight: 750; letter-spacing: .04em;
  white-space: nowrap; flex: none;
}
.link-role-crew { background: var(--tape-soft); color: var(--tape); }
.link-role-home { background: var(--forest-soft); color: var(--forest); }
.link-row code {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.link-copy {
  flex: none; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font-size: var(--fs-micro); font-weight: 650;
  transition: background-color .16s var(--ease);
}
.link-copy:hover { background: var(--crimson); }

.link-arrow { display: flex; justify-content: center; padding: var(--s3) 0 var(--s2); }
.link-arrow svg { width: 22px; height: 38px; }

.link-opens {
  text-align: center; padding: 0 var(--s3);
}
.link-opens-title {
  font-family: var(--serif); font-size: var(--fs-h4);
  color: var(--ink); margin-bottom: 6px;
}
.link-opens-body {
  font-size: var(--fs-sm); line-height: 1.55; color: var(--muted);
  max-width: 34ch; margin: 0 auto;
}
.link-opens-body em { font-style: italic; color: var(--ink-2); }
.link-caption {
  margin-top: var(--s4); text-align: center;
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted);
}

/* --- 02 The walk --------------------------------------------------------- */
.walk-demo {
  width: 100%; max-width: 440px;
  padding: var(--s6);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.walk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.walk-shot {
  aspect-ratio: 4/3; border-radius: 9px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--a), var(--b));
}
.walk-shot::after,
.walk-thumb::after { content: ""; position: absolute; inset: 0; background: var(--shot-tex); }
.walk-shot.marked::before,
.walk-thumb.marked::before {
  content: ""; position: absolute; z-index: 2;
  inset: 26% 30% 28% 24%;
  border: 2px solid var(--crimson); border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5);
}
.walk-arrow {
  display: flex; align-items: center; gap: 12px;
  padding: var(--s5) 0;
}
.walk-arrow span { flex: 1; height: 1px; background: var(--line); }
.walk-arrow b {
  font-size: var(--fs-micro); font-weight: 750; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted-2);
}
.walk-items { display: flex; flex-direction: column; gap: 8px; }
.walk-item {
  display: flex; gap: 11px; align-items: center;
  padding: 10px 11px; border-radius: var(--r);
  background: var(--paper-2); border: 1px solid var(--line-soft);
}
.walk-thumb {
  width: 40px; height: 40px; border-radius: 8px; flex: none;
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--a), var(--b));
}
.walk-item-title { font-size: var(--fs-sm); font-weight: 650; color: var(--ink); line-height: 1.35; }
.walk-item-meta { font-size: var(--fs-micro); color: var(--muted-2); margin-top: 2px; }

/* --- 03 The loop --------------------------------------------------------- */
.loop-demo {
  width: 100%; max-width: 440px;
  padding: var(--s6);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.loop-step { display: flex; gap: 14px; position: relative; padding-bottom: var(--s5); }
.loop-step:last-child { padding-bottom: 0; }
.loop-step::before {
  content: ""; position: absolute;
  left: 6px; top: 20px; bottom: 4px; width: 2px;
  background: var(--line); border-radius: 2px;
}
.loop-step:last-child::before { display: none; }
.loop-dot {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  margin-top: 4px; position: relative; z-index: 1;
  border: 2.5px solid var(--card);
}
.loop-dot-crew  { background: var(--tape);   box-shadow: 0 0 0 1.5px var(--tape); }
.loop-dot-owner { background: #2f9e6b;       box-shadow: 0 0 0 1.5px #2f9e6b; }
.loop-dot-builder { background: #2f9e6b;     box-shadow: 0 0 0 1.5px #2f9e6b; }
.loop-dot-back  { background: var(--paper-3); box-shadow: 0 0 0 1.5px var(--line); }
.loop-body { flex: 1; min-width: 0; }
.loop-who {
  font-size: var(--fs-micro); font-weight: 750; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 5px;
}
.loop-text { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; margin-bottom: 9px; }
.loop-shot {
  display: block; height: 66px; border-radius: 9px; margin-bottom: 9px;
  background: linear-gradient(150deg, #ded9cc, #ada393);
  position: relative; overflow: hidden;
}
.loop-shot::after { content: ""; position: absolute; inset: 0; background: var(--shot-tex); }
.loop-step-muted .loop-body { opacity: .72; }
.loop-step-muted .loop-text { font-style: italic; }

/* Points list on the dark band */
.dark-points { display: flex; flex-direction: column; gap: 12px; margin-top: var(--s6); }
.dark-points li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: var(--fs-base); color: rgba(238,243,240,.78); line-height: 1.55;
}
.dark-points svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #6ec89b; }
.dark-points b { color: #fff; font-weight: 650; }
.dark em { font-style: italic; color: #f6dfe1; }

/* ==========================================================================
   Agent access
   ========================================================================== */

.agent-band { background: var(--paper-2); border-block: 1px solid var(--line); }
.agent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.agent-grid h2 { font-size: var(--fs-h2); margin-bottom: var(--s4); }

.scope-card {
  padding: var(--s5);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.scope-head { display: flex; align-items: center; gap: 11px; padding-bottom: var(--s4); border-bottom: 1px solid var(--line-soft); margin-bottom: var(--s4); }
.scope-dot {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, var(--forest-2), #2f9e6b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.scope-title { font-size: var(--fs-md); font-weight: 700; letter-spacing: -.01em; }
.scope-sub { font-size: var(--fs-sm); color: var(--muted); }

.scope-list { display: flex; flex-direction: column; gap: 3px; }
.scope-list li {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 9px 10px; border-radius: 10px;
}
.scope-list li.on { background: var(--forest-soft); }
.scope-list li.off { background: var(--paper-2); }
.scope-check {
  width: 19px; height: 19px; border-radius: 6px; flex: none;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; line-height: 1;
}
.scope-list li.on  .scope-check { background: #2f9e6b; color: #fff; }
.scope-list li.off .scope-check { background: var(--paper-3); color: var(--muted-2); }
.scope-list b { display: block; font-size: var(--fs-sm); font-weight: 650; color: var(--ink); }
.scope-list small { display: block; font-size: var(--fs-micro); color: var(--muted); line-height: 1.42; margin-top: 1px; }
.scope-list li.off b, .scope-list li.off small { color: var(--muted); }
.scope-foot { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--muted-2); text-align: center; }

/* ==========================================================================
   Origin story
   ========================================================================== */

.origin { background: var(--paper-2); border-block: 1px solid var(--line); }
.origin-card {
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.origin-card::before {
  content: "";
  position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--crimson), var(--forest));
}
.origin-card h2 { font-size: var(--fs-h2); margin-bottom: var(--s5); }

/* ==========================================================================
   Plan fine print + closing CTA
   ========================================================================== */

.plan-fine {
  padding-top: var(--s5);
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.55;
}

.cta-band { background: var(--paper-2); border-top: 1px solid var(--line); text-align: center; }
.cta-inner h2 { font-size: var(--fs-h1); margin-bottom: var(--s4); }
.cta-inner .lede { margin: 0 auto var(--s6); }
.cta-fine { margin-top: var(--s5); font-size: var(--fs-sm); color: var(--muted); }

/* ==========================================================================
   Utility
   ========================================================================== */

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.field em { font-style: normal; font-weight: 400; color: var(--muted-2); }

@media (max-width: 900px) {
  .agent-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
}

/* Trade filter row inside the phone frame */
.app-trades {
  display: flex; gap: 5px; padding: 0 15px 9px; flex: none;
  background: var(--paper-2); border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.app-trade {
  padding: 4px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--card);
  font-size: 9px; font-weight: 650; color: var(--muted);
  white-space: nowrap;
}
.app-trade.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ==========================================================================
   Bilingual section
   ========================================================================== */

.lang-band { background: var(--paper-2); border-block: 1px solid var(--line); }
.lang-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.lang-grid h2 { font-size: var(--fs-h2); margin-bottom: var(--s4); }

.lang-switch {
  display: inline-flex; gap: 4px; margin-top: var(--s6); padding: 5px;
  border-radius: var(--r-pill);
  background: var(--paper-3);
  border: 1px solid var(--line);
}
.lang-switch button {
  padding: 11px 26px; border-radius: var(--r-pill);
  font-size: var(--fs-base); font-weight: 650; color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.lang-switch button.on {
  background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.lang-switch button:not(.on):hover { color: var(--ink-2); }

.lang-hint {
  display: flex; align-items: center; gap: 8px;
  margin-top: var(--s4);
  font-size: var(--fs-sm); color: var(--muted-2);
}
.lang-hint svg { width: 15px; height: 15px; flex: none; transform: rotate(-90deg); }

/* --- Item detail rendered inside the phone -------------------------------- */
.detail-head {
  display: grid; grid-template-columns: 18px 1fr 18px; align-items: center;
  padding: 9px 14px; background: var(--card);
  border-bottom: 1px solid var(--line-soft); flex: none;
}
.detail-back { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1; }
.detail-more { font-size: 11px; letter-spacing: .06em; color: var(--ink); text-align: right; }
.detail-titles { display: grid; justify-items: center; gap: 1px; }
.detail-num {
  font-size: 8px; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: var(--crimson);
}
.detail-h { font-family: var(--serif); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.detail-scroll { flex: 1; overflow: hidden; padding: 11px 14px; background: var(--paper-2); }
.detail-status {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.detail-status .pill { flex: none; }
.detail-trade {
  font-size: 9.5px; font-weight: 750; color: var(--crimson-deep);
  display: inline-flex; align-items: center; gap: 5px;
}
.detail-trade::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--crimson); flex: none;
}
.detail-card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 12px; overflow: hidden; margin-bottom: 12px;
}
.detail-block { padding: 10px 11px; }
.detail-block + .detail-block { border-top: 1px solid var(--line-soft); }
.detail-label {
  font-size: 8px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.detail-label-split { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.detail-label-split em { font-style: normal; font-weight: 800; color: var(--ink-2);
  letter-spacing: .02em; text-transform: none; font-size: 9px; }
.detail-value { font-size: 10px; color: var(--ink-2); line-height: 1.45; }
.detail-value.strong {
  font-family: var(--serif); font-size: 12.5px; font-weight: 600;
  color: var(--ink); line-height: 1.28;
}
.detail-photos-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 7px;
}
.detail-photos-title { font-family: var(--serif); font-size: 12px; font-weight: 600; color: var(--ink); }
.detail-photos-count { font-size: 9px; font-weight: 650; color: var(--muted); }
.detail-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.detail-photo {
  aspect-ratio: 4/3; border-radius: 8px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--a), var(--b));
}
.detail-photo::after { content: ""; position: absolute; inset: 0; background: var(--shot-tex); }
.detail-actions {
  display: flex; gap: 8px; padding: 10px 14px 14px; flex: none;
  background: var(--card); border-top: 1px solid var(--line-soft);
}
.detail-btn {
  flex: 1; padding: 10px 6px; border-radius: var(--r-pill);
  text-align: center; font-size: 10.5px; font-weight: 650;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.detail-btn.primary {
  background: var(--crimson); border-color: var(--crimson); color: #fff;
  box-shadow: 0 2px 6px -1px rgba(167,47,58,.4);
}

@media (max-width: 900px) {
  .lang-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
}

/* ==========================================================================
   Translation demo — the same item, read by two people
   ========================================================================== */

.xlate-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--s5);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.xlate-role {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: var(--s3);
  font-size: var(--fs-micro); font-weight: 750; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted);
}
.xlate-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.xlate-dot.crew    { background: var(--tape);   box-shadow: 0 0 0 3px var(--tape-soft); }
.xlate-dot.builder { background: var(--crimson); box-shadow: 0 0 0 3px var(--crimson-soft); }

.xlate-card {
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.xlate-label {
  font-size: var(--fs-micro); font-weight: 700; color: var(--muted-2);
  margin-bottom: 5px;
}
.xlate-label + .xlate-body { margin-bottom: var(--s4); }
.xlate-body { font-size: var(--fs-base); color: var(--ink-2); line-height: 1.5; }
.xlate-body.strong { font-size: var(--fs-md); font-weight: 650; color: var(--ink); line-height: 1.38; }
.xlate-stamp {
  display: inline-block; margin-top: var(--s2);
  padding: 4px 11px; border-radius: var(--r-pill);
  background: var(--paper-2); border: 1px solid var(--line-soft);
  font-size: var(--fs-micro); font-weight: 600; color: var(--muted);
}

.xlate-arrow { display: flex; flex-direction: column; align-items: center; gap: 10px; align-self: stretch; justify-content: center; }
.xlate-line { width: 1px; flex: 1; background: linear-gradient(180deg, transparent, var(--line) 22%, var(--line) 78%, transparent); }
.xlate-badge {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line);
  color: var(--forest); box-shadow: var(--shadow-sm);
}
.xlate-badge svg { width: 21px; height: 21px; }

.lang-grid-lower { align-items: center; }
.lang-grid-lower h3 { font-size: var(--fs-h2); margin-bottom: var(--s4); }

/* The visual column holds a phone plus its control; stack them. */
.lang-grid-lower .feature-visual { flex-direction: column; align-items: center; }
.lang-switch-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--s3); margin-top: var(--s5); }
.lang-switch-wrap .lang-switch { margin-top: 0; }
.lang-switch-wrap .lang-hint { margin-top: 0; justify-content: center; }
.lang-switch-wrap .lang-hint svg { display: none; }

@media (max-width: 900px) {
  .xlate-demo { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .xlate-arrow { flex-direction: row; align-self: auto; padding-block: var(--s2); }
  .xlate-line { width: auto; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line) 22%, var(--line) 78%, transparent); }
  .lang-grid-lower .feature-visual { order: 2; }
}

.inline-code {
  font-family: var(--mono);
  font-size: .92em;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  color: var(--ink-2);
  white-space: nowrap;
}

/* Compact feature grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.gcard {
  padding: var(--s5);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.gcard:hover { border-color: var(--line); box-shadow: var(--shadow); }
.gcard h3 {
  font-family: var(--sans);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 9px;
}
.gcard p { font-size: var(--fs-base); color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) { .grid-cards { grid-template-columns: minmax(0, 1fr); } }

/* Copy affordance failed (clipboard blocked) — must not read as success. */
.link-copy.copy-failed,
.invite-copy.copy-failed { background: var(--crimson); }


/* ===================================================================
   Real photographs
   -------------------------------------------------------------------
   Adding `has-photo` plus a `--photo` URL swaps a slot's placeholder
   gradient for a real photograph. Without that class nothing changes and
   no request is made, so the gradients stay exactly as they are until
   real photos exist:

     <div class="photo-shot before has-photo"
          style="--photo:url('assets/photos/grout-before.jpg')">

   See PHOTOS.md for the slot inventory, required sizes and subjects.
   `.has-photo` dials back the canvas texture so it doesn't haze a real
   photograph.
   =================================================================== */
.loop-shot.has-photo,
.float-shot.has-photo,
.walk-shot.has-photo,
.walk-thumb.has-photo,
.app-item-thumb.has-photo,
.detail-photo.has-photo,
.photo-shot.has-photo {
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.loop-shot.has-photo::after,
.float-shot.has-photo::after,
.walk-shot.has-photo::after,
.walk-thumb.has-photo::after,
.app-item-thumb.has-photo::after,
.detail-photo.has-photo::after,
.photo-shot.has-photo::after { opacity: .18; }

/* List rows carry the app's own signature: crimson ITEM n eyebrow above a
   serif title, and a section header with the open count on the right. */
.app-group-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.app-group-count { font-size: 8.5px; font-weight: 650; color: var(--muted); }
.app-item-num {
  font-size: 7.5px; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: var(--crimson); margin-bottom: 2px;
}
.app-item-title { font-family: var(--serif); font-weight: 600; }
