/*
Theme Name: AskeyGeek Studio
Theme URI: https://www.askeygeek.com
Author: AskeyGeek
Description: A product-company theme for the AskeyGeek studio: a suite of AI tools plus standalone utilities. Built as a block theme so new pages can coexist with legacy Elementor content.
Version: 0.2.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: askeygeek
*/

/* ---------------------------------------------------------------
   Self-hosted General Sans (display) and Roboto (body/UI).
   General Sans is the closest free match to Ubersuggest's
   Geomanist: same geometric skeleton, double-storey a, flat-bar G.
   Roboto is Ubersuggest's body face. Hosting both in the theme
   removes third-party font requests and any new cookie surface.
   --------------------------------------------------------------- */
@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/general-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/general-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/general-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/general-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/roboto-latin-var.woff2") format("woff2");
}

/* ---------------------------------------------------------------
   Tokens
   Warm ink, bright orange accents, white paper. The heading brown
   (#471800) is the reference's defining choice; white on #ff5e29
   is 3.05:1, so CTA fills use the deeper #c24100 at 5.19:1 and
   the bright orange is kept for accents, icons and decoration.
   --------------------------------------------------------------- */
:root {
  --paper: #ffffff;
  --paper-lift: #fafafa;
  --surface: #fafafa;
  --ink: #09090b;
  --heading: #471800;
  --muted: #52525c;
  --faint: #71717a;
  --rule: #e4e4e7;
  --rule-strong: #d4d4d8;
  --orange: #ff5e29;
  --orange-deep: #c24100;
  --orange-deeper: #8f3000;
  --orange-burnt: #f55200;
  --orange-hover: #b23c00;
  --amber: #ff9d00;
  --tint: #fff1eb;
  --tint-strong: #ffdcd1;
  --dark: #250a06;
  --dark-deep: #160c08;
  --dark-rule: rgba(255, 255, 255, 0.12);
  --on-dark: #f8ece8;
  --on-dark-muted: #d8c6c0;

  --font-display: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 8vw, 120px);
  --radius: 18px;
  --radius-card: 16px;
  --radius-control: 10px;
  --radius-pill: 999px;

  --step-hero: clamp(2.9rem, 6.6vw, 5.9rem);
  --step-h2: clamp(2rem, 3.8vw, 3.4rem);
  --step-h3: clamp(1.15rem, 1.5vw, 1.3rem);
  --step-body: clamp(1rem, 1.02vw, 1.0625rem);
  --step-small: 0.875rem;

  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-lift: 0 14px 34px rgba(194, 65, 0, 0.14), 0 3px 8px rgba(16, 24, 40, 0.05);
  --halo: 0 0 0 10px rgba(194, 65, 0, 0.08);
}

/* ---------------------------------------------------------------
   Corners
   Squircle corners (Chromium 139+): the straight edge eases into the
   curve instead of meeting the arc abruptly, so a rounded box reads as
   one smooth object. Browsers without support keep ordinary rounding.
   Circles and dots (border-radius 50%) are deliberately excluded so
   they stay circular.
   --------------------------------------------------------------- */
.brand::before,
.nav .nav-cta,
.nav-toggle,
.hero .lede,
.btn,
.demo,
.demo-head > span,
.demo-line,
.demo-play,
.stat-chip,
.index-icon,
.index-row,
.standalone a,
.more,
.prose img,
.prose blockquote,
.plan,
.post-list li,
.launch,
.faq .qa,
.prose pre {
  corner-shape: squircle;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-body);
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--orange-deep); }

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

::selection { background: var(--tint-strong); color: var(--heading); }

