/* ==========================================================================
   Kaurah — single-page marketing site
   Oyster-inspired layout in Kaurah brand colours.
   Change the palette and type here; everything downstream uses these tokens.
   ========================================================================== */

:root {
  /* Accent (Kaurah brand) */
  --accent: #489FB9;
  --accent-dark: #2C607A;      /* buttons, links — AA on paper and with white text */
  --accent-mid: #3A7D9A;       /* teal panel background */
  --accent-tint: #EAF3F6;

  /* Neutrals */
  --ink: #1E2A31;
  --ink-soft: #47555E;
  --paper: #FDFAF7;
  --paper-alt: #F5EEE6;
  --line: #E3DACF;

  /* Dark panels */
  --panel-dark: #212B31;
  --panel-dark-text: #F4EFE8;
  --panel-dark-muted: #BCC7CD;

  /* Placeholder highlight — remove once all placeholders are replaced */
  --ph-bg: #FFF1B8;
  --ph-border: #D9A400;

  /* Type */
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-brand-serif: "Playfair Display", Georgia, "Times New Roman", serif; /* matches the logo wordmark */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --measure: 42rem;            /* ~68ch body measure */
  --wide: 68rem;
  --radius: 12px;              /* buttons */
  --radius-card: 20px;
  --radius-panel: clamp(24px, 4vw, 44px);
}

/* ---------- Reset-ish ---------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.75em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

h3 { font-weight: 600; font-size: 1.25rem; margin-bottom: 0.5em; line-height: 1.25; }

p { margin: 0 0 1em; }

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Focus states ---------- */

:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

.panel-dark :focus-visible,
.panel-teal :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Layout helpers ---------- */

.container {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

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

.section { padding-block: 4rem; }

@media (min-width: 48em) {
  .section { padding-block: 5.5rem; }
}

h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }

.centered-title { text-align: center; margin-bottom: 1.5em; }

/* ---------- Doodles ---------- */

.doodle { position: absolute; pointer-events: none; }

.doodle-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 0.9rem;
  color: var(--accent-dark);
}

.dark-card .doodle-icon { color: var(--accent); }

.doodle-arrow {
  position: static;
  display: inline-block;
  vertical-align: -0.6em;
  width: 2em;
  height: 2em;
  margin-right: 0.35rem;
  color: var(--accent-dark);
}

.doodle-rays {
  top: -1.75rem;
  right: 0.5rem;
  width: 3.25rem;
  color: var(--accent-dark);
}

.doodle-scribble {
  top: 2rem;
  left: 3%;
  width: clamp(70px, 9vw, 120px);
  color: var(--accent);
  opacity: 0.85;
}

