/* =============================================================
   1pc — core stylesheet
   The v2 design system, per 1pc-brand-and-style-guide.md.
   Legacy tokens (--accent, --muted, --rule, --warm) remain as
   aliases so v1 pages still linking this stylesheet keep
   rendering until they're migrated.
   ============================================================= */

:root {
  /* Neutrals */
  --paper:        #f8f6f1;
  --paper-warm:   #f0ede6;
  --paper-deeper: #e8e3d6;
  --ink:          #1a1a18;
  --ink-soft:     #4a4a45;
  --ink-faded:    #8a8a82;

  /* Brand greens */
  --green-deep:   #2d5a3d;
  --green-darker: #1f3f2b;

  /* Ochre — warmth */
  --ochre:        #c89b3c;
  --ochre-soft:   #e0b865;
  --ochre-deep:   #a07d28;
  --ochre-tint:   #f7eed7;

  /* Green tint + product surfaces (used by chat shell on the homepage) */
  --green-tint:   #e8f0e9;
  --product-bg:   #f3f5f4;
  --card-bg:      #ffffff;

  /* Warning — sparingly */
  --warn:         #b8622a;
  --warn-bg:      #f4e8d8;

  /* Fonts */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  /* Legacy aliases for v1 pages still on this stylesheet */
  --accent:       #2d5a3d;
  --accent-light: #3a7350;
  --muted:        #4a4a45;
  --rule:         #e8e3d6;
  --warm:         #f0ede6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* Skip link — mandatory accessibility entry */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--green-deep);
  color: var(--paper);
  padding: 8px 16px;
  z-index: 200;
  font-size: 14px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* =============================================================
   Section primitives (v2)
   ============================================================= */
.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ochre-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  text-align: center;
}

.section-heading {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 24px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
  text-align: center;
  max-width: 580px;
  margin: 0 auto 80px;
}

.section-divider {
  max-width: 1080px;
  margin: 0 auto;
  height: 1px;
  background: var(--paper-deeper);
}

/* Inline ochre pill marking forward-looking capability claims. */
.coming-soon {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(200, 155, 60, 0.14);
  color: var(--ochre-deep);
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  border: 1px solid rgba(200, 155, 60, 0.3);
}

.input-line .coming-soon,
.pair-detail .coming-soon {
  display: inline-block;
  margin-top: 8px;
}

/* =============================================================
   NAV
   ============================================================= */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px max(48px, calc((100vw - 1280px) / 2));
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--paper-deeper);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--green-deep);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark { width: 38px; height: 38px; }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green-deep); }

.nav-links .nav-cta {
  background: var(--green-deep);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-links .nav-cta:hover { background: var(--green-darker); color: var(--paper); }

/* Mobile burger — hidden until ≤900px */
.burger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink-soft);
}
.burger svg { width: 24px; height: 24px; display: block; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 48px 80px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ochre-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--ochre);
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--green-deep);
  position: relative;
  display: inline-block;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--ochre-soft);
  z-index: -1;
  opacity: 0.45;
  transform: skew(-8deg);
}

.hero p.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--green-deep);
  color: var(--paper);
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover {
  background: var(--green-darker);
  transform: translateY(-1px);
}

.hero-note {
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(45, 90, 61, 0.25),
              0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-accent-blob {
  position: absolute;
  top: -28px;
  left: -28px;
  width: 110px;
  height: 110px;
  background: var(--ochre);
  border-radius: 50%;
  opacity: 0.85;
  z-index: -1;
}

.hero-note-card {
  position: absolute;
  bottom: -32px;
  right: -28px;
  background: var(--paper);
  padding: 18px 22px;
  border-radius: 3px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.18);
  transform: rotate(-2deg);
  max-width: 260px;
  border-left: 3px solid var(--ochre);
  z-index: 2;
}

.hero-note-card .note-quote {
  font-family: 'Caveat', cursive;
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
}

.hero-note-card .note-attribution {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
  font-style: italic;
}

/* Trust strip */
.trust-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px 80px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-line {
  flex: 1;
  height: 1px;
  background: var(--paper-deeper);
  min-width: 60px;
}

.trust-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 520px;
  letter-spacing: -0.005em;
}

/* =============================================================
   HOW YOU USE IT (prompts + decision-card screenshot)
   ============================================================= */
.how-you-use-it {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 96px;
}

.huui-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}

