/* a quiet counter — Partner Program hub */

:root {
  --parchment:   #F9F7F2;
  --parchment-2: #F4F0E7;
  --linen:       #F3EBE0;
  --sage:        #537A4B;
  --sage-deep:   #3F5E39;
  --sage-mute:   #87A381;
  --sage-wash:   rgba(83, 122, 75, 0.08);
  --ink:         #1C1917;
  --ink-soft:    #2A2522;
  --pencil:      #6B6560;
  --pencil-2:    #978F86;
  --cream:       #FAFAF9;
  --rule:        rgba(40, 30, 15, 0.12);
  --rule-strong: rgba(40, 30, 15, 0.22);
  --paprika:     #B85439;
  --success-bg:  #F0F5EE;
  --success-text:#3F5E39;
  --shadow-sm:   0 1px 2px rgba(40,30,15,0.06), 0 1px 1px rgba(40,30,15,0.04);
  --shadow-md:   0 4px 14px rgba(40,30,15,0.08), 0 1px 2px rgba(40,30,15,0.05);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --maxw: 1040px;
  --gutter: 20px;
  --portal-nav-w: 220px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.38;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.10  0 0 0 0 0.06  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

h1, h2, h3, h4 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.display em {
  font-style: italic;
  color: var(--sage-deep);
  font-variation-settings: "SOFT" 80, "WONK" 1;
}

p { margin: 0; text-wrap: pretty; }
a { color: var(--sage-deep); text-decoration: none; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; }
::selection { background: rgba(83,122,75,0.18); color: var(--ink); }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wordmark { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 0.95em; }

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249,247,242,0.82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, background 180ms ease;
}
.site-nav[data-scrolled="1"] {
  border-bottom-color: var(--rule);
  background: rgba(249,247,242,0.94);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  gap: 12px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand-link:hover { text-decoration: none; }
.brand-mark { width: 24px; height: 24px; flex: none; }
.brand-name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-program-label {
  display: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--pencil);
  padding-right: 8px;
  border-right: 1px solid var(--rule);
  margin-right: 4px;
}
@media (min-width: 640px) { .nav-program-label { display: block; } }

.btn-ghost {
  appearance: none;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn-ghost:hover { background: rgba(40,30,15,0.03); text-decoration: none; }

.btn-primary {
  appearance: none;
  border: 0;
  background: var(--sage-deep);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 150ms ease, transform 150ms ease;
  box-shadow: 0 1px 0 rgba(40,30,15,0.12);
  text-decoration: none;
}
.btn-primary:hover { background: #344E2F; text-decoration: none; }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.field-input:focus-visible,
.tab-btn:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* ── Shared flourishes ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 10px;
}

/* ── Partner landing ── */
.partner-hero {
  position: relative;
  z-index: 1;
  padding: 32px 0 28px;
}
@media (min-width: 840px) { .partner-hero { padding: 44px 0 36px; } }

.partner-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 840px) {
  .partner-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: start;
  }
}

.partner-hero-copy { display: flex; flex-direction: column; gap: 0; }
.partner-hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin-bottom: 12px;
  font-variation-settings: "SOFT" 35, "WONK" 0;
}
.partner-hero-title em {
  font-style: italic;
  color: var(--sage-deep);
  font-variation-settings: "SOFT" 90, "WONK" 1;
}
.partner-hero-lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 18px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 8px; }