/* Headings are General Sans bold, warm brown, and set tight. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

/* ---------------------------------------------------------------
   Shell
   --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-main { display: block; }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
  color: var(--heading);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--heading); }
.brand .dot { color: var(--orange); }
.brand::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 32% 32%, #ffb59c 0 18%, transparent 19%),
    linear-gradient(135deg, var(--orange) 0%, var(--orange-burnt) 55%, var(--orange-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(71, 24, 0, 0.12);
  margin-right: 9px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  padding-block: 8px;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.nav a:hover { color: var(--orange-deep); border-bottom-color: var(--orange-deep); }

.nav .nav-cta {
  border: 0;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--orange-deep);
  color: #fff;
  box-shadow: var(--shadow-card);
  transition: background 140ms ease, transform 140ms ease;
}
.nav .nav-cta:hover {
  background: var(--orange-hover);
  color: #fff;
  border-bottom-color: transparent;
  transform: translateY(-1px);
}

.nav-toggle { display: none; }

@media (max-width: 800px) {
  .nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--rule-strong);
    border-radius: 8px;
    padding: 8px 14px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading);
    cursor: pointer;
  }
  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.08);
  }
  .site-header.is-open .nav a { padding-block: 10px; }
  .site-header.is-open .nav .nav-cta { margin-top: 8px; }
}

/* ---------------------------------------------------------------
   Hero — centred, warm wash, orange accent word
   --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 112px);
  background:
    radial-gradient(58% 46% at 50% 0%, #fff3ed 0%, rgba(255, 243, 237, 0) 72%),
    var(--paper);
  text-align: center;
}

.hero .wrap { position: relative; z-index: 2; }

.hero .lede {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border: 1px solid var(--tint-strong);
  border-radius: var(--radius-pill);
  background: var(--tint);
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero .lede::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 94, 41, 0.18);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-hero);
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin: 0 auto 24px;
  max-width: 24ch;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--orange); white-space: nowrap; }
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero .sub {
  max-width: 62ch;
  margin: 0 auto 32px;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* Trust line under the buttons */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  margin: 26px auto 0;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 0.8125rem;
}
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li::before {
  content: "✓";
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-control);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid var(--orange-deep);
  background: var(--orange-deep);
  color: #fff;
  box-shadow: var(--shadow-card);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(194, 65, 0, 0.18);
}

.btn-ghost {
  background: #fff;
  color: var(--heading);
  border-color: var(--rule-strong);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--tint);
  color: var(--orange-deep);
  border-color: var(--tint-strong);
  box-shadow: none;
}

/* ---------------------------------------------------------------
   Hero visual: framed demo + floating stats + doodle
   --------------------------------------------------------------- */
.hero-visual {
  position: relative;
  margin: clamp(44px, 5vw, 68px) auto 0;
  max-width: 980px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 12% 6% -12% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 94, 41, 0.16), rgba(255, 157, 0, 0.06) 58%, transparent 100%);
  filter: blur(6px);
  pointer-events: none;
}

.doodle {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  color: var(--orange);
}
.doodle-hero { right: -36px; top: -96px; width: 186px; opacity: 0.9; z-index: 1; }
.doodle-hero-2 { left: -62px; bottom: -50px; width: 176px; opacity: 0.75; transform: scaleX(-1); z-index: 1; }

.demo {
  position: relative;
  z-index: 2;
  border: 2px solid var(--orange-deep);
  background: #fff;
  border-radius: 20px;
  padding: clamp(18px, 2.4vw, 26px);
  display: grid;
  gap: 16px;
  text-align: left;
  box-shadow: var(--halo), 0 24px 60px rgba(71, 24, 0, 0.10);
}

.demo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.demo-head label { font-weight: 500; color: var(--heading); }
.demo-head > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--tint);
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.demo-head > span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.demo-line {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.demo-line:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 94, 41, 0.14);
}

#demo-text {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--heading);
  background: transparent;
  border: 0;
  padding: 10px 0;
  border-radius: 0;
}
#demo-text::placeholder { color: #a1a1aa; }
#demo-text:focus { outline: none; }

.demo-play {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--orange-deep);
  background: var(--orange-deep);
  color: #fff;
  border-radius: 10px;
  font: inherit;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}
.demo-play:hover { background: var(--orange-hover); border-color: var(--orange-hover); transform: translateY(-1px); }
.demo-play[disabled] { opacity: 0.55; cursor: default; transform: none; }

.wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 46px;
}
.wave span {
  flex: 1 1 auto;
  background: var(--rule-strong);
  height: 18%;
  border-radius: 2px;
  transition: height 90ms linear, background 90ms linear;
}
.wave.is-speaking span { background: var(--orange); }
.wave.is-speaking span:nth-child(3n) { background: var(--amber); }

.demo-note {
  font-size: 0.8125rem;
  color: var(--faint);
  margin: 0;
}

