/* JadiTeks — editorial system, self-hosted, no external fonts or trackers. */

:root {
  --paper: #f4efe3;
  --paper-raised: #fbf8f0;
  --paper-deep: #e9e1d0;
  --ink: #17221d;
  --ink-soft: #3f4a43;
  --ink-muted: #6b746d;
  --forest: #103c2f;
  --forest-deep: #0a2a20;
  --forest-soft: #1c5744;
  --accent: #e2552b;
  --accent-deep: #bf3f1a;
  --accent-soft: #f7d9cc;
  --lime: #c7d86f;
  --line: rgba(23, 34, 29, 0.16);
  --line-strong: rgba(23, 34, 29, 0.34);
  --line-light: rgba(244, 239, 227, 0.2);
  --shadow: 0 18px 44px rgba(16, 40, 31, 0.14);
  --shadow-soft: 0 6px 18px rgba(16, 40, 31, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4.2vw, 56px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.13 0 0 0 0 0.11 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 999;
  background: var(--forest);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 227, 0.92);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--forest); flex: none; }
.brand-word {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-word strong { font-weight: 700; color: var(--accent); }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--forest);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid var(--forest);
  transition: background 0.18s ease, transform 0.18s ease;
}
.header-cta:hover { background: var(--forest-deep); transform: translateY(-1px); }

/* ------------------------------------------------------------ hero */
.hero-copy { align-self: center; }
.hero-form { align-self: start; }
.hero-after-form { grid-column: 1; }
.hero-small { margin-top: 18px; font-size: 0.9rem; color: var(--ink-muted); max-width: 34em; }
.pricing-cta {
  margin-top: 18px;
  max-width: 36em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  font-size: 0.92rem;
}
.pricing-cta-link { text-align: left; }
.pricing-cta-note { font-size: 0.8rem; color: var(--ink-muted); }
.landing-proof { font-size: 0.93rem; color: var(--ink-soft); max-width: 36em; }
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 80px) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-soft);
  margin-bottom: 22px;
}
.eyebrow-rule { width: 36px; height: 2px; background: var(--accent); flex: none; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.55rem, 5.1vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display-accent {
  font-style: italic;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.display-accent::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0.02em;
  height: 0.09em;
  background: var(--accent);
  opacity: 0.28;
  border-radius: 2px;
}
.hero-lead {
  margin-top: 26px;
  font-size: clamp(1.04rem, 1.35vw, 1.17rem);
  color: var(--ink-soft);
  max-width: 36em;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--forest);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.text-link span { transition: transform 0.18s ease; }
.text-link:hover span { transform: translateX(3px); }
.hero-separator { width: 1px; height: 18px; background: var(--line-strong); }
.facts {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.fact { padding: 14px 0; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 18px; }
.fact dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}
.fact dd { font-family: var(--serif); font-size: 1.45rem; margin-top: 2px; }

.hero-form { position: relative; }

/* ------------------------------------------------------------ form card */
.capture-card {
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 36px);
  box-shadow: var(--shadow);
  position: relative;
}
.capture-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.capture-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.capture-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
}
.capture-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.capture-lead { margin-top: 8px; color: var(--ink-soft); font-size: 0.98rem; }
.capture-form { margin-top: 22px; position: relative; }
.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field-row { display: flex; gap: 8px; }
.url-field {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 0.98rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.url-field::placeholder { color: #9a9f98; }
.url-field:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(16, 60, 47, 0.12); outline: none; }
.url-field[aria-invalid="true"] { border-color: var(--accent-deep); }
.paste-button {
  height: 54px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  transition: background 0.15s ease;
}
.paste-button:hover { background: var(--paper-deep); }
.field-hint { margin-top: 8px; font-size: 0.83rem; color: var(--ink-muted); }
.submit-button {
  margin-top: 18px;
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  box-shadow: 0 8px 0 var(--accent-deep);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.submit-button:hover { background: #e9602f; }
.submit-button:active { transform: translateY(4px); box-shadow: 0 4px 0 var(--accent-deep); }
.submit-button[aria-busy="true"] { opacity: 0.85; cursor: progress; }
.submit-arrow { font-size: 1.25rem; transition: transform 0.18s ease; }
.submit-button:hover .submit-arrow { transform: translateX(4px); }
.form-error {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  background: #fbe6de;
  border: 1px solid #e9b3a0;
  color: #7a2410;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-error[hidden] { display: none; }
.fine-print { margin-top: 14px; font-size: 0.78rem; color: var(--ink-muted); line-height: 1.5; }
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2f8f5b;
  box-shadow: 0 0 0 4px rgba(47, 143, 91, 0.18);
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ sections */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 100px) var(--gutter);
}
.section + .section, .section { border-top: 1px solid var(--line); }
.section-heading { max-width: 720px; }
.section-heading.wide-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  column-gap: 32px;
  row-gap: 10px;
  align-items: start;
}
.section-heading.wide-heading h2 { grid-column: 2; }
.section-heading.wide-heading > p:last-child { grid-column: 2; }
.section-index {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.wide-heading .section-index { padding-top: 12px; }
.section-index.light { color: var(--lime); }
.section-heading h2, .faq-heading h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-heading > p:last-child { margin-top: 16px; color: var(--ink-soft); font-size: 1.04rem; max-width: 40em; }

.sample-layout {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.paper-top, .preview-paper-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink-muted);
}
.paper-label { color: var(--accent-deep); }

.steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-raised);
}
.step { padding: clamp(24px, 3vw, 36px); position: relative; }
.step + .step { border-left: 1px solid var(--line); }
.step-number {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
}
.step h3 { margin-top: 18px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 10px; color: var(--ink-soft); font-size: 0.96rem; }
.step-note {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.step-dark { background: var(--forest); color: var(--paper); }
.step-dark p { color: rgba(244, 239, 227, 0.82); }
.step-dark .step-number { color: var(--lime); }
.step-dark .step-note { border-color: var(--line-light); color: var(--paper); }

.source-cards {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.source-card {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-raised);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.source-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.source-card-top { display: flex; justify-content: space-between; align-items: center; }
.source-badge {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink-muted);
}
.source-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--paper-deep);
}
.source-icon-wave { font-size: 1.5rem; }
.source-card h3 { margin-top: 26px; font-family: var(--serif); font-size: 1.42rem; font-weight: 600; letter-spacing: -0.02em; }
.source-card > p { margin-top: 10px; color: var(--ink-soft); font-size: 0.94rem; }
.source-card .source-label { margin-top: auto; padding-top: 20px; font-size: 0.82rem; color: var(--ink-muted); }
.source-card .source-label strong { color: var(--ink); }
.source-manual { border-top: 5px solid var(--forest); }
.source-auto { border-top: 5px solid #9b8a52; }
.source-gemini { border-top: 5px solid var(--accent); background: #fff5ef; }
.source-disclaimer {
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  max-width: 60em;
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
}

/* .section is a centered, --wrap-capped box and .privacy-section drops its
   side padding, so the section spans the viewport. The panel therefore has to
   claim the available width itself: viewport minus two gutters, capped at
   --wrap, and centered. That reproduces the .section content box exactly. */
.privacy-section { max-width: none; padding-left: 0; padding-right: 0; border-top: 0; }
.privacy-section > .privacy-panel {
  width: calc(100% - (2 * var(--gutter)));
  max-width: var(--wrap);
  margin: 0 auto;
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
}
.privacy-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: left;
}
.privacy-lead { margin-top: 18px; color: rgba(244, 239, 227, 0.82); font-size: 1.02rem; text-align: left; }
.light-link {
  margin-top: 26px;
  display: inline-flex;
  gap: 8px;
  font-weight: 700;
  color: var(--lime);
  text-decoration-color: rgba(199, 216, 111, 0.5);
}
.privacy-list { display: grid; gap: 0; align-content: start; }
.privacy-list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
}
.privacy-list li:first-child { padding-top: 0; }
.privacy-list li:last-child { border-bottom: 0; }
.privacy-number { font-family: var(--mono); font-size: 0.78rem; color: var(--lime); padding-top: 3px; }
.privacy-list strong { display: block; font-size: 1.02rem; }
.privacy-list li div { color: rgba(244, 239, 227, 0.78); font-size: 0.93rem; }

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq-heading { position: sticky; top: 100px; }
.faq-heading p:last-child { margin-top: 16px; color: var(--ink-soft); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 44px 24px 0; color: var(--ink-soft); max-width: 44em; }
.faq-list summary:hover { color: var(--forest-soft); }