.partner-hero-visual {
  margin: 0;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-carousel {
  display: grid;
  align-items: center;
  justify-items: center;
  column-gap: 10px;
  row-gap: 12px;
  grid-template-columns: auto minmax(0, 260px) auto;
  grid-template-rows: auto auto;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
@media (min-width: 480px) {
  .hero-carousel { grid-template-columns: auto minmax(0, 280px) auto; }
}
@media (min-width: 840px) {
  .hero-carousel { grid-template-columns: auto minmax(0, 300px) auto; }
}

.hero-carousel-nav--prev { grid-column: 1; grid-row: 1; align-self: center; }
.hero-carousel-viewport {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: min(72vw, 260px);
}
@media (min-width: 480px) {
  .hero-carousel-viewport { max-width: 280px; }
}
@media (min-width: 840px) {
  .hero-carousel-viewport { max-width: 300px; }
}
.hero-carousel-nav--next { grid-column: 3; grid-row: 1; align-self: center; }
.hero-carousel-dots {
  grid-column: 1 / -1;
  grid-row: 2;
}

/* Narrow screens: arrows sit beside the dots, below the frame */
@media (max-width: 420px) {
  .hero-carousel {
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
  }
  .hero-carousel-viewport {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }
  .hero-carousel-nav--prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }
  .hero-carousel-dots {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }
  .hero-carousel-nav--next {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
  }
}

.hero-carousel-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: rgba(249, 247, 242, 0.94);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 150ms ease, opacity 150ms ease;
  padding: 0;
  flex-shrink: 0;
}
@media (min-width: 480px) {
  .hero-carousel-nav { width: 40px; height: 40px; }
}

.hero-carousel-viewport {
  aspect-ratio: 1 / 2;
  border-radius: clamp(22px, 6vw, 32px);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  background: var(--linen);
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.hero-carousel-viewport:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.hero-carousel-slides {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 280ms cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
}
.hero-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-carousel-nav:hover:not(:disabled) { background: #fffef9; }
.hero-carousel-nav:disabled { opacity: 0.35; cursor: default; }
.hero-carousel-nav:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-carousel-dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(40, 30, 15, 0.18);
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}
.hero-carousel-dot[aria-current="true"] {
  width: 22px;
  background: var(--sage-deep);
}
.hero-carousel-dot:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.hero-caption {
  margin-top: 10px;
  width: 100%;
  max-width: min(72vw, 260px);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pencil);
  text-align: center;
}
.hero-caption-sep { opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide { transition: none; }
}

@media (max-width: 839px) {
  .partner-hero-grid {
    gap: 24px;
  }
  .partner-hero-lead {
    max-width: none;
  }
}

.spec-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .spec-bar { grid-template-columns: repeat(4, 1fr); } }
.spec-cell {
  background: #FBF9F4;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pencil);
}
.spec-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.spec-note { font-size: 12px; color: var(--pencil-2); line-height: 1.35; }

.prog-block {
  position: relative;
  z-index: 1;
  padding: 28px 0;
}
.prog-block-inner { max-width: 640px; }
.prose {
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-soft);
}

.prog-band {
  position: relative;
  z-index: 1;
  background: var(--linen);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 0;
}
.band-head { margin-bottom: 18px; max-width: 520px; }
.band-intro {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 900px) {
  .fit-grid { grid-template-columns: repeat(4, 1fr); }
}
.fit-card {
  background: rgba(251,249,244,0.85);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.fit-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.fit-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pencil);
}
.prose--muted { color: var(--pencil); font-size: 14px; }
.mono-sample {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-soft);
  word-break: break-all;
}
.fit-grid--three {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .fit-grid--three { grid-template-columns: repeat(3, 1fr); }
}
.fit-card strong {
  font-weight: 600;
  color: var(--ink);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card {
  background: #FBF9F4;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--sage-deep);
  text-transform: uppercase;
}
.step-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.step-card p {
  font-size: 13px;
  line-height: 1.48;
  color: var(--pencil);
  margin-top: auto;
}

.prog-cta {
  position: relative;
  z-index: 1;
  padding: 36px 0 48px;
}
.prog-cta-inner {
  max-width: 520px;
  display: grid;
  gap: 12px;
}
.cta-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.prog-cta-inner > p { font-size: 14.5px; color: var(--pencil); line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.cta-contact { font-size: 13px; color: var(--pencil); margin-top: 4px; }
.cta-contact a { font-weight: 600; }

/* legacy doc classes (unused but harmless) */
.partner-doc { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 28px var(--gutter) 48px; }

/* ── Footer ── */
.site-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--rule);
  padding: 16px 0 24px;
  margin-top: auto;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--pencil);
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.foot-links a { color: var(--pencil); font-size: 12px; }
.foot-links a:hover { color: var(--ink); }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em; }
.field-input {
  appearance: none;
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  width: 100%;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field-input::placeholder { color: var(--pencil-2); }
.field-input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(83,122,75,0.10); }
.field-input[data-error="1"] { border-color: var(--paprika); }
.field-select { cursor: pointer; }
.field-hint { font-size: 12px; color: var(--pencil); line-height: 1.45; }
.mono-inline {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-soft);
}
.field-err { font-size: 12px; color: var(--paprika); }