/* Floating stat chips around the demo frame */
.stat-chips {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.stat-chip {
  position: absolute;
  display: grid;
  gap: 1px;
  min-width: 112px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.10);
  text-align: left;
}
.stat-chip strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--heading);
  line-height: 1.1;
}
.stat-chip span {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.stat-chip.is-hot { border-color: var(--orange-deep); box-shadow: var(--halo), 0 10px 26px rgba(194, 65, 0, 0.12); }
.chip-a { left: -88px; top: 52px; }
.chip-b { right: -94px; top: -32px; }
.chip-c { right: -64px; bottom: -26px; }

@media (max-width: 1120px) {
  .chip-a { left: -28px; }
  .chip-b { right: -28px; }
  .chip-c { right: -20px; }
}
@media (max-width: 980px) {
  .stat-chips { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
  .stat-chip { position: static; flex: 1 1 140px; box-shadow: var(--shadow-card); }
  .doodle-hero, .doodle-hero-2 { display: none; }
}

/* ---------------------------------------------------------------
   Section furniture
   --------------------------------------------------------------- */
.section {
  padding-block: var(--section);
  border-top: 1px solid #f1f1f3;
}
.section:first-of-type { border-top: 0; }

.section-intro { max-width: 64ch; margin-bottom: clamp(30px, 4vw, 48px); }

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-h2);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 14px;
  max-width: 24ch;
}
.section h2 .accent { color: var(--orange); }

.section-intro p { color: var(--muted); margin: 0; max-width: 54ch; font-size: 1.0625rem; }

/* ---------------------------------------------------------------
   Studio cards
   --------------------------------------------------------------- */
.index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 0;
}

.index-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon name arrow"
    "job job job"
    "meta meta meta";
  column-gap: 14px;
  row-gap: 6px;
  align-items: start;
  padding: 24px 24px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.index-row:hover {
  border-color: var(--orange-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  color: inherit;
}
.index-row:hover .index-name { color: var(--orange-deep); }
.index-row:hover .index-arrow { transform: translate(3px, -3px); color: var(--orange); }

.index-icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--orange-burnt);
}
.index-icon svg { width: 21px; height: 21px; stroke-width: 1.9; }

.index-name {
  grid-area: name;
  align-self: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--heading);
  transition: color 140ms ease;
}

.index-job {
  grid-area: job;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 6px;
}

.index-arrow {
  grid-area: arrow;
  justify-self: end;
  align-self: center;
  color: var(--orange-deep);
  font-size: 1.1rem;
  transition: transform 160ms ease, color 160ms ease;
}

.index-meta {
  grid-area: meta;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #f1f1f3;
  font-size: 0.8125rem;
  color: var(--faint);
}