.huui-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.prompts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.prompt-row {
  padding: 22px 0 20px;
  border-top: 1px solid var(--paper-deeper);
  position: relative;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prompt-row:last-child { border-bottom: 1px solid var(--paper-deeper); }

.prompt-row.revealed { opacity: 1; }

.prompt-row::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ochre);
  transition: width 0.4s ease;
}

.prompt-row.revealed::before { width: 32px; }

.prompt-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  min-height: 1.35em;
  letter-spacing: -0.01em;
}

.prompt-text .cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  background: var(--green-deep);
  margin-left: 2px;
  vertical-align: text-top;
  transform: translateY(2px);
  animation: blink 0.9s step-end infinite;
}

.prompt-text .cursor.done { display: none; }

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.prompt-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-faded);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease 0.15s;
}

.prompt-row.revealed .prompt-tag { opacity: 1; }

.huui-bridge {
  margin-top: 36px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 460px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.huui-bridge strong {
  font-style: normal;
  font-weight: 500;
  color: var(--green-deep);
}

/* ===== Chat shell — homepage "How you use it" ===== */
.chat-shell {
  max-width: 900px;
  margin: 0 auto;
  background: var(--product-bg);
  border-radius: 20px;
  padding: 36px 36px 24px;
  box-shadow:
    0 1px 2px rgba(20, 30, 24, 0.04),
    0 24px 56px -28px rgba(45, 90, 61, 0.20);
  position: relative;
  overflow: hidden;
}

.chat-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0px,
    transparent 22px,
    rgba(45, 90, 61, 0.028) 22px,
    rgba(45, 90, 61, 0.028) 23px
  );
  pointer-events: none;
  z-index: 0;
}

.chat-thread {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}

.exchange {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  opacity: 0.32;
  transition: opacity 0.4s ease;
}

.exchange.revealed { opacity: 1; }

.user-bubble {
  background: var(--ochre-tint);
  color: var(--ink);
  border-radius: 16px 16px 4px 16px;
  padding: 16px 20px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  min-height: 56px;
  box-shadow: 0 1px 2px rgba(20, 30, 24, 0.04);
  justify-self: end;
  max-width: 100%;
}

.user-bubble .cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  background: var(--ochre-deep);
  margin-left: 2px;
  vertical-align: text-top;
  transform: translateY(2px);
  animation: blink 0.9s step-end infinite;
}

.user-bubble .cursor.done { display: none; }

.system-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 18px 22px;
  border-left: 3px solid var(--green-deep);
  box-shadow:
    0 1px 2px rgba(20, 30, 24, 0.04),
    0 14px 32px -18px rgba(45, 90, 61, 0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

.exchange.responded .system-card {
  opacity: 1;
  transform: translateY(0);
}

.system-card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--green-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.system-card-content {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
  font-weight: 500;
}

.system-card-content strong { font-weight: 600; }

.system-card-meta {
  font-size: 13px;
  color: var(--ink-faded);
  margin-top: 4px;
  font-weight: 400;
}

.chat-input {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow:
    0 1px 2px rgba(20, 30, 24, 0.04),
    0 12px 28px -16px rgba(45, 90, 61, 0.15);
}

.chat-input-placeholder {
  flex: 1;
  font-size: 15px;
  color: var(--ink-faded);
}

.chat-input-mic {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.chat-input-send {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #9ab8a3;
  color: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .chat-shell { padding: 24px 20px 18px; border-radius: 16px; }
  .exchange { grid-template-columns: 1fr; gap: 12px; }
  .user-bubble { justify-self: stretch; font-size: 16px; }
  .chat-thread { gap: 24px; }
}

/* Phone mock + decision cards */
.phone-mock {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 30px 80px -20px rgba(45, 90, 61, 0.3),
              0 10px 30px -10px rgba(0, 0, 0, 0.15);
  position: relative;
}

.phone-mock::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: var(--ink);
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  background: var(--paper);
  border-radius: 28px;
  padding: 50px 16px 24px;
  overflow: hidden;
}

.phone-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  padding: 0 8px;
}

.phone-screen-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.phone-screen-date {
  font-size: 12px;
  color: var(--ink-faded);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.phone-screen-greeting {
  padding: 0 8px;
  margin-bottom: 18px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.decision-card {
  background: var(--paper-warm);
  border-radius: 10px;
  padding: 16px 16px 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--green-deep);
}

.decision-card.warn {
  border-left-color: var(--warn);
  background: var(--warn-bg);
}

.decision-card.info {
  border-left-color: var(--ochre);
}

.decision-card-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  margin-bottom: 6px;
}

.decision-card.warn .decision-card-tag { color: var(--warn); }
.decision-card.info .decision-card-tag { color: var(--ochre-deep); }

