/* ==========================================================================
   Tab Truck — landing page  (handoff v3, §05)
   Full-bleed marketing page on the shared design system. Max-width 1180,
   grids collapse to one column below 900, H1 scales 60 → 40.
   ========================================================================== */

* { box-sizing: border-box; }

body.tt { font-size: 16px; }

.ico {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================================================
   Buttons (landing-local: the extension's .tt-btn lives in tokens.css, but
   these are anchors, not <button>s)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: var(--outline);
  border-radius: 12px;
  padding: 12px 18px;
  min-height: 44px;
  box-shadow: var(--lift);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-fast),
              box-shadow var(--t-fast) var(--ease-fast),
              background var(--t-fast) var(--ease-fast);
}
.btn:hover { background: var(--panel); transform: translateY(-1px); box-shadow: var(--lift-hover); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--shadow-neutral); }

.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--lift-orange); }
.btn--primary:hover { background: var(--orange-hover); box-shadow: var(--lift-hover-orange); }
.btn--primary:active { background: var(--orange-press-bg); box-shadow: 0 1px 0 var(--orange-press); }

.btn--sm { font-size: 14px; padding: 9px 16px; min-height: 0; border-radius: 11px; box-shadow: var(--lift-sm); }
.btn--sm:hover { box-shadow: var(--lift); }
.btn--lg { font-size: 17px; padding: 14px 24px; border-radius: 14px; box-shadow: 0 5px 0 var(--shadow-neutral); }
.btn--lg.btn--primary { box-shadow: 0 5px 0 var(--orange-press); }
.btn--lg .ico { width: 20px; height: 20px; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  max-width: 1180px; margin: 0 auto;
  padding: 22px 24px;
  display: flex; align-items: center; gap: var(--s2);
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  color: var(--ink); text-decoration: none;
  white-space: nowrap; flex: none;
}
.nav-links {
  margin-left: auto;
  display: flex; align-items: center; gap: 22px;
  font-size: 15px; font-weight: 600;
}
.nav-links > a:not(.btn) { color: var(--ink-soft); text-decoration: none; }
.nav-links > a:not(.btn):hover { color: var(--ink); }

/* the phone-only hamburger drawer — hidden until the nav collapses */
.nav-menu { display: none; }
.nav-cta { flex: none; }
.nav-cta-short { display: none; }

.theme-cycle {
  font-size: 15px; line-height: 1;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--ink);
  border: var(--outline); border-radius: 11px;
  box-shadow: var(--lift-sm);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-fast), box-shadow var(--t-fast) var(--ease-fast);
}
.theme-cycle:hover { transform: translateY(-1px); box-shadow: var(--lift); }
.theme-cycle:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--shadow-neutral); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  max-width: 1180px; margin: 0 auto;
  padding: 36px 24px 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--green-press);
  background: var(--green-100);
  border: 1.5px solid var(--green);
  border-radius: var(--r-pill);
  padding: 6px 13px;
  margin-bottom: 20px;
}
:root[data-theme="dark"] .pill { color: var(--green-ok-text); }

.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 60px; line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero-sub { font-size: 20px; line-height: 1.5; color: var(--ink-soft); max-width: 36ch; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13px; color: var(--ink-muted); margin: 16px 0 0; }

/* --- the browser mock --- */
.mock {
  background: var(--panel);
  border: var(--outline);
  border-radius: 22px;
  box-shadow: var(--lift-hero);
  overflow: hidden;
}
.mock-bar {
  height: 34px;
  background: var(--hairline);
  border-bottom: var(--outline);
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px;
}
.mock-dot { width: 10px; height: 10px; border-radius: var(--r-pill); border: 1.5px solid var(--ink); }
.mock-dot--o { background: var(--orange); }
.mock-dot--l { background: var(--orange-200); }
.mock-dot--g { background: var(--green-100); }