.index-row.is-featured {
  border: 2px solid var(--orange-deep);
  background: linear-gradient(180deg, #fff8f4 0%, #fff 70%);
  box-shadow: var(--halo), var(--shadow-card);
}
.index-row.is-featured .index-icon {
  background: var(--orange-deep);
  color: #fff;
}

@media (min-width: 900px) {
  .index-row.is-featured { grid-column: span 2; }
}

/* Older pages (tools index, about, tool how-tos) use the original
   name/job/arrow/meta rows with no icon. Give them a two-column card
   rather than an empty icon gutter. */
.index-row:not(:has(.index-icon)) {
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name arrow"
    "job job"
    "meta meta";
}

@media (max-width: 899px) {
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .index { grid-template-columns: 1fr; }
  .index-row { padding: 20px; grid-template-columns: auto 1fr auto; }
}

/* ---------------------------------------------------------------
   Individually available tools
   --------------------------------------------------------------- */
.standalone {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border: 0;
  background: transparent;
}

.standalone > a,
.standalone > div {
  flex: 1 1 220px;
  min-width: 0;
}

.standalone a {
  position: relative;
  display: block;
  padding: 22px 20px 24px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.standalone a::after {
  content: "↗";
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--orange-deep);
  font-size: 0.9rem;
  opacity: 0.65;
  transition: transform 160ms ease, opacity 160ms ease;
}
.standalone a:hover {
  background: #fff;
  border-color: var(--tint-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.standalone a:hover::after { transform: translate(2px, -2px); opacity: 1; }

.standalone strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin-bottom: 5px;
  padding-right: 20px;
}
.standalone span { display: block; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

/* More note */
.more {
  margin-top: clamp(28px, 4vw, 40px);
  padding: 18px 22px;
  border: 1px solid var(--tint-strong);
  border-radius: 14px;
  background: var(--tint);
  color: #7c2d12;
  font-size: 0.9375rem;
  display: flex;
  gap: 10px 14px;
  align-items: baseline;
  flex-wrap: wrap;
}
.more strong { color: var(--heading); font-weight: 600; }

/* ---------------------------------------------------------------
   Work with us — dark roast band
   --------------------------------------------------------------- */
.work {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(58% 80% at 74% 18%, #40130d 0%, rgba(64, 19, 13, 0) 62%),
    var(--dark);
  color: var(--on-dark);
  padding-block: clamp(64px, 8vw, 104px);
}
.work .wrap { position: relative; z-index: 2; }
.work .eyebrow { color: var(--amber); }
.work h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-h2);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #fff;
  margin: 0 0 16px;
  max-width: 22ch;
}
.work h2 .accent { color: var(--orange); }
.work p { color: var(--on-dark-muted); max-width: 56ch; margin: 0 0 28px; font-size: 1.0625rem; }
.work .hero-actions { justify-content: flex-start; }
.work .btn {
  background: var(--orange-deep);
  color: #fff;
  border-color: var(--orange-deep);
}
.work .btn:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: #fff; }
.work .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.work .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.doodle-work { right: 2%; top: 8%; width: 260px; color: #ff7b4d; opacity: 0.5; }

/* ---------------------------------------------------------------
   Footer — dark roast, warm grey links
   --------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(56px, 6vw, 84px) 36px;
  background: var(--dark-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand .dot { color: var(--orange); }
.site-footer .brand::before { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.footer-grid > div > p { color: var(--on-dark-muted); }
.footer-grid h3 {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb59c;
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: #e7dcd7; text-decoration: none; transition: color 140ms ease; }
.footer-grid a:hover { color: var(--orange); }

.footer-base {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--dark-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #a8968f;
}
.footer-base a { color: #cfbfb9; }
.footer-base a:hover { color: var(--orange); }

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

/* ---------------------------------------------------------------
   Content pages
   --------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-top: 2.2em;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  margin-top: 1.8em;
}
.prose img { border-radius: 16px; }
.prose blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 3px solid var(--orange);
  border-radius: 0 12px 12px 0;
  background: #fff7f3;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.page-head { padding-block: clamp(48px, 6vw, 84px) clamp(24px, 3vw, 40px); }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 4.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0 0 14px;
  max-width: 22ch;
}
.page-head p { color: var(--muted); max-width: 56ch; margin: 0; font-size: 1.0625rem; }

/* Pricing */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 16px;
  background: transparent;
  border: 0;
}
.plan {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
}
.plan h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0;
}
.plan .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--heading);
  margin: 4px 0 2px;
}
.plan .price small { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 8px; font-size: 0.93rem; color: var(--muted); }
.plan li::before {
  content: "✓";
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 9px;
}
.plan .btn { margin-top: auto; justify-content: center; }
.plan.is-featured {
  background: linear-gradient(180deg, #fff8f4 0%, #fff 62%);
  border: 2px solid var(--orange-deep);
  box-shadow: var(--halo), var(--shadow-card);
}
@media (min-width: 720px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Work with us */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(28px, 4vw, 44px);
}
.offer { border-top: 2px solid var(--orange); padding-top: 18px; }
.offer h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 8px;
}
.offer p { color: var(--muted); font-size: 0.95rem; margin: 0 0 10px; }
.offer .meta { font-size: 0.8125rem; color: var(--faint); }