.decision-card-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 12px;
}

.decision-card-text strong { font-weight: 600; }

.decision-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.decision-card-action {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--paper-deeper);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.decision-card-action.primary {
  background: var(--green-deep);
  color: var(--paper);
  border-color: var(--green-deep);
}

.decision-card-action.warn-primary {
  background: var(--warn);
  color: var(--paper);
  border-color: var(--warn);
}

/* =============================================================
   HUB (1pc as the centre)
   ============================================================= */
.hub {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 80px;
  border-top: 1px solid var(--paper-deeper);
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.hub-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-card {
  background: var(--paper-warm);
  border-radius: 10px;
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  transition: background 0.25s ease;
}

.input-card:hover { background: var(--paper); }

.input-mark {
  width: 32px;
  height: 32px;
  color: var(--green-deep);
  transition: transform 0.4s ease;
}

.input-card:hover .input-mark { transform: rotate(8deg); }

.input-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.input-line {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: -4px;
}

.hub-centre {
  background: var(--green-deep);
  color: var(--paper);
  border-radius: 10px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.hub-centre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ochre);
}

.hub-centre-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hub-centre-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ochre-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  align-self: flex-start;
}

.hub-centre-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--paper);
}

.hub-centre-desc {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(248, 246, 241, 0.78);
}

.hub-centre-divider {
  height: 1px;
  background: rgba(248, 246, 241, 0.18);
}

.hub-centre-outputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hub-centre-outputs-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ochre-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}

.output {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.output-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--paper);
  min-width: 110px;
}

.output-line {
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(248, 246, 241, 0.72);
}

.hub-closing {
  max-width: 720px;
  margin: 80px auto 0;
  text-align: center;
}

.hub-closing p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hub-closing p strong {
  font-style: normal;
  font-weight: 500;
  color: var(--green-deep);
}

.hub-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--green-deep);
  text-decoration: none;
  padding: 14px 28px;
  border: 1.5px solid var(--green-deep);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.hub-link:hover {
  background: var(--green-deep);
  color: var(--paper);
  gap: 14px;
}

/* =============================================================
   MODULES (five-card product module list — replaces HUB)
   ============================================================= */
.modules {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 80px;
  border-top: 1px solid var(--paper-deeper);
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.module-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--paper-warm);
  border-radius: 14px;
  padding: 56px 56px;
  transition: background 0.25s ease;
}

.module-card:hover { background: var(--paper); }

.module-card-reverse .module-text { order: 2; }
.module-card-reverse .module-visual { order: 1; }

.module-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.module-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ochre-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.module-heading {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.module-mechanism {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 480px;
}

.module-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green-deep);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.module-link:hover { gap: 12px; }
.module-link svg { transition: transform 0.2s ease; }
.module-link:hover svg { transform: translateX(2px); }

/* Visual placeholder — to be replaced with screenshots */
.module-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  border: 1px dashed var(--paper-deeper);
}

.module-visual-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(45, 90, 61, 0.04) 0%, rgba(200, 155, 60, 0.04) 100%);
}

.module-visual-filled {
  border: none;
  background: var(--paper-deeper);
}

.module-visual-filled-feature {
  background: var(--green-darker);
}

.module-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-tag {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-faded);
  padding: 6px 12px;
  background: var(--paper);
  border-radius: 999px;
  border: 1px solid var(--paper-deeper);
}

/* Feature card — Intelligence Layer */
.module-card-feature {
  background: var(--green-deep);
  color: var(--paper);
}

.module-card-feature:hover { background: var(--green-darker); }

.module-card-feature .module-heading { color: var(--paper); }

.module-card-feature .module-mechanism { color: rgba(248, 246, 241, 0.78); }

.module-label-feature { color: var(--ochre-soft); }

.module-link-feature { color: var(--ochre-soft); }

.module-card-feature .module-visual {
  background: var(--green-darker);
  border-color: rgba(248, 246, 241, 0.12);
}

.module-visual-placeholder-feature {
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.08) 0%, rgba(248, 246, 241, 0.04) 100%);
}

.module-card-feature .ph-tag {
  background: var(--green-darker);
  color: rgba(248, 246, 241, 0.5);
  border-color: rgba(248, 246, 241, 0.12);
}

/* Closing line under the grid */
.modules-closing {
  max-width: 800px;
  margin: 64px auto 0;
  text-align: center;
}

.modules-closing p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.modules-closing p strong {
  color: var(--ink);
  font-weight: 500;
}

