/* ==========================================================================
   PROMOTA — Stylesheet
   Editorial. Luxury. Quiet confidence. Mobile-first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens — Promota Design System
   --------------------------------------------------------------------------

   COLOR SYSTEM
   ────────────
   Grays follow Tailwind's `stone` palette (warm gray family — pairs naturally
   with the gold accent). We commit to 4 light shades: 50, 100, 200, and an
   elevated white. Shade 300+ is reserved for extreme cases only.

       stone-50   #FAFAF9   --c-bg            page background
       stone-100  #F5F5F4   --c-bg-soft       alternating section tint
       stone-200  #E7E5E4   --c-line          dividers, card borders
       white      #FFFFFF   --c-bg-elev       elevated surfaces

       stone-500  #78716C   --c-muted         secondary text, labels
       stone-700  #44403C   --c-ink-soft      body text, muted headlines
       stone-900  #1C1917   --c-ink           primary ink

   ACCENT — built with the HSL harmonic-variants rule from the brief:
       light:  S − 20, L + 5   (decorative, soft tints)
       base:   the brand gold
       dark:   S + 20, L − 5   (hover, emphasis on dark surfaces)

       --c-accent-light    hsl(42, 29%, 63%)  #BCAB85   champagne
       --c-accent          hsl(42, 49%, 58%)  #C9A961   base brand
       --c-accent-dark     hsl(42, 69%, 53%)  #DAA834   rich gold (hover, dark bg)

   Plus a fourth, deeper variant for accent text on light backgrounds. The
   HSL-rule "dark" is brighter and more saturated, which works on dark
   surfaces but FAILS WCAG contrast (2.04:1) for italic emphasis on white.
   This deeper tone passes 4.1:1 — used only where typography demands it:
       --c-accent-deep     hsl(42, 50%, 36%)  #8B6F2E   deep gold (text)

   DISTRIBUTION — 60-20-20
       60%  ink + warm-white surfaces
       20%  stone grays (borders, muted text, dividers)
       20%  gold accent (italics, dots, eyebrow lines, hover)
   -------------------------------------------------------------------------- */
:root {
  /* Light surfaces — Tailwind `stone` palette */
  --c-bg:           #FAFAF9;   /* stone-50  */
  --c-bg-soft:      #F5F5F4;   /* stone-100 */
  --c-line:         #E7E5E4;   /* stone-200 */
  --c-line-soft:    #F5F5F4;   /* stone-100 */
  --c-bg-elev:      #FFFFFF;

  /* Ink — Tailwind `stone` palette */
  --c-muted:        #78716C;   /* stone-500 */
  --c-ink-soft:     #44403C;   /* stone-700 */
  --c-ink:          #1C1917;   /* stone-900 */

  /* Dark surfaces (hero + loom) */
  --c-bg-dark:      #0B0B0A;
  --c-bg-dark-2:    #131311;
  --c-ink-light:    #F4F2EB;
  --c-ink-light-soft: #B6B2A6;
  --c-line-dark:    #2A2A26;

  /* Accent — HSL harmonic family */
  --c-accent-light: #BCAB85;   /* hsl(42, 29%, 63%) — formula light */
  --c-accent:       #C9A961;   /* hsl(42, 49%, 58%) — base */
  --c-accent-dark:  #DAA834;   /* hsl(42, 69%, 53%) — formula dark */
  --c-accent-deep:  #8B6F2E;   /* deeper variant for text on light bg (WCAG) */

  /* Typography */
  --f-display: "Fraunces", "Times New Roman", serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;
  --s-11: 160px;

  /* Layout — max-w aligned to Tailwind 7xl (80rem = 1280px) */
  --max-w: 1280px;
  --max-w-narrow: 880px;
  --nav-h: 64px;

  /* Radius — distinct from default Shadcn / library values.
     Cards use a print-editorial 2px (sharp), pills stay full-round. */
  --r-card: 2px;
  --r-pill: 999px;

  /* Elevation — handmade shadow stacks (light + shadow, not flat) */
  --sh-btn-rest:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(28, 25, 23, 0.08),
    0 6px 14px -4px rgba(28, 25, 23, 0.14);
  --sh-btn-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 4px rgba(139, 111, 46, 0.18),
    0 12px 24px -6px rgba(139, 111, 46, 0.30);
  --sh-card:
    0 1px 0 rgba(28, 25, 23, 0.03),
    0 1px 2px rgba(28, 25, 23, 0.04),
    0 8px 24px -12px rgba(28, 25, 23, 0.08);

  /* Motion */
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

input { font: inherit; }

cite { font-style: normal; }

::selection { background: var(--c-accent); color: var(--c-bg-dark); }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--s-7); }
}

