/* Shared design system — loaded by the homepage and every tool page. */
/* assets/styles.css (the older, tool-specific stylesheet) is loaded first on tool */
/* pages and still supplies layout/structure for each tool's bespoke UI; this file */
/* loads after it and re-skins that shared vocabulary of classes to match the */
/* homepage's black/white/green system, mostly by overriding the CSS variables */
/* that stylesheet already reads from (--surface-1, --text-muted, --border, etc). */

:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --button-bg: #0a0a0a;
  --button-text: #ffffff;
  --border-soft: rgba(0, 0, 0, 0.08);
  --accent: #E62777;

  /* Bridge the older variable names used throughout assets/styles.css. */
  --surface-1: #ffffff;
  --surface-2: #f5f5f5;
  --text-muted: #6b6b6b;
  --border: rgba(0, 0, 0, 0.08);
  --accent-2: rgba(0, 0, 0, 0.2);
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

/* Dark mode — driven by assets/theme.js, which sets data-theme="dark" or
   "light" on <html> as soon as a preference is known (saved in localStorage,
   or read from the OS via prefers-color-scheme on first visit). The explicit
   attribute always wins; the media query below only fills in for the rare
   case theme.js hasn't run yet (e.g. JS disabled) and the OS prefers dark.
   Every component here is built on --bg/--text/--muted/--surface-*/--border,
   so remapping this one variable set is enough to re-skin the whole site. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --text: #f2f2f2;
    --muted: #a3a3a3;
    --button-bg: #f2f2f2;
    --button-text: #0a0a0a;
    --border-soft: rgba(255, 255, 255, 0.1);
    --surface-1: #1c1c1c;
    --surface-2: #232323;
    --text-muted: #a3a3a3;
    --border: rgba(255, 255, 255, 0.1);
    --accent-2: rgba(255, 255, 255, 0.25);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121212;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --button-bg: #f2f2f2;
  --button-text: #0a0a0a;
  --border-soft: rgba(255, 255, 255, 0.1);
  --surface-1: #1c1c1c;
  --surface-2: #232323;
  --text-muted: #a3a3a3;
  --border: rgba(255, 255, 255, 0.1);
  --accent-2: rgba(255, 255, 255, 0.25);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: -0.02em;
}

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

:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.2);
  outline-offset: 2px;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* Shared fixed navbar + full-screen tools drawer — identical on every page. */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.site-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 19px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-nav__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav__logo {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.15rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.08em;
  white-space: nowrap;
  color: var(--text);
}
.site-nav__logo-c {
  position: relative;
}
.site-nav__logo-c::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #E62777;
}
.site-nav__trademark {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0;
}
.site-nav__back,
.site-nav__blog-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: color 0.15s ease;
}
.site-nav__back:hover,
.site-nav__blog-link:hover {
  color: var(--text);
}
.site-nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.site-nav__toggle:hover {
  opacity: 0.85;
}
.site-nav__chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}
.site-nav__toggle[aria-expanded="true"] .site-nav__chevron {
  transform: rotate(180deg);
}
.site-nav__hamburger-icon {
  display: none;
}

.site-nav__theme-toggle {
  position: relative;
  width: 64px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 999px;
  color: #0a0a0a;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
:root[data-theme="dark"] .site-nav__theme-toggle {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.site-nav__theme-icon {
  position: absolute;
  width: 16px;
  height: 16px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.site-nav__theme-icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.site-nav__theme-icon--moon {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}
:root[data-theme="dark"] .site-nav__theme-icon--sun {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}
:root[data-theme="dark"] .site-nav__theme-icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.tools-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.tools-drawer.is-open {
  opacity: 1;
  visibility: visible;
}
.tools-drawer__panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 600px;
  max-width: 100%;
  height: 100vh;
  background: var(--surface-1);
  box-shadow: -4px 0 40px rgba(0, 0, 0, 0.12);
  padding: 48px 40px;
  box-sizing: border-box;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.tools-drawer.is-open .tools-drawer__panel {
  transform: translateX(0);
}
.tools-drawer__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}
.tools-drawer__close svg {
  width: 24px;
  height: 24px;
}
.tools-drawer__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
}
.tools-drawer__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.tools-drawer__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.tools-drawer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.tools-drawer__col-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.tools-drawer__col-label--pro {
  color: #e62777;
}
.tools-drawer__list {
  display: flex;
  flex-direction: column;
}
.tools-drawer__list a {
  font-size: 14px;
  font-weight: 500;
  line-height: 2;
  color: var(--text);
  text-decoration: none;
}
.tools-drawer__list a:hover {
  color: var(--accent);
}
.tools-drawer__list--pro a {
  position: relative;
  padding-left: 14px;
}
.tools-drawer__list--pro a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e62777;
}
.tools-drawer__footer {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tools-drawer__pricing-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.tools-drawer__pricing-link:hover {
  color: var(--accent);
}
.tools-drawer__trial-btn {
  background: #e62777;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.tools-drawer__trial-btn:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .tools-drawer__panel {
    width: 480px;
    padding: 40px 32px;
  }
}
@media (max-width: 480px) {
  .tools-drawer__panel {
    width: 100%;
  }
  .tools-drawer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  /* Collapse the navbar to logo + dark mode toggle + hamburger. The
     hamburger reuses the existing #toolsToggle button/drawer - only its
     visible content swaps (label + chevron hidden, hamburger icon shown) so
     no new click handler is needed. */
  .site-nav__blog-link,
  .site-nav__signin-link,
  .site-nav__cta {
    display: none;
  }
  .site-nav__toggle-label,
  .site-nav__chevron {
    display: none;
  }
  .site-nav__hamburger-icon {
    display: block;
  }
  .site-nav__toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    background: transparent;
    color: var(--text);
  }
  .site-nav__theme-toggle {
    width: 32px;
  }
  .site-nav__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .site-nav__logo {
    font-size: 22px;
  }
  .site-nav__left {
    gap: 1rem;
  }
  .site-nav__right {
    gap: 0.85rem;
  }
}
@media (max-width: 480px) {
  .site-nav__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-nav__logo {
    font-size: 20px;
  }
  .site-nav__left {
    gap: 1rem;
  }
  .site-nav__right {
    gap: 0.85rem;
  }
}

/* Tool page layout wrapper — reuses the existing .tool-page class already in */
/* every tool's markup, replacing its old card-like treatment with a plain, */
/* centered content column that clears the fixed navbar. */
.tool-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 120px 36px 80px;
  border: none;
  box-shadow: none;
  background: transparent;
}
@media (max-width: 768px) {
  .tool-page {
    padding: 100px 20px 60px;
  }
}

/* Tool page header: breadcrumb, title, subtitle */
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tool-header h1 {
  margin: 0.5rem 0 0;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--text);
}
.tool-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
}

/* Card style — applies to every example/output/result card across all tools, */
/* since they already share this vocabulary of classes. */
.example-card,
.sample-prompt-card,
.fixer-audit-card,
.fixer-score-card,
.fixer-changes-card,
.fixer-refine,
.compare-hero-card,
.compare-cost-card,
.layer-guide__card,
.quiz-score-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.example-card:hover,
.sample-prompt-card:hover,
.fixer-audit-card:hover,
.fixer-score-card:hover,
.fixer-changes-card:hover,
.compare-hero-card:hover,
.compare-cost-card:hover,
.layer-guide__card:hover,
.quiz-score-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.compare-hero-card {
  background: var(--surface-1);
}

