/* ============================================
   ADUME SOLUTIONS — Brand & Design System
   Bold, modern, GTA web design freelancer
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Manrope:wght@300;400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Brand: Adume editorial palette (light-mode default) */
  --ink: #161412;          /* ink black, body text + dark sections */
  --ink-2: #1f1c19;        /* slightly raised dark surface */
  --ink-3: #2a2622;        /* dark cards, dark hover */
  --ink-soft: #3a3733;     /* secondary text on paper */
  --muted: #8b847a;        /* tertiary text on paper */

  --paper: #faf6ed;        /* primary background — paper cream */
  --paper-2: #f1ece2;      /* secondary background, alternating sections */
  --bone: #d4ccbc;         /* sand, dividers, soft borders */

  /* Accents — terracotta family, collapsed from neon palette */
  --acid: #c8553d;         /* primary terracotta accent */
  --acid-deep: #9d3e2b;    /* deep terracotta */
  --plum: #c8553d;         /* legacy var: maps to terracotta */
  --rose: #c8553d;         /* legacy var: maps to terracotta */
  --amber: #d97757;        /* warm terracotta tint */
  --teal: #c8553d;         /* legacy var: maps to terracotta */

  /* Functional lines */
  --line: rgba(22, 20, 18, 0.12);          /* line on paper */
  --line-strong: rgba(22, 20, 18, 0.22);   /* line on paper, stronger */
  --line-dark: rgba(250, 246, 237, 0.14);  /* line on dark sections */
  --shadow-lg: 0 30px 80px -20px rgba(22, 20, 18, 0.22);
  --shadow-md: 0 10px 30px -10px rgba(22, 20, 18, 0.14);

  /* Type — Adume stack */
  --font-display: 'Fraunces', serif;
  --font-sans: 'Manrope', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --font-mono: 'Manrope', sans-serif;  /* legacy var: deprecated, replaced by --font-sans where used */

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1320px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================
   GRAIN OVERLAY (texture for atmosphere)
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 246, 237, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  padding: 0.75rem var(--gutter);
  background: rgba(250, 246, 237, 0.94);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
.footer .logo-mark { color: var(--paper); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
  position: relative;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--acid);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--acid);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(200, 85, 61, 0.35);
}

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

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover {
  background: var(--acid);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Buttons inside dark sections (any .dark-section ancestor) need inverted ghost */
.dark-section .btn-ghost,
section.process .btn-ghost,
.contact .btn-ghost,
.footer .btn-ghost {
  border-color: rgba(250, 246, 237, 0.4);
  color: var(--paper);
}
.dark-section .btn-ghost:hover,
section.process .btn-ghost:hover,
.contact .btn-ghost:hover,
.footer .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.mobile-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .mobile-toggle {
    display: block;
    width: 40px; height: 40px;
    border: 1px solid var(--ink);
    border-radius: 12px;
    position: relative;
    background: transparent;
  }
  .mobile-toggle span {
    position: absolute;
    left: 10px; right: 10px;
    height: 2px;
    background: var(--ink);
  }
  .mobile-toggle span:nth-child(1) { top: 14px; }
  .mobile-toggle span:nth-child(2) { top: 19px; }
  .mobile-toggle span:nth-child(3) { top: 24px; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem var(--gutter) 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--paper);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(200, 85, 61, 0.18), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(157, 62, 43, 0.10), transparent 50%);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(22,20,18,0.09) 1.2px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: -1;
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 20, 18, 0.18);
  background: rgba(22, 20, 18, 0.04);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.hero-tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  margin: 1.5rem 0 1.75rem;
  max-width: 17ch;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--acid);
  letter-spacing: -0.02em;
}
.hero h1 .strike {
  position: relative;
  white-space: nowrap;
}
.hero h1 .strike::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  top: 55%;
  height: 6px;
  background: var(--rose);
  transform: rotate(-2deg);
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 2.5rem;
}