/* Section labels (eyebrows on left-aligned sections) */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 500;
}
.section-label__num {
  font-family: var(--f-display);
  font-feature-settings: "ss01" 1;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--c-accent);
  line-height: 1;
}
.section-label--light { color: var(--c-ink-light-soft); }
.section-label--light .section-label__num { color: var(--c-accent); }

/* --------------------------------------------------------------------------
   3. Buttons — handmade depth (not Shadcn-flat)
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg-1: var(--c-ink);          /* gradient top */
  --btn-bg-2: #0a0908;                /* gradient bottom — slightly darker */
  --btn-fg:   var(--c-bg);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 24px;
  background: linear-gradient(180deg, var(--btn-bg-1) 0%, var(--btn-bg-2) 100%);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.005em;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-btn-rest);
  transition:
    transform .3s var(--ease),
    box-shadow .3s var(--ease),
    background .3s var(--ease),
    color .3s var(--ease);
  white-space: nowrap;
  will-change: transform;
  isolation: isolate;
}
/* Hairline border drawn as a pseudo-element to avoid layout shifts and to
   sit ABOVE the gradient — gives the pill a crisp, etched edge. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.btn svg { position: relative; z-index: 1; transition: transform .3s var(--ease); }
.btn span { position: relative; z-index: 1; }

.btn:hover {
  transform: translateY(-1px);
  --btn-bg-1: var(--c-accent-deep);
  --btn-bg-2: #6F5824;
  color: #fff;
  box-shadow: var(--sh-btn-hover);
}
.btn:hover svg { transform: translate(3px, 0); }
.btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.20),
    0 1px 2px rgba(28, 25, 23, 0.10);
  transition-duration: .08s;
}
.btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.btn--primary {
  --btn-bg-1: var(--c-ink);
  --btn-bg-2: #0a0908;
  --btn-fg:   var(--c-bg);
}

.btn--xl {
  padding: 20px 36px;
  font-size: 17px;
}

/* --------------------------------------------------------------------------
   4. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--c-line);
}

.nav.is-dark { color: var(--c-ink-light); }
.nav.is-dark .nav__cta {
  background: transparent;
  color: var(--c-ink-light);
  border-color: rgba(244, 242, 235, 0.35);
}
.nav.is-dark .nav__cta:hover {
  background: var(--c-ink-light);
  color: var(--c-bg-dark);
  border-color: var(--c-ink-light);
}

.nav__inner {
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .nav__inner { padding-inline: var(--s-7); }
}

.nav__logo {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01" 1;
}

.nav__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--c-ink) 0%, #0a0908 100%);
  color: var(--c-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(28, 25, 23, 0.10);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  isolation: isolate;
}
.nav__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.nav__cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, var(--c-accent-deep) 0%, #6F5824 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 4px rgba(139, 111, 46, 0.18),
    0 8px 16px -4px rgba(139, 111, 46, 0.24);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--c-bg-dark);
  color: var(--c-ink-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + var(--s-7));
  padding-bottom: var(--s-8);
  isolation: isolate;
}

/* Always-on atmospheric base — GPU-only, works even if canvas/JS fails or
   reduced-motion is active. Creates the "light through fog" feel.            */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}