/* .shot-card and .compare-secondary-card keep a colored left accent bar from */
/* assets/styles.css (border-left-color set per variant) — only their other */
/* three sides + background/radius/padding are touched here so that accent survives. */
.shot-card,
.compare-secondary-card {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shot-card {
  padding: 24px;
}
.shot-card:hover,
.compare-secondary-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Tag / chip style */
.chip,
.example-card__tag,
.style-chip {
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* Buttons */
.button {
  border-radius: 999px;
  font-family: "Inter", sans-serif;
}
.button--primary {
  background: var(--button-bg);
  color: var(--button-text);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
}
.button--secondary {
  background: var(--surface-1);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
}
[data-copy-target].button--secondary {
  padding: 6px 14px;
  font-size: 12px;
}

/* Inputs, textareas, selects */
input,
textarea,
select {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--surface-1);
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(0, 0, 0, 0.3);
  outline: none;
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%230a0a0a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
  padding-right: 36px;
}

/* Section dividers */
.related-tools {
  border-top: 1px solid var(--border);
}

/* Shared site footer — identical on every page (homepage and all tool pages). */
.site-footer {
  border-top: 1px solid var(--border);
}
.site-footer__main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.site-footer__brand {
  display: grid;
  gap: 0.6rem;
}
.site-footer__logo {
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.06em;
  color: var(--text);
}
.site-footer__tagline {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.site-footer__badge {
  font-size: 11px;
  font-weight: 500;
  background: #f0f0f0;
  color: var(--muted);
  border-radius: 20px;
  padding: 4px 10px;
}
.site-footer__badge--accent {
  background: rgba(230, 39, 119, 0.08);
  color: #e62777;
}
.site-footer__links {
  display: flex;
  gap: 4rem;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.site-footer__col-label {
  margin: 0 0 0.15rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.site-footer__col a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.site-footer__col a:hover {
  color: var(--text);
}

.site-footer__bottom {
  border-top: 1px solid var(--border);
}
.site-footer__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer__bottom-inner p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .site-footer__main {
    flex-direction: column;
    gap: 2.5rem;
  }
  .site-footer__links {
    flex-direction: column;
    gap: 2rem;
  }
  .site-footer__bottom-inner {
    justify-content: center;
  }
}

/* Brand Profile System — nav account control, per-tool autofill, account page. */

.site-nav__account {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 32px; /* reserves the avatar's height so nothing jumps once it renders in */
}

.site-nav__signin-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.site-nav__signin-link:hover {
  color: var(--text);
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.site-nav__cta:hover {
  opacity: 0.85;
}

.site-nav__pro-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #f5d06f, #d4a017);
  color: #3a2c00;
  border-radius: 999px;
  padding: 2px 10px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav__upgrade-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.site-nav__upgrade-link:hover {
  color: var(--text);
}

.site-nav__avatar-wrap {
  position: relative;
}
.site-nav__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-nav__avatar-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 110;
  min-width: 180px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: flex;
  flex-direction: column;
}
.site-nav__avatar-menu a,
.site-nav__avatar-signout {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.site-nav__avatar-menu a:hover,
.site-nav__avatar-signout:hover {
  background: var(--surface-2);
}
.site-nav__avatar-menu hr {
  margin: 6px 4px;
  border: none;
  border-top: 1px solid var(--border);
}
.site-nav__avatar-signout {
  color: var(--muted);
}

.badge-pro {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
  background: rgba(230, 39, 119, 0.1);
  color: #e62777;
  border: 1px solid rgba(230, 39, 119, 0.2);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 9px;
}
/* .chip sets a dark-mode background/color of its own (see the
   [data-theme="dark"] .chip rule above); .badge-pro must win over that
   so the Pro badge stays pink instead of going gray-on-gray. */
[data-theme="dark"] .chip.badge-pro {
  background: rgba(230, 39, 119, 0.15);
  color: #e62777;
  border-color: rgba(230, 39, 119, 0.3);
}

.account-notice {
  background: var(--surface-1);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--muted);
}
.account-notice code {
  background: var(--surface-2);
  border-radius: 4px;
  padding: 2px 6px;
}

.account-auth {
  max-width: 420px;
}
.account-auth__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.account-auth__tab {
  flex: 1;
  background: var(--surface-2);
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.account-auth__tab.is-active {
  background: var(--button-bg);
  color: var(--button-text);
}
.account-auth__error {
  color: #c0392b;
  font-size: 13px;
}
.account-auth__success {
  color: #1a7a3a;
  font-size: 13px;
}
.account-auth__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.account-auth__divider::before,
.account-auth__divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

.account-foundations__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.account-foundations__signed-in {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.account-foundations__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.account-foundations__saved {
  margin: 0.5rem 0 0;
  font-size: 13px;
  color: #1a7a3a;
}

.foundation-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.foundation-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.foundation-pill.is-active {
  background: var(--button-bg);
  color: var(--button-text);
  border-color: transparent;
}

.pro-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
}
.pro-panel__item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.pro-panel__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.pro-panel__desc {
  margin: 0 0 0.85rem;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .pro-panel {
    grid-template-columns: 1fr;
  }
}

/* Dedicated auth pages — auth/signup, auth/login, auth/reset-password */

.auth-page {
  max-width: 420px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
@media (max-width: 768px) {
  .auth-page {
    padding: 100px 20px 60px;
  }
}
.auth-page__header {
  margin-bottom: 2rem;
  text-align: center;
}
.auth-page__header h1 {
  margin: 0 0 0.5rem;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
}
.auth-page__subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: var(--surface-1);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.google-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.field-error {
  margin: 0.3rem 0 0;
  font-size: 12px;
  color: #c0392b;
}

.password-field {
  position: relative;
}
.password-field input {
  width: 100%;
  padding-right: 64px;
  box-sizing: border-box;
}
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.password-toggle:hover {
  color: var(--text);
}

.field-forgot {
  display: block;
  margin: 0.5rem 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: right;
}
.field-forgot:hover {
  color: var(--text);
}

.auth-links {
  margin: 1.5rem 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.auth-links a {
  color: var(--text);
  font-weight: 600;
}

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

.auth-success {
  font-size: 13px;
  color: #1a7a3a;
}

/* Profile dashboard — profile/index.html */

.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.profile-header__brand-name {
  margin: 0.35rem 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.profile-header__email {
  margin: 0.2rem 0 0;
  font-size: 13px;
  color: var(--muted);
}
.profile-header__signout {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.profile-header__signout:hover {
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.25);
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
}
.profile-tab {
  background: var(--surface-2);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.profile-tab.is-active {
  background: var(--button-bg);
  color: var(--button-text);
}

.foundation-empty {
  background: var(--surface-1);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.foundation-empty p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}
.foundation-empty__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.style-identity-card {
  margin: 1.5rem 0;
}
.style-identity-card__name {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.style-identity-card__tagline {
  margin: 0.4rem 0 0;
  font-size: 15px;
  color: var(--muted);
}

.foundation-section {
  margin: 1.75rem 0;
}
.foundation-section h2 {
  margin: 0 0 0.65rem;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.foundation-section p {
  margin: 0;
  color: var(--text);
}
.lighting-block {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.6;
}

.chip--muted {
  color: var(--muted);
}

.foundation-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.foundation-footer__updated {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Reusable modal, used by the foundation editor, template editor, and the
   delete-account confirmation. */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 100px 20px 40px;
}
.modal {
  background: var(--surface-1);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal__header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.modal__close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal__close:hover {
  color: var(--text);
}
.modal__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Prompt Library tab */
.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.library-filters select {
  min-width: 180px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.library-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.library-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.library-card__excerpt {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.library-card__date {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.library-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}
.library-empty,
.templates-empty {
  color: var(--muted);
  font-size: 14px;
}

/* Prompt Templates tab */
.templates-list {
  display: grid;
  gap: 1rem;
}
.template-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.template-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.template-item__header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.template-item__text {
  margin: 0 0 0.85rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
}
.template-variable {
  color: var(--accent);
  font-weight: 600;
}
.template-item__actions {
  display: flex;
  gap: 0.5rem;
}

/* Account Settings tab */
.settings-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.settings-section:last-child {
  border-bottom: none;
}
.settings-section h2 {
  margin: 0 0 1rem;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.settings-section--danger p {
  color: var(--muted);
  font-size: 14px;
}
.settings-section--premium {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.premium-feature-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.premium-feature-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 14px;
  color: var(--text);
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile bar + foundation-load banner — present on every tool page */

.profile-bar {
  margin-top: 72px; /* clears the fixed .site-nav */
  min-height: 44px;
  padding: 0 36px;
  padding-top: 14px;
  padding-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.profile-bar__message {
  margin: 8px 0;
  color: var(--muted);
}
.profile-bar__message--identity {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
}
.profile-bar__icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
  flex-shrink: 0;
}
.profile-bar__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 8px 0;
}
.profile-bar__links a {
  font-weight: 500;
  color: var(--text);
}
.profile-bar__links a:hover {
  color: var(--accent);
}

/* .tool-page keeps its normal top padding to clear the fixed nav; once the
   profile bar is already providing that clearance via its own margin-top,
   the page content only needs a little breathing room beneath the bar. */
.tool-page--has-bar {
  padding-top: 40px;
}

.foundation-banner {
  margin: 0 36px;
  margin-top: 24px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #fff7fb;
  border: 1px solid rgba(230, 39, 119, 0.25);
  border-radius: var(--radius);
}
.foundation-banner__message {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.foundation-banner__actions {
  display: flex;
  gap: 0.6rem;
}

.save-to-profile-btn,
.save-to-foundation-btn {
  margin-left: 0.5rem;
}

@media (max-width: 768px) {
  .profile-bar {
    padding: 10px 20px;
  }
  .foundation-banner {
    margin-left: 20px;
    margin-right: 20px;
  }
  .save-to-profile-btn,
  .save-to-foundation-btn {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.toast--error {
  background: #c0392b;
}

/* Welcome flow — profile/welcome/index.html */

.welcome-page {
  max-width: 720px;
}
.welcome-progress {
  margin: 0 0 1.5rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.chip--selectable {
  border: none;
  cursor: pointer;
}
.chip--selectable.is-selected {
  background: var(--button-bg);
  color: var(--button-text);
}

.welcome-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.welcome-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.welcome-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.welcome-card--recommended {
  border: 2px solid var(--accent);
}
.welcome-card__badge {
  position: absolute;
  top: -11px;
  left: 20px;
}
.welcome-card h3 {
  margin: 0.5rem 0 0.5rem;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.welcome-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.welcome-skip {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.welcome-skip:hover {
  color: var(--text);
}

.welcome-summary {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.6rem;
}
.welcome-summary__item {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 14px;
  color: var(--text);
}
.welcome-summary__item strong {
  color: var(--muted);
  font-weight: 500;
}

.welcome-recommendations {
  margin: 2rem 0;
}
.welcome-recommendations__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.welcome-recommend-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.welcome-recommend-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.welcome-recommend-card h4 {
  margin: 0 0 0.4rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.welcome-recommend-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.welcome-final-actions {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .welcome-cards,
  .welcome-recommendations__grid {
    grid-template-columns: 1fr;
  }
  .welcome-final-actions {
    flex-direction: column;
  }
}

/* AI Content Calendar Generator (Pro) */

.button--accent {
  background: var(--accent);
  color: #ffffff;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
}

.pro-gate-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 1.75rem;
}
.pro-gate-banner__left h2 {
  margin: 0 0 0.75rem;
  font-size: 18px;
  font-weight: 600;
}
.pro-gate-banner__right {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .pro-gate-banner {
    grid-template-columns: 1fr;
  }
  .pro-gate-banner__right {
    justify-content: flex-start;
  }
}

.account-notice--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.account-notice--row p { margin: 0; color: var(--text); }

.duration-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.duration-card {
  display: grid;
  gap: 0.35rem;
  text-align: center;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  cursor: pointer;
  position: relative;
}
.duration-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.duration-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--surface-2);
}
.duration-card__days {
  font-size: 18px;
  font-weight: 600;
}
.duration-card__estimate {
  font-size: 13px;
  color: var(--muted);
}

.pillar-slot {
  display: grid;
  gap: 0.75rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 0.75rem;
  position: relative;
}
.pillar-slot__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 1rem;
}
.pillar-slot__fields label,
.pillar-slot > label { margin: 0; }
.pillar-slot__pct-input-wrap {
  position: relative;
}
.pillar-slot__pct-input-wrap input { padding-right: 28px; }
.pillar-slot__pct-symbol {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
.pillar-slot__remove {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.pillar-slot__remove:hover { color: var(--text); }
.pillar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .duration-cards { grid-template-columns: 1fr; }
  .pillar-slot__fields { grid-template-columns: 1fr; }
}

.month-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.month-grid .duration-card:has(input:checked) {
  border-color: var(--text);
}
.duration-card__year {
  font-size: 12px;
  color: var(--muted);
}
.duration-card--locked {
  cursor: not-allowed;
  opacity: 0.55;
}
.duration-card__lock {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 12px;
}
@media (max-width: 480px) {
  .month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tier-banner {
  min-height: 40px;
  padding: 8px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.tier-banner p {
  margin: 0;
  color: var(--text);
}
.tier-banner a {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .tier-banner { padding: 8px 20px; }
}

.seasonal-block {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.seasonal-block:last-child {
  margin-bottom: 0;
}
.seasonal-block__header h2 {
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.seasonal-block__actions .badge-pro {
  margin-left: 0.35rem;
}

.saved-direction-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.saved-direction-card:last-child {
  border-bottom: none;
}
.saved-direction-card__info {
  display: grid;
  gap: 0.2rem;
}
.saved-direction-card__month {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.saved-direction-card__name {
  margin: 0;
  font-weight: 600;
}

.calendar-pillar-0 { --pillar-color: var(--accent); }
.calendar-pillar-1 { --pillar-color: #0f9d8c; }
.calendar-pillar-2 { --pillar-color: #c98a1f; }
.calendar-pillar-3 { --pillar-color: #c2578a; }
.calendar-pillar-4 { --pillar-color: #7c5cd6; }
.calendar-pillar-5 { --pillar-color: #5b8def; }
.calendar-pillar-6 { --pillar-color: #4f9d69; }
.calendar-pillar-7 { --pillar-color: #e8735c; }

.calendar-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 1.25rem;
  font-size: 14px;
  color: var(--text);
}
.calendar-summary strong { font-weight: 600; }
.calendar-summary__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
}
.calendar-summary__pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  color: var(--muted);
}
.calendar-summary__pillar-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pillar-color, var(--accent));
}

.calendar-month { margin-bottom: 1.75rem; }
.calendar-month__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.calendar-month__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-align: center;
}
.calendar-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.calendar-day {
  min-height: 96px;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  text-align: left;
  border: 1px solid transparent;
  background: none;
  font-family: inherit;
  color: var(--text);
  cursor: default;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.calendar-day--empty { visibility: hidden; }
.calendar-day--rest {
  background: var(--surface-2);
  color: var(--muted);
}
.calendar-day--post {
  background: var(--surface-1);
  border-color: var(--border);
  border-left: 3px solid var(--pillar-color, var(--accent));
  cursor: pointer;
}
.calendar-day--post:hover {
  border-color: var(--pillar-color, var(--accent));
}
.calendar-day--post.is-selected {
  background: var(--surface-2);
  border-color: var(--pillar-color, var(--accent));
}
.calendar-day__top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.calendar-day__num {
  font-weight: 700;
  font-style: italic;
  font-size: 14px;
}
.calendar-day__keydate-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.calendar-day__pillar-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}
.calendar-day__pillar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pillar-color, var(--accent));
  flex-shrink: 0;
}
.calendar-day__pillar-name {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-day__type-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  margin-top: auto;
}
.calendar-day__type-row svg { flex-shrink: 0; }
.calendar-day__type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day-detail__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.calendar-day-detail__header h3 {
  margin: 0;
  font-size: 16px;
}
.calendar-day-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.calendar-day-detail__keydate {
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* View toggle bar */
.view-toggle-bar {
  display: flex;
  gap: 0.6rem;
}
.view-toggle-btn {
  border-radius: 999px;
  padding: 10px 22px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  background: var(--surface-1);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.35);
}
.view-toggle-btn.is-active {
  background: var(--button-bg);
  color: var(--button-text);
  border-color: var(--button-bg);
}

.view-pane {
  transition: opacity 0.18s ease;
}
.view-pane.is-fading {
  opacity: 0;
}

/* Calendar header: month/year + nav + legend + actions */
.calendar-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.calendar-header__month {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.calendar-header__month h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 200px;
}
.calendar-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}
.calendar-nav-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.calendar-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 12px;
  color: var(--muted);
}
.calendar-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.calendar-legend__item::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pillar-color, var(--accent));
}

/* Day side panel */
.day-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(10, 10, 10, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.day-panel-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.day-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--surface-1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
  padding: 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}
.day-panel-overlay.is-open .day-panel {
  transform: translateX(0);
}
.day-panel__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.day-panel__close:hover { color: var(--text); }
.day-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.day-panel__label {
  margin: 0 0 0.35rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
@media (max-width: 520px) {
  .day-panel { max-width: 100%; }
}

/* List view: card rows */
.calendar-list {
  display: grid;
  gap: 0.75rem;
}
.calendar-list-row {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  gap: 0.5rem;
}
.calendar-list-row__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.calendar-list-row__date {
  font-weight: 600;
  font-size: 14px;
  margin-right: auto;
}
.calendar-pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: color-mix(in srgb, var(--pillar-color, var(--accent)) 12%, white);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.calendar-pillar-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pillar-color, var(--accent));
  flex-shrink: 0;
}
.calendar-list-row__type {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 12px;
  color: var(--muted);
}
.calendar-list-row__keydate {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.calendar-list-row__keydate::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.calendar-list-row__prompt {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.calendar-list-row__expand {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: fit-content;
}
.calendar-list-row__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.premium-feature-list--modal {
  text-align: left;
}
.premium-feature-list--modal li {
  justify-content: flex-start;
}
.premium-feature-list--modal li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 640px) {
  .calendar-day { font-size: 10px; padding: 6px; min-height: 76px; }
  .calendar-day__pillar-name,
  .calendar-day__type { display: none; }
  .calendar-header__month h3 { font-size: 19px; min-width: 0; }
}

/* Print-only elements (populated by JS, shown by tools/content-calendar/print.css) */
.print-header,
.print-list-header {
  display: none;
}
.calendar-month__title {
  display: none;
}

/* Pro upgrade modal (content-calendar and any other Pro-gated tool) */

.modal--upgrade {
  max-width: 480px;
  padding: 40px;
  border-radius: 16px;
}
.modal--upgrade .modal__header {
  margin-bottom: 0.5rem;
}
.modal--upgrade .modal__header h2 {
  font-size: 22px;
}
.modal--upgrade__subhead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.modal--upgrade .premium-feature-list--modal {
  margin-bottom: 1.5rem;
}
.modal--upgrade .premium-feature-list--modal li {
  font-size: 13px;
}
.modal--upgrade .pricing-toggle-row {
  margin-bottom: 1.25rem;
}
.modal--upgrade .pricing-card__amount {
  font-size: 36px;
}
.modal--upgrade .pricing-card__price {
  margin-bottom: 1.5rem;
}
.modal--upgrade .pricing-card__annual-note {
  margin-bottom: 1.5rem;
}

/* Pricing table (pricing/index.html + homepage pricing section) */

.pricing-section {
  padding: 40px 36px 80px;
  padding-top: 40px;
  overflow: visible;
  height: auto;
  min-height: 0;
  scroll-margin-top: 100px;
}
.pricing-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  overflow: visible;
}
.pricing-section__more-link {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: 14px;
}
.pricing-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
}
.pricing-trust-row span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.pricing-trust-row__dot {
  font-size: 10px;
}
.pricing-section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.pricing-section__title {
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.pricing-section__subtitle {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Toggle row */
.pricing-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.pricing-toggle-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pricing-toggle-btn.active {
  background: #0a0a0a;
  color: #ffffff;
  border-color: #0a0a0a;
}
.pricing-toggle-badge {
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
  overflow: visible;
}

.pricing-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: visible;
}
.pricing-card__label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.pricing-card__amount {
  font-size: 52px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.05em;
  transition: opacity 0.2s ease;
}
.pricing-card__period {
  font-size: 16px;
  color: var(--muted);
}
.price-display {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.price-currency {
  font-size: 24px;
  font-weight: 600;
}
.price-number {
  font-size: 52px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.05em;
  transition: transform 150ms ease;
}
.price-period {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.6;
  margin-left: 4px;
}
.pricing-card--pro .price-currency,
.pricing-card--pro .price-number,
.pricing-card--pro .price-period {
  color: #ffffff;
}
.pricing-card__annual-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0.25rem 0 0;
}
.pricing-card__subtext {
  font-size: 13px;
  color: var(--muted);
  margin: 0.75rem 0 0;
}
.pricing-card__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
}
.pricing-card__features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 14px;
  line-height: 1.4;
}
.pricing-card__features li::before {
  content: "✓";
  color: #17c964;
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
}

/* Free card */
.pricing-card--free .pricing-card__amount,
.pricing-card--free .pricing-card__label {
  color: var(--text);
}
.pricing-card__cta--free {
  background: var(--surface-1);
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: background 0.2s ease;
}
.pricing-card__cta--free:hover {
  background: var(--surface-2);
}

/* Pro card */
.pricing-card--pro {
  background: #0a0a0a;
  color: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.pricing-card--pro .pricing-card__label {
  color: #ffffff;
}
.pricing-card--pro .pricing-card__amount {
  color: #ffffff;
}
.pricing-card--pro .pricing-card__period {
  color: rgba(255, 255, 255, 0.6);
}
.pricing-card--pro .pricing-card__annual-note,
.pricing-card--pro .pricing-card__subtext {
  color: rgba(255, 255, 255, 0.5);
}
.pricing-card--pro .pricing-card__divider {
  border-top-color: rgba(255, 255, 255, 0.1);
}
.pricing-card--pro .pricing-card__features li::before {
  color: var(--accent);
}
.pricing-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-card__cta--pro {
  background: var(--accent);
  color: #ffffff;
  transition: opacity 0.2s ease;
}
.pricing-card__cta--pro:hover {
  opacity: 0.9;
}
.pricing-card__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.pricing-card__secure svg {
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .pricing-card--pro {
    transform: scale(1.03);
  }
}

@media (max-width: 768px) {
  .pricing-section {
    padding: 100px 20px 64px;
    padding-top: 100px;
  }
  .pricing-section__title {
    font-size: 30px;
  }
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    padding: 28px;
  }
  .pricing-card__amount {
    font-size: 42px;
  }
}

.pricing-section__inner--narrow {
  max-width: 900px;
}

/* Pricing page hero (pricing/index.html) */
.pricing-hero {
  text-align: center;
  padding: 120px 36px 0;
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
  min-height: 0;
  scroll-margin-top: 100px;
}
.pricing-hero__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 40px 0 1rem;
}
.pricing-hero__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
}
.pricing-hero__subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto;
}

/* Pricing FAQ accordion */
.faq-section {
  padding: 80px 36px;
  max-width: 760px;
  margin: 0 auto;
}
.faq-section__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0 0 2rem;
  text-align: center;
}
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}
.faq-question__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.25s ease;
}
.faq-item.is-open .faq-question__icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.faq-item.is-open .faq-answer {
  max-height: 320px;
}

/* Pricing feature comparison table */
.compare-section {
  padding: 80px 36px;
}
.compare-section__inner {
  max-width: 900px;
  margin: 0 auto;
}
.compare-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table thead tr {
  background: transparent;
  border-bottom: 2px solid var(--border);
}
.compare-table thead th {
  padding: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}
.compare-table thead th:first-child {
  text-align: left;
}
.compare-table thead th.compare-table__pro {
  color: #e62777;
}
.compare-table tbody td {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  font-size: 14px;
  color: var(--text);
}
.compare-table tbody td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
  padding-left: 16px;
}
.compare-table tbody td:last-child {
  padding-right: 16px;
}
.compare-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table td.compare-table__check {
  color: #17c964;
  font-weight: 700;
}
.compare-table td.compare-table__dash {
  color: var(--muted);
}

@media (max-width: 768px) {
  .pricing-hero {
    padding: 100px 20px 0;
  }
  .pricing-hero__title {
    font-size: 30px;
  }
  .faq-section,
  .compare-section {
    padding: 56px 20px;
  }
}

/* Calendar generation loading state */
.calendar-loading {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  margin-top: 1.5rem;
}
.calendar-loading__spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: calendar-loading-spin 0.8s linear infinite;
  margin-bottom: 0.5rem;
}
.calendar-loading__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.calendar-loading__status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
@keyframes calendar-loading-spin {
  to { transform: rotate(360deg); }
}

/* Content Pillar Generator results */

.pillar-overview-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 1.5rem;
}
.pillar-overview-card__item {
  display: grid;
  gap: 0.2rem;
}
.pillar-overview-card__value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pillar-overview-card__label {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .pillar-overview-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pillar-result-card {
  display: grid;
  gap: 0.75rem;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
}
.pillar-result-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.pillar-result-card__name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.pillar-result-card__pct {
  display: flex;
  align-items: baseline;
  gap: 1px;
  flex-shrink: 0;
}
.pillar-result-card__pct-num {
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
}
.pillar-result-card__pct-symbol {
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
}
.pillar-result-card__desc {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.pillar-result-card__label {
  margin: 0.25rem 0 -0.35rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pillar-result-card__types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.pillar-result-card__type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 13px;
  color: var(--text);
}
.pillar-result-card__days,
.pillar-result-card__prompt-direction {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}
.pillar-result-card__prompt-direction {
  font-style: italic;
  color: var(--muted);
}

.posting-split-bar {
  margin-bottom: 1.5rem;
}
.posting-split-bar__track {
  display: flex;
  width: 100%;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
}
.posting-split-bar__segment {
  height: 100%;
}
.posting-split-bar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 13px;
}
.posting-split-bar__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.posting-split-bar__legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.monthly-estimate-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 1.5rem;
}
.monthly-estimate-card__headline {
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.monthly-estimate-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 14px;
}
.monthly-estimate-card__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.monthly-estimate-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.percentage-editor {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.percentage-editor__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.percentage-editor__name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
}
.percentage-editor__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.percentage-editor__input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.percentage-editor__input-wrap input {
  width: 70px;
  text-align: right;
}
.percentage-editor__warning {
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.pillar-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.pillar-action-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.pillar-action-card h3 {
  margin: 0;
  font-size: 16px;
}
.pillar-action-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.pillar-action-card--pro {
  border: 2px solid var(--accent);
}
.pillar-action-card__lock {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.pillar-action-card__success {
  font-size: 13px;
  color: var(--text);
}
.pillar-action-card__success a {
  color: var(--accent);
  font-weight: 600;
}
@media (max-width: 640px) {
  .pillar-actions-grid { grid-template-columns: 1fr; }
}

/* Brand Audit — full-page Pro gate (tools/brand-audit/index.html) */
.audit-gate-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.75rem 2rem;
  background: var(--surface-1);
}
.audit-gate-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}
.audit-gate-card__subhead {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}
.audit-gate-card .premium-feature-list {
  max-width: 420px;
  margin: 0 auto 1.75rem;
}
.audit-gate-card__signin {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.audit-gate-card__signin a {
  color: var(--accent);
  font-weight: 600;
}

/* Brand Audit — content slots (fixed 1-5, progressively revealed) */
.content-slot {
  display: grid;
  gap: 0.85rem;
}
.content-slot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.content-slot__header h3 {
  margin: 0;
  font-size: 1rem;
}
.content-slot__selectors {
  display: grid;
  gap: 0.6rem;
}
.chip-group--compact .chip {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

.piece-dropzone {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.piece-dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(230, 39, 119, 0.06);
}
.piece-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.piece-dropzone__text {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}
.piece-dropzone__hint {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.piece-dropzone__error {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #c0392b;
}
.piece-dropzone__preview {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.piece-dropzone__preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.piece-dropzone__remove {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}
.piece-dropzone__remove:hover { color: var(--text); }

/* Score ring: animated SVG circular progress, color-coded 8+/6-7/below 6 */
.audit-score-ring {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
}
.audit-score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.audit-score-ring__track {
  fill: none;
  stroke: var(--border);
  stroke-width: 10;
}
.audit-score-ring__fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}
.audit-score-ring--tier-1 .audit-score-ring__fill { stroke: var(--success); }
.audit-score-ring--tier-2 .audit-score-ring__fill { stroke: #c98a1f; }
.audit-score-ring--tier-3 .audit-score-ring__fill { stroke: #c0392b; }
.audit-score-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}
.audit-score-ring__label small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.audit-score-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  background: var(--surface-1);
  margin-bottom: 1.5rem;
}
.audit-score-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}
.audit-score-card__grade {
  margin: 0 0 0.25rem;
  font-size: 18px;
  font-weight: 700;
}
.audit-score-card__summary {
  margin: 0;
  color: var(--text-muted);
}
.audit-score-card__date {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.audit-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.audit-stat-tile {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  background: var(--surface-2);
}
.audit-stat-tile__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}
.audit-stat-tile__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
@media (max-width: 640px) {
  .audit-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.audit-verdict {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}
.audit-verdict--tier-1 { background: var(--success); }
.audit-verdict--tier-2 { background: #c98a1f; }
.audit-verdict--tier-3 { background: #c0392b; }

.audit-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

.audit-piece-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.audit-piece-card__header h2 {
  margin: 0;
  font-size: 1.1rem;
}
.audit-piece-card__badges {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}
.audit-piece-card__score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.audit-piece-card__score {
  font-weight: 700;
  color: var(--text-muted);
}
.audit-piece-card__body {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.audit-piece-card__thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.audit-piece-card__main {
  flex: 1;
  min-width: 0;
}

.audit-fix-list {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
  color: var(--text);
}

/* Six-layer breakdown row: icon, name + score, one-sentence assessment */
.audit-layer-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.audit-layer-row:last-child { border-bottom: none; }
.audit-layer-row__icon {
  font-weight: 700;
  line-height: 1.5;
}
.audit-layer-row__icon--on { color: var(--success); }
.audit-layer-row__icon--warning { color: #c98a1f; }
.audit-layer-row__icon--off { color: #c0392b; }
.audit-layer-row__top {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.audit-layer-row__name { font-weight: 600; }
.audit-layer-row__score { font-size: 0.85rem; color: var(--text-muted); }
.audit-layer-row__note { margin: 0.1rem 0 0; color: var(--text-muted); font-size: 0.9rem; }

/* Issues panel: problem + fix pairs */
.audit-issue-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  margin-bottom: 0.6rem;
}
.audit-issue-card:last-child { margin-bottom: 0; }
.audit-issue-card__issue {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.audit-issue-card__issue::before {
  content: "✕";
  color: #c0392b;
  flex-shrink: 0;
}
.audit-issue-card__fix {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.audit-issue-card__fix strong { color: var(--text); }

/* Pattern analysis + action plan */
.audit-action-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.audit-action-item:last-child { border-bottom: none; }
.audit-action-item__body { flex: 1; min-width: 0; }
.audit-action-item__instruction {
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.audit-action-item__impact {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.audit-priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}
.audit-priority-badge--high { background: #c0392b; }
.audit-priority-badge--medium { background: #c98a1f; }
.audit-priority-badge--low { background: var(--success); }

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.audit-progress-bar {
  width: 100%;
  max-width: 360px;
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.audit-progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
}

/* Platform Optimizer: 8 platform cards in a 4x2 grid, 2-up on small screens */
.platform-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Platform Optimizer: side-by-side prompt comparison */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 768px) {
  .compare-grid { grid-template-columns: 1fr; }
}
.compare-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  padding: 16px;
}
.compare-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.compare-panel__head h3 { margin: 0; font-size: 14px; }
.compare-panel__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.compare-panel--original .compare-panel__text { color: var(--text-muted); }
.compare-panel__params {
  margin: 0.75rem 0 0;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
}

/* Platform Optimizer: change rows (old -> new) */
.change-old {
  text-decoration: line-through;
  color: var(--text-muted);
}
.change-new {
  background: rgba(230, 39, 119, 0.08);
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 500;
}
.change-arrow { margin: 0 6px; color: var(--text-muted); }

/* Platform Optimizer: variant version history */
.version-pills { display: flex; gap: 8px; margin-top: 1rem; flex-wrap: wrap; }
.version-pill {
  border: 1px solid var(--border);
  background: var(--surface-1);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}
.version-pill.is-active {
  border-color: var(--text);
  background: var(--surface-2);
}

/* ---------- Tool #20: Prompt History and Analytics ---------- */
.pa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (max-width: 720px) {
  .pa-grid { grid-template-columns: 1fr; }
}
.pa-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-1);
  padding: 1.1rem 1.15rem;
  margin-top: 1.5rem;
}
.pa-grid .pa-section { margin-top: 0; }
.pa-section h3 { font-size: 0.95rem; margin-bottom: 0.9rem; }
.pa-bars { display: grid; gap: 0.55rem; }
.pa-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 38%) 1fr 2.5em;
  align-items: center;
  gap: 0.6rem;
  font-size: 12.5px;
}
.pa-bar-row__label {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pa-bar-row__track {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: var(--surface-2);
}
.pa-bar-row__fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: #2a78d6;
}
.pa-bar-row__value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.pa-trend { width: 100%; height: auto; display: block; }
.pa-trend__grid { stroke: var(--border); stroke-width: 1; }
.pa-trend__line { fill: none; stroke: #2a78d6; stroke-width: 2; stroke-linejoin: round; }
.pa-trend__dot { fill: #2a78d6; stroke: var(--surface-1); stroke-width: 2; }
.pa-trend__tick { font-size: 10px; fill: var(--text-muted); }
.pa-trend__value { font-size: 11px; font-weight: 700; fill: var(--text); }
.pa-gate-blur { filter: blur(4px); pointer-events: none; user-select: none; }
.pa-gate-wrap { position: relative; }
.pa-gate-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Dark mode specific overrides — for the handful of elements that don't
   already adapt through the --bg/--text/--surface-*/--border variable
   remapping above (either because they hardcode a color, or because they
   want a deliberately different treatment in dark mode, like the frosted
   navbar). Most cards/buttons/panels elsewhere already use those variables
   and need nothing here. Selectors below use this project's real class
   names (.site-nav, .tool-card, .pricing-card, etc) rather than generic
   ones like .navbar/.btn-primary/.blog-card, which don't exist in this
   codebase and would be dead CSS. */

/* Navbar: frosted glass instead of a flat fill in dark mode */
[data-theme="dark"] .site-nav {
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Homepage hero: solid dark backdrop, background photo dimmed further */
[data-theme="dark"] .home-hero {
  background: #0a0a0a;
}
[data-theme="dark"] .home-hero::before {
  opacity: 0.08;
}

/* Card hover states: the light-mode shadows are rgba(0,0,0,0.08), which is
   invisible against a dark surface, so dark mode gets its own hover shadow. */
[data-theme="dark"] .tool-card:hover,
[data-theme="dark"] .blog-teaser__card:hover,
[data-theme="dark"] .post-card:hover,
[data-theme="dark"] .related-posts__card--live:hover {
  background: #161616;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Chips/tags hardcode a light-gray fill rather than using --surface-2 */
[data-theme="dark"] .chip,
[data-theme="dark"] .example-card__tag,
[data-theme="dark"] .style-chip {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

/* Form fields hardcode their border color rather than using --border */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f0f0f0;
}
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: rgba(255, 255, 255, 0.3);
}
/* The select arrow is a data-URI SVG with its stroke color baked in (#0a0a0a) */
[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%23f0f0f0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Footer left column. .site-footer__logo and .site-footer__tagline already
   use var(--text)/var(--muted), which resolve correctly in dark mode on
   their own - no override needed there. .site-footer__badge hardcodes a
   light-gray #f0f0f0 fill with no dark counterpart, which is the actual bug:
   its var(--muted) text goes light-gray-on-light-gray in dark mode. (Real
   class names are .site-footer__badge / .site-footer__badge--accent, not
   .footer-badge / .footer-badge-accent - there's no bare "footer" element
   with those classes in the markup, so the selectors below target the
   classes directly.) */
[data-theme="dark"] .site-footer__badge {
  background: #1a1a1a;
  color: #a0a0a0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .site-footer__badge--accent {
  background: rgba(230, 39, 119, 0.15);
  color: #e62777;
  border: 1px solid rgba(230, 39, 119, 0.2);
}

/* Shared tool-page hero + how-it-works components (used across tools/*) */
.tool-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.tool-hero__badge {
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.tool-hero__badge .chip.badge-pro {
  margin-left: 8px;
  font-style: normal;
}
.tool-hero__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.tool-hero__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 0 20px;
}
.tool-hero__stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-stat {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary, var(--text));
}
.tool-hero__visual {
  flex-shrink: 0;
  width: 280px;
  height: 180px;
}
.tool-hero__visual svg {
  width: 100%;
  height: 100%;
  color: var(--text);
}
@media (max-width: 768px) {
  .tool-hero {
    flex-direction: column;
    gap: 24px;
  }
  .tool-hero__visual {
    display: none;
  }
}

.how-it-works {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.how-it-works__step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  padding-right: 24px;
  position: relative;
}
.how-it-works__step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  width: 1px;
  height: 40px;
  background: var(--border);
}
.step-number {
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 32px;
}
.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .how-it-works {
    flex-direction: column;
    gap: 16px;
  }
  .how-it-works__step::after {
    display: none;
  }
}

/* Shared tool-page related-tools + empty-state + output-section components */
.related-tools-section {
  padding: 48px 0 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}
.related-tools-section__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.related-tools__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-tool-card {
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
}
.related-tool-card:hover {
  background: var(--surface-3, var(--surface-2));
  transform: translateY(-2px);
}
.related-tool-card__number {
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.related-tool-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, var(--text));
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}
.related-tool-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .related-tools__grid {
    grid-template-columns: 1fr;
  }
}

/* Empty state */
.output-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  text-align: center;
  background: var(--surface-2);
  margin-top: 32px;
}
.empty-state-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, var(--text));
  margin-bottom: 8px;
}
.empty-state-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

/* Output section */
.output-section {
  margin-top: 40px;
  animation: fadeUp 0.4s ease forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.output-header__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.output-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #17c964;
  background: rgba(23, 201, 100, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
}
.output-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
  transition: all 0.2s;
}
.output-card:hover {
  border-color: var(--border-strong, var(--muted));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.output-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.output-card__content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary, var(--text));
}
.output-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.copy-btn:hover {
  opacity: 0.85;
}
.copy-btn.copied {
  background: #17c964;
  color: white;
}
.regenerate-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--text-secondary, var(--muted));
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.regenerate-btn:hover {
  border-color: var(--border-strong, var(--muted));
  color: var(--text-primary, var(--text));
}

/* Shared tool-page loading state, multi-step progress, sticky generate button */
.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  margin-top: 32px;
}
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2.5px solid var(--border);
  border-top-color: #E62777;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 16px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-message {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: opacity 0.3s;
}
.loading-progress {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  margin-top: 16px;
  overflow: hidden;
}
.loading-progress__bar {
  height: 100%;
  background: #E62777;
  border-radius: 99px;
  animation: loadProgress 8s ease-out forwards;
}
@keyframes loadProgress {
  0% { width: 0%; }
  50% { width: 70%; }
  90% { width: 90%; }
  100% { width: 95%; }
}

.tool-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.progress-step {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}
.progress-step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s;
  z-index: 1;
}
.progress-step.active .progress-step__dot {
  background: #E62777;
  border-color: #E62777;
  color: white;
}
.progress-step.completed .progress-step__dot {
  background: #17c964;
  border-color: #17c964;
  color: white;
}
.progress-step__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 8px;
  white-space: nowrap;
}
.progress-step.active .progress-step__label {
  color: var(--text-primary, var(--text));
  font-weight: 600;
}
.progress-step__line {
  flex: 1;
  height: 1.5px;
  background: var(--border);
  margin: 0 8px;
  transition: background 0.3s;
}
.progress-step.completed + .progress-step .progress-step__line,
.progress-step.completed .progress-step__line {
  background: #17c964;
}

.sticky-generate {
  display: none;
}
@media (max-width: 768px) {
  .sticky-generate {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 100;
    display: none;
  }
  .sticky-generate.visible {
    display: block;
  }
  .sticky-generate .generate-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 999px;
    cursor: pointer;
  }
  .tool-content-wrapper {
    padding-bottom: 80px;
  }
}

/* Shared input footer (char counter + quality indicator) and label tooltips */
.input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.quality-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quality-bar {
  width: 80px;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.quality-bar__fill {
  height: 100%;
  border-radius: 99px;
  background: #17c964;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}

.label-with-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.tip-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-3, var(--surface-2));
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  position: relative;
}
.tip-icon::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0a0a0a;
  color: white;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: normal;
  max-width: 240px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
  text-align: center;
}
.tip-icon:hover::after {
  opacity: 1;
}
.keyboard-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Tool page mobile optimization */
@media (max-width: 768px) {
  .tool-page input,
  .tool-page textarea,
  .tool-page select {
    font-size: 16px; /* prevents iOS zoom */
    min-height: 44px;
    padding: 12px 14px;
  }
  .tool-page button,
  .tool-page .btn {
    min-height: 44px;
  }
  .tool-page .row2,
  .tool-page .two-col {
    grid-template-columns: 1fr;
  }
  .tool-page .tags-row {
    gap: 6px;
  }
  .copy-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  .output-card {
    padding: 20px 16px;
  }
  .tool-hero__title {
    font-size: 28px;
  }
  .related-tools__grid {
    grid-template-columns: 1fr;
  }
  .tool-section {
    padding: 32px 0;
  }
  .how-it-works {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .tool-hero__title {
    font-size: 24px;
  }
  .tool-stat {
    font-size: 11px;
    padding: 3px 10px;
  }
}

/* Breadcrumb navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--text-primary);
}
.breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.5;
}
.breadcrumb-current {
  color: var(--text-primary);
}

/* Visually hidden but accessible/crawlable text (e.g. keyword-rich H1 prefix) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sticky table-of-contents sidebar for long blog posts */
@media (min-width: 1200px) {
  .blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 48px;
    max-width: 1100px;
  }
  .toc-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    padding: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 13px;
  }
  .toc-sidebar h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
  }
  .toc-sidebar ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
  }
  .toc-sidebar li {
    counter-increment: toc;
    margin-bottom: 8px;
  }
  .toc-sidebar a {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.4;
    display: block;
  }
  .toc-sidebar a:hover,
  .toc-sidebar a.active {
    color: #E62777;
  }
}
@media (max-width: 1199px) {
  .toc-sidebar {
    display: none;
  }
}