@keyframes fadeUpSub {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 0.78; transform: translateY(0); }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  max-width: 800px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.65s forwards;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-num em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--acid);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.6;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Marquee */
.marquee {
  background: var(--ink);
  color: var(--paper);
  padding: 1.25rem 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 4rem;
  opacity: 0.7;
}
.marquee-item span:nth-child(2),
.marquee-item span:nth-child(even) {
  color: var(--acid);
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ============================================
   SECTIONS — General
   ============================================ */
section {
  position: relative;
  padding: 6rem var(--gutter);
  z-index: 2;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--acid);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  margin-bottom: 1.5rem;
  max-width: 22ch;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--acid);
}

.section-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 4rem;
}

/* ============================================
   INDUSTRIES — Bento grid with bold cards
   ============================================ */
.industries {
  background: var(--paper-2);
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.industry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink);
}

.industry-card.trades {
  background:
    radial-gradient(circle at 20% 80%, rgba(217, 119, 87, 0.10), transparent 55%),
    var(--paper);
}
.industry-card.salon {
  background:
    radial-gradient(circle at 80% 20%, rgba(200, 85, 61, 0.10), transparent 55%),
    var(--paper);
}
.industry-card.restaurant {
  background:
    radial-gradient(circle at 50% 80%, rgba(157, 62, 43, 0.10), transparent 55%),
    var(--paper);
}

.industry-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}
.industry-card.trades .industry-icon { background: rgba(217, 119, 87, 0.16); color: var(--amber); }
.industry-card.salon .industry-icon { background: rgba(200, 85, 61, 0.16); color: var(--acid); }
.industry-card.restaurant .industry-icon { background: rgba(157, 62, 43, 0.16); color: var(--acid-deep); }

.industry-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 1rem 0 0.75rem;
  font-variation-settings: "opsz" 96, "SOFT" 60;
}
.industry-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.industry-features {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.industry-features li {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0;
  color: var(--ink-soft);
  padding: 0.55rem 0;
  position: relative;
  padding-left: 1.4rem;
}
.industry-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--acid);
  font-weight: 600;
}

@media (max-width: 900px) {
  .industry-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PRICING — Build packages
   ============================================ */
.pricing-builds {
  background: var(--paper);
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* eyebrow uses default --acid */


.pricing-builds .section-lead { opacity: 0.7; }

.builds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.build-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.build-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: scale(1.02);
}
.build-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(22,20,18,0.4);
}
.build-card.featured h3 { color: var(--paper); }
.build-card.featured .build-tag {
  color: rgba(250, 246, 237, 0.55);
}
.build-card.featured .build-price { color: var(--paper); }
.build-card.featured .currency { color: rgba(250, 246, 237, 0.55); }
.build-card.featured .build-price-note {
  color: rgba(250, 246, 237, 0.55);
  border-bottom-color: rgba(250, 246, 237, 0.18);
}
.build-card.featured .build-target {
  color: rgba(250, 246, 237, 0.78);
}
.build-card.featured .build-features li {
  color: rgba(250, 246, 237, 0.85);
}
.build-card.featured .build-features li::before {
  color: var(--acid);
}
.build-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(200, 85, 61, 0.18), transparent 50%);
  pointer-events: none;
  border-radius: 18px;
}

.build-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--acid);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.build-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.build-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.25rem;
  font-variation-settings: "opsz" 96, "SOFT" 60;
}
.build-card h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--acid);
}

.build-price {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.4rem;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.build-price .currency {
  font-size: 1.15rem;
  vertical-align: top;
  margin-right: 4px;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
}
.build-price.subscription { font-size: 2.5rem; }
.build-price-note {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 2rem;
}

.build-target {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--line-dark);
  font-style: italic;
  opacity: 0.8;
}
.build-card.featured .build-target { border-color: var(--line); }