.hero::before {
  background: radial-gradient(closest-side,
    rgba(255, 245, 220, 0.28) 0%,
    rgba(255, 235, 200, 0.13) 35%,
    rgba(201, 169, 97, 0.06) 60%,
    transparent 80%);
  top: -25%;
  left: -25%;
  width: 95%;
  height: 95%;
  animation: drift-a 22s ease-in-out infinite alternate;
}
.hero::after {
  background: radial-gradient(closest-side,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(245, 245, 240, 0.10) 40%,
    transparent 75%);
  bottom: -30%;
  left: 15%;
  width: 80%;
  height: 80%;
  animation: drift-b 28s ease-in-out infinite alternate;
}
@keyframes drift-a {
  0%   { transform: translate(0, 0)     scale(1);    opacity: 0.85; }
  100% { transform: translate(15%, 6%)  scale(1.12); opacity: 1;    }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0)      scale(1);    opacity: 0.7; }
  100% { transform: translate(-10%, -4%) scale(1.18); opacity: 0.95;}
}

.hero__smoke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  /* Gradient mask: smoke stays softer over the headline (left side) and is
     fully visible in the open right side. This is what consulting.com does
     implicitly — they composite their fluid effect against an off-screen
     gradient so the readable column stays clean. */
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.55) 28%,
    rgba(0,0,0,0.85) 55%,
    rgba(0,0,0,1)    80%
  );
          mask-image: linear-gradient(
    to right,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.55) 28%,
    rgba(0,0,0,0.85) 55%,
    rgba(0,0,0,1)    80%
  );
}

/* On narrow viewports the headline takes the full width, so the gradient
   mask should be vertical instead — soft on top (over text), strong below. */
@media (max-width: 700px) {
  .hero__smoke {
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0,0,0,0.45) 0%,
      rgba(0,0,0,0.70) 50%,
      rgba(0,0,0,1)    85%
    );
            mask-image: linear-gradient(
      to bottom,
      rgba(0,0,0,0.45) 0%,
      rgba(0,0,0,0.70) 50%,
      rgba(0,0,0,1)    85%
    );
  }
}

.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-5);
  width: 100%;
}
@media (min-width: 768px) {
  .hero__content { padding-inline: var(--s-7); }
}

.hero__eyebrow {
  margin: 0 0 var(--s-6);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink-light-soft);
}
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--c-accent);
  margin-right: var(--s-3);
  vertical-align: middle;
}

.hero__headline {
  margin: 0 0 var(--s-6);
  font-family: var(--f-display);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(40px, 8.5vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--c-ink-light);
  max-width: 14ch;
}
.hero__headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--c-accent);
  font-feature-settings: "ss01" 1;
}

.hero__sub {
  margin: 0 0 var(--s-7);
  max-width: 52ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--c-ink-light-soft);
  font-weight: 300;
}

.hero__cta {
  --btn-bg-1: #FBF9F2;
  --btn-bg-2: #ECE7D8;
  --btn-fg:   var(--c-bg-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 1px 2px rgba(0, 0, 0, 0.20),
    0 12px 28px -8px rgba(0, 0, 0, 0.45);
}
.hero__cta::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(0,0,0,0.06));
}
.hero__cta:hover {
  --btn-bg-1: var(--c-accent);
  --btn-bg-2: var(--c-accent-deep);
  color: var(--c-bg-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 14px 32px -8px rgba(201, 169, 97, 0.45);
}

.hero__meta {
  margin: var(--s-5) 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-light-soft);
  font-weight: 500;
}
.hero__meta::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--c-accent);
  margin-right: var(--s-3);
  vertical-align: middle;
}

/* Entrance animations — only applied when JS confirms it's running.
   This guarantees the hero is fully visible by default; the fade-up is
   purely additive. */