.closing-cta {
  background: var(--accent);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.closing-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  position: relative;
  z-index: 1;
}
.closing-cta h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 12em;
}
.closing-cta p { margin-top: 16px; font-size: 1.1rem; opacity: 0.92; }
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 16px 26px;
  background: var(--forest);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--forest);
  transition: transform 0.18s ease, background 0.18s ease;
}
.cta-button:hover { transform: translateY(-2px); background: var(--forest-deep); }
.dark-button { background: var(--ink); }
.closing-mark {
  position: absolute;
  right: -2vw;
  bottom: -8vw;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14rem, 30vw, 30rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}

/* ------------------------------------------------------------ landing */
.landing-hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.breadcrumb { display: flex; gap: 8px; font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--forest); font-weight: 600; }
.landing-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 0.92rem; font-weight: 600; }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks span {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest); color: var(--paper); font-size: 0.72rem;
}
.landing-proof { margin-top: 26px; }
.proof-label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; }
.proof-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.proof-tags span {
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.82rem; background: var(--paper-raised);
}
.landing-form-note { margin-top: 14px; font-size: 0.84rem; color: var(--ink-muted); }
.landing-trust {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trust-cell {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-raised);
}
.trust-cell p { font-size: 0.92rem; color: var(--ink-soft); }
.trust-cell strong { color: var(--ink); }
.trust-number { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--accent); line-height: 1; }
.landing-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.landing-step {
  padding: 28px;
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.landing-step h3 { margin-top: 16px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.landing-step p { margin-top: 8px; color: var(--ink-soft); font-size: 0.94rem; }
.mini-code {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--paper-deep);
  color: var(--ink-soft);
}
.output-card {
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(28px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
}
.output-card h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; }
.output-copy > p { margin-top: 14px; color: rgba(244, 239, 227, 0.82); }
.output-list { display: grid; gap: 0; }
.output-list li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
}
.output-list li:first-child { padding-top: 0; }
.output-list li:last-child { border-bottom: 0; }
.output-format {
  font-family: var(--mono);
  font-size: 0.78rem;
  min-width: 46px;
  text-align: center;
  padding: 4px 8px;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  color: var(--lime);
}
.output-list strong { display: block; }
.output-list p { font-size: 0.88rem; color: rgba(244, 239, 227, 0.75); }
.limits-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--paper-raised); }
.limit { padding: 26px; }
.limit + .limit { border-left: 1px solid var(--line); }
.limit span { font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; color: var(--accent); letter-spacing: -0.04em; }
.limit p { margin-top: 12px; font-size: 0.92rem; color: var(--ink-soft); }
.limits-note { margin-top: 18px; font-size: 0.88rem; color: var(--ink-muted); max-width: 60em; }
.landing-closing { background: var(--forest); }
.landing-closing h2, .landing-closing p { color: var(--paper); }
.landing-closing .cta-button { background: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------- grounded example (home) */
.evidence-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.evidence-card {
  margin: 0;
  padding: 24px;
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.evidence-card figcaption {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.evidence-card blockquote {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink);
}
.evidence-card cite { display: block; margin-top: 8px; font-style: normal; font-family: var(--mono); font-size: 0.8rem; color: var(--accent-deep); }
.evidence-note { margin-top: 14px; font-size: 0.84rem; color: var(--ink-muted); }
.evidence-code {
  margin: 14px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--paper);
  background: var(--forest);
  border-radius: 8px;
}
.evidence-stamp { color: var(--lime); }
.evidence-cut { color: rgba(244, 239, 227, 0.5); }
@media (max-width: 1080px) { .evidence-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-card { padding: 20px; }
}

/* ------------------------------------------------------------ privacy page */
.legal-page { max-width: 920px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(50px, 7vw, 90px); }
.legal-head h1 { font-family: var(--serif); font-size: clamp(2.3rem, 4.8vw, 3.8rem); font-weight: 600; line-height: 1.03; letter-spacing: -0.035em; max-width: 15em; }
.legal-lead { margin-top: 20px; font-size: 1.12rem; color: var(--ink-soft); max-width: 38em; }
.legal-date { margin-top: 18px; font-size: 0.82rem; color: var(--ink-muted); font-family: var(--mono); }
.legal-body { margin-top: 44px; border-top: 1px solid var(--line-strong); }
.legal-body section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal-body h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin-bottom: 12px; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-top: 10px; }
.legal-body ul { padding-left: 0; margin-top: 8px; }
.legal-body li { position: relative; padding-left: 20px; }
.legal-body li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.legal-body code, .fine-print code, .admin-body code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: rgba(23, 34, 29, 0.07);
  padding: 1px 5px;
  border-radius: 4px;
}
.legal-foot { margin-top: 36px; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.legal-foot .cta-button { margin-top: 0; }

/* ------------------------------------------------------------ job pages */
.job-page { max-width: var(--wrap); margin: 0 auto; padding: clamp(30px, 4.5vw, 60px) var(--gutter) 80px; }
.job-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line-strong); }
.job-head h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; max-width: 24em; }
.job-subtitle { margin-top: 10px; color: var(--ink-muted); }
.result-head h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

