/* =========================================================================
   Fitzsimmons Automation — landing page
   Design system per DESIGN.md: warm "clay on white", OKLCH, no beige.
   ========================================================================= */

:root {
  /* Canvas */
  --bg:            oklch(1 0 0);
  --surface:       oklch(0.985 0.006 70);
  --surface-sunk:  oklch(0.965 0.008 70);

  /* Dark feature world */
  --ink-bg:        oklch(0.19 0.014 55);
  --ink-bg-soft:   oklch(0.235 0.016 55);

  /* Text */
  --ink:           oklch(0.23 0.020 55);
  --muted:         oklch(0.45 0.020 55);
  --on-dark:       oklch(0.96 0.012 80);
  --on-dark-muted: oklch(0.80 0.012 78);

  /* Brand */
  --primary:       oklch(0.575 0.135 46);
  --primary-press: oklch(0.50 0.135 44);
  --primary-tint:  oklch(0.95 0.030 50);
  --accent:        oklch(0.74 0.105 80);
  --accent-deep:   oklch(0.60 0.105 78);

  /* Lines */
  --line:          oklch(0.91 0.008 70);
  --line-dark:     oklch(0.34 0.012 60);

  /* Type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  /* Fluid type scale (~1.25) */
  --step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.95rem);
  --step-0:  clamp(1.06rem, 1rem + 0.3vw, 1.18rem);
  --step-1:  clamp(1.3rem, 1.18rem + 0.55vw, 1.6rem);
  --step-2:  clamp(1.6rem, 1.38rem + 1vw, 2.2rem);
  --step-3:  clamp(2rem, 1.6rem + 1.9vw, 3.1rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.3vw, 4.6rem);

  /* Spacing */
  --gap: clamp(1rem, 0.8rem + 0.9vw, 1.5rem);
  --section-y: clamp(4rem, 3rem + 6vw, 8rem);
  --wrap: 1140px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-cta: 0 1px 2px oklch(0.5 0.13 46 / 0.25), 0 12px 28px -10px oklch(0.55 0.13 46 / 0.5);
  --shadow-soft: 0 1px 3px oklch(0.2 0.02 55 / 0.06), 0 18px 40px -24px oklch(0.2 0.02 55 / 0.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; } /* ensure the hidden attribute wins over display: grid/flex */
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--on-dark);
  padding: 0.6rem 1rem; border-radius: 8px; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Kicker / labels ---------- */
.kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.kicker::before {
  content: ""; width: 1.6rem; height: 2px; background: var(--accent); border-radius: 2px;
}