.js .hero__eyebrow,
.js .hero__headline,
.js .hero__sub,
.js .hero__cta,
.js .hero__meta {
  opacity: 0;
  animation: fade-up 1s var(--ease) forwards;
}
.js .hero__eyebrow  { animation-delay: 0.40s; }
.js .hero__headline { animation-delay: 0.55s; animation-duration: 1.1s; }
.js .hero__sub      { animation-delay: 0.85s; }
.js .hero__cta      { animation-delay: 1.05s; animation-duration: 0.9s; }
.js .hero__meta     { animation-delay: 1.30s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   6. Credibility block (dark)
   -------------------------------------------------------------------------- */
.cred {
  position: relative;
  padding: var(--s-9) 0;
  background: var(--c-bg-dark);
  color: var(--c-ink-light);
  text-align: center;
  overflow: hidden;
}
@media (min-width: 768px) { .cred { padding: var(--s-10) 0; } }

.cred__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 400px at 50% 0%,  hsla(42, 70%, 60%, 0.06), transparent 70%),
    radial-gradient(800px 500px at 50% 100%, hsla(42, 50%, 40%, 0.04), transparent 70%);
}
.cred__container { position: relative; z-index: 1; max-width: var(--max-w-narrow); }

.cred__eyebrow {
  margin: 0 0 var(--s-5);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.cred__eyebrow::before,
.cred__eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--c-accent);
  vertical-align: middle;
  opacity: 0.6;
}
.cred__eyebrow::before { margin-right: var(--s-3); }
.cred__eyebrow::after  { margin-left: var(--s-3); }

.cred__heading {
  margin: 0 0 var(--s-5);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--c-ink-light);
  max-width: 18ch;
  margin-inline: auto;
}
.cred__heading em {
  font-style: italic;
  font-weight: 300;
  color: var(--c-accent);
  font-feature-settings: "ss01" 1;
}

.cred__sub {
  margin: 0 auto var(--s-8);
  max-width: 50ch;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
  color: var(--c-ink-light-soft);
  font-weight: 300;
}

/* Logos row */
.cred__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--c-line-dark);
  border-bottom: 1px solid var(--c-line-dark);
  margin-bottom: var(--s-8);
}
@media (min-width: 768px) { .cred__logos { gap: var(--s-6); } }

/* Logos display directly on the dark surface, preserving each logo's
   native background. Each logo is its own self-contained mark. */
.cred__logo {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.9;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.cred__logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}
@media (min-width: 768px) {
  .cred__logo { height: 64px; max-width: 220px; }
}

/* Iman block */
.cred__person {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
}
.cred__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--c-line-dark);
  box-shadow: 0 0 0 4px hsla(42, 49%, 58%, 0.05);
}
@media (min-width: 768px) {
  .cred__avatar { width: 80px; height: 80px; }
}
.cred__personmeta { text-align: left; }
.cred__personname {
  margin: 0 0 2px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 20px);
  letter-spacing: -0.01em;
  color: var(--c-ink-light);
}
.cred__personrole {
  margin: 0;
  font-size: 13px;
  color: var(--c-ink-light-soft);
  letter-spacing: 0.01em;
}

.cred__note {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  line-height: 1.6;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   7. Calculator
   -------------------------------------------------------------------------- */
.calc {
  padding: var(--s-9) 0 var(--s-9);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line-soft);
}
@media (min-width: 768px) {
  .calc { padding: var(--s-11) 0 var(--s-11); }
}

.calc__heading {
  margin: 0 0 var(--s-4);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  max-width: 18ch;
}

.calc__sublede {
  margin: var(--s-2) 0 var(--s-3);
  max-width: 52ch;
  font-family: var(--f-display);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  font-weight: 400;
}
.calc__lede {
  margin: 0 0 var(--s-8);
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink-soft);
}

.calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7);
}
@media (min-width: 900px) {
  .calc__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s-9);
    align-items: start;
  }
}

.calc__inputs {
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
  min-width: 0; /* allow flex children with large content to shrink */
}