.last-updated {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* About page */
.about-header {
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 36px 0;
  text-align: center;
}
.about-header__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.about-header__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}
.about-header__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-section {
  padding: 64px 36px;
  max-width: 860px;
  margin: 0 auto;
}
.about-section--tinted {
  background: var(--surface-2);
  max-width: none;
}
.about-section--tinted > .about-section__inner {
  max-width: 860px;
  margin: 0 auto;
}

.about-section__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.about-section__label--accent {
  color: var(--accent);
}
.about-section__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.2;
  margin: 0 0 20px;
  text-wrap: balance;
}
.about-section__body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 16px;
}
.about-section__body p:last-child {
  margin-bottom: 0;
}

/* Section 1 - two column problem/quote */
.about-problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-problem__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.2;
  margin: 0 0 20px;
}
.about-quote {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.about-quote__text {
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.about-quote__attribution {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 760px) {
  .about-problem {
    grid-template-columns: 1fr;
  }
}

/* Section 2 - stat cards */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.about-stat {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.about-stat__num {
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  display: block;
  margin-bottom: 6px;
}
.about-stat__label {
  font-size: 13px;
  color: var(--text-muted);
}
@media (max-width: 760px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* Section 3 - principle cards */
.about-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.about-principle {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.about-principle__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
}
.about-principle__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 760px) {
  .about-principles {
    grid-template-columns: 1fr;
  }
}

/* Section 4 - tool list */
.about-tools__head {
  margin-bottom: 32px;
}
.about-tools__subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.about-tools__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.about-tools__col-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.about-tools__col-label--pro {
  color: var(--accent);
}
.about-tools__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-tools__list a {
  font-size: 14px;
  line-height: 2;
  color: var(--text);
  text-decoration: none;
}
.about-tools__list a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.about-tools__list--pro a {
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-tools__list--pro a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .about-tools__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Section 5 - CTA */
.about-cta {
  padding: 80px 36px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.about-cta__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.about-cta__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 32px;
}
.about-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.about-cta__trust {
  font-size: 13px;
  color: var(--text-muted);
}
.about-cta__trust span {
  margin: 0 8px;
  opacity: 0.5;
}
@media (max-width: 480px) {
  .about-header__title {
    font-size: 30px;
  }
  .about-section__title {
    font-size: 26px;
  }
  .about-problem__title {
    font-size: 22px;
  }
}

/* 404 page */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 36px;
  text-align: center;
}
.notfound__icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  opacity: 0.3;
  margin-bottom: 16px;
}
.notfound__code {
  font-size: 120px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.06em;
  color: var(--text);
  line-height: 1;
  margin: 0;
}
.notfound__rule {
  width: 60px;
  height: 2px;
  background: var(--accent);
  border: none;
  margin: 24px auto;
}
.notfound__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}
.notfound__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 0 32px;
}
.notfound__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.notfound__actions .button {
  padding: 12px 28px 14px;
  font-weight: 600;
}
.notfound__links-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 48px;
  margin-bottom: 16px;
}
.notfound__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.notfound__chip {
  font-size: 13px;
  font-weight: 500;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--text);
  text-decoration: none;
}
.notfound__chip:hover {
  border-color: var(--accent-2);
}
@media (max-width: 480px) {
  .notfound__code {
    font-size: 80px;
  }
}