.build-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  font-size: 0.93rem;
  flex: 1;
}
.build-features li {
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 0.55rem 0;
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-soft);
}
.build-features li::before {
  content: '✓';
  font-weight: 600;
  color: var(--plum);
  flex-shrink: 0;
  margin-top: 1px;
}
.build-card.featured .build-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--acid);
  font-weight: 700;
}

.build-card .btn { width: 100%; justify-content: center; }

@media (max-width: 1000px) {
  .builds-grid { grid-template-columns: 1fr; }
  .build-card.featured { transform: none; }
}

/* ============================================
   CARE PLANS — Comparison table
   ============================================ */
.pricing-care {
  background: var(--paper-2);
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.care-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.care-card.popular {
  border: 1.5px solid var(--acid);
  transform: scale(1.02);
}
.care-card.popular:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: var(--acid);
}

.care-popular-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--acid);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.care-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.4rem;
  font-variation-settings: "opsz" 96, "SOFT" 60;
}
.care-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.care-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.care-price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.care-price .currency {
  font-size: 1.1rem;
  vertical-align: super;
  opacity: 0.5;
}
.care-period {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0;
}

.care-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}
.care-features li {
  font-size: 0.88rem;
  line-height: 1.55;
  padding: 0.5rem 0;
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
}
.care-features li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--acid);
  font-weight: 700;
}
.care-features li.muted {
  color: var(--muted);
  opacity: 0.65;
}
.care-features li.muted::before {
  content: '\2014';
  color: var(--muted);
}

.care-card .btn { width: 100%; justify-content: center; }

@media (max-width: 1000px) {
  .care-grid { grid-template-columns: 1fr; }
}

/* Comparison table */
.compare-toggle {
  text-align: center;
  margin-top: 3rem;
}
.compare-toggle button {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--acid);
  border: 1px solid var(--line);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: all 0.2s;
}
.compare-toggle button:hover {
  border-color: var(--acid);
  background: rgba(200, 85, 61, 0.06);
}

.compare-table-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
  margin-top: 0;
}
.compare-table-wrap.open {
  max-height: 2000px;
  margin-top: 3rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  font-size: 0.88rem;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.4rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.compare-table th {
  background: var(--paper-2);
  padding: 1.2rem 1.4rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.compare-table th:first-child { width: 40%; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .check { color: var(--acid); font-weight: 600; }
.compare-table .dash { color: var(--muted); opacity: 0.5; }

@media (max-width: 800px) {
  .compare-table { font-size: 0.78rem; }
  .compare-table th, .compare-table td { padding: 0.7rem; }
}

/* ============================================
   PROCESS — Numbered steps with diagonal flow
   ============================================ */
.process {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
  overflow: hidden;
}
.process::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(250,246,237,0.025) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(250, 246, 237, 0.12);
}
.process-step:last-child { border-bottom: 1px solid rgba(250, 246, 237, 0.12); }
@media (max-width: 860px) {
  .process-step {
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
  }
  .process-step > p:last-child {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(250, 246, 237, 0.74);
}
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-step:hover { padding-left: 1rem; }

.process-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 3rem;
  line-height: 0.9;
  color: var(--acid);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  font-variation-settings: "opsz" 96, "SOFT" 60;
}
.process-step p {
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.7;
}
.process-step .meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 246, 237, 0.5);
}

@media (max-width: 800px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }
  .process-num { font-size: 2.5rem; }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: var(--paper);
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.faq .eyebrow { color: var(--plum); }
.faq .eyebrow::before { background: var(--plum); }
.faq .section-title em { color: var(--plum); }
.faq .section-lead { opacity: 0.7; }

.faq-list {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line-dark); }

.faq-q {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-variation-settings: "opsz" 96, "SOFT" 60;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--acid); }
.faq-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink);
  flex-shrink: 0;
  transition: all 0.25s;
  background: transparent;
}
.faq-item.open .faq-toggle {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--paper);
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 70ch;
}
.faq-item.open .faq-a {
  max-height: 1500px;
  padding-bottom: 1.6rem;
}

