:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1f232c;
  --border: #2a2f3a;
  --text: #e8eaed;
  --text-muted: #9aa0ac;
  /* Loudcase brand accent: warm amber -- reads as voice/energy rather
     than a generic SaaS blue, and doubles as the logomark color. */
  --accent: #ef9f27;
  --accent-text: #3d2003;
  --radius: 10px;
  /* Shared warm gradient used across the CTA buttons, the logomark, and
     the "3 steps" number icons, so those flat-amber elements read as one
     consistent brand treatment instead of a plain flat fill. */
  --accent-gradient: linear-gradient(135deg, #d9720f 0%, #ef9f27 55%, #ffcf6b 100%);
}

* { box-sizing: border-box; }

h1 {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Slow-shifting dark gradient with a warm (amber-adjacent) undertone --
     all stops stay dark enough that --text stays legible everywhere, this
     is depth/atmosphere, not a color change to the page itself. */
  background: linear-gradient(135deg, #0f1115, #2c1a08, #0f1115, #1f1409);
  background-size: 300% 300%;
  animation: bg-drift 10s ease-in-out infinite;
  color: var(--text);
  line-height: 1.6;
}

@keyframes bg-drift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

/* Color set directly on .brand (not just inherited via "nav a") since the
   login page's logo link sits outside a <nav> element -- without this it
   fell back to the browser's default visited-link purple after being
   clicked once. */
.brand,
.brand:visited {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  flex-shrink: 0;
}

/* Subtle hover feedback on just the icon shape (the SVG's single <rect>,
   not the "Loudcase" wordmark <text> that follows it). */
.brand svg > rect {
  transition: opacity 0.2s ease;
}

.brand:hover svg > rect {
  opacity: 0.75;
}

.logo-marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 4px 0 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  /* Moves by exactly one repeated set's worth of width (25% of the total
     4x-repeated track) -- with only 2 copies, wide viewports could scroll
     past the end of copy 2 before copy 1 looped back around, leaving a
     visible empty gap. 4 copies guarantees there's always more than enough
     content off both edges to stay continuous, even on ultra-wide screens. */
  animation: marquee-scroll 52s linear infinite;
}

.logo-track span {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 24px;
  white-space: nowrap;
  color: var(--text-muted);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}

.marquee-title-wrap {
  padding-bottom: 0;
}

.marquee-title {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.section-title {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 28px;
  text-align: center;
  margin: 56px 0 32px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--accent-text);
  font-weight: 700;
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.steps-cta {
  text-align: center;
  margin-top: 40px;
}

.hero {
  text-align: center;
  padding: 64px 0 40px;
}

.hero h1 {
  font-size: 73px;
  margin: 0 0 16px;
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.hero p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* CTA button style modeled on pomelo.la/en's "Contact us" button: sharp
   corners that smoothly morph into a rounded pill on hover, plus a
   cursor-tracking radial-gradient spotlight that fades in over the
   button. Inspected pomelo's actual button frame-by-frame (not just
   before/after screenshots) to get this right: the "duplicate text"
   layer some frameworks generate for hover text-swap components is
   present in their DOM but is the exact same white text in the exact
   same position as the original -- a real but functionally invisible
   crossfade, not an animation an eye would ever perceive. The genuinely
   visible hover effect is the spotlight: a radial-gradient div,
   pointer-events:none, fading from opacity 0 to 0.6 over 500ms
   ease-in-out, centered whereever the cursor currently is over the
   button. .btn-shine is kept as a plain wrapper (no visual effect of its
   own) so existing markup using it doesn't need to change. */
.btn {
  position: relative;
  display: inline-block;
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 400;
  border: none;
  cursor: pointer;
  font-size: 16px;
  overflow: hidden;
  transition: border-radius 0.4s cubic-bezier(0.4, 0.03, 0.685, 0.22);
}

.btn:hover {
  color: #ffffff;
  border-radius: 18px;
}

/* A transparent band sweeps left-to-right across the solid white text on
   hover -- not a brightness highlight, a moving "hole" of transparency,
   per direct visual confirmation against the real pomelo button (their
   automated DOM/opacity signals looked like a no-op, but a human eye
   watching it play sees this wipe clearly). Same background-clip:text
   technique as the very first version of this file, just with a
   `transparent` stop instead of a lighter highlight color.

   A plain `transition` on background-position naturally plays in reverse
   (right-to-left) when the mouse leaves mid-hover, which read as the
   sweep going the wrong way -- using a one-shot @keyframes animation
   instead means it always plays 0%->100% (left-to-right) on hover-in, and
   just stops/resets on hover-out instead of visibly reversing. */
.btn-shine {
  background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 42%, transparent 50%, #ffffff 58%, #ffffff 100%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffffff;
}

@keyframes btn-shine-sweep {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

.btn:hover .btn-shine {
  animation: btn-shine-sweep 1.4s ease forwards;
}

/* Appended as a child of .btn by enhanceButtonSpotlight() (see the
   per-page script that calls it) -- --x/--y are kept updated on
   mousemove so the glow tracks the cursor. Kept subtle -- an earlier pass
   at white/0.6 read as too strong. */
.btn-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #ffffff, transparent 45%);
}

.btn:hover .btn-spotlight {
  opacity: 0.3;
}

.btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: var(--border);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
}

