/* Hunchwire landing v4 kit: light public page (decision 0008), dark product views (0005).
   Single light look by choice, matching hunchwire.com; product views are dark islands. */
:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede7;
  --line: rgba(29, 29, 27, 0.12);
  --line-2: rgba(29, 29, 27, 0.26);
  --ink: #1d1d1b;
  --muted: #57534b;
  --faint: #7c776d;
  --good: #56693f;

  --d-bg: #141416;
  --d-surface: #1b1b1e;
  --d-line: rgba(236, 232, 225, 0.11);
  --d-line-2: rgba(236, 232, 225, 0.22);
  --d-ink: #ece8e1;
  --d-muted: #bab5ab;
  --d-faint: #8f8a81;
  --sage: #b9c4a8;
  --amber: #d9b56c;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* Shared bits */
.wordmark { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.tag { display: inline-flex; align-items: center; gap: 0.35rem; height: 1.4rem; padding: 0 0.5rem; border-radius: 999px; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); background: var(--surface); white-space: nowrap; }
.tag.on-dark { color: var(--d-muted); border-color: var(--d-line-2); background: rgba(236, 232, 225, 0.04); }
.label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 3rem; padding: 0 1.25rem; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 500; cursor: pointer; text-decoration: none; transition: transform 160ms var(--ease), background 160ms var(--ease); }
.btn:hover { background: #000; }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.glyph { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Frames */
.browser { container-type: inline-size; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px -30px rgba(29, 29, 27, 0.35); min-width: 0; }
.browser-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 0.75rem; color: var(--muted); }
.browser-bar .dots { display: flex; gap: 5px; }
.browser-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.browser-bar .url { flex: 1; min-width: 0; height: 1.6rem; display: flex; align-items: center; gap: 0.4rem; padding: 0 0.6rem; border-radius: 6px; background: var(--surface); font-family: var(--mono); font-size: 0.7rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-bar .url b { font-weight: 500; color: var(--ink); }
.browser.dark { background: var(--d-bg); border-color: rgba(29, 29, 27, 0.5); }
.browser.dark .browser-bar { background: #0f0f10; border-color: var(--d-line); color: var(--d-muted); }
.browser.dark .browser-bar .dots i { background: var(--d-line-2); }
.browser.dark .browser-bar .url { background: var(--d-surface); color: var(--d-muted); }
.browser.dark .browser-bar .url b { color: var(--d-ink); }
.frame-body { position: relative; flex: 1; min-height: 0; overflow: hidden; }

/* Founder site (each example business has its own brand, set inline) */
.fsite { --f-bg: #fff; --f-ink: #111; --f-accent: #111; --f-on: #fff; --f-font: var(--sans); height: 100%; background: var(--f-bg); color: var(--f-ink); font-family: var(--sans); font-size: max(12px, 3.1cqi); line-height: 1.5; display: flex; flex-direction: column; }
.fsite-nav { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1.1em 1.4em; }
.fsite-logo { display: flex; align-items: center; gap: 0.5em; font-family: var(--f-font); font-weight: 600; font-size: 1.1em; letter-spacing: -0.01em; }
.fsite-logo .mark { width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 0.45em; background: var(--f-accent); color: var(--f-on); }
.fsite-logo .mark .glyph { width: 1em; height: 1em; stroke-width: 2; }
.fsite-nav small { font-size: 0.8em; opacity: 0.7; }
.fsite-hero { padding: 1.2em 1.4em 1.6em; display: grid; gap: 0.8em; }
.fsite-eyebrow { font-size: 0.78em; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.fsite h3 { margin: 0; font-family: var(--f-font); font-weight: var(--f-weight, 600); font-size: max(22px, 7.4cqi); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.fsite-sub { margin: 0; max-width: 34em; opacity: 0.82; }
.fsite-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6em 1em; margin-top: 0.4em; }
.fsite-cta { display: inline-flex; align-items: center; height: 2.9em; padding: 0 1.2em; border-radius: var(--f-radius, 0.6em); background: var(--f-accent); color: var(--f-on); font-weight: 600; font-size: 0.95em; }
.fsite-price { font-size: 0.9em; }
.fsite-price b { font-family: var(--f-font); font-size: 1.15em; }
.fsite-feats { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid color-mix(in srgb, var(--f-ink) 14%, transparent); }
.fsite-feats div { padding: 0.9em 1.4em 1.1em; font-size: 0.82em; opacity: 0.85; border-right: 1px solid color-mix(in srgb, var(--f-ink) 14%, transparent); }
.fsite-feats div:last-child { border-right: 0; }
.fsite-art { position: absolute; right: -6%; top: 14%; width: 38%; aspect-ratio: 1; color: var(--f-accent); opacity: 0.16; pointer-events: none; }
.fsite-art .glyph { width: 100%; height: 100%; stroke-width: 0.6; }
@container (max-width: 30rem) {
  .fsite-feats { grid-template-columns: 1fr; }
  .fsite-feats div { border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--f-ink) 12%, transparent); padding-block: 0.6em; }
  .fsite { font-size: 13px; }
  .fsite h3 { font-size: 28px; }
  .fsite-art { display: none; }
}

/* Hunchwire admin (dark product view) */
.adm { height: 100%; background: var(--d-bg); color: var(--d-ink); font-family: var(--sans); font-size: 13px; line-height: 1.45; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.adm-top { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--d-line); }
.adm-top .wm { font-family: var(--serif); font-size: 1.02rem; }
.adm-top .crumb { color: var(--d-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.adm-top .crumb b { color: var(--d-ink); font-weight: 500; }
.adm-host { display: flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.9rem 0; color: var(--d-muted); font-family: var(--mono); font-size: 11.5px; min-width: 0; }
.adm-host .live { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--sage); }
.adm-host .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(185, 196, 168, 0.6); animation: live 2s infinite; }
.adm-host span:last-child { min-width: 0; overflow-wrap: anywhere; }
@keyframes live { 70% { box-shadow: 0 0 0 6px rgba(185, 196, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(185, 196, 168, 0); } }
.adm-tabs { display: flex; gap: 1rem; padding: 0.7rem 0.9rem 0; border-bottom: 1px solid var(--d-line); color: var(--d-muted); }
.adm-tabs span { padding-bottom: 0.55rem; }
.adm-tabs span.on { color: var(--d-ink); box-shadow: inset 0 -1.5px 0 var(--d-ink); }
.adm-body { flex: 1; min-height: 0; overflow: hidden; padding: 0.9rem; display: grid; align-content: start; gap: 0.8rem; }
.adm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
@container (max-width: 34rem) { .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adm-tile { padding: 0.6rem 0.7rem; border: 1px solid var(--d-line); border-radius: 10px; background: var(--d-surface); min-width: 0; }
.adm-tile small { display: block; color: var(--d-muted); font-size: 11.5px; }
.adm-tile b { display: block; margin-top: 0.15rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.adm-tile em { font-style: normal; color: var(--d-faint); font-size: 11px; }
.adm-card { border: 1px solid var(--d-line); border-radius: 10px; background: var(--d-surface); padding: 0.7rem 0.8rem; display: grid; gap: 0.5rem; min-width: 0; }
.adm-card h5 { margin: 0; font-size: 11.5px; font-weight: 500; color: var(--d-muted); display: flex; justify-content: space-between; gap: 0.5rem; }
.adm-funnel { display: grid; gap: 0.35rem; }
.adm-funnel div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 2.6rem; align-items: center; gap: 0.5rem; font-size: 12px; color: var(--d-muted); }
.adm-funnel i { display: block; height: 0.55rem; border-radius: 3px; background: var(--d-ink); opacity: 0.85; transform-origin: left; transition: width 600ms var(--ease); }
.adm-funnel div:nth-child(2) i { opacity: 0.6; }
.adm-funnel div:nth-child(3) i { background: var(--sage); opacity: 1; }
.adm-funnel span:last-child { text-align: right; color: var(--d-ink); }
.adm-people { display: grid; }
.adm-person { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; align-items: center; gap: 0.55rem; padding: 0.4rem 0; border-top: 1px solid var(--d-line); font-size: 12px; animation: admin-in 400ms var(--ease) both; }
.adm-person:first-child { border-top: 0; }
.adm-person .av { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: rgba(236, 232, 225, 0.1); font-size: 10.5px; font-weight: 600; }
.adm-person div { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.adm-person div small { color: var(--d-muted); }
.adm-person .what { color: var(--d-muted); white-space: nowrap; }
.adm-person .what.paid { color: var(--sage); }
.adm-note { font-size: 12px; color: var(--d-muted); border-left: 2px solid var(--d-line-2); padding-left: 0.6rem; }
.adm-note b { color: var(--d-ink); font-weight: 500; }
@keyframes admin-in { from { opacity: 0; transform: translateY(6px); } }

/* Sign-up sheet: the embed's own waitlist form inside (Hunchwire decision 0005, #186) */
.sheet-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(29, 29, 27, 0.42); backdrop-filter: blur(3px); display: grid; align-items: end; justify-items: center; opacity: 0; transition: opacity 220ms var(--ease); }
.sheet-scrim.open { opacity: 1; }
.sheet { width: min(30rem, 100%); grid-template-columns: minmax(0, 1fr); max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 18px 18px 0 0; padding: 1.4rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); display: grid; gap: 1rem; transform: translateY(24px); transition: transform 320ms var(--spring); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.3); }
.sheet-scrim.open .sheet { transform: none; }
@media (min-width: 40rem) { .sheet-scrim { align-items: center; } .sheet { border-radius: 18px; padding: 1.75rem; } }
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.sheet h4 { min-width: 0; overflow-wrap: anywhere; margin: 0; font-family: var(--serif); font-weight: 450; font-size: 1.9rem; line-height: 1.05; letter-spacing: -0.02em; }
.sheet p { margin: 0; color: var(--muted); }
.sheet .x { width: 2.25rem; height: 2.25rem; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; flex: none; }
.sheet-summary { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.sheet-summary .mark { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 9px; color: #fff; flex: none; }
.sheet-summary div { min-width: 0; }
.sheet-summary b { display: block; font-weight: 500; }
.sheet-summary small { display: block; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; overflow-wrap: anywhere; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input[type="email"], .field input[type="text"] { width: 100%; min-width: 0; height: 3rem; padding: 0 0.9rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-size: 1rem; }
.field input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.consent { display: flex; gap: 0.6rem; align-items: start; font-size: 0.875rem; color: var(--muted); }
.consent span { min-width: 0; }
.consent input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--ink); }
.sheet .btn { width: 100%; }
textarea.grow { display: block; resize: none; overflow: hidden; field-sizing: content; font: inherit; line-height: 1.35; overflow-wrap: anywhere; }
.fine { font-size: 0.8125rem; color: var(--faint); }

/* App shell: on phones each concept is a full-screen app, not a scrolling page.
   .desk is the desktop page, .app the phone app. Below 52rem only the app shows. */
.app { display: none; }
@media (max-width: 52rem) {
  .desk { display: none !important; }
  .app { display: flex; position: fixed; inset: 0; z-index: 10; }
  html, body { overflow: hidden; overscroll-behavior: none; }
}
.app { --top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px); flex-direction: column; background: var(--bg); color: var(--ink); overflow: hidden; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.app input, .app textarea { user-select: text; -webkit-user-select: text; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); transition: transform 420ms var(--ease), opacity 420ms var(--ease), filter 420ms var(--ease); will-change: transform; }
.screen.is-next { transform: translateX(100%); }
.screen.is-prev { transform: translateX(-30%); opacity: 0.5; filter: brightness(0.96); }
.screen.is-on { transform: none; z-index: 2; box-shadow: -20px 0 40px -30px rgba(0, 0, 0, 0.35); }
.appbar { flex: none; display: flex; align-items: center; gap: 0.5rem; min-height: 3.25rem; padding: calc(var(--top) + 0.35rem) 0.75rem 0.35rem; }
.appbar .title { flex: 1; min-width: 0; text-align: center; font-weight: 600; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar .side { width: 2.75rem; display: flex; justify-content: center; }
.icon-btn { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; color: var(--ink); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.screen-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 1rem 1rem; -webkit-overflow-scrolling: touch; }
.appdock { flex: none; display: grid; gap: 0.6rem; padding: 0.75rem 1rem calc(var(--bottom) + 0.85rem); background: linear-gradient(to top, var(--bg) 70%, rgba(246, 245, 241, 0)); }
.appdock .btn { height: 3.4rem; border-radius: 16px; font-size: 1.02rem; width: 100%; }
.app .btn:active, .app .tile:active { transform: scale(0.97); }
/* Phone app: nothing ever scrolls or spills sideways, and no words are cut off.
   Long names and addresses wrap (overflow-wrap: anywhere) instead of ending in "…". */
.app .appbar .title { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.app .copyline code, .app .meta code { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
@media (max-width: 52rem) { 