.field { display: flex; flex-direction: column; gap: var(--s-3); }
.field__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 500;
}
.field__inputwrap {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  border-bottom: 1px solid var(--c-line);
  padding: var(--s-3) 0 var(--s-3);
  transition: border-color .3s var(--ease);
}
.field__inputwrap:focus-within { border-bottom-color: var(--c-accent); }
.field__input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  outline: none;
  -moz-appearance: textfield;
  min-width: 0;
}
.field__input::-webkit-outer-spin-button,
.field__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field__suffix {
  font-size: 14px;
  color: var(--c-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.field__hint {
  margin: 0;
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.02em;
}

.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
@media (min-width: 480px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
}
.tier {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-4);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  text-align: left;
  transition:
    border-color .25s var(--ease),
    background .25s var(--ease),
    transform .25s var(--ease),
    box-shadow .25s var(--ease);
  position: relative;
}
.tier:hover {
  border-color: var(--c-ink-soft);
  box-shadow:
    0 1px 0 rgba(28, 25, 23, 0.02),
    0 4px 12px -4px rgba(28, 25, 23, 0.08);
}
.tier--active {
  border-color: var(--c-ink);
  background: linear-gradient(180deg, var(--c-ink) 0%, #0a0908 100%);
  color: var(--c-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 1px 2px rgba(28, 25, 23, 0.10),
    0 6px 14px -4px rgba(28, 25, 23, 0.18);
}
.tier--active .tier__range { color: rgba(250, 250, 247, 0.6); }
.tier__name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tier__range {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 400;
  color: var(--c-muted);
  letter-spacing: 0;
}

/* Output side */
.calc__output {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: var(--s-6);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  position: relative;
}
@media (min-width: 900px) {
  .calc__output {
    padding: var(--s-7) var(--s-7) var(--s-8);
    position: sticky;
    top: calc(var(--nav-h) + var(--s-5));
  }
}
.calc__output::before {
  content: "";
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
}

.result { display: flex; flex-direction: column; gap: var(--s-2); }
.result__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 500;
}
.result__value {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "ss01" 1;
  transition: opacity .2s var(--ease);
}
.result__value--big {
  font-size: clamp(56px, 9vw, 92px);
  color: var(--c-ink);
  position: relative;
  letter-spacing: -0.025em; /* tighter on the hero number — feels "earned" */
}
.result--primary .result__value--big {
  background: linear-gradient(180deg, var(--c-ink) 0%, var(--c-accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Caption now sits BETWEEN label and number — sets framing before reveal */
.result__caption {
  margin: 0 0 var(--s-3);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}
.result.is-update .result__value { opacity: 0.4; }

/* Note about midpoints — now sits directly under the price tier cards,
   in the inputs column. On desktop this appears to the left of the result
   card; on mobile it sits naturally before the result in the stack. */
.calc__midnote {
  margin: var(--s-5) 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-muted);
  max-width: 52ch;
  padding-left: var(--s-3);
  border-left: 1px solid var(--c-line);
}

/* --------------------------------------------------------------------------
   8. How it works — phases (dark warm)
   -------------------------------------------------------------------------- */
.how {
  position: relative;
  padding: var(--s-9) 0;
  background: #1e1d1a; /* warm dark per design rhythm */
  color: var(--c-ink-light);
  overflow: hidden;
}
@media (min-width: 768px) { .how { padding: var(--s-11) 0; } }

.how__heading {
  margin: 0 0 var(--s-4);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: var(--c-ink-light);
  max-width: 22ch;
}
.how__sub {
  margin: 0 0 var(--s-8);
  max-width: 58ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--c-ink-light-soft);
  font-weight: 300;
}

/* Phases — stacked rows with a vertical gold gutter on the left */
.phases {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--c-line-dark);
}
.phase {
  position: relative;
  padding: var(--s-6) 0 var(--s-6) var(--s-5);
  border-bottom: 1px solid var(--c-line-dark);
}
@media (min-width: 768px) {
  .phase {
    padding: var(--s-7) 0 var(--s-7) var(--s-6);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    column-gap: var(--s-8);
    align-items: start;
  }
}
/* Gold left gutter — appears on hover/focus for a subtle interactive feel,
   visible always for the typographic spine effect. */
.phase::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--s-6);
  bottom: var(--s-6);
  width: 1px;
  background: linear-gradient(180deg,
    hsla(42, 49%, 58%, 0.5) 0%,
    hsla(42, 49%, 58%, 0.1) 100%);
}
@media (min-width: 768px) {
  .phase::before { top: var(--s-7); bottom: var(--s-7); }
}