.doodle-sparkle { width: 26px; color: #fff; opacity: 0.9; }
.sparkle-a { top: 3rem; right: 6%; }
.sparkle-b { top: 3.5rem; right: 8%; }

.circled { position: relative; white-space: nowrap; }
.circled svg {
  position: absolute;
  left: -0.3em;
  top: -0.12em;
  width: calc(100% + 0.6em);
  height: calc(100% + 0.28em);
  color: var(--accent);
  pointer-events: none;
}

.doodle-underline {
  position: static;
  display: block;
  width: min(11rem, 60%);
  height: 12px;
  margin-top: 0.4rem;
  color: var(--accent);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1.7rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  background: var(--accent-dark);
  color: #fff;
}
.button-primary:hover { background: var(--accent-mid); color: #fff; }

.button-secondary {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}
.button-secondary:hover { background: var(--accent-tint); color: var(--accent-dark); }

.button-light {
  background: #fff;
  color: var(--ink);
}
.button-light:hover { background: var(--paper-alt); color: var(--ink); }

.button-small { padding: 0.5rem 1.1rem; font-size: 0.9375rem; }

.microcopy {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
}

.panel-dark .microcopy, .panel-teal .microcopy { color: var(--panel-dark-muted); }
.panel-teal .microcopy { color: #E4EFF4; }

/* ---------- Sticky header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s ease;
}

.site-header.is-visible {
  transform: translateY(0);
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

.site-header-inner {
  max-width: var(--wide);
  margin-inline: auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  text-decoration: none;
}

.logo img {
  height: 26px;
  width: auto;
  display: block;
}

/* ---------- Hero ---------- */

.hero { padding-block: 3rem 3.5rem; }

@media (min-width: 48em) {
  .hero { padding-block: 3.5rem 5rem; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 56em) {
  .hero-grid { grid-template-columns: 11fr 8fr; gap: 3rem; }
}

.hero-brand {
  display: block;
  height: 32px;
  width: auto;
  margin-bottom: 3rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 3.9rem);
  margin-bottom: 0.5em;
}

.hero-subline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: flex-start;
}

.cta-group .button { min-width: 12rem; }

.hero-media {
  position: relative;
  max-width: 26rem;
  justify-self: center;
  width: 100%;
}

@media (min-width: 56em) {
  .hero-media { justify-self: end; margin-right: 1rem; }
}

.hero-photo { aspect-ratio: 4 / 5; }

.photo {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
}

.chip-stack {
  position: absolute;
  right: -0.9rem;
  bottom: 1.75rem;
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}

.chip {
  display: inline-block;
  background: var(--panel-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.chip:nth-child(2) { transform: translateX(-0.75rem); }
.chip:nth-child(3) { transform: translateX(-0.25rem); }

/* ---------- Credibility strip ---------- */

.cred-strip {
  border-top: 1px solid var(--line);
  padding-block: 1.2rem;
  margin-bottom: 1.5rem;
}

.cred-line {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  line-height: 2;
}

.cred-item { display: block; }

@media (min-width: 48em) {
  .cred-item { display: inline; }
  .cred-item + .cred-item::before { content: "\00a0\00a0\00b7\00a0\00a0"; }
}

/* ---------- Rounded panels (Oyster-style) ---------- */

.panel {
  position: relative;
  margin: 1rem clamp(0.75rem, 2vw, 2rem);
  border-radius: var(--radius-panel);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.panel-dark {
  background: var(--panel-dark);
  color: var(--panel-dark-text);
}

.panel-teal {
  background: var(--accent-mid);
  color: #fff;
}

.panel-title {
  text-align: center;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  margin-inline: auto;
  max-width: 22ch;
}

.panel-intro {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 3rem;
}

.panel-dark .panel-intro { color: var(--panel-dark-muted); }
.panel-teal .panel-intro { color: #E4EFF4; }

.panel-prose { max-width: var(--measure); margin-inline: auto; }
.panel-prose p { color: var(--panel-dark-muted); }

.panel-cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* ---------- Card grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 48em) {
  .card-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  color: var(--ink);
}

.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }
.card h3 { color: var(--ink); }

.dark-card { padding: 0.5rem 0; }
.dark-card h3 { color: #fff; }
.dark-card p { color: var(--panel-dark-muted); margin-bottom: 0; }

@media (min-width: 48em) {
  .dark-card { padding: 1rem 0.5rem; }
}

/* ---------- How it runs ---------- */

.runs-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0.5rem 1.5rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 48em) {
  .runs-card { padding: 1rem 2.25rem; }
}

.runs-table { margin: 0; }

.runs-row {
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}

.runs-row:last-child { border-bottom: none; }

.runs-row dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.2rem;
}

.runs-row dd { margin: 0; color: var(--ink); }

@media (min-width: 40em) {
  .runs-row {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
  .runs-row dt { margin-bottom: 0; }
}

.guarantee {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.4;
}

.availability { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Who it is for ---------- */

.audience-grid {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 48em) {
  .audience-grid { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
}

.card-outline {
  background: transparent;
  border: 2px solid var(--line);
}

.who-closer {
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 0;
}

/* ---------- Research / report card ---------- */

.report-card {
  margin-top: 3rem;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  scroll-margin-top: 5rem;
}

@media (min-width: 48em) {
  .report-card { padding: 2.5rem; }
}

.report-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.report-card > p { color: var(--ink-soft); }

/* ---------- Forms ---------- */

form { margin-top: 1.75rem; }

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #A9A092;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.field textarea { resize: vertical; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 1px;
}

.field [aria-invalid="true"] { border-color: #B3261E; border-width: 2px; }

.field-error,
.form-error {
  color: #B3261E;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.35rem 0 0;
}

.form-error { margin-bottom: 1rem; }

.form-success {
  background: var(--accent-tint);
  border-left: 3px solid var(--accent-dark);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1.25rem 1.5rem;
  margin-top: 1.75rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- About ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 48em) {
  .about-layout { grid-template-columns: 2fr 3fr; gap: 3.5rem; }
}

.about-photo {
  margin: 0;
  max-width: 22rem;
  position: relative;
  justify-self: center;
}

@media (min-width: 48em) {
  .about-photo { justify-self: end; }
}

.rays-about { top: -2rem; right: 1rem; }

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--ph-border);
  border-radius: 24px;
  background: var(--ph-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.9375rem;
}

.about-quote {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.45;
}

.credentials-line {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-bottom: 0;
}

/* ---------- Contact ---------- */

.section-contact { padding-bottom: 5rem; }

.contact-lede { text-align: center; max-width: 36rem; margin: 0 auto 2.5rem; color: var(--ink-soft); }

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  max-width: 34rem;
  margin-inline: auto;
}

@media (min-width: 48em) {
  .contact-card { padding: 2.25rem; }
}

.contact-card form { margin-top: 0; }

.contact-alt { text-align: center; margin-top: 2rem; margin-bottom: 0; }

#contact { scroll-margin-top: 4rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--panel-dark);
  color: var(--panel-dark-muted);
  padding: 4rem 0 2.5rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.footer-wordmark {
  font-family: var(--font-brand-serif);
  font-weight: 700;
  font-size: clamp(4.5rem, 17vw, 12rem);
  line-height: 0.95;
  color: #fff;
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  border-top: 1px solid #3A464D;
  padding-top: 1.5rem;
}

.footer-meta p { margin: 0; }

.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Legal page ---------- */

.legal-logo { display: inline-flex; margin-bottom: 2.5rem; }
.legal-logo img { height: 26px; width: auto; display: block; }

.legal-title { font-size: clamp(2rem, 5vw, 2.8rem); }

.legal-updated {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
}

.legal-page ul { padding-left: 1.25rem; }
.legal-page li { margin-bottom: 0.75rem; }

.legal-back { margin-top: 3rem; }

.footer-meta-plain { border-top: none; padding-top: 0; }

/* ---------- Placeholder highlight ---------- */

.ph {
  background: var(--ph-bg);
  outline: 1px dashed var(--ph-border);
  padding: 0 0.25em;
  border-radius: 3px;
  color: var(--ink);
}

/* ---------- Reduced motion ---------- */

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