.login-page {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 55px);
  display: grid;
  place-items: center;
  padding: 32px var(--gutter) 48px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #FBF9F4;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-md);
}
.login-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 8px;
}
.login-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.login-lead { font-size: 14px; color: var(--pencil); line-height: 1.5; margin-bottom: 20px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form .btn-primary { width: 100%; padding: 11px 16px; font-size: 14px; border-radius: var(--r-md); }
.login-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--pencil);
  text-align: center;
}
.login-foot a { font-weight: 600; }
.demo-note {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--sage-wash);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ── Enquiry form ── */
.enquire-page {
  position: relative;
  z-index: 1;
  padding: 32px var(--gutter) 48px;
}
.enquire-shell {
  max-width: 560px;
  margin: 0 auto;
}
.enquire-head { margin-bottom: 24px; }
.enquire-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(26px, 4.5vw, 32px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
}
.enquire-lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.enquire-form {
  background: #FBF9F4;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 480px) { .enquire-form { padding: 28px 28px 26px; } }
.fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fieldset-legend {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 480px) { .platform-grid { grid-template-columns: repeat(2, 1fr); } }
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.check-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--sage-deep);
  flex-shrink: 0;
}
.field-select {
  appearance: none;
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  width: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236B6560' d='M1 1.5 6 6.5 11 1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.field-select:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(83,122,75,0.10); }
.field-textarea {
  appearance: none;
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  width: 100%;
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}
.field-textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(83,122,75,0.10); }
.enquire-form .btn-primary { align-self: flex-start; padding: 11px 20px; border-radius: var(--r-md); }
.enquire-foot {
  margin-top: 16px;
  font-size: 13px;
  color: var(--pencil);
  line-height: 1.5;
}
.enquire-success {
  display: block;
  background: var(--success-bg);
  border: 1px solid rgba(63,94,57,0.2);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--success-text);
  margin-bottom: 16px;
}
.enquire-success[hidden] { display: none; }
.other-platform { margin-top: 4px; }
.other-platform[hidden] { display: none; }

/* ── Portal ── */
.portal-body { display: flex; flex-direction: column; min-height: 100dvh; }
.portal-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249,247,242,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.portal-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}
.portal-user {
  font-size: 12px;
  color: var(--pencil);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-layout {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--gutter) 32px;
}
@media (min-width: 900px) {
  .portal-layout {
    grid-template-columns: var(--portal-nav-w) 1fr;
    gap: 24px;
    padding-top: 20px;
  }
}

.portal-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.portal-nav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .portal-nav {
    flex-direction: column;
    overflow: visible;
    padding: 0;
    border-bottom: 0;
    position: sticky;
    top: 64px;
    align-self: start;
  }
}
.tab-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--pencil);
  padding: 7px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
}
.tab-btn:hover { background: rgba(40,30,15,0.03); color: var(--ink); }
.tab-btn[aria-selected="true"] {
  background: var(--sage-wash);
  color: var(--sage-deep);
  font-weight: 600;
}