.hl { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--step-0);
  line-height: 1; white-space: nowrap;
  padding: 0.9rem 1.4rem; min-height: 44px;
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease-out), background 0.2s, box-shadow 0.25s var(--ease-out), color 0.2s;
}
.btn-lg { padding: 1.05rem 1.8rem; font-size: var(--step-0); }
.btn-sm { padding: 0.6rem 1.05rem; min-height: 38px; font-size: var(--step--1); }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: oklch(1 0 0); box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--primary-press); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(1 0 0 / 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--primary); color: oklch(1 0 0);
  border-radius: 10px; font-size: 1.1rem; font-weight: 800;
  box-shadow: var(--shadow-cta);
}
.brand-name { font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-amp { color: var(--accent-deep); margin: 0 0.06em; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.site-nav > a:not(.btn) { font-weight: 500; font-size: var(--step--1); color: var(--muted); transition: color 0.2s; }
.site-nav > a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) {
  .site-nav > a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-top: clamp(2.5rem, 2rem + 3vw, 5rem); padding-bottom: var(--section-y); }
.hero-bloom {
  position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background: radial-gradient(60% 60% at 70% 30%, oklch(0.85 0.09 55 / 0.5), transparent 70%),
              radial-gradient(50% 50% at 20% 10%, oklch(0.9 0.06 80 / 0.45), transparent 70%);
  filter: blur(10px); z-index: -1; pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.hero-copy { max-width: 38ch; }
.kicker { } /* defined above */
h1#hero-title { font-size: var(--step-4); font-weight: 800; margin: 0.2rem 0 1.2rem; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 34ch; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 2rem 0 1.2rem; }
.hero-reassure { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.hero-reassure span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-reassure span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy, .lede { max-width: 100%; }
  .hero-visual { order: -1; }
}

/* ---------- Photo slots ---------- */
.photo-slot {
  position: relative; border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, var(--surface) 0 14px, var(--surface-sunk) 14px 28px);
  border: 2px dashed oklch(0.575 0.135 46 / 0.5);
  display: grid; place-items: center; text-align: center;
  padding: 2rem; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.photo-slot::after {
  content: "PHOTO SLOT";
  position: absolute; top: 0.9rem; right: 0.9rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.12em;
  color: oklch(1 0 0); background: var(--primary);
  padding: 0.3rem 0.55rem; border-radius: 6px;
}
.photo-slot-inner { max-width: 30ch; display: grid; gap: 0.5rem; justify-items: center; }
.photo-ico { width: 44px; height: 44px; fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.photo-slot-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--ink); }
.photo-slot-note { font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
/* ---------- Hero visual: "your AI, working now" panel ---------- */
.hero-visual { margin: 0; }
.device {
  background: var(--bg); border: 1px solid var(--line); border-radius: clamp(18px, 2vw, 24px);
  box-shadow: var(--shadow-soft); overflow: hidden;
}
.device-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--surface);
}
.device-status { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: var(--step--1); color: var(--ink); }
.device-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 oklch(0.575 0.135 46 / 0.55); animation: pulse 2.4s var(--ease-out) infinite; }
.device-clock { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.feed { list-style: none; margin: 0; padding: 0.4rem 0.5rem; display: grid; }
.feed-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem; padding: 0.85rem 0.7rem; border-radius: 12px; }
.feed-row + .feed-row { border-top: 1px solid var(--line); }
.feed-ico { display: grid; place-items: center; width: 38px; height: 38px; background: var(--primary-tint); border-radius: 10px; }
.feed-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feed-body { display: grid; gap: 0.1rem; min-width: 0; }
.feed-title { font-weight: 600; color: var(--ink); font-size: var(--step-0); }
.feed-meta { color: var(--muted); font-size: var(--step--1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-time { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.device-foot { padding: 0.9rem 1.3rem 1.2rem; font-size: var(--step--1); color: var(--muted); border-top: 1px solid var(--line); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.575 0.135 46 / 0.5); }
  70% { box-shadow: 0 0 0 9px oklch(0.575 0.135 46 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.575 0.135 46 / 0); }
}
@media (prefers-reduced-motion: reduce) { .device-pulse { animation: none; } }

/* ---------- Founder signature card (faceless) ---------- */
.founder-card {
  margin: 0; align-self: stretch; display: grid; align-content: center; gap: 1.4rem;
  background: var(--ink-bg); color: var(--on-dark);
  border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.founder-card::before {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; height: 80%;
  background: radial-gradient(closest-side, oklch(0.55 0.13 46 / 0.4), transparent); pointer-events: none;
}
.founder-mark {
  display: grid; place-items: center; width: 52px; height: 52px;
  background: var(--primary); color: oklch(1 0 0); border-radius: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; box-shadow: var(--shadow-cta);
}
.founder-pledge {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.02em; color: var(--on-dark);
  text-wrap: balance;
}
.founder-card-by { color: var(--on-dark-muted); font-size: var(--step--1); position: relative; }

/* ---------- Section heads ---------- */
section { padding-block: var(--section-y); }
.section-head { max-width: 56ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--step-3); }
.section-sub { margin-top: 1rem; font-size: var(--step-1); color: var(--muted); line-height: 1.5; }

/* ---------- What we do ---------- */
.what { background: var(--bg); }
.offer-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 5vw, 5rem);
}
.offer { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.offer-mark {
  display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0;
  background: var(--primary-tint); border-radius: 12px;
}
.offer-mark svg { width: 24px; height: 24px; fill: none; stroke: var(--primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.offer-text h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.offer-text p { color: var(--muted); font-size: var(--step-0); line-height: 1.55; }
.what-foot { margin-top: clamp(2.5rem, 5vw, 4rem); font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; max-width: 22ch; line-height: 1.2; letter-spacing: -0.02em; }
.what-foot em { font-style: normal; color: var(--primary); }
@media (max-width: 680px) { .offer-list { grid-template-columns: 1fr; } }

/* ---------- How it works (dark band) ---------- */
.how { background: var(--ink-bg); color: var(--on-dark); border-radius: clamp(20px, 3vw, 36px); margin-inline: clamp(0px, 2vw, 1.5rem); position: relative; overflow: hidden; }
.how::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; height: 80%;
  background: radial-gradient(closest-side, oklch(0.55 0.13 46 / 0.35), transparent);
  pointer-events: none;
}
.how h2, .how .section-sub { color: var(--on-dark); }
.how .section-sub { color: var(--on-dark-muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: none; }
.step { position: relative; padding: 1.8rem; background: var(--ink-bg-soft); border: 1px solid var(--line-dark); border-radius: var(--radius); }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--accent); letter-spacing: 0.04em; }
.step h3 { color: var(--on-dark); font-size: var(--step-1); margin: 0.8rem 0 0.5rem; }
.step p { color: var(--on-dark-muted); font-size: var(--step-0); line-height: 1.55; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.founder-prose { margin-top: 1rem; display: grid; gap: 1rem; }
.founder-prose p { color: var(--muted); font-size: var(--step-0); line-height: 1.65; max-width: 60ch; }
.founder-city { display: block; margin-top: 0.6rem; color: var(--ink); font-weight: 600; }
.founder-sign { margin-top: 1.4rem; font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); }
@media (max-width: 800px) { .founder-grid { grid-template-columns: 1fr; } }

/* ---------- Founding clients ---------- */
.founding { background: var(--surface); border-radius: clamp(20px, 3vw, 36px); margin-inline: clamp(0px, 2vw, 1.5rem); }
.founding-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.founding-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-soft); }
.founding-ico { display: grid; place-items: center; width: 48px; height: 48px; background: var(--ink); border-radius: 12px; margin-bottom: 1.1rem; }
.founding-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.founding-card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.founding-card p { color: var(--muted); line-height: 1.55; }
.founding-foot { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; font-weight: 600; color: var(--ink); }