.progress-card, .job-card {
  margin-top: 34px;
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}
.progress-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.job-state { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--accent-deep); }
.progress-percent { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.progress-card h2, .job-card h2 { margin-top: 10px; font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; }
.progress-track {
  margin-top: 22px;
  height: 12px;
  border-radius: 999px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  overflow: hidden;
}
.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest), var(--accent));
  transition: width 0.6s ease;
}
.progress-fill.is-indeterminate {
  width: 32% !important;
  animation: slide 1.4s ease-in-out infinite alternate;
}
@keyframes slide { from { margin-left: 0; } to { margin-left: 68%; } }
.progress-detail { margin-top: 14px; color: var(--ink-soft); }
.progress-steps { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.progress-steps li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.progress-steps span { font-family: var(--mono); font-size: 0.7rem; }
.progress-steps li.is-active { border-color: var(--accent); color: var(--ink); background: #fff4ee; font-weight: 700; }
.progress-steps li.is-done { border-color: var(--forest-soft); color: var(--forest-soft); }
.job-failed { border-left: 5px solid var(--accent-deep); }
.job-failed > p { margin-top: 10px; color: var(--ink-soft); max-width: 48em; }
.job-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.job-actions .cta-button { margin-top: 0; }
.job-foot {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-family: var(--mono);
}

.preview-grid { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 24px; align-items: start; }
.preview-paper {
  background: #fffdf6;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: clamp(22px, 3.5vw, 38px);
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.preview-text {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  color: var(--ink);
}
.preview-fade {
  margin-top: 18px;
  letter-spacing: 0.5em;
  color: var(--ink-muted);
  position: absolute;
  bottom: 18px;
  left: clamp(22px, 3.5vw, 38px);
}
.preview-side {
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}
.preview-kicker { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); font-weight: 800; }
.preview-side h2 { margin-top: 10px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.12; }
.preview-meta { margin-top: 18px; }
.preview-meta div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-light); font-size: 0.88rem; }
.preview-meta dt { color: rgba(244, 239, 227, 0.68); }
.preview-meta dd { text-align: right; }
.full-button { width: 100%; justify-content: center; background: var(--accent); border-color: var(--accent); }
.preview-side .fine-print { color: rgba(244, 239, 227, 0.66); }