.portal-main { min-width: 0; padding-top: 16px; }
@media (min-width: 900px) { .portal-main { padding-top: 0; } }
.panel { display: none; }
.panel[data-active="1"] { display: block; }
.panel-head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.panel-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.panel-lead { color: var(--pencil); font-size: 13.5px; max-width: 56ch; line-height: 1.48; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 16px;
}
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: #FBF9F4;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pencil);
}
.stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-note { font-size: 11px; color: var(--pencil-2); }

.surface {
  background: #FBF9F4;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.surface + .surface { margin-top: 12px; }
.surface-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.link-gen-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 600px) {
  .link-gen-row { flex-direction: row; align-items: flex-end; }
  .link-gen-row .field { flex: 1; }
}
.link-gen-row .btn-primary { flex-shrink: 0; padding: 10px 14px; }

.output-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 520px) {
  .output-row { flex-direction: row; align-items: center; }
}
.output-url {
  flex: 1;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  word-break: break-all;
  line-height: 1.4;
}
.btn-copy {
  appearance: none;
  border: 1px solid var(--rule-strong);
  background: var(--parchment);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease;
}
.btn-copy:hover { background: rgba(40,30,15,0.03); }
.btn-copy[data-copied="1"] {
  background: var(--success-bg);
  border-color: rgba(63,94,57,0.25);
  color: var(--success-text);
}
.btn-copy--sm {
  padding: 5px 9px;
  font-size: 11px;
}
.btn-copy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.portal-placeholder-note {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--sage-wash);
  border: 1px solid rgba(83,122,75,0.12);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.placeholder-badge {
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: rgba(83,122,75,0.12);
  padding: 3px 6px;
  border-radius: 3px;
}
.surface-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
}

.type-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.type-pill--recipe { background: rgba(83,122,75,0.12); color: var(--sage-deep); }
.type-pill--collection { background: rgba(217,164,65,0.14); color: #8A6420; }
.type-pill--schedule { background: rgba(100,120,160,0.12); color: #4A5A78; }

.table-mono {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--ink-soft);
  word-break: break-all;
}

.portal-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}
@media (min-width: 640px) { .portal-info-grid { grid-template-columns: repeat(3, 1fr); } }
.portal-info-card {
  background: rgba(251,249,244,0.85);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.portal-info-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}
.portal-info-card p {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--pencil);
}
.portal-info-card strong {
  font-weight: 600;
  color: var(--ink);
}

.export-type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
@media (min-width: 520px) { .export-type-grid { grid-template-columns: repeat(2, 1fr); } }
.export-type-card {
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r-md);
  padding: 14px 16px;
  background: rgba(251,249,244,0.7);
}
.export-type-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}
.export-type-card p {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--pencil);
}

.link-sample-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.link-sample-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
}
@media (min-width: 640px) {
  .link-sample-item {
    grid-template-columns: auto 1fr auto auto;
    grid-template-rows: auto;
  }
}
.link-sample-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.link-sample-url {
  grid-column: 1 / -1;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-soft);
  word-break: break-all;
}
@media (min-width: 640px) {
  .link-sample-url { grid-column: auto; }
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 640px) { .kit-grid { grid-template-columns: repeat(3, 1fr); } }
.kit-slot {
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r-md);
  min-height: 96px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(251,249,244,0.7);
}
.kit-slot h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
}
.kit-slot p { font-size: 11px; color: var(--pencil-2); }

.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
}
.data-table th {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pencil);
}
.data-table td { color: var(--ink-soft); }
.data-table tr:last-child td { border-bottom: 0; }
.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-sm);
}
.status-pill--paid { background: var(--success-bg); color: var(--success-text); }
.status-pill--pending { background: rgba(217,164,65,0.12); color: #8A6420; }

.trend-chart {
  height: 72px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.trend-bar {
  flex: 1;
  min-width: 0;
  background: var(--sage-wash);
  border-radius: 2px 2px 0 0;
}
.trend-bar:hover { background: rgba(83,122,75,0.18); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