/* ---------- Start / form ---------- */
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.start-copy h2 { font-size: var(--step-3); }
.start-sub { margin: 1rem 0 1.5rem; font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.start-points { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.8rem; }
.start-points li { position: relative; padding-left: 2rem; color: var(--ink); }
.start-points li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 1.3rem; height: 1.3rem;
  background: var(--primary-tint); border-radius: 50%;
}
.start-points li::after {
  content: ""; position: absolute; left: 0.42rem; top: 0.42em; width: 0.45rem; height: 0.25rem;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.start-alt { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.start-alt p { font-weight: 600; margin-bottom: 0.5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--primary); margin-right: 1.4rem; }
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

.start-form-wrap { position: relative; }
.start-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-soft); display: grid; gap: 1.05rem; }
.form-lead { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--ink); }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.field input, .field select {
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  padding: 0.8rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: oklch(0.6 0.01 55); }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px oklch(0.575 0.135 46 / 0.18); }
.field input:user-invalid { border-color: oklch(0.55 0.16 25); }
.form-fineprint { font-size: var(--step--1); color: var(--muted); text-align: center; line-height: 1.45; }
.form-error { font-size: var(--step--1); color: oklch(0.52 0.17 25); text-align: center; line-height: 1.45; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot: off-screen, not display:none so bots still see it */
.btn:disabled { opacity: 0.75; cursor: progress; transform: none; }

.form-success { text-align: center; padding: clamp(2rem, 4vw, 3rem) 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); display: grid; gap: 0.7rem; place-items: center; }
.success-tick { display: grid; place-items: center; width: 56px; height: 56px; background: var(--primary); border-radius: 50%; box-shadow: var(--shadow-cta); }
.success-tick svg { width: 28px; height: 28px; fill: none; stroke: oklch(1 0 0); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: var(--step-2); }
.form-success p { color: var(--muted); max-width: 40ch; }
.success-note { font-size: var(--step--1); font-style: italic; }
@media (max-width: 820px) { .start-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-bg); color: var(--on-dark); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; max-width: 40ch; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.footer-tag { color: var(--on-dark-muted); font-size: var(--step--1); margin-top: 0.2rem; }
.footer-contact { display: grid; gap: 0.6rem; }
.footer-contact a { color: var(--on-dark-muted); font-weight: 500; transition: color 0.2s; }
.footer-contact a:hover { color: var(--on-dark); }
.footer-base { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; padding-top: 1.5rem; font-size: var(--step--1); color: var(--on-dark-muted); }

/* ---------- Reveal motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