.mock-road {
  height: 280px;
  background: repeating-linear-gradient(135deg, var(--panel) 0 12px, var(--hairline) 12px 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  position: relative; overflow: hidden;
}

.road-line {
  position: absolute; left: 0; right: 0; height: 3px;
  background-image: repeating-linear-gradient(90deg, var(--hairline-strong) 0 22px, transparent 22px 44px);
  opacity: .7;
}
.road-line--fast { top: 96px;  animation: speedline .5s linear infinite; }
.road-line--slow { top: 150px; opacity: .5; animation: speedline .32s linear infinite; }
@keyframes speedline { to { transform: translateX(-44px); } }

.truck-drive { position: relative; display: inline-flex; animation: drive .6s ease-in-out infinite; }
@keyframes drive { 50% { transform: translateY(-3px); } }

/* v4 cover animation: little tabs arc down and drop into the cargo box */
.toss-tab {
  position: absolute; left: 74px; top: 30px; z-index: 2;
  width: 30px; height: 21px;
  background: #fff; border: 2px solid #2A2620; border-radius: 6px;
  box-shadow: 0 2px 0 var(--shadow-neutral);
  display: flex; align-items: center; gap: 3px; padding: 0 5px;
  opacity: 0;
  animation: tosstab 2.7s ease-in infinite;
}
.toss-tab .tt-dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.toss-tab .tt-line { flex: 1; height: 3px; border-radius: 2px; background: #E4E2DC; }
@keyframes tosstab {
  0%   { transform: translate(-92px,-72px) rotate(-32deg) scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  55%  { transform: translate(-28px,-38px) rotate(-8deg) scale(1);    opacity: 1; }
  86%  { transform: translate(-2px,-6px) rotate(10deg) scale(0.6);    opacity: 1; }
  100% { transform: translate(4px,8px) rotate(16deg) scale(0.35);     opacity: 0; }
}

/* the hero truck's headlight (front = orange cab, right). Off on the light theme,
   a warm glow + beam thrown forward at night. Bobs with the truck. */
.hero-lamp { position: absolute; right: 9px; bottom: 27px; z-index: 3;
  width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.hero-lamp::before { content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  width: 44px; height: 18px; border-radius: 50%; background: transparent; }
:root[data-theme="dark"] .hero-lamp { background: #FFE9A8; box-shadow: 0 0 11px 3px rgba(255,221,130,0.9); }
:root[data-theme="dark"] .hero-lamp::before { background: linear-gradient(to right, rgba(255,224,140,0.5), transparent); }

.loadbar-wrap { width: 64%; }
.loadbar-label { text-align: center; margin-bottom: 7px; font-size: 12px; }
.loadbar {
  height: 12px;
  background: var(--cream);
  border: var(--outline);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.loadbar-fill {
  height: 100%; background: var(--orange); border-radius: var(--r-pill);
  animation: loadbar 2.2s ease-in-out infinite;
}
@keyframes loadbar {
  0%   { width: 8%; }
  60%  { width: 92%; }
  100% { width: 8%; }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust { background: var(--dark-bg); color: var(--dark-text); }
.trust { position: relative; overflow: hidden; }

/* ---- trucks driving along the top rim (the road) ---- */
.trust-road { position: absolute; top: 0; left: 0; right: 0; height: 26px; pointer-events: none; z-index: 1; }
.road-truck { position: absolute; top: 3px; left: 0; will-change: transform; }
.rt-body { position: relative; display: block; }
.rt-body svg { width: 34px; height: 20px; display: block; }
.rt-flip { transform: scaleX(-1); }             /* faces the other way */

/* headlight sits at the FRONT (the cab, right edge) with the beam thrown ahead
   of it; a truck's .rt-flip mirrors the body, so both move to the left edge for
   left-bound trucks. Off on the cream theme, glowing in dark. */
.rt-lamp { position: absolute; right: 1px; bottom: 5px; width: 3px; height: 3px; border-radius: 50%; background: transparent; }
.rt-lamp::before { content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  width: var(--beam, 16px); height: 7px; border-radius: 50%; background: transparent; }
:root[data-theme="dark"] .rt-lamp { background: #FFE9A8; box-shadow: 0 0 5px 1.5px rgba(255,221,130,0.85); }
:root[data-theme="dark"] .rt-lamp::before { background: linear-gradient(to right, rgba(255,224,140,0.55), transparent); }

/* rear exhaust: little puffs off the trailer end (opposite the cab). Shown on the
   light theme; the dark theme shows headlights instead. .rt-flip mirrors the body,
   so the puffs sit at the rear of left-bound trucks too. */
.rt-smoke, .rt-smoke::before, .rt-smoke::after {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(201,197,189,0.85);
}
.rt-smoke { left: -1px; bottom: 4px; animation: smokepuff 1.4s ease-out infinite; }
.rt-smoke::before { content: ''; left: 0; bottom: 0; animation: smokepuff 1.4s ease-out infinite; animation-delay: 0.47s; }
.rt-smoke::after  { content: ''; left: 0; bottom: 0; animation: smokepuff 1.4s ease-out infinite; animation-delay: 0.93s; }
:root[data-theme="dark"] .rt-smoke { display: none; }
.rt-2 .rt-smoke, .rt-2 .rt-smoke::before, .rt-2 .rt-smoke::after { animation-duration: 1.1s; }
.rt-3 .rt-smoke, .rt-3 .rt-smoke::before, .rt-3 .rt-smoke::after { animation-duration: 1.7s; }
@keyframes smokepuff {
  0%   { transform: translate(0,0) scale(0.4);      opacity: 0; }
  25%  { opacity: 0.5; }
  100% { transform: translate(-11px,-9px) scale(1.5); opacity: 0; }
}

/* each truck: its own speed (randomised look), size and start offset.
   negative delays start them mid-road so they're staggered from the first frame. */
.rt-1 { animation: truck-ltr 11s linear infinite;  animation-delay: 0s;  --cab: #E1793F; --beam: 20px; }
.rt-2 { animation: truck-ltr 8s  linear infinite;  animation-delay: -5s; --cab: #7C3AED; --beam: 13px; }  /* bigger = closer/faster */
.rt-2 .rt-body svg { width: 38px; height: 22px; }
.rt-3 { animation: truck-rtl 14s linear infinite;  animation-delay: -3s; --cab: #35A07C; --beam: 26px; }  /* flipped, drives left */
.rt-3 .rt-body svg { width: 30px; height: 18px; }
.rt-4 { animation: truck-rtl 17s linear infinite;  animation-delay: -9s; --cab: #DB2777; --beam: 15px; }  /* flipped, smaller = further */
.rt-4 .rt-body svg { width: 27px; height: 16px; }

@keyframes truck-rtl { from { transform: translateX(102vw); } to { transform: translateX(-70px); } }
@keyframes truck-ltr { from { transform: translateX(-70px); } to { transform: translateX(102vw); } }

:root[data-theme="dark"] .trust { border-top: var(--outline); border-bottom: var(--outline); }
.trust-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 30px 24px 20px;
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  position: relative; z-index: 2;
  align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
}
.trust-inner span { display: inline-flex; align-items: center; gap: 8px; }
.trust-inner .ico { width: 18px; height: 18px; }
.trust-sep { color: #5A5248; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { max-width: 1180px; margin: 0 auto; padding: 68px 24px; }
.section--tint {
  max-width: none;
  background: var(--panel);
  border-top: var(--outline);
  border-bottom: var(--outline);
}
.section--tint > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: 44px; }
.eyebrow { color: var(--orange-link); font-size: 12px; font-weight: 700; }
.section-head h2 {
  font-size: 40px; margin: 8px 0 0; letter-spacing: -0.01em;
}
.section-sub { color: var(--ink-soft); margin: 12px 0 0; }

/* --- how it works --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--white);
  border: var(--outline);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--shadow-neutral);
  overflow: hidden;
}
.step-art {
  height: 150px;
  background: repeating-linear-gradient(135deg, var(--panel) 0 11px, var(--hairline) 11px 22px);
  border-bottom: var(--outline);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--ink);
}
.step-ico { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step-num {
  position: absolute; bottom: 8px;
  background: var(--cream);
  border: 1.5px solid var(--hairline-strong);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
}
.step-body { padding: 20px 22px 24px; }
.step-body h3 { font-size: 20px; margin: 0 0 6px; }
.step-body p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* --- features --- */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: var(--white);
  border: var(--outline);
  border-radius: var(--r-card);
  box-shadow: var(--lift);
  padding: 22px;
  transition: transform var(--t-fast) var(--ease-fast), box-shadow var(--t-fast) var(--ease-fast);
}
.feature:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--shadow-neutral); }
.feature-tile {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange-100);
  border: 2px solid var(--orange);
  border-radius: 12px;
  color: var(--orange-link);
  margin-bottom: 14px;
}
.feature-tile .ico { width: 22px; height: 22px; }
.feature-tile--trust {
  background: var(--green-100);
  border-color: var(--green);
  color: var(--green-press);
}
:root[data-theme="dark"] .feature-tile--trust { color: var(--green-ok-text); }
.feature h3 { font-size: 18px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.feature code {
  font-family: var(--font-mono); font-size: .85em;
  background: var(--panel); border: 1.5px solid var(--hairline);
  padding: 1px 5px; border-radius: 5px;
}

/* ==========================================================================
   Privacy — dark full-bleed strip
   ========================================================================== */
.privacy { background: var(--dark-bg); color: var(--dark-text); }
:root[data-theme="dark"] .privacy { border-top: var(--outline); border-bottom: var(--outline); }
.privacy-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 68px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.privacy .eyebrow { color: var(--orange-hover); }
.privacy h2 { font-size: 40px; margin: 8px 0 18px; letter-spacing: -0.01em; }
.privacy p { color: var(--dark-muted); font-size: 17px; line-height: 1.6; margin: 0 0 24px; max-width: 46ch; }
.privacy .btn {
  background: transparent;
  color: var(--dark-text);
  border-color: var(--dark-text);
  box-shadow: 0 4px 0 #000;
}
.privacy .btn:hover { background: var(--dark-raised); }

.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy-list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--dark-raised);
  border: 2px solid #4A4238;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--dark-muted);
}
.privacy-list strong { color: var(--dark-text); }
.privacy-list .ico { width: 20px; height: 20px; color: #3FB88D; margin-top: 2px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: var(--outline);
  border-radius: 14px;
  box-shadow: var(--lift-sm);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  display: flex; align-items: center; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+';
  font-size: 20px; line-height: 1;
  color: var(--orange-link);
  transition: transform var(--t-fast) var(--ease-fast);
}
.faq-item[open] summary::before { content: '−'; }
/* tint the whole item on hover, not just the summary — otherwise an open item
   shows a hover colour on the question row but not the answer, which looks broken */
.faq-item:hover { background: var(--panel); }
.faq-item p {
  margin: 0; padding: 0 20px 18px 42px;
  color: var(--ink-soft); font-size: 15px; line-height: 1.6;
}
.faq-item code {
  font-family: var(--font-mono); font-size: .85em;
  background: var(--panel); border: 1.5px solid var(--hairline);
  padding: 1px 5px; border-radius: 5px;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta {
  max-width: none;
  background: var(--orange-100);
  border-top: var(--outline);
  border-bottom: var(--outline);
  padding: 72px 24px;
}
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta h2 { font-size: 44px; letter-spacing: -0.01em; margin: 0 0 12px; }
.cta p { font-size: 18px; color: var(--ink-soft); margin: 0 0 28px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { font-size: 13px; color: var(--ink-muted); margin: 18px 0 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { background: var(--dark-bg); color: var(--dark-text); }
.foot-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.foot-tag { color: var(--dark-muted); font-size: 13px; }

.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--dark-muted);
  margin: 0 0 4px;
}
.foot-col a { color: var(--dark-text); text-decoration: none; font-size: 14px; }
.foot-col a:hover { color: var(--orange-hover); text-decoration: underline; }

.foot-legal {
  max-width: 1180px; margin: 0 auto;
  padding: 20px 24px 40px;
  border-top: 1.5px solid #4A4238;
  color: var(--dark-muted);
  font-size: 12px;
}

/* the footer/privacy strips are always dark, so the focus ring needs contrast */
.foot :focus-visible,
.privacy :focus-visible,
.trust :focus-visible { outline-color: #3FB88D; }

/* ==========================================================================
   Responsive (v3): grids collapse below 900, H1 scales 60 → 40
   ========================================================================== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; }
  .hero-scene { order: -1; }               /* v3: hero stacks, truck above copy */
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 18px; max-width: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .privacy-inner { grid-template-columns: 1fr; gap: 32px; }
  .section-head h2, .privacy h2 { font-size: 32px; }
  .cta h2 { font-size: 34px; }
  .nav-links { gap: 16px; }
}

/* --- phones: collapse the section links into a hamburger drawer --------- */
@media (max-width: 720px) {
  .nav {
    padding: 14px 16px; gap: 8px; flex-wrap: nowrap;
  }
  .brand { font-size: 18px; margin-right: auto; }
  .brand svg { width: 32px; height: 23px; }

  .nav-links { display: none; }             /* the inline links move into the drawer */
  .nav-cta-long { display: none; }
  .nav-cta-short { display: inline; }

  .nav-menu { display: block; position: relative; flex: none; }
  .nav-burger {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; list-style: none; cursor: pointer;
    background: var(--white); color: var(--ink);
    border: var(--outline); border-radius: 11px; box-shadow: var(--lift-sm);
    transition: transform var(--t-fast) var(--ease-fast), box-shadow var(--t-fast) var(--ease-fast);
  }
  .nav-burger::-webkit-details-marker { display: none; }
  .nav-burger:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--shadow-neutral); }
  .nav-menu[open] .nav-burger { background: var(--panel); }
  .nav-burger-box { position: relative; display: block; width: 18px; height: 13px; }
  .nav-burger-box span {
    position: absolute; left: 0; right: 0; height: 2px;
    background: currentColor; border-radius: 2px;
  }
  .nav-burger-box span:nth-child(1) { top: 0; }
  .nav-burger-box span:nth-child(2) { top: 5.5px; }
  .nav-burger-box span:nth-child(3) { top: 11px; }

  .nav-drawer {
    position: absolute; top: calc(100% + 10px); right: 0;
    min-width: 190px;
    display: flex; flex-direction: column; gap: 2px;
    background: var(--white);
    border: var(--outline); border-radius: var(--r-card);
    box-shadow: var(--lift); padding: 8px;
    z-index: 50;
  }
  .nav-drawer a {
    padding: 12px 12px; border-radius: 10px;
    font-family: var(--font-display); font-weight: 600; font-size: 15px;
    color: var(--ink); text-decoration: none;
  }
  .nav-drawer a:hover { background: var(--panel); }
}

@media (max-width: 560px) {
  .section { padding: 48px 20px; }
  .hero-cta, .cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .cta-row .btn { width: 100%; }   /* full-width CTAs on phones — but never the nav */
}

/* ==========================================================================
   Public share viewer
   ========================================================================== */
.share {
  max-width: none;
  background: var(--panel);
  border-top: var(--outline);
  border-bottom: var(--outline);
  padding: 44px 24px;
}
.share-inner { max-width: 820px; margin: 0 auto; }

.share-head { display: flex; align-items: flex-start; gap: var(--s3); margin-bottom: var(--s4); }
.share-head h2 { font-size: 26px; margin: 0 0 4px; }
.share-head p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 60ch; }

.share-tile {
  width: 48px; height: 48px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-100);
  border: 2px solid var(--green);
  border-radius: 13px;
  color: var(--green-press);
}
:root[data-theme="dark"] .share-tile { color: var(--green-ok-text); }
.share-tile .ico { width: 24px; height: 24px; }

.share-row { display: flex; gap: 10px; }
.share-row input {
  flex: 1; min-width: 0;
  font-family: var(--font-body); font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: var(--outline);
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 48px;
}
.share-row input::placeholder { color: var(--ink-muted); }
.share-row input:focus { border-color: var(--green); }
.share-row .btn { min-height: 48px; }

.share-msg { min-height: 20px; margin: var(--s2) 0 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.share-msg.err  { color: var(--orange-err-text); }
.share-msg.warn { color: var(--orange-link); }

.shared-box {
  margin-top: var(--s3);
  background: var(--white);
  border: var(--outline);
  border-radius: var(--r-card);
  box-shadow: var(--lift);
  padding: 20px 22px;
}
.shared-box h3 { font-size: 20px; margin: 0; }
.shared-count {
  display: inline-block; margin-top: 4px;
  font-size: 11px; font-weight: 700;
  color: var(--green-press); background: var(--green-100);
  border-radius: var(--r-pill); padding: 4px 9px;
}
:root[data-theme="dark"] .shared-count { color: var(--green-ok-text); }
.shared-note { white-space: pre-wrap; margin-top: 10px; font-size: 15px; }
.shared-box ul { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 8px; }
.shared-box li {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--cream);
  border: var(--hair);
  border-radius: 12px;
  padding: 10px 13px;
}
.shared-box li a { color: var(--ink); text-decoration: none; font-weight: 600; word-break: break-word; }
.shared-box li a:hover { color: var(--orange-link); text-decoration: underline; }
.shared-url { font-size: 12px; color: var(--ink-muted); }

.share-what { display: none; }
.hidden { display: none !important; }

/* ==========================================================================
   Share mode — arrived via a #s= link.
   Whoever opened this wanted to read something, not to be sold an extension:
   strip the page down to the shared content and one quiet way back.
   ========================================================================== */
body.share-mode .hero,
body.share-mode .trust,
body.share-mode #how,
body.share-mode #features,
body.share-mode #privacy,
body.share-mode #faq,
body.share-mode .cta,
body.share-mode .nav-links > a:not(.btn),
body.share-mode .welcome-back { display: none; }

body.share-mode .share {
  background: var(--cream);
  border-top: none;
  min-height: 60vh;
  padding-top: 32px;
}
body.share-mode .share-what {
  display: inline-block;
  margin-top: var(--s4);
  color: var(--orange-link);
  font-weight: 600;
  text-decoration: none;
}
body.share-mode .share-what:hover { text-decoration: underline; }

/* ==========================================================================
   Returning visitor — they've used the web app before, so don't make them
   hunt for it behind the pitch.
   ========================================================================== */
.welcome-back { display: none; }
body.returning .welcome-back {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green);
  color: #fff;
  border-bottom: var(--outline);
  padding: 12px 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  text-decoration: none;
}
:root[data-theme="dark"] body.returning .welcome-back { color: #10241B; }
body.returning .welcome-back:hover { filter: brightness(1.05); }
.welcome-back .ico { width: 20px; height: 20px; }
.welcome-arrow { transition: transform var(--t-fast) var(--ease-fast); }
body.returning .welcome-back:hover .welcome-arrow { transform: translateX(3px); }

@media (max-width: 560px) {
  .share-row { flex-direction: column; }
  .share-row .btn { width: 100%; }
  .share-head { flex-direction: column; gap: var(--s2); }
}

/* passphrase row — only for a secret share, whose key was never in the link */
.pass-row { margin-top: var(--s2); }
.pass-row input { border-color: var(--green); }