/* Page loader */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.page-loader__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Source Serif 4", serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.06em;
}

.page-loader__logo img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.page-loader__bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.page-loader__bar-fill {
  height: 100%;
  width: 0%;
  background: #E62777;
  border-radius: 99px;
  animation: loaderFill 0.6s ease-out forwards;
}

@keyframes loaderFill {
  0% { width: 0%; }
  60% { width: 80%; }
  100% { width: 100%; }
}

[data-theme="dark"] #page-loader {
  background: #0a0a0a;
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__bar-fill {
    animation: none;
    width: 100%;
  }
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 48px auto 0;
  padding: 0 36px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--surface-1);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #E62777;
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.form-group select {
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%236b6b6b" stroke-width="2"><path d="m6 9 6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.contact-submit-btn {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  color: white;
  background: #0a0a0a;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.15s;
  width: 100%;
}
.contact-submit-btn:hover {
  opacity: 0.85;
}
.contact-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -8px;
}
.contact-success {
  text-align: center;
  padding: 48px 24px;
}
.contact-success h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 16px 0 8px;
}
.contact-success p {
  color: var(--text-muted);
  font-size: 15px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
:root[data-theme="dark"] .contact-info-card {
  background: #111111;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact-info-card {
    background: #111111;
  }
}
.contact-info-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--text);
}
.contact-info-card__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}
.contact-info-card__body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.contact-info-card__list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}
.contact-info-card__email {
  color: #E62777;
  font-weight: 600;
  text-decoration: none;
}
.contact-info-card__email:hover {
  text-decoration: underline;
}
.contact-info-card__note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.contact-faq-shortcut {
  max-width: 900px;
  margin: 48px auto 0;
  padding: 48px 36px 64px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-faq-shortcut__title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
}
.contact-faq-shortcut__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.contact-faq-shortcut__btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-1);
  border: 1.5px solid var(--text);
  border-radius: 999px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Legal pages (Terms and Conditions, etc.) */