.phase__head {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
@media (min-width: 768px) {
  .phase__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
    margin-bottom: 0;
  }
}
.phase__num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: var(--c-accent);
  font-feature-settings: "ss01" 1;
  font-weight: 400;
  letter-spacing: 0;
  min-width: 24px;
}
.phase__name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.015em;
  color: var(--c-ink-light);
  flex: 1;
}
.phase__days {
  font-size: 13px;
  color: var(--c-ink-light-soft);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.phase__body {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(15px, 1.4vw, 16px);
  line-height: 1.65;
  color: var(--c-ink-light-soft);
  font-weight: 300;
}

.how__close {
  margin: var(--s-8) 0 0;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-ink-light);
}
.how__close em {
  font-style: italic;
  color: var(--c-accent);
  font-feature-settings: "ss01" 1;
}

/* --------------------------------------------------------------------------
   9. Is this for me
   -------------------------------------------------------------------------- */
.forme {
  padding: var(--s-9) 0;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line-soft);
}
@media (min-width: 768px) { .forme { padding: var(--s-11) 0; } }

.forme__heading {
  margin: 0 0 var(--s-8);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  max-width: 22ch;
}
.forme__heading em {
  font-style: italic;
  color: var(--c-accent-deep);
  font-feature-settings: "ss01" 1;
}

.forme__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  border-top: 1px solid var(--c-line);
}
.forme__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--s-3);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--c-line-soft);
}
.forme__item p {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
  color: var(--c-ink);
  font-weight: 400;
}
.forme__bullet {
  display: inline-block;
  color: var(--c-accent);
  font-family: var(--f-display);
  font-style: italic;
  line-height: 1.5;
  font-size: 22px;
}
.forme__item--highlight {
  position: relative;
  background: linear-gradient(90deg, var(--c-accent-wash, hsla(42, 49%, 58%, 0.07)) 0%, transparent 75%);
  margin-inline: calc(var(--s-4) * -1);
  padding-inline: var(--s-4);
  border-radius: var(--r-card);
  border-bottom-color: transparent;
}
/* Gold hairline on the left edge — signature accent that reads as
   "this is the important one" without resorting to a heavy callout box. */
.forme__item--highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--s-4);
  bottom: var(--s-4);
  width: 2px;
  background: linear-gradient(180deg, var(--c-accent) 0%, transparent 100%);
}
.forme__item--highlight strong {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--c-accent-deep);
  font-feature-settings: "ss01" 1;
}
.forme__inline {
  display: block;
  margin-top: var(--s-2);
  font-size: 14px;
  color: var(--c-muted);
  font-style: italic;
  font-family: var(--f-display);
  letter-spacing: 0;
}

.forme__stat {
  margin: var(--s-8) 0 0;
  padding: var(--s-6) 0 0;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line-soft);
}
.forme__statnum {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--c-ink);
  margin-right: 6px;
  font-feature-settings: "ss01" 1;
  letter-spacing: -0.01em;
}
.forme__stat cite {
  display: block;
  margin-top: var(--s-2);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--c-muted);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   10. Loom audit (dark contrast)
   -------------------------------------------------------------------------- */
.loom {
  position: relative;
  padding: var(--s-10) 0;
  background: var(--c-bg-dark);
  color: var(--c-ink-light);
  overflow: hidden;
}
@media (min-width: 768px) { .loom { padding: var(--s-11) 0; } }

.loom__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 12% 30%, rgba(201, 169, 97, 0.10), transparent 60%),
    radial-gradient(700px 500px at 90% 80%, rgba(244, 242, 235, 0.05), transparent 65%);
}

.loom__container {
  position: relative;
  z-index: 1;
  max-width: var(--max-w-narrow);
}

.loom__heading {
  margin: 0 0 var(--s-7);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--c-ink-light);
  max-width: 22ch;
}
.loom__heading em {
  font-style: italic;
  color: var(--c-accent);
  font-feature-settings: "ss01" 1;
}