.filter-chip {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--accent);
}

.filter-chip.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.case-card {
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-card .btn {
  align-self: center;
  padding: 8px 20px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.case-card .btn:hover {
  background: rgba(239, 159, 39, 0.12);
  color: var(--accent);
  box-shadow: none;
}

.case-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Monogram badge standing in for each company's icon -- reuses the
   Loudcase logomark's own rounded-square + amber treatment rather than
   reproducing any company's actual trademarked logo graphic. */
.case-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  width: fit-content;
}

.case-card h3 {
  margin: 0;
  font-size: 18px;
}

.case-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  flex-grow: 1;
}

.auth-card {
  max-width: 380px;
  margin: 48px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.auth-card h1 {
  font-size: 26px;
  margin: 0 0 20px;
  text-align: center;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-card label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

.auth-card input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.auth-card .btn {
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

.auth-card .hint {
  text-align: center;
  margin-top: 16px;
}

.auth-card .hint a {
  color: var(--accent);
}

.auth-error {
  color: #ff6b6b;
  font-size: 13px;
  margin: 4px 0 0;
}

/* ---- Split-screen login/signup page ---- */

.auth-split {
  display: flex;
  min-height: 100vh;
}

.auth-form-panel {
  flex: 0 0 460px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 56px;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.auth-form-inner {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  padding-top: 56px;
}

.auth-form-inner h1 {
  font-size: 26px;
  text-align: center;
  margin: 0 0 8px;
}

.auth-subtitle {
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
  margin: 0 0 28px;
}

.auth-tabs {
  display: flex;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.auth-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.auth-form-inner form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-form-inner label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

.auth-form-inner .req {
  color: var(--accent);
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-icon-wrap input {
  width: 100%;
  padding: 10px 40px 10px 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.input-icon-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  padding: 0;
  display: flex;
  align-items: center;
}

.input-icon-btn svg {
  width: 18px;
  height: 18px;
}

.auth-form-inner .btn {
  margin-top: 20px;
  width: 100%;
  text-align: center;
}

.auth-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin: 32px 0 0;
  line-height: 1.5;
}

.auth-visual-panel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f1115, #2c1a08, #0f1115, #1f1409);
  background-size: 300% 300%;
  animation: bg-drift 10s ease-in-out infinite;
  overflow: hidden;
  padding: 48px;
}

.auth-visual-inner {
  max-width: 420px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-visual-inner h2 {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 20px 0 12px;
  line-height: 1.2;
}

.auth-visual-inner p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

.mock-stack {
  position: relative;
  height: 210px;
  margin-bottom: 36px;
}

.mock-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  width: 220px;
  text-align: left;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.mock-case {
  left: 8%;
  top: 0;
  transform: rotate(-4deg);
}

.mock-case h3 {
  margin: 8px 0 4px;
  font-size: 16px;
}

.mock-case p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.mock-scorecard {
  right: 6%;
  top: 66px;
  transform: rotate(3deg);
}

.mock-scorecard-score {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 8px;
}

.mock-scorecard-score span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.mock-scorecard-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding: 5px 0;
  border-top: 1px solid var(--border);
}

.mock-scorecard-row:first-of-type {
  border-top: none;
}

@media (max-width: 900px) {
  .auth-visual-panel {
    display: none;
  }
  .auth-form-panel {
    flex: 1;
    max-width: none;
    border-right: none;
  }
}

.session-header {
  text-align: center;
  margin-bottom: 32px;
}

.session-header h1 {
  margin: 0 0 6px;
  font-size: 26px;
}

/* display: flex (not inline-flex) makes this a block-level box, so it
   sits flush left regardless of .session-header's text-align: center --
   matching the left alignment of the "Take your notes" title below. */
.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--text);
}

.session-header p {
  color: var(--text-muted);
  margin: 0;
}

.widget-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contains the ElevenLabs widget's internal position:fixed panel to this
   box instead of the viewport. A `transform` on an ancestor establishes a
   new CSS containing block for any fixed-position descendant -- that rule
   applies even across a Shadow DOM boundary, so it reaches the widget's
   internal panel even though we can't target that panel directly with a
   selector. min-height gives it room to render at a normal (non-tiny) size;
   adjust if the widget still looks cramped once you see it live. */
.widget-anchor {
  position: relative;
  transform: translateZ(0);
  min-height: 150px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  margin-bottom: 24px;
  /* Not "hidden" -- the widget's consent modal (Terms and conditions,
     shown before a call starts) renders taller than this box's fixed
     height. Hidden overflow was clipping its Agree button off-screen,
     making it unclickable. Visible lets that modal (and anything else
     the widget renders) spill out fully instead of getting cut off. */
  overflow: visible;
  /* Keep it above the notes field below, since the modal is positioned
     relative to this box (see the transform note above) and would
     otherwise render underneath adjacent content. */
  z-index: 10;
}

.results-actions {
  text-align: center;
  margin-top: 24px;
}

.hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.notes-box {
  margin-top: 24px;
}

.notes-title {
  text-align: left;
  font-size: 16px;
  margin: 0 0 10px;
}

.notes-box textarea {
  width: 100%;
  min-height: 420px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
}

.notes-box textarea::placeholder {
  color: var(--text-muted);
}

pre.scorecard {
  white-space: pre-wrap;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  font-size: 13px;
  margin-top: 16px;
}

/* Rendered (markdown -> HTML) feedback, used in the history modal instead
   of dumping the evaluator's raw markdown-flavored text into a <pre> --
   the model's output leans on bold/lists/headings, which look like literal
   asterisks and "1." prefixes without this. */
.rendered-feedback {
  text-align: left;
  line-height: 1.6;
  font-size: 14px;
}

.rendered-feedback h1,
.rendered-feedback h2,
.rendered-feedback h3 {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 20px 0 8px;
}

.rendered-feedback h1:first-child,
.rendered-feedback h2:first-child,
.rendered-feedback h3:first-child {
  margin-top: 0;
}

.rendered-feedback p {
  color: var(--text);
  margin: 10px 0;
}

.rendered-feedback strong {
  color: var(--text);
}

.rendered-feedback ol,
.rendered-feedback ul {
  margin: 10px 0;
  padding-left: 22px;
}

.rendered-feedback li {
  margin: 8px 0;
}

.rendered-feedback li::marker {
  color: var(--text-muted);
}

.rendered-feedback hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* ---- Feedback widget ----
   The "Feedback?" nav button (id="feedback-fab") opens this modal so
   candidates can report bugs/issues/suggestions from wherever they are in
   the app. Base look (amber pill outline) stays inline on the element
   itself across pages; just the hover state lives here since inline
   styles can't express :hover. */
#feedback-fab {
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

#feedback-fab:hover {
  background: rgba(239, 159, 39, 0.35);
  box-shadow: 0 0 12px 1px rgba(239, 159, 39, 0.4);
}

/* Scoped to this modal specifically (not the shared .modal-card h2 rule
   other modals use) so this gap doesn't affect them. Zeroed here so the
   textarea's own margin-top below is the single source of that spacing,
   rather than splitting it across two rules. */
#product-feedback-modal h2 {
  margin-bottom: 0;
}