/* ============================================
   CONTACT / CTA
   ============================================ */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(200, 85, 61, 0.18), transparent 55%),
    radial-gradient(ellipse at 100% 0%, rgba(157, 62, 43, 0.14), transparent 50%);
  pointer-events: none;
}
.contact-bg::before {
  content: '';
  position: absolute;
  width: 80vw; height: 80vw;
  max-width: 1000px; max-height: 1000px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(157, 62, 43, 0.18), transparent 60%);
  filter: blur(80px);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: 1.5rem;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.contact-left h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--acid);
}
.contact-left h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--acid);
  font-weight: 400;
}
.contact-left p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: rgba(250, 246, 237, 0.78);
  max-width: 50ch;
  margin-bottom: 2.5rem;
}
.contact-info {
  list-style: none;
  border-top: 1px solid rgba(250, 246, 237, 0.18);
  padding-top: 2rem;
}
.contact-info li {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: rgba(250, 246, 237, 0.85);
  padding: 0.6rem 0;
  position: relative;
  padding-left: 2rem;
}
.contact-info li::before {
  content: attr(data-icon);
  position: absolute;
  left: 0;
  color: var(--acid);
  font-size: 1rem;
}

/* Form */
.contact-form {
  background: rgba(250, 246, 237, 0.04);
  border: 1px solid rgba(250, 246, 237, 0.14);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
}

.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row.split > div { display: flex; flex-direction: column; gap: 0.5rem; }

.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 246, 237, 0.6);
  margin-bottom: 0.5rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: rgba(22, 20, 18, 0.4);
  border: 1px solid rgba(250, 246, 237, 0.18);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--paper);
  transition: border-color 0.2s;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(250, 246, 237, 0.4); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--acid);
}
.form-row textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--font-display);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--acid);
  background: var(--ink-3);
}
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f5f1ea' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  background: var(--acid);
  color: var(--paper);
  padding: 1rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  margin-top: 0.5rem;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(200, 85, 61, 0.5);
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(200, 85, 61, 0.5);
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(200, 85, 61, 0.1);
  border: 1px solid var(--acid);
  border-radius: 10px;
  color: var(--paper);
  font-size: 0.95rem;
}
.form-success.show { display: block; }
.form-success.show { display: block; }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row.split { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(250, 246, 237, 0.1);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.65;
  max-width: 32ch;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.5;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  font-size: 0.93rem;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.footer-col a:hover { color: var(--acid); opacity: 1; }

.footer-base {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter) 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.55;
}

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Process is on ink — flip text colours back */
.process .eyebrow { color: var(--acid); }
.process .eyebrow::before { background: var(--acid); }
.process .section-title { color: var(--paper); }
.process .section-title em { color: var(--acid); }
.process .section-lead { color: rgba(250, 246, 237, 0.7); }


.footer .footer-brand p { color: rgba(250, 246, 237, 0.7); font-size: 0.95rem; line-height: 1.6; max-width: 36ch; margin-top: 1rem; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250, 246, 237, 0.55); margin-bottom: 1.25rem; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 0.4rem 0; }
.footer-col a { font-size: 0.92rem; color: rgba(250, 246, 237, 0.85); transition: color 0.2s; }
.footer-col a:hover { color: var(--acid); }
.footer-base {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid rgba(250, 246, 237, 0.1);
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(250, 246, 237, 0.5);
}

/* ============================================
   MULTIPAGE ADDITIONS — light theme
   ============================================ */