html {
  scroll-behavior: smooth;
}
.legal-header {
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 36px 0;
  text-align: center;
}
.legal-header__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.legal-header__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}
.legal-header__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.legal-header__note {
  font-size: 14px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 36px;
}

.legal-toc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 48px;
}
.legal-toc__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.9;
}
.legal-toc a {
  color: var(--text);
  text-decoration: none;
}
.legal-toc a:hover {
  color: #E62777;
  text-decoration: underline;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 16px;
}
.legal-content ul {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  padding-left: 20px;
  margin: 0 0 16px;
}
.legal-content ul li {
  margin-bottom: 6px;
}
.legal-content a {
  color: #E62777;
  text-decoration: none;
}
.legal-content a:hover {
  text-decoration: underline;
}

/* Tool page inline error state (shown when the Anthropic API call fails) */
.output-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  border: 1.5px dashed rgba(230, 39, 119, 0.3);
  border-radius: 16px;
  text-align: center;
  background: rgba(230, 39, 119, 0.03);
  margin-top: 32px;
}
.error-icon {
  margin-bottom: 16px;
}
.error-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.error-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.error-retry-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  background: #E62777;
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-bottom: 16px;
}
.error-retry-btn:hover {
  opacity: 0.85;
}
.error-alternatives {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.error-alternatives a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
}