.feedback-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 140px;
  margin-top: 15px;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid #1f2430;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.feedback-form textarea:focus {
  border-color: var(--accent);
}

.feedback-form textarea::placeholder {
  color: #6b7280;
}

/* Slightly tighter than the shared .modal-card padding so the (already
   near-full-width) textarea reads as filling almost the whole popup. */
#product-feedback-modal .modal-card {
  padding: 20px;
}

/* ---- Scorecard popup ----
   Shown automatically once the ElevenLabs widget's own "End call" button
   ends the conversation (see session.html's conversationEnded listener),
   instead of a manual "Get my scorecard" button at the bottom of the page. */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-card h2 {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 12px;
}

.modal-card p {
  color: var(--text-muted);
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

@media (max-width: 640px) {
  .features, .case-grid, .steps { grid-template-columns: 1fr; }
}

/* ---- Plans and pricing ----
   Row-by-row comparison table (feature label + one column per plan),
   the format used on pricing pages like elevenlabs.io/pricing. Sits on
   an explicit solid surface (not transparent over the animated page
   background), with border-collapse: separate so border-radius on
   individual cells actually renders -- border-radius on <td>/<th> is
   silently ignored by most browsers when border-collapse: collapse is
   used, which is what made the premium column highlight disappear. */

.pricing-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 560px;
  background: var(--surface);
  color: var(--text);
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  background: var(--surface);
  border-bottom: 1px dotted var(--border);
}