.page-hero {
  position: relative;
  background: var(--paper);
  padding: clamp(7rem, 14vw, 11rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(200, 85, 61, 0.16), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(157, 62, 43, 0.08), transparent 50%);
  pointer-events: none;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(22,20,18,0.05) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0));
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  margin: 1.25rem 0 1.5rem;
  max-width: 18ch;
}
.page-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--acid);
}
.page-hero-sub {
  max-width: 60ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* Active nav-link state for the current page */
.nav-links a.active {
  opacity: 1;
  color: var(--acid);
}
.nav-links a.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--acid);
  margin-top: 2px;
  opacity: 0.6;
}

/* Contact page top spacing — its hero is built into the section */
.page-contact .contact { padding-top: clamp(7rem, 14vw, 9rem); }


/* ============================================
   ROUND 1 — RESPONSIVE FIX-UPS
   Address tablet-landscape cutoffs + mobile tightening.
   ============================================ */

/* iPad landscape (1024px) and similar mid-size tablets */
@media (max-width: 1100px) and (min-width: 861px) {
  :root {
    --gutter: 2rem;
  }
  .nav { padding-left: 2rem; padding-right: 2rem; }
  .footer-inner { padding-left: 2rem; padding-right: 2rem; }
}

/* General: ensure no horizontal overflow at any viewport */
html, body { max-width: 100vw; overflow-x: hidden; }

/* Section containers should never exceed viewport */
section, header, footer, nav { max-width: 100vw; }

/* Tighten mobile navigation + spacing */
@media (max-width: 600px) {
  :root { --gutter: 1.5rem; }

  .nav { padding: 0.85rem 1.25rem; }
  .nav .btn-primary { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
  .logo { font-size: 1.15rem; }
  .logo-mark { width: 26px; height: 26px; }

  /* Hero: smaller, more breathing room */
  .hero { padding: 6rem 1.25rem 3rem; min-height: auto; }
  .hero h1, .hero-headline { font-size: clamp(2rem, 9vw, 3rem) !important; line-height: 1; }

  /* Page heroes (subpages) */
  .page-hero { padding: 6rem 1.25rem 2.5rem; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 3rem); line-height: 1; }
  .page-hero-sub { font-size: 0.95rem; }

  /* Contact section padding */
  .page-contact .contact,
  section.contact { padding: 6rem 0 4rem !important; }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.25rem;
  }
  .contact-left h2 { font-size: clamp(2rem, 9vw, 2.6rem); }

  /* Care plan + pricing card stacking */
  .care-grid, .builds-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .care-card, .build-card { padding: 1.75rem 1.5rem; }

  /* FAQ */
  .faq-q { font-size: 1rem; padding: 1rem 1.25rem; }
  .faq-a { font-size: 0.95rem; padding: 0 1.25rem; }
  .faq-item.open .faq-a { padding-bottom: 1.25rem; }

  /* Industry cards */
  .industry-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .industry-card { padding: 1.75rem 1.5rem; }

  /* Process steps */
  .process-step { padding: 1.5rem 1.25rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.25rem; }
  .footer-base { flex-direction: column; gap: 0.5rem; padding: 1.5rem 1.25rem; }

  /* Tables (care plan compare) — make scrollable horizontally instead of cut off */
  .compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { min-width: 600px; font-size: 0.85rem; }

  /* Form fields */
  input, select, textarea { font-size: 16px; /* prevents iOS zoom on focus */ }
}

/* Ultra-narrow phones (<400px) */
@media (max-width: 400px) {
  .nav .btn-primary { display: none; } /* free up nav space; mobile menu still works */
  .logo { font-size: 1rem; }
}

/* Industry teaser link on homepage */
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--acid);
  letter-spacing: -0.01em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card-link:hover {
  border-bottom-color: var(--acid);
  transform: translateX(2px);
}

/* ============================================
   HERO — Watermark + meta row (Round 2 hero rebuild)
   ============================================ */

.hero {
  position: relative;
  overflow: hidden; /* clip the watermark when it extends past edges */
}

