/* ==========================================================================
   First Cutt — Interactive Demo · the ONE stylesheet (fc.css)
   Design system per MASTER-BRIEF §2: ONE accent (teal), everything else
   neutral ink/grey. --fc-caution appears ONLY in the honesty panel.
   Every page (hub + 5 experiences) links this file and nothing else.
   ========================================================================== */

/* ---- Fonts (self-hosted, no CDN) ----------------------------------------- */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens -------------------------------------------------------- */
:root {
  --fc-ink:      #14231C;   /* near-black deep-green: headlines, dark sections, footer */
  --fc-accent:   #0D9488;   /* THE single accent — buttons, links, key numbers, bands  */
  --fc-accent-d: #0F766E;   /* hover / darker accent                                    */
  --fc-paper:    #F7F8F7;   /* page background                                          */
  --fc-paper2:   #EDF0EF;   /* alt panel background                                     */
  --fc-line:     #D9DFDC;   /* hairlines / borders                                      */
  --fc-slate:    #556B62;   /* muted labels                                             */
  --fc-body:     #2C3A34;   /* body text                                                */
  --fc-white:    #FFFFFF;   /* cards                                                    */
  --fc-caution:  #B45309;   /* RESERVED — honesty/"demo scope" panel ONLY               */

  --fc-font-display: "Figtree", "Poppins", system-ui, sans-serif;
  --fc-font-body: "Open Sans", "Inter", system-ui, sans-serif;

  --fc-radius: 10px;
  --fc-radius-sm: 8px;
  --fc-shadow-1: 0 1px 3px rgba(20, 35, 28, 0.07), 0 4px 14px rgba(20, 35, 28, 0.05);
  --fc-shadow-2: 0 6px 24px rgba(20, 35, 28, 0.13);
  --fc-focus: rgba(13, 148, 136, 0.32);

  --sp-1: 6px; --sp-2: 10px; --sp-3: 16px; --sp-4: 24px; --sp-5: 36px; --sp-6: 56px;
  --fc-maxw: 1080px;
}

/* ---- Reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fc-font-body);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--fc-body);
  background: var(--fc-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;                 /* iPhone-390 guarantee */
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--fc-font-display);
  color: var(--fc-ink);
  line-height: 1.16;
  margin: 0 0 var(--sp-3);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 var(--sp-3); }