.pricing-table td.pricing-table-label,
.pricing-table th.pricing-table-label {
  text-align: left;
  color: var(--text-muted);
  width: 40%;
  font-weight: 400;
  background: transparent;
}

.pricing-table thead th {
  border-bottom: 1px solid var(--border);
  vertical-align: bottom;
  padding-top: 24px;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tfoot td {
  border-bottom: none;
  padding-top: 20px;
  padding-bottom: 24px;
  background: transparent;
}

.pricing-table td.premium-col,
.pricing-table th.premium-col {
  background: var(--surface-2);
}

.pricing-table thead th.premium-col {
  border-top: 2px solid var(--accent);
  border-radius: 10px 10px 0 0;
}

.pricing-table tbody tr:last-child td.premium-col {
  border-radius: 0;
}

.pricing-table tfoot td.premium-col {
  border-radius: 0 0 10px 10px;
  background: transparent;
}

.pricing-col-head {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.pricing-col-price {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
  margin-top: 4px;
}

.pricing-period {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-badge {
  display: inline-block;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.pricing-error {
  color: #ff6b6b;
  font-size: 12px;
  margin: 8px 0 0;
}

.pricing-check,
.pricing-dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.pricing-check {
  position: relative;
  border-radius: 6px;
  background: var(--accent-gradient);
}

.pricing-check::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.pricing-dash::after {
  content: "\2014";
  color: var(--text-muted);
  font-size: 14px;
}

/* ---- Admin dashboard table ----
   Reuses .pricing-table-wrap for the outer card, but plainer row styling
   (no premium-column highlighting) since this is just a data table. */

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 560px;
  background: var(--surface);
  color: var(--text);
}

.admin-table th,
.admin-table td {
  padding: 14px 20px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px dotted var(--border);
}

.admin-table thead th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---- Landing page FAQ ----
   Native <details>/<summary> -- no JS needed for an accordion. */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-list details:first-child {
  border-top: 1px solid var(--border);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  color: var(--text-muted);
  margin: 12px 0 0;
  line-height: 1.6;
}