/* Big faded "A" mark watermark, anchored bottom-right of hero */
.hero-watermark {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: clamp(280px, 35vw, 520px);
  height: auto;
  color: var(--ink); /* fills the body of the A */
  opacity: 0.05;     /* very faded — atmospheric, not loud */
  pointer-events: none;
  z-index: 1;
}
.hero-watermark .wm-accent {
  fill: var(--acid);
  opacity: 0.45; /* the apex chevron pops slightly more than the body */
}

/* Make sure hero content sits ABOVE the watermark */
.hero-inner {
  position: relative;
  z-index: 2;
}

/* Inline locality line under the CTA */
.hero-locality-line {
  margin: 1.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
}
.hero-locality-line strong {
  color: var(--ink-soft);
  font-weight: 600;
}
.hero-locality-line .dot-divider {
  color: var(--acid);
  font-weight: 700;
  opacity: 0.7;
}

/* Stacking + smaller watermark on tablet/phone */
@media (max-width: 900px) {
  .hero-watermark {
    width: clamp(260px, 38vw, 380px);
    right: -8%;
    bottom: -6%;
    opacity: 0.045;
  }
}
@media (max-width: 600px) {
  .hero-watermark {
    width: 280px;
    right: -18%;
    bottom: -2%;
    opacity: 0.04;
  }
  .hero-locality-line {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
}

/* On mobile let the strikethrough also stand on its own line nicely */
.hero h1 .strike {
  display: inline-block;
}

/* Clickable links inside contact info lists */
.contact-info li a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-info li a:hover {
  color: var(--acid);
  border-bottom-color: var(--acid);
}

/* ============================================
   ANNUAL PRE-PAY CALLOUT
   ============================================ */
.annual-prepay {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.annual-prepay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 50%, rgba(200, 85, 61, 0.16), transparent 60%);
  pointer-events: none;
}
.prepay-text { position: relative; z-index: 1; }
.prepay-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 0.85rem;
}
.prepay-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.prepay-body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(250, 246, 237, 0.7);
  max-width: 50ch;
}
.prepay-stat {
  position: relative;
  z-index: 1;
  text-align: center;
  border-left: 1px solid rgba(250, 246, 237, 0.18);
  padding-left: 2rem;
}
.prepay-stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--acid);
  display: block;
  letter-spacing: -0.05em;
}
.prepay-stat-num em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  letter-spacing: 0;
  margin-left: 0.05em;
}
.prepay-stat-label {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 246, 237, 0.55);
}

@media (max-width: 700px) {
  .annual-prepay {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  .prepay-stat {
    border-left: none;
    border-top: 1px solid rgba(250, 246, 237, 0.18);
    padding-left: 0;
    padding-top: 1.5rem;
  }
  .prepay-body { margin: 0 auto; }
}

/* ============================================
   HERO HOOK — Outline-fill + Flourish underline
   ============================================ */
.hero h1 .hero-line {
  display: block;
}

/* OUTLINE → FILL on the word "brand" */
.hero h1 .outlined {
  display: inline-block;
  position: relative;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: inherit;
  transition: transform 0.5s cubic-bezier(.7,.1,.2,1);
}
.hero h1 .outlined::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  color: var(--acid);
  -webkit-text-stroke: 0;
  text-stroke: 0;
  clip-path: inset(0 100% 0 0);
  animation: heroFillIn 1.4s cubic-bezier(.7,.1,.2,1) 0.3s forwards;
  font-family: var(--font-display);
  font-weight: inherit;
}
@keyframes heroFillIn {
  to { clip-path: inset(0 0 0 0); }
}
.hero h1 .outlined:hover {
  transform: translateY(-3px);
}