.loom__body {
  margin: 0 0 var(--s-8);
  max-width: 56ch;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.65;
  color: var(--c-ink-light-soft);
  font-weight: 300;
}
.loom__body strong {
  color: var(--c-ink-light);
  font-weight: 500;
  font-family: var(--f-display);
  font-feature-settings: "ss01" 1, "tnum" 1;
  font-size: 1.05em;
  letter-spacing: -0.01em;
}

.loom__proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin: 0 0 var(--s-8);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--c-line-dark);
  border-bottom: 1px solid var(--c-line-dark);
}
@media (min-width: 640px) {
  .loom__proof {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: var(--s-6);
  }
}
.loom__proofitem {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.loom__proofnum {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ink-light);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "ss01" 1;
}
.loom__prooflabel {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-light-soft);
  font-weight: 500;
}
.loom__proofdivider {
  display: none;
  width: 1px;
  height: 40px;
  background: var(--c-line-dark);
  justify-self: center;
}
@media (min-width: 640px) { .loom__proofdivider { display: block; } }

/* Samuel block — humanises the direct line. Larger than Iman's avatar
   in the credibility section, because this IS Samuel's direct line. */
.loom__person {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.loom__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--c-line-dark);
  box-shadow: 0 0 0 4px hsla(42, 49%, 58%, 0.06);
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .loom__avatar { width: 64px; height: 64px; }
}
.loom__personmeta { text-align: left; }
.loom__personname {
  margin: 0 0 2px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 20px);
  letter-spacing: -0.01em;
  color: var(--c-ink-light);
}
.loom__personrole {
  margin: 0;
  font-size: 13px;
  color: var(--c-ink-light-soft);
  letter-spacing: 0.01em;
}

.loom__email {
  margin: 0;
  font-size: 14px;
  color: var(--c-ink-light-soft);
  letter-spacing: 0.02em;
}
.loom__email a {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--c-accent);
  border-bottom: 1px solid rgba(201, 169, 97, 0.4);
  padding-bottom: 2px;
  margin-left: 6px;
  transition: border-color .25s var(--ease);
  font-feature-settings: "ss01" 1;
  letter-spacing: -0.01em;
}
.loom__email a:hover { border-bottom-color: var(--c-accent); }

/* --------------------------------------------------------------------------
   11. Final apply
   -------------------------------------------------------------------------- */
.apply {
  padding: var(--s-11) 0;
  background: var(--c-bg);
  text-align: center;
}
@media (min-width: 768px) {
  /* Extra breathing room since this is the last beat before the close */
  .apply { padding: calc(var(--s-11) + var(--s-7)) 0; }
}

.apply__container { max-width: var(--max-w-narrow); }

.apply__heading {
  margin: 0 0 var(--s-7);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--c-ink);
}
.apply__heading em {
  font-style: italic;
  font-weight: 300;
  color: var(--c-accent-deep);
  font-feature-settings: "ss01" 1;
}

.apply__cta { margin: var(--s-2) 0 0; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: var(--s-7) 0 var(--s-6);
  background: var(--c-bg);
  border-top: 1px solid var(--c-line-soft);
}
.footer__container { max-width: var(--max-w); }

.footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-bottom: var(--s-5);
}
@media (min-width: 640px) {
  .footer__top {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}
.footer__logo {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01" 1;
}
.footer__email {
  font-size: 14px;
  color: var(--c-ink-soft);
  letter-spacing: 0.02em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line-soft);
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}
.footer__link { color: var(--c-muted); transition: color .2s var(--ease); }
.footer__link:hover { color: var(--c-ink); }
.footer__sep { color: var(--c-line); }
.footer__copy {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   13. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Canvas off, but keep the CSS atmospheric base layer visible (no motion) */
  .hero__smoke { display: none; }
  .hero::before { opacity: 1; transform: translate(8%, 3%) scale(1.06); }
  .hero::after  { opacity: 0.85; transform: translate(-5%, -2%) scale(1.12); }
}