/* Guides list — cards */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 0;
}
.post-list .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.post-list li {
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  background: #fff;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 5px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.post-list li:hover {
  border-color: var(--tint-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.post-list a { text-decoration: none; font-size: 1.05rem; }
.post-list a:hover { color: var(--orange-deep); }
.post-list time { font-size: 0.8125rem; color: var(--faint); }

@media (max-width: 760px) {
  .doodle-work { display: none; }
  .hero h1 { max-width: 13ch; }
}
@media (max-width: 640px) {
  .hero h1 {
    max-width: none;
    font-size: clamp(2.15rem, 10.4vw, 2.6rem);
    line-height: 1;
  }
  .hero .lede { font-size: 0.65rem; letter-spacing: 0.08em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .doodle-hero, .doodle-hero-2 { display: none; }
  .demo-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .demo-line { padding-left: 14px; }
  .demo-play { padding-inline: 18px; }
  .trust { gap: 6px 16px; font-size: 0.75rem; }
  .stat-chip { flex: 1 1 96px; min-width: 0; padding: 9px 12px; }
  .stat-chip.is-hot { box-shadow: var(--shadow-card); }
  .stat-chip strong { font-size: 1rem; }
  .stat-chip span { font-size: 0.6rem; letter-spacing: 0.06em; }
}

/* ---------------------------------------------------------------
   Motion
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Legacy Elementor safety */
.elementor { color: var(--ink); }
.elementor a { color: var(--orange-deep); }

/* ---------------------------------------------------------------
   Elementor coexistence
   Elementor's global kit styles load after this file and set body
   and heading typography plus link colours. These selectors add one
   element to the weight so the studio design wins regardless of load
   order, instead of fighting it in the cascade at equal specificity.
   --------------------------------------------------------------- */
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
}

body h1, body h2, body h3, body h4,
body .hero h1,
body .section h2,
body .work h2,
body .page-head h1,
body .prose h2,
body .prose h3,
body .plan h2,
body .plan .price,
body .brand,
body #demo-text {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.045em;
}

body h1, body .hero h1, body .page-head h1 { line-height: 0.98; }
body h3, body .plan h2, body .offer h3, body .faq h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

body a,
body .nav a,
body .footer-grid a,
body .post-list a,
body .standalone a {
  color: inherit;
}

body a:hover,
body .nav a:hover,
body .footer-grid a:hover,
body .post-list a:hover {
  color: var(--orange-deep);
}

body .nav .nav-cta,
body .nav .nav-cta:hover { color: #fff; }
body .nav .nav-cta:hover { color: #fff; }

body .work a:hover { color: #fff; }
body .work .btn { color: #fff; }
body .work .btn:hover { color: #fff; }
body .work .btn-ghost { color: #fff; }

body .btn, body .demo-play { font-family: var(--font-ui); }

/* Link colour, matched at two-class specificity so Elementor's kit
   stylesheet cannot repaint the studio's links. */
.site-header .nav a { color: var(--ink); }
.site-header .nav .nav-cta { color: #fff; }
.site-header .nav a:hover { color: var(--orange-deep); }
.site-header .nav .nav-cta:hover { color: #fff; }

.site-footer .footer-grid a,
.site-footer .footer-base a { color: #e7dcd7; }
.site-footer .footer-grid a:hover,
.site-footer .footer-base a:hover { color: var(--orange); }

.site-main .index-row,
.site-main .standalone a,
.site-main .post-list a { color: inherit; }

.site-main .index-row .index-name,
.site-main .standalone strong { color: var(--heading); }

.site-main .index-row:hover .index-name { color: var(--orange-deep); }
.site-main .index-row:hover { color: inherit; }

.site-main .prose a { color: var(--orange-deep); }
.site-main .prose a:hover { color: var(--orange-deeper); }

.site-main .page-head p,
.site-main .section-intro p,
.site-main .index-job,
.site-main .index-meta,
.site-main .standalone span,
.site-main .more { color: var(--muted); }

/* Elementor's kit sets the body font through a body.elementor-kit-N
   selector, which ties with ours on specificity and wins on source
   order. Pinning these declarations is the honest fix: the studio
   theme owns its own ground. */
body {
  font-family: var(--font-ui) !important;
  color: var(--ink) !important;
  background: var(--paper) !important;
}

/* Elementor also sets typography on links themselves, which beats
   inheritance into our anchors. Re-assert the UI face on every link the
   theme styles. */
body .site-header a,
body .site-main a,
body .site-footer a {
  font-family: var(--font-ui);
}

/* Elementor's Theme Builder wraps pages in .elementor-<id>, which wins on
   specificity. These regions belong to the theme, so they are pinned
   rather than negotiated. Article prose links are deliberately excluded
   so legacy content keeps its own link styling. */
.site-header .nav a,
.site-header .nav .nav-cta,
.site-footer a,
.site-main .index-row,
.site-main .index-row .index-name,
.site-main .standalone a,
.site-main .standalone strong,
.site-main .more,
.site-main .page-head p,
.site-main .section-intro p,
.site-main .index-job,
.site-main .index-meta {
  color: inherit !important;
}

.site-main .index-row .index-name,
.site-main .standalone strong { color: var(--heading) !important; }

.site-header .nav a:hover,
.site-footer a:hover,
.site-main .index-row:hover .index-name { color: var(--orange-deep) !important; }

.site-header .nav .nav-cta { color: #fff !important; }
.site-header .nav .nav-cta:hover { color: #fff !important; }
.site-main .index-job,
.site-main .index-meta,
.site-main .more,
.site-main .page-head p,
.site-main .section-intro p { color: var(--muted) !important; }

/* Remaining theme-owned elements inside Elementor-wrapped pages. */
.site-header .brand,
.site-header .brand:hover { color: var(--heading) !important; }
.site-header .brand .dot { color: var(--orange) !important; }

.site-main .btn { color: #fff !important; }
.site-main .btn-ghost { color: var(--heading) !important; }
.site-main .prose a { color: var(--orange-deep) !important; }
.site-main .more strong { color: var(--heading) !important; }

.work .btn { color: #fff !important; }
.work .btn-ghost { color: #fff !important; }
.work .btn:hover { color: #fff !important; }

/* Article bodies migrated from Elementor carry their own typography.
   The frame is new, so the reading experience should be too. */
.prose p,
.prose li,
.prose blockquote,
.prose td,
.prose th {
  font-family: var(--font-ui) !important;
  color: var(--ink) !important;
}

.prose p,
.prose li { font-size: var(--step-body) !important; line-height: 1.72 !important; }

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display) !important;
  color: var(--heading) !important;
  letter-spacing: -0.035em !important;
}

.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem) !important; line-height: 1.1 !important; }
.prose h3 { font-size: 1.25rem !important; }
.prose a { color: var(--orange-deep) !important; }

.post-meta a { color: var(--orange-deep) !important; }
.post-meta { color: var(--faint) !important; font-size: var(--step-small) !important; }

/* Guides list hierarchy */
.post-list .wp-block-post-title,
.post-list .post-list-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em !important;
  margin: 0 !important;
  color: var(--heading) !important;
}

.post-list .wp-block-post-date,
.post-list time {
  font-size: 0.8125rem !important;
  color: var(--faint) !important;
}

.post-list .wp-block-post-excerpt__excerpt {
  color: var(--muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  max-width: 72ch !important;
  margin: 0 !important;
}

.post-list li { padding-block: 22px !important; }

/* ---------------------------------------------------------------
   Tool pages
   --------------------------------------------------------------- */
.launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid var(--tint-strong);
  background: var(--tint);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}
.launch .launch-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.launch .launch-line { display: block; color: #7c2d12; font-size: 0.9rem; margin-top: 3px; }
.launch .btn { flex: 0 0 auto; }

.launch-note {
  margin: 12px 2px 0;
  font-size: 0.85rem;
  color: var(--faint);
}

.faq { display: grid; gap: 12px; border-top: 0; }
.faq .qa {
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.faq h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 6px;
}
.faq p { margin: 0; color: var(--muted); max-width: 72ch; font-size: 0.95rem; line-height: 1.6; }

/* Links inside the index meta column (playlists, references). */
.site-main .index-meta a,
.site-main .index-job a {
  color: var(--orange-deep) !important;
  text-decoration: underline;
}
.site-main .index-meta a:hover,
.site-main .index-job a:hover { color: var(--orange-deeper) !important; }

/* Tables and code inside migrated articles. */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 0.9375rem;
}
.prose thead th {
  text-align: left;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--heading);
  vertical-align: bottom;
}
.prose tbody td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.prose tbody tr:last-child td { border-bottom: none; }
.prose table code { font-size: 0.85em; }

.prose pre {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.835rem;
  line-height: 1.55;
  margin: 1.6em 0;
}
.prose code,
.prose pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose :not(pre) > code {
  background: #f4f4f5;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.88em;
}

/* Elementor pinning sets every header/footer anchor to Roboto; the
   wordmark and nav labels belong to the display face. */
body .site-header .brand,
body .site-footer .brand {
  font-family: var(--font-display) !important;
  font-weight: 700;
}
body .site-header .nav a {
  font-family: var(--font-display) !important;
  font-weight: 500;
}
body .site-header .nav .nav-cta {
  font-family: var(--font-ui) !important;
  font-weight: 500;
}

/* The dark band owns its own type colours; the Elementor pinning
   block above sets body .work h2 to the brown heading colour. */
body .work h2 { color: #fff !important; }
body .work h2 .accent { color: var(--orange) !important; }
body .work p { color: var(--on-dark-muted) !important; }
body .work .eyebrow { color: var(--amber) !important; }

/* Page patterns sit inside the template's .wrap, so an inner .wrap was
   applying the gutter twice and stealing 112px of width on pattern-built
   pages. Nested wraps become pass-through. */
.wrap .wrap {
  max-width: none;
  padding-inline: 0;
}

/* Tool and guide pages keep their dark CTA band inside the page wrapper.
   The pass-through above strips its gutter, so the heading lands on the
   band's edge; restore padding for this one nested case. */
.wrap .work .wrap {
  max-width: var(--measure);
  padding-inline: clamp(24px, 4vw, 48px);
}

/* Migrated legacy content often carries inline SVGs sized for a canvas.
   Constrain them so they cannot take over the page. */
.site-main svg {
  max-width: 100%;
  height: auto;
  display: block;
}
.site-main svg:not([width]) { width: 100%; }

/* Legacy decorative SVGs from the Elementor era: cap them so they cannot
   stretch a page to 28,000px. Same specificity as the rule above so this
   one wins on order. */
.site-main svg:not([width]) { width: auto; max-width: 520px; }
.site-main svg { max-height: 360px; }

/* ---------------------------------------------------------------
   AI Talk (page 7790)
   The page embeds its own Polly form and an old child-theme
   stylesheet. The shell is the studio theme; this brings the form
   onto the same tokens without touching the page content.
   --------------------------------------------------------------- */
.page-id-7790 .entry-content > h1:first-child { display: none; }
.page-id-7790 .entry-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 12px;
}
.page-id-7790 #voiceSelected,
.page-id-7790 #postText,
.page-id-7790 #postId,
.page-id-7790 .entry-content input[type="file"],
.page-id-7790 .entry-content input[type="text"] {
  width: 100%;
  max-width: 720px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink);
}
.page-id-7790 #postText { min-height: 140px; border-radius: 14px; }
.page-id-7790 #voiceSelected:focus,
.page-id-7790 #postText:focus,
.page-id-7790 #postId:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 94, 41, 0.14);
}
.page-id-7790 #sayButton,
.page-id-7790 #searchButton {
  background: var(--orange-deep);
  border: 1px solid var(--orange-deep);
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}
.page-id-7790 #sayButton:hover,
.page-id-7790 #searchButton:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.page-id-7790 #posts {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.9rem;
}
.page-id-7790 #posts th,
.page-id-7790 #posts td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.page-id-7790 #posts th { color: var(--heading); font-weight: 600; }

/* ---------------------------------------------------------------
   Elementor accordions pasted into page content
   The imported markup kept the <details>/<summary> structure but lost
   the widget classes. Without them the 320×512 arrow icons render at
   225×360 inside every summary (making a 900px-tall "collapsed" row),
   and the closed answer overflows instead of hiding. The same import
   also left a plain-text copy of every answer after the accordion.
   Restore a normal accordion and hide the duplicate copy.
   --------------------------------------------------------------- */
.entry-content > details[id^="e-n-accordion-item"] {
  margin: 0 0 10px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.entry-content > details[id^="e-n-accordion-item"] > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
}

.entry-content > details[id^="e-n-accordion-item"] > summary::-webkit-details-marker {
  display: none;
}

.entry-content > details[id^="e-n-accordion-item"] > summary > h2,
.entry-content > details[id^="e-n-accordion-item"] > summary > h3,
.entry-content > details[id^="e-n-accordion-item"] > summary > h4 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--heading);
}

/* The up/down arrow pair inside each summary. */
.entry-content > details[id^="e-n-accordion-item"] > summary > p {
  display: none;
}

.entry-content > details[id^="e-n-accordion-item"] > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--orange-deep);
  border-bottom: 2px solid var(--orange-deep);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.entry-content > details[id^="e-n-accordion-item"][open] > summary::after {
  transform: rotate(-135deg);
}

.entry-content > details[id^="e-n-accordion-item"]:not([open]) > *:not(summary) {
  display: none;
}

.entry-content > details[id^="e-n-accordion-item"] > p,
.entry-content > details[id^="e-n-accordion-item"] > ul,
.entry-content > details[id^="e-n-accordion-item"] > ol {
  margin: 0 18px 16px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.entry-content > details[id^="e-n-accordion-item"] > ul,
.entry-content > details[id^="e-n-accordion-item"] > ol {
  padding-left: 1.2em;
}

.entry-content > details[id^="e-n-accordion-item"] > p:last-child,
.entry-content > details[id^="e-n-accordion-item"] > ul:last-child,
.entry-content > details[id^="e-n-accordion-item"] > ol:last-child {
  margin-bottom: 18px;
}

/* Duplicate plain-text answers left after the accordion by the import. */
.entry-content > details[id^="e-n-accordion-item"] ~ p,
.entry-content > details[id^="e-n-accordion-item"] ~ ul,
.entry-content > details[id^="e-n-accordion-item"] ~ ol {
  display: none;
}

/* ---------------------------------------------------------------
   Reading aids
   Table of contents, byline, related guides, archive search and
   richer guide cards. Built for the block templates; no builder
   markup is involved.
   --------------------------------------------------------------- */

/* Table of contents: a compact box on mobile, a sticky rail on wide screens. */
.post-toc {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper-lift);
}
.post-toc-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-toc ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-toc li { margin: 0; }
.post-toc a {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
}
.post-toc a:hover { color: var(--orange-deep); }
.post-toc .toc-level-3 { padding-left: 14px; }
.post-toc .toc-level-3 a { font-size: 0.82rem; }

@media (min-width: 1024px) {
  .post-layout:has(.post-toc) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    grid-template-areas: "content toc";
    align-items: start;
    gap: clamp(32px, 4vw, 64px);
    margin-top: 8px;
  }
  .post-layout:has(.post-toc) > .prose { grid-area: content; }
  .post-layout:has(.post-toc) > .post-toc {
    grid-area: toc;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    margin: 0;
    overflow: auto;
  }
}
@media (max-width: 1023px) {
  .post-toc { max-height: 260px; overflow: auto; }
}
.prose h2,
.prose h3 { scroll-margin-top: 96px; }

.post-meta .post-reading {
  font-size: 0.8125rem;
  color: var(--faint);
}

/* Byline: local monogram, no Gravatar request. */
.post-author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 68ch;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.author-monogram {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.author-name {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
}
.author-role {
  max-width: 52ch;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.author-link {
  color: var(--orange-deep);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Related guides. */
.related-posts { margin-top: clamp(40px, 5vw, 64px); }
.related-posts h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--heading);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.related-card {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.related-card:hover {
  border-color: var(--tint-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}
.related-cat {
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.related-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.related-meta {
  color: var(--faint);
  font-size: 0.78rem;
}

/* Archive tools. */
.archive-search { max-width: 560px; margin: 0 0 22px; }
.archive-search .wp-block-search__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--heading);
}
.archive-search .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.archive-search .wp-block-search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}
.archive-search .wp-block-search__input:focus {
  outline: 2px solid var(--tint-strong);
  outline-offset: 1px;
}
.archive-search .wp-block-search__button {
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--orange-deep);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}
.archive-filters a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.archive-filters a:hover {
  border-color: var(--tint-strong);
  background: var(--tint);
  color: var(--orange-deep);
}

/* Guide cards with a thumbnail. */
.post-list li {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 18px;
}
.post-list li:not(:has(.post-list-thumb)) { grid-template-columns: minmax(0, 1fr); }
.post-list-thumb { margin: 0; }
.post-list-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}
.post-list-body {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}
body .site-main .post-list .post-list-title a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.site-main .post-list .post-list-cat a {
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
}
.post-list-meta { gap: 10px; align-items: center; }
.post-list-meta .post-reading { font-size: 0.8125rem; color: var(--faint); }
.post-list .wp-block-post-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .post-list li { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------
   Contact form and in-article ad slots
   --------------------------------------------------------------- */
.contact-form {
  max-width: 760px;
  margin: 0 0 8px;
}
.contact-form h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--heading);
}
.contact-intro {
  max-width: 60ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.contact-field {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
}
.contact-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--heading);
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.contact-field textarea {
  min-height: 180px;
  resize: vertical;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--orange);
  outline: 2px solid rgba(255, 94, 41, 0.25);
  outline-offset: 1px;
}
.contact-hint {
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.4;
}
.contact-actions { margin: 0; }
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--orange-deep);
  border-radius: 10px;
  background: var(--orange-deep);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.contact-submit:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}