/* FLOURISH underline on the word "itself" */
.hero h1 .flourish {
  position: relative;
  display: inline-block;
  color: var(--acid);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.hero h1 .flourish-period {
  /* Period sits inside the flourish so the underline only spans the word */
  color: var(--acid);
  font-family: var(--font-serif);
  font-style: italic;
}
.hero h1 .flourish svg {
  position: absolute;
  left: -2%;
  top: 86%;
  width: 100%;
  height: 28px;
  overflow: visible;
  pointer-events: none;
}
.hero h1 .flourish svg path {
  fill: none;
  stroke: var(--acid);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: heroDrawFlourish 1.6s cubic-bezier(.7,.1,.2,1) 1.4s forwards;
}
.hero h1 .flourish svg path.flourish-shadow {
  stroke: rgba(157, 62, 43, 0.25); /* deep terracotta with low opacity */
  transform: translate(3px, 4px);
}
@keyframes heroDrawFlourish {
  to { stroke-dashoffset: 0; }
}

/* Mobile: thinner outline stroke + flourish */
@media (max-width: 600px) {
  .hero h1 .outlined { -webkit-text-stroke: 1.5px var(--ink); text-stroke: 1.5px var(--ink); }
  .hero h1 .flourish svg { height: 20px; }
  .hero h1 .flourish svg path { stroke-width: 4; }
}

/* Reduced-motion fallback: instantly fill instead of animating */
@media (prefers-reduced-motion: reduce) {
  .hero h1 .outlined::after { animation: none; clip-path: inset(0 0 0 0); }
  .hero h1 .flourish svg path { animation: none; stroke-dashoffset: 0; }
}

/* ============================================
   PAGE HERO ACCENT EFFECTS
   For accent words inside .page-hero h1
   ============================================ */

/* STICKER ROTATION — used on "specialised" (industries page)
   Italic terracotta word, slightly rotated and lifted, with a subtle drop shadow
   to feel like a printed sticker stuck onto the page. Hover settles it flat. */
.page-hero h1 .sticker-word {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--paper);
  background: var(--acid);
  padding: 0.05em 0.3em;
  transform: rotate(-3deg) translateY(-0.04em);
  border-radius: 4px;
  box-shadow:
    2px 3px 0 var(--acid-deep),
    4px 6px 14px rgba(157, 62, 43, 0.18);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
  transform-origin: center center;
}
.page-hero h1 .sticker-word:hover {
  transform: rotate(0deg) translateY(0);
  box-shadow:
    1px 1px 0 var(--acid-deep),
    2px 3px 8px rgba(157, 62, 43, 0.18);
}

/* CIRCLED EDITOR'S PEN — used on "alive" (care-plans page) */
.page-hero h1 .circled-word {
  position: relative;
  display: inline-block;
  color: var(--acid);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  padding: 0 0.25em;
}
.page-hero h1 .circled-word svg {
  position: absolute;
  left: -8%; top: -10%;
  width: 116%; height: 130%;
  overflow: visible;
  pointer-events: none;
}
.page-hero h1 .circled-word svg path {
  fill: none;
  stroke: var(--acid);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: pageHeroDrawCircle 2s cubic-bezier(.7,.1,.2,1) 0.5s forwards;
}
@keyframes pageHeroDrawCircle {
  to { stroke-dashoffset: 0; }
}

/* DRAWN STRIKETHROUGH — used on "upfront" (pricing page)
   Italic charcoal word with a wavy hand-drawn line drawn through it after delay. */
.page-hero h1 .struck-word {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(22, 20, 18, 0.65); /* slightly muted to feel "cancelled" */
}
.page-hero h1 .struck-word svg {
  position: absolute;
  left: -2%; top: 35%;
  width: 104%; height: 30%;
  overflow: visible;
  pointer-events: none;
}
.page-hero h1 .struck-word svg path {
  fill: none;
  stroke: var(--acid);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: pageHeroDrawStrike 1.4s cubic-bezier(.7,.1,.2,1) 0.4s forwards;
}
.page-hero h1 .struck-word svg path.struck-shadow {
  stroke: rgba(157, 62, 43, 0.35);
  transform: translate(2px, 3px);
  animation-delay: 0.4s;
}
@keyframes pageHeroDrawStrike {
  to { stroke-dashoffset: 0; }
}