ul, ol { margin: 0 0 var(--sp-3); padding-left: 1.25em; }
a { color: var(--fc-accent-d); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--fc-accent); }
strong { color: var(--fc-ink); }
button { font: inherit; }
:focus-visible {
  outline: 3px solid var(--fc-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.accent { color: var(--fc-accent); }
.muted { color: var(--fc-slate); }

.container { max-width: var(--fc-maxw); margin: 0 auto; padding: 0 var(--sp-4); }
.section { padding: var(--sp-6) var(--sp-4); max-width: var(--fc-maxw); margin: 0 auto; }
.section--alt { background: var(--fc-paper2); max-width: none; }
.section--alt > .section-inner { max-width: var(--fc-maxw); margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--fc-ink); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--fc-radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---- Top nav (.fc-nav) ------------------------------------------------------
   Hub:   <header class="fc-nav"><a class="fc-nav__brand" href=".">FIRST <span>CUTT</span></a>
            <span class="fc-nav__tag">Interactive Demo</span></header>
   Pages: same, brand href="../", plus <a class="fc-nav__back" href="../">← All experiences</a>
------------------------------------------------------------------------------ */
.fc-nav {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  padding: 14px var(--sp-4);
  background: var(--fc-white);
  border-bottom: 1px solid var(--fc-line);
  position: sticky; top: 0; z-index: 50;
}
.fc-nav__brand {
  font-family: var(--fc-font-display);
  font-weight: 800; font-size: 1.22rem; letter-spacing: 0.06em;
  color: var(--fc-ink); text-decoration: none; white-space: nowrap;
}
.fc-nav__brand span { color: var(--fc-accent); }
.fc-nav__brand::after {                 /* the small accent "cutt" mark */
  content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 7px;
  background: var(--fc-accent); border-radius: 2px;
  transform: rotate(45deg) translateY(-2px);
}
.fc-nav__tag {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--fc-slate);
  border: 1px solid var(--fc-line); border-radius: 999px; padding: 3px 12px;
  white-space: nowrap;
}
.fc-nav__back {
  margin-left: auto;
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  color: var(--fc-accent-d); white-space: nowrap;
}
.fc-nav__back:hover { color: var(--fc-accent); text-decoration: underline; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  font-family: var(--fc-font-display); font-weight: 700; font-size: 16px;
  border-radius: var(--fc-radius-sm);
  border: 2px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--fc-accent); color: #fff; }
.btn--primary:hover { background: var(--fc-accent-d); color: #fff; }
.btn--secondary { background: transparent; color: var(--fc-ink); border-color: var(--fc-ink); }
.btn--secondary:hover { background: var(--fc-ink); color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  border-radius: 50%; animation: fc-spin .7s linear infinite;
}
.btn--secondary.is-busy::after { border-color: rgba(20,35,28,.25); border-top-color: var(--fc-ink); }
@keyframes fc-spin { to { transform: rotate(360deg); } }

/* ---- Hero -------------------------------------------------------------------- */
.hero {
  background: linear-gradient(150deg, var(--fc-ink) 0%, #1C332A 55%, var(--fc-accent-d) 140%);
  color: #E7EEEA;
  padding: clamp(56px, 9vw, 104px) var(--sp-4);
}
.hero__inner { max-width: var(--fc-maxw); margin: 0 auto; }
.hero__eyebrow {
  font-family: var(--fc-font-display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #9CC8BE;
  margin-bottom: var(--sp-3);
}
.hero__title { color: #fff; max-width: 17ch; margin-bottom: var(--sp-3); }
.hero__lede { max-width: 62ch; font-size: 18px; color: #C9D6D0; }
.hero__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin: var(--sp-4) 0 var(--sp-3); }
.hero .btn--secondary { color: #fff; border-color: rgba(255,255,255,.65); }
.hero .btn--secondary:hover { background: #fff; color: var(--fc-ink); border-color: #fff; }
.hero__note { font-size: 14px; color: #9CB4AB; margin: 0; }

/* ---- Section head ------------------------------------------------------------ */
.section-head { max-width: 720px; margin-bottom: var(--sp-5); }
.section-head h2 { margin-bottom: var(--sp-2); }
.section-head p { color: var(--fc-slate); font-size: 17px; margin: 0; }

/* ---- Cards -------------------------------------------------------------------- */
.card {
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow-1);
  padding: var(--sp-4);
}

/* ---- Band (accent left-border callout) ---------------------------------------- */
.band {
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-left: 4px solid var(--fc-accent);
  border-radius: var(--fc-radius-sm);
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-4) 0;
}
.band p:last-child { margin-bottom: 0; }

/* ---- Project grid + cards ------------------------------------------------------ */
.project-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.project {
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow-1);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.project:hover { box-shadow: var(--fc-shadow-2); transform: translateY(-2px); }
.project__band {
  background: var(--fc-ink); color: #9CC8BE;
  font-family: var(--fc-font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px var(--sp-4);
}
.project__body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.project__body h3 { margin-bottom: var(--sp-2); }
.project__summary { color: var(--fc-slate); font-size: 15.5px; }
.project__list { font-size: 15px; padding-left: 1.15em; }
.project__list li { margin-bottom: 5px; }
.project__price { font-size: 15px; color: var(--fc-slate); margin-bottom: var(--sp-2); }
.project__price strong { font-size: 1.35rem; color: var(--fc-accent-d); font-family: var(--fc-font-display); }
.project__body .btn { margin-top: auto; }

/* ---- Pricing block (house convention: Founder headline, Standard sub) ----------
   <div class="pricing">
     <p class="pricing__founder"><span class="pricing__label">Founder</span> <strong>$2,600</strong></p>
     <p class="pricing__standard">Standard $4,200</p>
   </div>
---------------------------------------------------------------------------------- */
.pricing { margin: var(--sp-3) 0; }
.pricing__founder {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 2px;
  font-family: var(--fc-font-display);
}
.pricing__founder strong {
  font-size: clamp(1.7rem, 4vw, 2.1rem); font-weight: 800; color: var(--fc-accent-d);
  letter-spacing: -0.01em;
}
.pricing__label {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: #fff; background: var(--fc-accent);
  border-radius: 4px; padding: 3px 8px;
}
.pricing__standard { margin: 0; font-size: 15px; color: var(--fc-slate); }
.pricing__note { margin: var(--sp-1) 0 0; font-size: 13.5px; color: var(--fc-slate); }

/* ---- Forms (.field — submit-form.js toggles the validation classes) ------------ */
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block; margin-bottom: var(--sp-1);
  font-family: var(--fc-font-display); font-weight: 600; font-size: 15px; color: var(--fc-ink);
}
.field label .req { color: var(--fc-accent-d); }
.field__hint { display: block; font-size: 13px; color: var(--fc-slate); margin-top: var(--sp-1); }
.field input, .field select, .field textarea {
  display: block; width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: 16px;      /* ≥16px prevents iOS zoom-on-focus */
  color: var(--fc-ink);
  background: var(--fc-white);
  border: 1.5px solid var(--fc-line);
  border-radius: var(--fc-radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--fc-accent);
  box-shadow: 0 0 0 3px var(--fc-focus);
}
.field.field--invalid input, .field.field--invalid select, .field.field--invalid textarea {
  border-color: #B4534D;               /* muted error red-brown for form validation only, NOT a decorative accent */
}
.field.field--invalid input:focus, .field.field--invalid textarea:focus {
  box-shadow: 0 0 0 3px rgba(180, 83, 77, 0.28);
}
.field__error { display: block; margin-top: var(--sp-1); font-size: 14px; color: #A03F39; }
.field.field--valid input, .field.field--valid textarea { border-color: var(--fc-accent); }

/* Honeypot — off-screen, never display:none (some bots skip those fields). */
.hp-wrap {
  position: absolute !important; left: -9999px !important; top: auto !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---- Toasts (aria-live, created by submit-form.js / site.js) -------------------- */
.toast-region {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: var(--sp-2); align-items: center;
  z-index: 1000; width: min(92vw, 480px); pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background: var(--fc-ink); color: #fff;
  border-left: 4px solid var(--fc-accent);
  border-radius: var(--fc-radius-sm);
  box-shadow: var(--fc-shadow-2);
  font-size: 15px; line-height: 1.45;
  animation: fc-toast-in .25s ease;
}
.toast--success { border-left-color: var(--fc-accent); }
.toast--error { border-left-color: #B4534D; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
@keyframes fc-toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---- Chat (.fc-chat — the concierge + coach widget) ------------------------------
   <div class="fc-chat">
     <div class="fc-chat__log" role="log" aria-live="polite">
       <div class="fc-chat__msg fc-chat__msg--bot">…</div>
       <div class="fc-chat__msg fc-chat__msg--user">…</div>
       <div class="fc-chat__typing"><span></span><span></span><span></span></div>
     </div>
     <div class="fc-chat__chips">
       <button class="fc-chat__chip">How do I reset a frozen sim?</button>…
     </div>
     <form class="fc-chat__inputrow">
       <input class="fc-chat__input" …><button class="btn btn--primary">Send</button>
     </form>
   </div>
------------------------------------------------------------------------------------ */
.fc-chat {
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow-1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.fc-chat__log {
  flex: 1; min-height: 260px; max-height: min(56vh, 520px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
  background: var(--fc-paper);
}
.fc-chat__msg {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 15.5px; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: break-word;
}
.fc-chat__msg--bot {
  align-self: flex-start;
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-bottom-left-radius: 4px;
  color: var(--fc-body);
}
.fc-chat__msg--user {
  align-self: flex-end;
  background: var(--fc-accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.fc-chat__typing {
  align-self: flex-start;
  display: inline-flex; gap: 5px; padding: 13px 16px;
  background: var(--fc-white); border: 1px solid var(--fc-line);
  border-radius: 14px; border-bottom-left-radius: 4px;
}
.fc-chat__typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fc-slate);
  animation: fc-typing 1.1s infinite ease-in-out;
}
.fc-chat__typing span:nth-child(2) { animation-delay: .15s; }
.fc-chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes fc-typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.fc-chat__chips {
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
  padding: var(--sp-2) var(--sp-4);
  border-top: 1px solid var(--fc-line);
  background: var(--fc-white);
}
.fc-chat__chip {
  border: 1px solid var(--fc-line);
  background: var(--fc-paper);
  color: var(--fc-accent-d);
  font-family: var(--fc-font-display); font-weight: 600; font-size: 13.5px;
  border-radius: 999px; padding: 7px 14px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.fc-chat__chip:hover { background: var(--fc-accent); border-color: var(--fc-accent); color: #fff; }
.fc-chat__inputrow {
  display: flex; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--fc-line);
  background: var(--fc-white);
  margin: 0;
}
.fc-chat__input {
  flex: 1; min-width: 0;
  padding: 12px 14px;
  font: inherit; font-size: 16px;
  color: var(--fc-ink);
  border: 1.5px solid var(--fc-line);
  border-radius: var(--fc-radius-sm);
}
.fc-chat__input:focus { outline: none; border-color: var(--fc-accent); box-shadow: 0 0 0 3px var(--fc-focus); }

/* ---- Honesty panel (real vs demo scope) — the ONLY place --fc-caution appears --- */
.honesty {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.honesty__col {
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-top: 4px solid var(--fc-accent);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow-1);
  padding: var(--sp-4);
}
.honesty__col--scope { border-top-color: var(--fc-caution); }
.honesty__col h3 {
  font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fc-accent-d); margin-bottom: var(--sp-3);
}
.honesty__col--scope h3 { color: var(--fc-caution); }
.honesty__col ul { margin: 0; padding-left: 1.15em; font-size: 15.5px; }
.honesty__col li { margin-bottom: 8px; }
.honesty__col li:last-child { margin-bottom: 0; }

/* ---- Scan-to-phone QR block ------------------------------------------------------ */
.scan {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow-1);
  padding: var(--sp-4);
}
.scan img {
  width: 148px; height: 148px; flex: none;
  border: 1px solid var(--fc-line); border-radius: var(--fc-radius-sm);
  image-rendering: pixelated;
}
.scan__text { flex: 1; min-width: 220px; }
.scan__text h3 { margin-bottom: var(--sp-1); }
.scan__text p { margin: 0; color: var(--fc-slate); font-size: 15.5px; }
.scan__url {
  display: inline-block; margin-top: var(--sp-2);
  font-family: var(--fc-font-display); font-weight: 700; color: var(--fc-accent-d);
  word-break: break-all;
}

/* ---- Footer ----------------------------------------------------------------------- */
.fc-footer {
  background: var(--fc-ink); color: #9CB4AB;
  padding: var(--sp-5) var(--sp-4);
  margin-top: var(--sp-6);
  font-size: 14.5px;
}
.fc-footer__inner { max-width: var(--fc-maxw); margin: 0 auto; }
.fc-footer a { color: #C9D6D0; }
.fc-footer a:hover { color: #fff; }
.fc-footer__disclaimer {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: var(--sp-3); padding-top: var(--sp-3);
  font-size: 13.5px; color: #7E9A8F;
}
.fc-footer p { margin-bottom: var(--sp-2); }

/* ---- Small screens ------------------------------------------------------------------ */
@media (max-width: 640px) {
  .section { padding: var(--sp-5) var(--sp-3); }
  .fc-nav { padding: 12px var(--sp-3); }
  .fc-nav__tag { display: none; }               /* keep one uncluttered row on phones */
  .hero { padding-left: var(--sp-3); padding-right: var(--sp-3); }
  .hero__actions .btn { flex: 1 1 100%; }
  .scan { justify-content: center; text-align: center; }
  .scan__text { min-width: 100%; }
  .fc-chat__msg { max-width: 94%; }
}

/* ---- Reduced motion ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .project:hover { transform: none; }
}