/* result */
.result-layout { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.transcript-sheet {
  background: #fffdf6;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.transcript-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}
.transcript-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-button, .download-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1.5px solid var(--forest);
  background: var(--forest);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.copy-button:hover, .download-button:hover { background: var(--forest-deep); }
.download-button.outline { background: transparent; color: var(--forest); }
.download-button.outline:hover { background: var(--forest); color: var(--paper); }
.transcript-body {
  max-height: 68vh;
  overflow: auto;
  padding: clamp(22px, 3.5vw, 40px) clamp(20px, 4vw, 46px);
  font-family: var(--serif);
  font-size: clamp(1.04rem, 1.3vw, 1.14rem);
  line-height: 1.78;
  overscroll-behavior: contain;
}
.transcript-body p + p { margin-top: 0.35em; }
.transcript-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-family: var(--mono);
}
.result-aside { display: grid; gap: 18px; position: sticky; top: 96px; }
.meta-card, .action-card {
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
}
.aside-kicker { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; color: var(--ink-muted); margin-bottom: 12px; }
.result-meta div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.result-meta div:last-child { border-bottom: 0; }
.result-meta dt { color: var(--ink-muted); flex: none; }
.result-meta dd { text-align: right; }
.source-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--paper-deep);
}
.source-manual.source-pill { background: #d9ead2; color: #1e5a33; }
.source-auto.source-pill { background: #efe6c6; color: #6a5718; }
.source-gemini.source-pill { background: var(--accent-soft); color: #8a2f12; }
.mini-note { margin-top: 12px; font-size: 0.8rem; color: var(--ink-muted); }
.result-aside .action-card .aside-kicker { margin-bottom: 8px; }
.format-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.format-row:last-of-type { border-bottom: 0; }
.format-row:hover strong { color: var(--accent-deep); }
.format-code {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  min-width: 48px;
  text-align: center;
}
.format-row > span:nth-child(2) { flex: 1; }
.format-row strong { display: block; font-size: 0.92rem; }
.format-row small { color: var(--ink-muted); font-size: 0.78rem; }
.delete-button {
  margin-top: 14px;
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #d9a28f;
  background: transparent;
  color: #8a2f12;
  font-weight: 700;
  font-size: 0.86rem;
}
.delete-button:hover { background: #fbe6de; }
.cookie-note { font-size: 0.78rem; color: var(--ink-muted); padding: 0 4px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.is-error { background: #7a2410; }
.toast[hidden] { display: none; }

/* ------------------------------------------------------------ error page */
.error-page { max-width: var(--wrap); margin: 0 auto; padding: clamp(50px, 9vw, 120px) var(--gutter) clamp(60px, 9vw, 120px); }
.error-code { font-family: var(--serif); font-style: italic; font-size: clamp(5rem, 14vw, 11rem); line-height: 0.9; color: var(--paper-deep); letter-spacing: -0.05em; }
.error-page h1 { margin-top: 10px; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; }
.error-lead { margin-top: 16px; color: var(--ink-soft); max-width: 40em; font-size: 1.05rem; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--forest-deep); color: var(--paper); }
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 54px var(--gutter) 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 32px;
}
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  flex: none;
}
.footer-name { font-family: var(--serif); font-size: 1.5rem; }
.footer-line { margin-top: 6px; color: rgba(244, 239, 227, 0.7); font-size: 0.9rem; max-width: 30em; }
.footer-links { display: grid; gap: 10px; align-content: start; font-size: 0.9rem; }
.footer-links a { color: rgba(244, 239, 227, 0.86); text-decoration: none; }
.footer-links a:hover { color: var(--lime); }
.footer-legal { font-size: 0.8rem; color: rgba(244, 239, 227, 0.56); display: grid; gap: 6px; align-content: start; }
.footer-price { margin-top: 4px; font-size: 0.84rem; color: rgba(244, 239, 227, 0.86); line-height: 1.5; }
.footer-price a { color: var(--paper); text-decoration-color: var(--lime); }
.footer-price a:hover { color: var(--lime); }
.footer-price-note { font-size: 0.76rem; color: var(--lime); }

/* ------------------------------------------------------------ admin */
.admin-body { background: #eef0ea; min-height: 100vh; display: flex; flex-direction: column; }
.admin-body::before { display: none; }
.admin-header { background: #10241c; color: var(--paper); }
.admin-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.admin-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; }
.admin-brand .brand-mark { width: 28px; height: 28px; color: var(--lime); }
.admin-brand em { font-family: var(--sans); font-style: normal; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244, 239, 227, 0.6); }
.admin-head-right { display: flex; align-items: center; gap: 16px; font-size: 0.84rem; }
.admin-head-right a { color: var(--lime); }
.env-pill { font-family: var(--mono); font-size: 0.7rem; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); text-transform: uppercase; letter-spacing: 0.08em; }
.env-production { background: #1e5a33; border-color: #2f8f5b; }
.admin-main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px; display: grid; gap: 20px; }
.admin-titlebar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.admin-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #55705f; }
.admin-titlebar h1 { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin-top: 6px; color: #10241c; }
.admin-sub { margin-top: 8px; font-size: 0.86rem; color: #4d5a52; max-width: 60em; }
.admin-refresh { margin-top: 6px; font-size: 0.82rem; color: #4d5a52; }
.admin-refresh strong { color: #10241c; }
.admin-range { display: flex; border: 1px solid #c3cbc2; border-radius: 8px; overflow: hidden; background: #fff; }
.admin-range a { padding: 8px 14px; font-size: 0.84rem; font-weight: 600; text-decoration: none; color: #36433b; }
.admin-range a + a { border-left: 1px solid #c3cbc2; }
.admin-range a[aria-current="page"] { background: #10241c; color: #fff; }
.admin-warnings { background: #fff7e0; border: 1px solid #e3c979; border-radius: 8px; padding: 12px 18px; font-size: 0.86rem; color: #5d4a12; list-style: disc; padding-left: 34px; }
.admin-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid #d4dad3; border-radius: 10px; padding: 16px; display: grid; gap: 4px; align-content: start; }
.kpi p { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #55705f; }
.kpi strong { font-family: var(--serif); font-size: 2.1rem; line-height: 1.05; color: #10241c; }
.kpi small { font-size: 0.74rem; color: #6b746d; }
.kpi-delta { font-size: 0.76rem; font-weight: 700; color: #6b746d; }
.delta-up { color: #1e7a45; }
.delta-down { color: #b3401f; }
.kpi-primary { background: #10241c; border-color: #10241c; }
.kpi-primary p { color: var(--lime); }
.kpi-primary strong { color: #fff; }
.kpi-primary small, .kpi-primary .kpi-delta { color: rgba(244, 239, 227, 0.7); }
.admin-panel { background: #fff; border: 1px solid #d4dad3; border-radius: 10px; padding: 20px; min-width: 0; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-panel h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: #10241c; letter-spacing: -0.01em; }
.admin-panel-note { font-size: 0.78rem; color: #6b746d; max-width: 28em; text-align: right; }
.funnel { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.funnel-step {
  flex: 1 1 160px;
  border: 1px solid #d4dad3;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 2px;
  background: #f8faf6;
}
.funnel-step strong { font-family: var(--serif); font-size: 2rem; line-height: 1.05; color: #10241c; }
.funnel-label { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #55705f; }
.funnel-rate { font-size: 0.82rem; font-weight: 700; color: #1e7a45; }
.funnel-denom { font-family: var(--mono); font-size: 0.72rem; color: #6b746d; }
.funnel-arrow { align-self: center; color: #9aa69c; font-size: 1.3rem; }
.admin-formula { margin-top: 14px; font-size: 0.84rem; color: #4d5a52; }
.admin-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.admin-table th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6b746d; border-bottom: 1px solid #d4dad3; padding: 8px 10px; white-space: nowrap; }
.admin-table td { padding: 10px; border-bottom: 1px solid #e7ebe4; vertical-align: top; }
.admin-table.compact td, .admin-table.compact th { padding: 7px 8px; }
.admin-table small { display: block; font-family: var(--mono); font-size: 0.7rem; color: #8a958c; }
.table-title { display: block; }
.tag-internal { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; background: #ece7d8; border-radius: 4px; padding: 0 5px; color: #6b5d2f; }
.status-pill, .outcome { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #ecefe9; color: #36433b; }
.status-done, .outcome-success { background: #dbefdf; color: #1e5a33; }
.status-failed, .outcome-error, .outcome-exception, .outcome-gemini, .outcome-version { background: #fbe1d8; color: #8a2f12; }
.status-queued, .status-running { background: #fdf1cf; color: #6a5718; }
.outcome-blocked, .outcome-quota, .outcome-network { background: #fdf1cf; color: #6a5718; }
.admin-empty { font-size: 0.86rem; color: #6b746d; padding: 10px 0; }
.admin-subhead { margin: 14px 0 6px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; color: #55705f; }
.admin-metric-list { display: grid; gap: 6px; margin: 8px 0 0; }
.admin-metric-list > div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.84rem; border-bottom: 1px dashed #e0e5dd; padding: 4px 0; }
.admin-metric-list dt { color: #4d5a52; }
.admin-metric-list dd { margin: 0; text-align: right; }
.admin-subnote { margin-top: 8px; font-size: 0.76rem; color: #6b746d; }
.failure-list { display: grid; gap: 4px; }
.failure-list li { display: flex; justify-content: space-between; font-size: 0.82rem; border-bottom: 1px dashed #e0e5dd; padding: 4px 0; }
.bar-chart { display: flex; gap: 4px; align-items: flex-end; height: 190px; padding-top: 10px; overflow-x: auto; }
.bar-chart li { flex: 1 0 18px; min-width: 18px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.bar-pair { flex: 1; display: flex; align-items: flex-end; gap: 2px; width: 100%; max-width: 46px; }
.bar { display: block; width: 50%; min-height: 1px; border-radius: 2px 2px 0 0; }
.bar-submit { background: #10241c; }
.bar-success { background: #84a93b; }
.bar-label { display: none; }
.bar-chart li:last-child .bar-label, .bar-chart li:first-child .bar-label { display: block; font-size: 0.66rem; color: #6b746d; }
.bar-values { font-family: var(--mono); font-size: 0.64rem; color: #6b746d; white-space: nowrap; }
.legend { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 0.76rem; color: #55705f; }
.legend span[class^="legend-"] { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.legend-submit { background: #10241c; }
.legend-success { background: #84a93b; }
.legend-unit { color: #8a958c; }
.admin-definitions dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.admin-definitions dt { font-weight: 800; font-size: 0.82rem; color: #10241c; }
.admin-definitions dd { font-size: 0.82rem; color: #4d5a52; }
.admin-footnote { margin-top: 16px; font-size: 0.76rem; color: #6b746d; }
.admin-disabled { background: #fff; border: 1px solid #d4dad3; border-radius: 10px; padding: 32px; max-width: 760px; }
.admin-disabled h1 { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; margin: 8px 0 12px; }
.admin-disabled p { color: #4d5a52; margin-bottom: 8px; }
.admin-disabled .cta-button { margin-top: 16px; }
.admin-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1320px; width: 100%; margin: 0 auto; padding: 18px 28px 30px; font-size: 0.74rem; color: #6b746d; font-family: var(--mono); }

/* ------------------------------------------------------------ pricing (/harga) */
.pricing-hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 64px) var(--gutter) clamp(8px, 2vw, 16px);
}
.pricing-hero .breadcrumb { margin-bottom: 18px; }
.pricing-hero .eyebrow { margin-bottom: 14px; }
.pricing-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 19em;
  text-wrap: balance;
}
.status-banner {
  margin-top: 24px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-raised);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.status-banner strong { color: var(--ink); }
.terms-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.terms-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.terms-card-dark { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.terms-kicker { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); }
.terms-card-dark .terms-kicker { color: var(--lime); }
.terms-card h3 { margin-top: 10px; font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.terms-list { margin-top: 16px; display: grid; gap: 10px; font-size: 0.95rem; color: var(--ink-soft); }
.terms-list li { position: relative; padding-left: 20px; }
.terms-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.terms-list strong { color: var(--ink); }
.terms-card-dark .terms-list { color: rgba(244, 239, 227, 0.84); }
.terms-card-dark .terms-list li::before { color: var(--lime); }
.terms-card-dark .terms-list strong { color: var(--paper); }
.plan-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 38px);
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.plan-card.plan-featured { border-top: 5px solid var(--accent); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-top h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; }
.plan-flag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.plan-price { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan-amount { font-family: var(--serif); font-size: clamp(2.6rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--forest); }
.plan-once { font-size: 0.86rem; font-weight: 700; color: var(--ink-muted); }
.plan-minutes { margin-top: 12px; color: var(--ink-soft); font-size: 0.95rem; }
.plan-minutes strong { color: var(--ink); }
.plan-note { margin-top: 8px; color: var(--ink-muted); font-size: 0.9rem; }
.plan-button { margin-top: 24px; align-self: flex-start; }
.plan-footnote { margin-top: 18px; font-size: 0.86rem; color: var(--ink-muted); max-width: 62em; }
.rules-list { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; counter-reset: rule; }
.rules-list li {
  counter-increment: rule;
  position: relative;
  padding: 14px 16px 14px 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-raised);
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.rules-list li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 13px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent-deep);
}
.consent-box { margin-top: 22px; padding: 20px 22px; border-left: 4px solid var(--accent); background: #fff5ef; border-radius: 0 10px 10px 0; }
.consent-box h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.consent-box p { margin-top: 8px; color: var(--ink-soft); font-size: 0.94rem; max-width: 62em; }

.checkout {
  margin-top: 34px;
  padding: clamp(22px, 3.4vw, 40px);
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.checkout[data-step="paket"] { box-shadow: none; }
.checkout-steps { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 22px; padding: 0; list-style: none; counter-reset: none; }
.checkout-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 700; color: var(--ink-muted); }
.checkout-steps li span {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); font-family: var(--mono); font-size: 0.74rem;
}
.checkout-steps li[aria-current="step"] { color: var(--forest); }
.checkout-steps li[aria-current="step"] span { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.nojs-note { margin-top: 14px; font-size: 0.88rem; color: var(--ink-soft); }
.plan-free { background: var(--paper-deep); }
.price-groups .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-block { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.step-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; padding: 0; margin-bottom: 16px; }
.step-lead { color: var(--ink-soft); margin-bottom: 16px; max-width: 60em; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice {
  position: relative; display: block; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
/* Standard visually-hidden radio: 1px, clipped, still focusable and arrow-key
   navigable; the wrapping label is the full-card click target. */
.choice input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; opacity: 0; pointer-events: none;
}
.choice-body {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fffdf8;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.choice-name { font-weight: 800; }
.choice-price { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; color: var(--forest); }
.choice-meta { font-size: 0.84rem; color: var(--ink-muted); }
.choice input:checked + .choice-body {
  border-color: var(--forest-soft);
  background-color: rgba(28, 87, 68, 0.08);
  box-shadow: inset 0 0 0 1px var(--forest-soft);
}
.choice input:checked + .choice-body::after {
  content: ""; position: absolute; top: 12px; right: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--forest-soft); box-shadow: 0 0 0 3px rgba(28, 87, 68, 0.18);
}
@media (hover: hover) {
  .choice:hover input:not(:checked) + .choice-body { border-color: var(--ink-muted); }
}
.choice input:focus-visible + .choice-body {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: none;
}
.choice input:checked:focus-visible + .choice-body {
  box-shadow: inset 0 0 0 1px var(--forest-soft);
}
@media (forced-colors: active) {
  .choice input:focus-visible + .choice-body { outline: 3px solid Highlight; }
  .choice input:checked + .choice-body { border-color: Highlight; }
}
.checkout-next { margin-top: 22px; }
.review-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.review-list div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.review-list dt { color: var(--ink-muted); flex: none; }
.review-list dd { text-align: right; color: var(--ink); margin: 0; }
.review-today { margin-top: 16px; font-size: 0.9rem; color: var(--ink-soft); padding: 12px 14px; border-radius: 8px; background: var(--paper-deep); }
.checkout-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 24px; }
.checkout-actions .cta-button { margin-top: 0; }
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
/* Simulated payment: unmistakably a simulation, never a payable code. */
.status-banner-sim,
.checkout[data-step="selesai"] .status-banner { border-color: var(--forest); background: #eef5ea; }
.sim-panel {
  margin-top: 20px;
  padding: 18px 20px;
  border: 2px dashed var(--line-strong);
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, #fffdf8, #fffdf8 14px, #f3efe4 14px, #f3efe4 28px);
}
.sim-label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; }
.sim-code {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: clamp(1rem, 3.2vw, 1.35rem);
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--forest);
  overflow-wrap: anywhere;
}
.sim-qr-placeholder {
  margin-top: 12px;
  display: inline-grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 2px dashed var(--forest);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--forest);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}
.sim-note { margin-top: 12px; font-size: 0.92rem; color: var(--ink-soft); max-width: 58em; }
.receipt-list { margin-top: 18px; }
.receipt-list dt { flex: none; }
.step-title[tabindex="-1"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.receipt-table { width: 100%; }
.receipt-table td a { color: var(--forest); font-weight: 700; text-underline-offset: 3px; }
.checkout-status { padding-top: 24px; padding-bottom: 0; }
/* Inner checkout steps (ringkasan..batal): #pilih is the whole page, near the top. */
.pricing-flow-section.pricing-inner { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 72px); }
.pricing-flow-section.pricing-inner .checkout { max-width: 820px; }
.confirmation h3 { margin-top: 14px; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; }
.confirm-list { margin-top: 16px; display: grid; gap: 10px; font-size: 0.94rem; color: var(--ink-soft); }
.confirm-list li { position: relative; padding-left: 22px; }
.confirm-list li::before { content: "✓"; position: absolute; left: 0; color: #1e5a33; font-weight: 800; }
.confirm-list strong { color: var(--ink); }

/* ------------------------------------------------------------ selftest */
.selftest { max-width: 980px; margin: 0 auto; padding: 40px var(--gutter); }
.selftest h1 { font-family: var(--serif); font-size: 2rem; }
.selftest pre { background: #10241c; color: #d6e8c8; padding: 16px; border-radius: 10px; overflow: auto; font-family: var(--mono); font-size: 0.8rem; margin-top: 16px; white-space: pre-wrap; }
.selftest table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.86rem; }
.selftest th, .selftest td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.selftest-sections { display: grid; gap: 14px; margin-top: 20px; }
.selftest-sections section { background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: 12px; padding: 20px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-form { max-width: 560px; }
  .section-heading.wide-heading { grid-template-columns: 1fr; }
  .section-heading.wide-heading h2, .section-heading.wide-heading > p:last-child { grid-column: 1; }
  .wide-heading .section-index { padding-top: 0; }
  .sample-layout { grid-template-columns: 1fr; }
  .stamp { margin-top: 24px; }
  .source-cards, .landing-grid { grid-template-columns: 1fr 1fr; }
  .source-card { min-height: 0; }
  .faq-section { grid-template-columns: 1fr; }
  .faq-heading { position: static; }
  .result-layout { grid-template-columns: 1fr; }
  .result-aside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .cookie-note { grid-column: 1 / -1; }
  .preview-grid { grid-template-columns: 1fr; }
  .landing-hero { grid-template-columns: 1fr; }
  .landing-form { max-width: 560px; }
  .admin-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-two-col { grid-template-columns: 1fr; }
  .terms-grid, .plan-grid, .price-groups .plan-grid, .choice-grid, .rules-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { height: 64px; gap: 14px; }
  .site-nav { display: none; }
  .brand-word { font-size: 1.4rem; }
  .header-cta { margin-left: auto; padding: 9px 14px; font-size: 0.84rem; }
  .hero { padding-top: 24px; row-gap: 24px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero-lead { margin-top: 14px; font-size: 1rem; }
  .hero h1, .landing-hero h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .display-accent { white-space: normal; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .field-row { flex-direction: column; }
  .paste-button { height: 44px; }
  .url-field { height: 52px; font-size: 16px; }
  .steps, .source-cards, .landing-grid, .landing-trust, .limits-grid { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .limit + .limit { border-left: 0; border-top: 1px solid var(--line); }
  .privacy-panel, .output-card { grid-template-columns: 1fr; padding: 26px; }
  /* Phone: the section has no side padding, so the panel keeps the 16px
     gutters itself (same 16px as the admin shell), auto-centered. */
  .privacy-section > .privacy-panel { width: auto; margin: 0 16px; grid-template-columns: 1fr; padding: 26px; }
  .section { padding-left: 20px; padding-right: 20px; }
  .footer-inner { grid-template-columns: 1fr; padding: 40px 20px 28px; }
  .job-head { align-items: flex-start; }
  .progress-steps { grid-template-columns: 1fr 1fr; }
  .result-aside { grid-template-columns: 1fr; }
  .transcript-body { max-height: none; overflow: visible; }
  .result-aside { position: static; }
  .footer-links { grid-auto-flow: row; }
  .admin-main { padding: 16px; gap: 14px; }
  .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-header-inner { padding: 0 16px; }
  .admin-head-right span:not(.env-pill) { display: none; }
  .admin-panel-note { text-align: left; }
  .admin-definitions dl { grid-template-columns: 1fr; }
  .funnel-arrow { display: none; }
  .funnel-step { flex-basis: 100%; }
  .admin-footer { padding: 14px 16px 24px; }
  .review-list div { flex-direction: column; gap: 2px; }
  .review-list dd { text-align: left; }
  .checkout { padding: 18px 16px; }
  .checkout-steps { gap: 6px 10px; font-size: 0.78rem; }
  .checkout-steps li { font-size: 0.78rem; }
  .sim-panel { padding: 14px 14px; }
  .receipt-table { display: block; overflow-x: auto; }
  .receipt-table thead, .receipt-table tbody, .receipt-table tr { display: table; width: 100%; table-layout: fixed; }
  .receipt-table th, .receipt-table td { font-size: 0.78rem; padding: 8px 6px; overflow-wrap: anywhere; }
  .checkout-actions { align-items: stretch; flex-direction: column; }
  .checkout-actions .cta-button { justify-content: center; text-align: center; }
  .footer-price { font-size: 0.82rem; }
}

@media (max-width: 760px) {
  /* First viewport at 390x844: heading, short lead, then the URL field. */
  .header-inner { height: 56px; }
  .page-home .hero { padding-top: 14px; row-gap: 18px; }
  .page-home .hero .eyebrow { margin-bottom: 8px; font-size: 0.7rem; }
  .page-home .hero h1 { font-size: clamp(1.85rem, 7.9vw, 2.2rem); }
  .page-home .hero .display-accent::after { display: none; }
  .page-home .hero-lead {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .page-home .capture-card { padding: 18px 20px; }
  .page-home .capture-card::before { display: none; }
  .page-home .capture-form { margin-top: 0; }
  .page-home .field-hint { margin-top: 6px; }
}

@media (max-width: 380px) {
  .header-inner { padding: 0 14px; gap: 10px; }
  .header-cta { font-size: 0.8rem; padding: 9px 11px; }
  .header-cta span { display: none; }
  .capture-card { padding: 20px; }
  .transcript-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .transcript-actions, .result-aside, .job-foot, .toast { display: none !important; }
  body::before { display: none; }
  .transcript-body { max-height: none; overflow: visible; }
}