/* PULSING LIVE DOT — used on "live" (process page)
   Small terracotta dot floating above-right of the word, like a status badge. */
.page-hero h1 .live-word {
  display: inline-block;
  position: relative;
  font-family: var(--font-display);
}
.page-hero h1 .live-word em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--acid);
}
.page-hero h1 .live-word .live-dot {
  position: absolute;
  top: 0.18em;
  right: -0.55em;
  width: 0.22em;
  height: 0.22em;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--acid);
  animation: pageHeroLivePulse 2s ease-out infinite;
}
@keyframes pageHeroLivePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 85, 61, 0.7);
  }
  70% {
    box-shadow: 0 0 0 0.45em rgba(200, 85, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 85, 61, 0);
  }
}

/* HIGHLIGHTER SWIPE — used on "actually" (FAQ page)
   Terracotta highlighter mark drawn behind the word, slightly skewed/rotated. */
.page-hero h1 .highlighter-word {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  z-index: 1;
}
.page-hero h1 .highlighter-word::after {
  content: '';
  position: absolute;
  left: -0.15em;
  right: -0.15em;
  top: 38%;
  bottom: 8%;
  background: var(--acid);
  opacity: 0.55;
  z-index: -1;
  transform: rotate(-1.5deg) skewX(-4deg);
  transform-origin: left center;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(157, 62, 43, 0.22);
  animation: pageHeroHighlighterSwipe 1.4s cubic-bezier(.7,.1,.2,1) 0.3s both;
}
@keyframes pageHeroHighlighterSwipe {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* Mobile: thinner strokes + tighter sticker rotation */
@media (max-width: 600px) {
  .page-hero h1 .circled-word svg path { stroke-width: 3; }
  .page-hero h1 .struck-word svg path { stroke-width: 4; }
  .page-hero h1 .sticker-word {
    transform: rotate(-2deg) translateY(-0.02em);
    box-shadow:
      1px 2px 0 var(--acid-deep),
      2px 4px 8px rgba(157, 62, 43, 0.18);
  }
  .page-hero h1 .live-word .live-dot {
    top: 0.15em;
    right: -0.45em;
    width: 0.18em;
    height: 0.18em;
  }
}

/* Reduced-motion: instantly show end states */
@media (prefers-reduced-motion: reduce) {
  .page-hero h1 .circled-word svg path,
  .page-hero h1 .struck-word svg path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .page-hero h1 .live-word .live-dot {
    animation: none;
    box-shadow: none;
  }
  .page-hero h1 .highlighter-word::after {
    animation: none;
    clip-path: inset(0 0 0 0);
  }
}


/* ============================================
   ROUND 4 MOBILE FIXES
   ============================================ */

/* Mobile hamburger menu — open state: light cream panel, ink text */
@media (max-width: 860px) {
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem var(--gutter);
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(22, 20, 18, 0.08);
  }
  .nav-links.mobile-open a {
    color: var(--ink);
    font-size: 1rem;
    padding: 0.4rem 0;
  }
  .nav-links.mobile-open a:hover,
  .nav-links.mobile-open a.active {
    color: var(--acid);
  }
  /* Hamburger icon active state */
  .mobile-toggle.is-open span:nth-child(1) {
    top: 19px; transform: rotate(45deg);
  }
  .mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
  .mobile-toggle.is-open span:nth-child(3) {
    top: 19px; transform: rotate(-45deg);
  }
}

/* Form .split rows: stack from iPad portrait (900px) down, not just 600px */
@media (max-width: 900px) {
  .form-row.split {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}


/* ============================================
   ROUND 6: long button wrap fix
   ============================================ */
@media (max-width: 700px) {
  /* Allow long button text to wrap on narrow screens, with sane line-height + padding.
     Default .btn is white-space: nowrap which causes overflow on phones. */
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
  }
}