.contact-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.contact-notice--success {
  border: 1px solid #b7e0c0;
  background: #f1fbf3;
  color: #1f6b33;
}
.contact-notice--error {
  border: 1px solid #f0c2bc;
  background: #fff5f3;
  color: #9b2c1f;
}
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-alt {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.contact-alt a { color: var(--orange-deep); }

.ad-slot--inline {
  min-height: 280px;
  margin: 2.2em 0;
}
.ad-label {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}
.ad-slot .adsbygoogle { display: block; }

.prose .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.prose .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

@media (max-width: 620px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-field textarea { min-height: 150px; }
  .ad-slot--inline { min-height: 250px; }
}

/* Account page: use the full content width, and keep solid buttons white
   inside prose, where the article link colour would otherwise win. */
.page-id-115224 .prose { max-width: 920px; }
.prose a.btn:not(.btn-ghost),
.prose a.btn:not(.btn-ghost):hover { color: #fff; }

/* Legacy case studies: large brand logos were laid out at their native
   size; cap them inside the reading column. */
.page-id-36851 .prose img,
.page-id-36812 .prose img { max-width: 280px; height: auto; }

/* Pages that carry their own H1 inside the content (legacy pages and the
   account page) should match the theme's page-title scale. */
.prose > h1:first-child {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.15rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--heading);
}