.modules-closing-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green-deep);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.modules-closing-link:hover { gap: 12px; }
.modules-closing-link svg { transition: transform 0.2s ease; }
.modules-closing-link:hover svg { transform: translateX(2px); }

/* Responsive — stack cards on tablet down */
@media (max-width: 880px) {
  .modules { padding: 64px 24px; }
  .module-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 28px;
  }
  .module-card-reverse .module-text { order: 1; }
  .module-card-reverse .module-visual { order: 2; }
  .module-mechanism { max-width: none; }
}

/* =============================================================
   BUILT FOR ONE (dark differentiation block)
   ============================================================= */
.built-for-one {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 48px;
}

.built-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.built-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ochre-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  text-align: center;
}

.built-heading {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 24px;
  color: var(--paper);
}

.built-sub {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(248, 246, 241, 0.72);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.built-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  max-width: 1080px;
  margin: 0 auto;
}

.built-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.built-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  color: var(--ochre-soft);
  line-height: 1;
}

.built-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.built-desc {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(248, 246, 241, 0.66);
}

/* =============================================================
   TRADES GRID (homepage only — verticals omit this section)
   ============================================================= */
.trades-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 80px;
  border-top: 1px solid var(--paper-deeper);
}

.trades-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trade-card {
  background: var(--paper-warm);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trade-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(45, 90, 61, 0.18);
}

.trade-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.trade-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.trade-card:hover .trade-photo img { transform: scale(1.04); }

.trade-content { padding: 22px 22px 26px; }

.trade-content h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.trade-recognition {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}

.trade-subtrades {
  font-size: 13px;
  color: var(--ink-faded);
  line-height: 1.45;
}

.trade-arrow {
  margin-top: 18px;
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.trade-card:hover .trade-arrow { gap: 10px; }

/* =============================================================
   WHAT CHANGES (before/after)
   ============================================================= */
.what-changes {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 96px;
  border-top: 1px solid var(--paper-deeper);
}

.pairs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 80px;
  max-width: 1080px;
  margin: 0 auto;
}

.pair { position: relative; }

.pair-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ochre-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--paper-deeper);
  width: 100%;
}

.pair-before {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink-faded);
  margin-bottom: 18px;
  letter-spacing: -0.005em;
  position: relative;
  padding-left: 18px;
}

.pair-before::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--paper-deeper);
}

.pair-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--ochre-deep);
}

.pair-arrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--ochre);
}

.pair-after {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 14px;
}

.pair-detail {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.what-changes-closing {
  max-width: 720px;
  margin: 100px auto 0;
  text-align: center;
  padding-top: 56px;
  border-top: 1px solid var(--paper-deeper);
  position: relative;
}

.what-changes-closing::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--ochre);
}

.what-changes-closing p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.what-changes-closing p strong {
  font-style: normal;
  font-weight: 500;
  color: var(--green-deep);
}

/* =============================================================
   FAQ
   ============================================================= */
.faq {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 96px;
  border-top: 1px solid var(--paper-deeper);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--paper-deeper);
  padding: 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--paper-deeper);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green-deep); }

.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--paper-deeper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  transition: all 0.25s ease;
}

.faq-item[open] .faq-toggle {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--paper);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 8px 28px;
  max-width: 680px;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer a {
  color: var(--green-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* =============================================================
   CLOSING / CTA
   ============================================================= */
.closing {
  background: var(--paper-warm);
  padding: 112px 48px 96px;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--ochre);
}

.closing::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at center, var(--ochre-soft) 0%, transparent 60%);
  opacity: 0.18;
  pointer-events: none;
}

.closing-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.closing-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ochre-deep);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 36px;
}

.belief {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 40px;
}

.belief em {
  font-style: italic;
  font-weight: 400;
  color: var(--green-deep);
}

.belief-support {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 80px;
}

.tagline-block {
  margin: 80px auto 0;
  padding-top: 56px;
  border-top: 1px solid var(--paper-deeper);
  max-width: 480px;
}

.tagline {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.tagline .dot { color: var(--ochre); }

.founding-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 36px;
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: left;
}

.founding-benefit {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.founding-benefit-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--ochre-deep);
  flex-shrink: 0;
  min-width: 18px;
}

.founding-benefit strong {
  font-weight: 600;
  color: var(--ink);
}

.cta-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
}

.cta-form input {
  flex: 1;
  min-width: 220px;
  padding: 16px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  border: 1px solid var(--paper-deeper);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.cta-form input:focus { border-color: var(--green-deep); }

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-deep);
  color: var(--paper);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.cta-button:hover {
  background: var(--green-darker);
  transform: translateY(-1px);
}

.cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.cta-fineprint {
  font-size: 13px;
  color: var(--ink-faded);
  margin-top: 12px;
}

.founding-counter {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  background: var(--paper-warm);
  border: 1px solid var(--paper-deeper);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.founding-counter strong {
  font-weight: 600;
  color: var(--ink);
}

.waitlist-success {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--green-deep);
  text-align: center;
  margin: 16px auto 0;
  max-width: 520px;
}

.waitlist-error {
  font-size: 14px;
  color: var(--warn);
  text-align: center;
  margin: 12px auto 0;
  max-width: 520px;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--paper);
  padding: 32px 48px;
  text-align: center;
  border-top: 1px solid var(--paper-deeper);
}

.footer p {
  font-size: 13px;
  color: var(--ink-faded);
  margin-bottom: 8px;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 12px;
  font-size: 13px;
}

.footer a:hover { color: var(--green-deep); }

.footer-flag {
  vertical-align: middle;
  margin: 0 0.3em;
}

/* Bare <footer> (used by v1 pages still on this stylesheet). */
footer {
  padding: 32px 48px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faded);
  border-top: 1px solid var(--paper-deeper);
}
footer p { margin-bottom: 4px; }

/* =============================================================
   COOKIE NOTICE (used by v1 pages)
   ============================================================= */
#cookie-notice {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1rem 2.4rem;
  background: var(--ink);
  color: rgba(248, 246, 241, 0.7);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.5;
}

#cookie-notice a {
  color: var(--ochre-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cn-btn {
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1.4rem;
  background: rgba(248, 246, 241, 0.1);
  color: var(--paper);
  border: 1px solid rgba(248, 246, 241, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cn-btn:hover { background: rgba(248, 246, 241, 0.18); }

@media (max-width: 520px) {
  #cookie-notice {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 1.4rem;
    text-align: center;
  }
}

/* =============================================================
   V1 COMPAT — utilities used by pages still on the old design
   (1pc-about.html, how-it-works.html, blog, vertical pages
    not yet migrated to v2). Remove when those pages migrate.
   ============================================================= */
.section-inner {
  max-width: 960px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin-bottom: 1rem;
}
.section-intro {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 4rem;
}
.divider {
  max-width: 960px;
  margin: 0 auto;
  height: 1px;
  background: var(--paper-deeper);
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  .hub-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hub-side {
    flex-direction: row;
    gap: 20px;
  }
  .hub-centre {
    order: -1;
    padding: 40px 32px;
  }
  .hub-side .input-card { flex: 1; }
  .built-grid { grid-template-columns: 1fr; gap: 40px; max-width: 600px; }
  .huui-grid { grid-template-columns: 1fr; gap: 60px; }
  .huui-grid .phone-mock { order: 2; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 80px; padding-bottom: 100px; }
  .hero-visual { aspect-ratio: 4/5; max-width: 480px; margin: 0 auto; }
  .hero-note-card { right: 0; bottom: -24px; max-width: 240px; }
  .trades-grid { grid-template-columns: repeat(2, 1fr); }
  .pairs { grid-template-columns: 1fr; gap: 56px; max-width: 540px; }
  .founding-benefits { grid-template-columns: 1fr; max-width: 420px; }

  /* Mobile nav: burger toggles links + CTA */
  .burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--paper-deeper);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.12);
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 6px;
  }
  .nav-links a:hover { background: var(--paper-warm); }
  .nav-links .nav-cta {
    margin-top: 6px;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  nav, .hero, .trades-section, .how-you-use-it, .hub, .what-changes, .faq {
    padding-left: 24px; padding-right: 24px;
  }
  .built-for-one, .closing { padding-left: 24px; padding-right: 24px; }
  .closing { padding-top: 100px; padding-bottom: 80px; }
  .built-for-one { padding: 80px 24px; }
  .trades-grid { grid-template-columns: 1fr; }
  .hub-side { flex-direction: column; }
  .pair-before { font-size: 18px; }
  .pair-after { font-size: 19px; }
  .what-changes-closing p { font-size: 19px; }
  .belief-support { margin-bottom: 60px; }
  .tagline-block { padding-top: 40px; margin-top: 60px; }
  .output { flex-direction: column; gap: 4px; }
  .output-name { min-width: 0; }
  .faq-item summary { font-size: 18px; padding: 24px 4px; }
  .prompt-text { font-size: 17px; }
}

@media (max-width: 480px) {
  .hub-centre-name { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
