/* ============================================================
   IFTAQuarter — site.css
   Design direction: American B2B SaaS, proof-first, product-first.
   Palette: charcoal ledger ink / ochre / warm bone.
   ============================================================ */

:root {
  --ink: #1f211c;
  --ink-2: #2b2e27;
  --ink-3: #373b32;
  --paper: #f4eee0;
  --paper-2: #e8dfcd;
  --white: #ffffff;
  --accent: #c28b2c;
  --accent-dark: #7a5715;
  --accent-soft: #f8eed4;
  --green: #2f7a55;
  --green-soft: #e6f1e8;
  --red: #a63f32;
  --red-soft: #f7e8e3;
  --slate: #565c52;
  --slate-2: #62685e;
  --line: #ddd3c0;
  --line-strong: #cdc1ac;
  --line-dark: rgba(255, 255, 255, 0.16);

  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(31, 33, 28, 0.05);
  --shadow: 0 10px 30px rgba(31, 33, 28, 0.08);
  --shadow-lg: 0 24px 70px rgba(31, 33, 28, 0.14);

  --container: 1180px;
  --gutter: 24px;
  --section-y: 92px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

button { cursor: pointer; }

::selection { background: var(--accent); color: var(--ink); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

li { list-style: none; }

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section { padding: var(--section-y) 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, 0.72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.eyebrow-light { color: #dfae53; }
.eyebrow-light::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(194, 139, 44, 0.18); }

.display {
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.04; letter-spacing: -0.04em; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--slate); }
.lede-light { color: rgba(255, 255, 255, 0.74); }
.muted { color: var(--slate); }
.small { font-size: 13px; line-height: 1.5; color: var(--slate); }
.tiny { font-size: 12px; line-height: 1.45; color: var(--slate-2); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(194, 139, 44, 0.45); outline-offset: 3px; }

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(194, 139, 44, 0.22);
}
.btn-primary:hover { background: #d4a03a; box-shadow: 0 12px 26px rgba(194, 139, 44, 0.28); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }

.btn-light { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.btn-link:hover { color: var(--accent-dark); }
.btn-link .arrow { transition: transform 160ms ease; }
.btn-link:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(244, 238, 224, 0.88);
  border-bottom: 1px solid rgba(221, 211, 192, 0.8);
  backdrop-filter: blur(14px);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 218px; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 55;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 20px var(--gutter) 28px;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.mobile-menu .btn { margin-top: 18px; width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: 72px 0 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 139, 44, 0.22), transparent 64%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 78px;
}
.hero-copy { max-width: 660px; }
.hero h1 {
  color: var(--white);
  margin: 20px 0 22px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede { max-width: 590px; color: rgba(255, 255, 255, 0.74); }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: rgba(255, 255, 255, 0.56); font-size: 12px; }
.hero-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47, 122, 85, 0.2); }

/* product card */
.product-window {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  color: var(--ink);
  transform: rotate(1.2deg);
}
.product-window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.product-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: #faf5e9;
  border-bottom: 1px solid var(--line);
}
.product-dots { display: flex; gap: 6px; }
.product-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d4cab7; display: block; }
.product-dots i:first-child { background: var(--accent); }
.product-title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.product-body { padding: 20px 20px 22px; }
.file-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcf7eb;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
}
.file-chip .file-icon {
  width: 18px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid #e8cda4;
  position: relative;
  flex: 0 0 auto;
}
.file-chip .file-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 5px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 -4px 0 var(--accent), 0 -8px 0 var(--accent);
  opacity: 0.65;
}
.plus { color: var(--slate-2); font-weight: 700; }
.product-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.product-summary .label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.product-summary .value { font-family: var(--font-display); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.product-summary .value.credit { color: var(--green); }
.product-summary .sub { font-size: 11px; color: var(--slate-2); text-align: right; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.mini-table th { text-align: left; padding: 7px 8px; color: var(--slate-2); font-weight: 600; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 7px 8px; border-bottom: 1px solid #efe7d8; color: var(--ink-2); }
.mini-table td.num, .mini-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .state { font-weight: 700; }
.mini-table .pos { color: var(--red); }
.mini-table .neg { color: var(--green); }

.hero-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.hero-strip .container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}
.hero-strip .item {
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}
.hero-strip .item:last-child { border-right: 0; }
.hero-strip .item strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1px; }

/* ---------- section headers ---------- */
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head .h2 { margin-top: 14px; text-wrap: balance; }
.section-head .lede { margin-top: 16px; max-width: 680px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step-card {
  position: relative;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}
.step-card h3 { margin: 18px 0 8px; font-size: 22px; }
.step-card p { color: var(--slate); font-size: 14px; }
.step-visual {
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  background: #faf5e9;
  border: 1px dashed var(--line-strong);
  font-size: 11px;
  color: var(--slate);
}
.step-visual strong { color: var(--ink); }
.step-visual .bars { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.step-visual .bar { height: 6px; border-radius: 3px; background: #e4dbca; overflow: hidden; }
.step-visual .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.feature-card h3 { margin: 16px 0 8px; font-size: 20px; }
.feature-card p { color: var(--slate); font-size: 14px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-live { background: var(--green-soft); color: var(--green); }
.status-beta { background: var(--accent-soft); color: var(--accent-dark); }
.status-soon { background: #e8ede7; color: var(--slate); }

/* ---------- audience ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.audience-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.audience-card .tag { display: inline-flex; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--paper-2); color: var(--ink-2); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.audience-card h3 { margin: 16px 0 10px; font-size: 24px; }
.audience-card p { color: var(--slate); font-size: 14px; }
.audience-card ul { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.audience-card li { display: flex; gap: 9px; font-size: 13px; color: var(--ink-2); }
.audience-card li::before { content: "✓"; color: var(--green); font-weight: 800; flex: 0 0 auto; }
.audience-card .btn-link { margin-top: 20px; }

/* ---------- comparison ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.compare-table { min-width: 760px; width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th, .compare-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); background: #faf5e9; }
.compare-table th:first-child, .compare-table td:first-child { width: 190px; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .us { background: var(--accent-soft); }
.compare-table .us td, .compare-table .us th { border-color: #e7cba1; }
.compare-table td strong { display: block; color: var(--ink); font-size: 15px; }
.compare-table .check { color: var(--green); font-weight: 800; }
.compare-table .x { color: var(--slate-2); }

.rates-table { min-width: 620px; }
.rates-table th, .rates-table td { padding: 10px 14px; }
.rates-table td:first-child { width: 180px; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.price-card.featured { border-color: var(--ink); box-shadow: var(--shadow); }
.price-card.featured::before {
  content: "Recommended";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-name { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.price { display: flex; align-items: flex-end; gap: 5px; margin: 14px 0 6px; }
.price .amount { font-family: var(--font-display); font-size: 42px; font-weight: 800; line-height: 0.95; letter-spacing: -0.05em; }
.price .period { font-size: 12px; color: var(--slate); padding-bottom: 4px; }
.price-desc { color: var(--slate); font-size: 13px; min-height: 42px; }
.price-list { display: flex; flex-direction: column; gap: 11px; margin: 22px 0 26px; }
.price-list li { display: flex; gap: 9px; font-size: 13px; color: var(--ink-2); }
.price-list li::before { content: "✓"; color: var(--green); font-weight: 800; flex: 0 0 auto; }
.price-list li.muted::before { content: "–"; color: var(--slate-2); }
.price-card .btn { margin-top: auto; width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--slate);
  transition: transform 160ms ease;
}
.faq details[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq details p { padding: 0 0 22px; color: var(--slate); font-size: 14px; max-width: 760px; }

/* ---------- resource cards ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.resource-card .kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); }
.resource-card h3 { margin: 18px 0 9px; font-size: 19px; }
.resource-card p { color: var(--slate); font-size: 13px; }
.resource-card .btn-link { margin-top: auto; padding-top: 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: var(--ink);
  color: var(--white);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(194, 139, 44, 0.25), transparent 34%);
}
.cta-band .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta-band h2 { max-width: 640px; color: var(--white); font-size: clamp(30px, 3.4vw, 44px); }
.cta-band p { margin-top: 10px; color: rgba(255, 255, 255, 0.66); max-width: 560px; }
.cta-band .row { flex: 0 0 auto; }

/* ---------- footer ---------- */
.site-footer { background: #151711; color: rgba(255, 255, 255, 0.66); padding: 58px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 38px; }
.footer-brand img { width: 210px; margin-bottom: 18px; }
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 300px; }
.footer-col h4 { margin: 0 0 14px; color: var(--white); font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-col a { display: block; padding: 4px 0; font-size: 13px; color: rgba(255, 255, 255, 0.66); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom p { max-width: 760px; }
.footer-bottom > p:first-child { flex: 0 0 auto; white-space: nowrap; }
.footer-bottom .legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, 0.62); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- page hero (inner) ---------- */
.page-hero { padding: 70px 0 54px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero .display, .page-hero .h2 { max-width: 840px; }
.page-hero .lede { margin-top: 18px; max-width: 720px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 11px; color: var(--slate); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { color: var(--line-strong); }

/* ---------- calculator ---------- */
.calc-hero { padding: 44px 0 34px; background: var(--ink); color: var(--white); }
.calc-hero .breadcrumb { color: rgba(255, 255, 255, 0.5); }
.calc-hero h1 { color: var(--white); font-size: clamp(34px, 4vw, 52px); max-width: 780px; }
.calc-hero p { margin-top: 12px; color: rgba(255, 255, 255, 0.68); max-width: 720px; font-size: 15px; }
.calc-hero .trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; font-size: 11px; color: rgba(255, 255, 255, 0.58); }
.calc-hero .trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.calc-hero .trust-row i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); display: inline-block; }

.calc-shell {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  padding: 32px 0 60px;
  background: var(--paper);
}
.calc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.calc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  background: #faf5e9;
  border-bottom: 1px solid var(--line);
}
.calc-toolbar .title { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.calc-toolbar .title i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.calc-toolbar .controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.calc-toolbar .control { display: flex; align-items: center; gap: 7px; }
.calc-toolbar .control select { min-width: 92px; }
.calc-toolbar select, .calc-toolbar input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
}
.calc-body { padding: 24px; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 148px;
  padding: 22px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fdfcf9;
  transition: border-color 160ms ease, background 160ms ease;
  cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--accent-dark); font-size: 16px; margin-bottom: 12px; }
.dropzone .dz-title { font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.dropzone .dz-sub { margin-top: 4px; font-size: 12px; color: var(--slate); }
.dropzone .dz-file { margin-top: 10px; font-size: 11px; color: var(--green); font-weight: 600; word-break: break-all; }
.dropzone .dz-file.error { color: var(--red); }
.upload-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.upload-actions .note { font-size: 11px; color: var(--slate-2); }

.result-panel { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: #faf5e9; border-bottom: 1px solid var(--line); }
.result-head h2 { font-size: 14px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.result-head .badge { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border-radius: var(--radius-pill); background: var(--paper-2); color: var(--slate); }
.result-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--line); }
.result-summary .stat { padding: 18px; border-right: 1px solid var(--line); }
.result-summary .stat:last-child { border-right: 0; }
.result-summary .stat .label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.result-summary .stat .value { margin-top: 6px; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.result-summary .stat .value.green { color: var(--green); }
.result-summary .stat .value.red { color: var(--red); }
.result-summary .stat .sub { margin-top: 5px; font-size: 10px; color: var(--slate-2); }
.result-table-wrap { overflow-x: auto; }
.result-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 720px; }
.result-table th { text-align: right; padding: 11px 12px; background: #fdfcf9; color: var(--slate); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.result-table th:first-child, .result-table td:first-child { text-align: left; }
.result-table td { text-align: right; padding: 12px; border-bottom: 1px solid #efe7d8; font-variant-numeric: tabular-nums; }
.result-table tr:last-child td { border-bottom: 0; }
.result-table .state { font-weight: 700; }
.result-table .state small { display: block; font-weight: 500; color: var(--slate-2); font-size: 10px; }
.result-table .pos { color: var(--red); font-weight: 700; }
.result-table .neg { color: var(--green); font-weight: 700; }
.result-table .missing { color: var(--accent-dark); font-weight: 700; }
.result-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: #faf5e9; border-top: 1px solid var(--line); flex-wrap: wrap; }
.result-foot .small { max-width: 620px; }
.warning-list { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: #fcf6e7; border-top: 1px solid #ead7ad; }
.warning-list .w { display: flex; gap: 9px; font-size: 12px; color: #6b4b11; }
.warning-list .w::before { content: "!"; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: #ead7ad; color: #6b4b11; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 10px; }
.error-box { padding: 16px 18px; background: var(--red-soft); border-top: 1px solid #e5c9c1; color: var(--red); font-size: 12px; }
.empty-state { padding: 46px 22px; text-align: center; }
.empty-state .icon { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.empty-state h3 { font-size: 18px; }
.empty-state p { margin-top: 6px; color: var(--slate); font-size: 13px; }

.calc-content { max-width: 820px; margin: 54px auto 0; }
.calc-content h2 { font-size: 26px; margin: 34px 0 12px; }
.calc-content h3 { font-size: 19px; margin: 26px 0 8px; }
.calc-content p, .calc-content li { color: var(--slate); font-size: 14px; line-height: 1.65; }
.calc-content li { margin: 8px 0; padding-left: 18px; position: relative; }
.calc-content li::before { content: "•"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 800; }
.calc-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.calc-content th, .calc-content td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.calc-content th { background: #faf5e9; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.calc-content tr:last-child td { border-bottom: 0; }
.calc-content .source { margin-top: 12px; font-size: 12px; color: var(--slate-2); }

/* ---------- legal / prose ---------- */
.prose { max-width: 800px; margin-inline: auto; }
.prose h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 12px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--slate); font-size: 14px; line-height: 1.7; }
.prose-on-dark p, .prose-on-dark li { color: rgba(255,255,255,.76); }
.prose-on-dark li::before { color: var(--accent); }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0 18px; }
.prose li { margin: 8px 0; padding-left: 18px; position: relative; }
.prose li::before { content: "•"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 800; }
.prose .meta { margin-top: 10px; font-size: 12px; color: var(--slate-2); }
.prose .notice { margin: 26px 0; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: #fffaf0; border-radius: 10px; font-size: 13px; color: var(--ink-2); }

/* ---------- auth / account ---------- */
.auth-page {
  padding: 64px 0 92px;
  background:
    radial-gradient(circle at 88% 8%, rgba(194, 139, 44, 0.12), transparent 26%),
    var(--paper);
}
.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 40px 40px;
  box-shadow: 0 22px 60px rgba(31, 33, 28, 0.08);
}
.auth-card h1 { margin-top: 14px; font-size: clamp(34px, 4vw, 46px); }
.auth-card .lede { margin-top: 14px; max-width: 580px; }
.auth-form { margin-top: 28px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fcf7eb;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.auth-field input:focus { outline: 3px solid rgba(194, 139, 44, 0.24); border-color: var(--accent); }
.auth-field input::placeholder { color: #8a8578; }
.auth-field .hint { margin-top: 7px; font-size: 12px; color: var(--slate-2); }
.auth-submit { width: 100%; min-height: 48px; }
.auth-google { display: flex; justify-content: center; min-height: 44px; margin: 2px 0 4px; }
.auth-google[hidden] { display: none; }
.auth-google-fallback { margin: 2px 0 4px; }
.auth-google-fallback[hidden] { display: none; }
.auth-google-btn { width: 100%; opacity: 0.72; cursor: not-allowed; }
.auth-google-fallback .hint { margin: 8px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--slate-2); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--slate-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-divider[hidden] { display: none; }
.auth-msg { margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.auth-msg.ok { color: var(--green); }
.auth-msg.err { color: var(--red); }
.auth-code-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.auth-code-row input { flex: 1 1 180px; text-align: center; font-family: var(--font-display); font-size: 24px; letter-spacing: 0.22em; font-weight: 800; }
.auth-code-row .btn { flex: 0 0 auto; }
.auth-links { margin-top: 16px; font-size: 13px; color: var(--slate); }
.auth-links a { color: var(--accent-dark); font-weight: 600; }
.auth-side {
  margin-top: 4px;
  padding: 30px 28px;
  border-radius: 18px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 60px rgba(31, 33, 28, 0.14);
}
.auth-side .eyebrow-light { margin-bottom: 16px; }
.auth-side h2 { color: var(--white); font-size: 26px; line-height: 1.15; }
.auth-side p { margin-top: 12px; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, 0.68); }
.auth-side ul { margin: 22px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, 0.76); }
.auth-side li::before { content: "✓"; flex: 0 0 auto; color: var(--accent-dark); font-weight: 800; }
.auth-side .small { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.5); }
.auth-footnote { margin-top: 18px; font-size: 12px; line-height: 1.6; color: var(--slate-2); }
.auth-footnote a { color: var(--accent-dark); }

.account-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.account-head h1 { margin-top: 10px; font-size: clamp(34px, 4vw, 48px); }
.account-head p { margin-top: 10px; color: var(--slate); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 24px; align-items: start; }
.account-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
}
.account-card h2 { font-size: 22px; }
.account-card .kicker { margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); }
.account-email { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; word-break: break-word; }
.account-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-meta .label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-2); }
.account-meta .value { margin-top: 5px; font-size: 14px; font-weight: 700; color: var(--ink); }
.account-empty { margin-top: 16px; padding: 22px; border: 1px dashed var(--line-strong); border-radius: 12px; background: #faf5e9; }
.account-empty p { margin-top: 6px; font-size: 13px; color: var(--slate); }
.account-pending { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 14px 16px; border: 1px solid #e6c89c; border-radius: 12px; background: #fcf3e2; }
.account-pending[hidden] { display: none; }
.account-pending strong { display: block; font-size: 14px; }
.account-pending small { display: block; margin-top: 4px; font-size: 12px; color: var(--slate); }
.account-pending-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.account-pending-actions .btn-link { padding: 0; border: 0; background: none; color: var(--slate); font-size: 12px; cursor: pointer; }
.account-list { display: grid; gap: 10px; margin-top: 16px; }
.account-quarter { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fcf7eb; }
.account-quarter .q-main { min-width: 0; }
.account-quarter strong { display: block; font-size: 14px; }
.account-quarter small { display: block; margin-top: 3px; font-size: 12px; color: var(--slate); }
.account-quarter .q-net { font-family: var(--font-display); font-weight: 800; white-space: nowrap; }
.account-quarter .q-del { border: 0; background: none; color: var(--slate-2); font-size: 12px; cursor: pointer; padding: 4px; }
.account-quarter .q-del:hover { color: var(--red); }
.account-actions { display: grid; gap: 10px; margin-top: 18px; }
.account-actions .btn { width: 100%; }
.account-note { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--slate-2); }
.account-danger { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-danger h3 { font-size: 15px; }
.account-danger p { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--slate); }
.account-danger .danger-link { display: inline-block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--red); font-size: 13px; font-weight: 600; cursor: pointer; }
.account-signedout { max-width: 560px; margin: 0 auto; text-align: center; }
.account-signedout .btn { margin-top: 18px; }

@media (max-width: 1020px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-side { order: 0; }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .auth-page { padding: 38px 0 64px; }
  .auth-card { padding: 26px 22px 28px; }
  .auth-side { padding: 24px 22px; }
  .account-head { align-items: flex-start; flex-direction: column; }
  .account-card { padding: 22px 20px; }
  .account-pending { align-items: flex-start; flex-direction: column; }
  .account-pending-actions { width: 100%; }
  .account-meta { grid-template-columns: 1fr 1fr; }
  .auth-code-row .btn { width: 100%; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { max-width: 760px; }
  .product-window { max-width: 620px; transform: none; }
  .feature-grid, .resource-grid, .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-col:nth-child(4), .footer-col:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 860px) {
  :root { --section-y: 68px; --header-h: 68px; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand img { width: 190px; }
  .hero { padding-top: 52px; }
  .hero-grid { padding-bottom: 54px; }
  .hero-strip .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-strip .item { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .hero-strip .item:last-child { grid-column: span 2; border-bottom: 0; }
  .steps, .feature-grid, .resource-grid, .audience-grid, .pricing-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 30px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .cta-band .row { width: 100%; }
  .cta-band .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .calc-toolbar { align-items: flex-start; flex-direction: column; }
  .upload-grid { grid-template-columns: 1fr; }
  .result-summary { grid-template-columns: 1fr 1fr; }
  .result-summary .stat:nth-child(2) { border-right: 0; }
  .result-summary .stat:nth-child(3), .result-summary .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .calc-body { padding: 18px; }
  .calc-toolbar .controls { width: 100%; gap: 10px; }
  .calc-toolbar .control { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .calc-toolbar .control select { width: 100%; min-width: 0; }
  .calc-toolbar .controls .btn { flex: 1 1 calc(50% - 5px); }
}

@media (max-width: 520px) {
  :root { --gutter: 18px; }
  .display { font-size: clamp(36px, 10vw, 48px); }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-cta .btn { width: 100%; }
  .product-body { padding: 16px; }
  .product-summary .value { font-size: 28px; }
  .product-summary .sub { font-size: 10px; }
  .mini-table { font-size: 10px; }
  .mini-table th, .mini-table td { padding: 6px 4px; }
  .price-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-col:nth-child(4), .footer-col:nth-child(5) { grid-column: auto; }
  .result-summary { grid-template-columns: 1fr; }
  .result-summary .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-summary .stat:last-child { border-bottom: 0; }
  .result-table { font-size: 11px; }
  .result-table th, .result-table td { padding: 9px 8px; }
}

@media (max-width: 640px) {
  .compact-mobile { min-width: 0; }
  .compact-mobile th, .compact-mobile td { padding: 9px 6px; font-size: 11px; }
  .compact-mobile th:first-child, .compact-mobile td:first-child { width: 28%; }
  .compact-mobile td strong { font-size: 12px; }
  .hide-mobile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   Packet panel — official-column filing packet
   ============================================================ */
.packet-panel {
  margin-top: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.packet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 18px;
  background: #faf5e9;
  border-bottom: 1px solid var(--line);
}
.packet-head h2 { margin: 8px 0 6px; font-size: 22px; }
.packet-head p { color: var(--slate); font-size: 13px; max-width: 720px; }
.packet-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.packet-field { display: flex; flex-direction: column; gap: 5px; }
.packet-field.wide { grid-column: span 2; }
.packet-field span { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate); }
.packet-field input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfcf9;
  color: var(--ink);
  font-size: 13px;
}
.packet-field input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.packet-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 22px 4px;
}
.packet-actions .small { color: var(--slate); }
.packet-rule { padding: 0 22px 8px; color: var(--slate); font-size: 12px; }
.packet-meta { padding: 0 22px 10px; color: var(--slate-2); font-size: 11px; }
.packet-table-wrap {
  margin: 0 22px 22px;
  max-height: 390px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.packet-table { width: 100%; border-collapse: collapse; font-size: 10px; min-width: 860px; }
.packet-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 8px 7px;
  background: #faf5e9;
  border-bottom: 1px solid var(--line-strong);
  color: var(--slate);
  font-weight: 700;
  white-space: nowrap;
}
.packet-table td { padding: 7px; border-bottom: 1px solid #efe7d8; color: var(--ink-2); white-space: nowrap; }
.packet-table tr:last-child td { border-bottom: 0; }
.packet-table td:first-child { font-weight: 700; }

/* ============================================================
   Five-state weight tax worksheet
   ============================================================ */
.weight-shell { padding: 32px 0 60px; background: var(--paper); }
.weight-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.weight-card .calc-body { padding: 22px; }
.weight-reg-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: #faf5e9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.weight-reg-box .product-title { display: block; margin-bottom: 4px; }
.weight-reg-box .small { max-width: 560px; color: var(--slate); font-size: 12px; }
.wt-reg-grid { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wt-reg-grid label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.wt-prefill, .wt-data-note { margin: 0 0 14px; color: var(--slate); }
.wt-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fdfcf9;
}
.wt-table { width: 100%; border-collapse: collapse; min-width: 1180px; font-size: 12px; }
.wt-table th {
  text-align: left;
  padding: 10px 8px;
  background: #faf5e9;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.wt-table td { padding: 9px 7px; border-bottom: 1px solid #efe7d8; vertical-align: middle; }
.wt-table tr:last-child td { border-bottom: 0; }
.wt-table input, .wt-table select {
  width: 82px;
  height: 32px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
}
.wt-table .wt-id { width: 90px; }
.wt-table .wt-type { width: 88px; }
.wt-table .wt-class, .wt-table .wt-axles { width: 58px; }
.wt-table .row-del {
  border: 0;
  background: var(--red-soft);
  color: var(--red);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1;
}
.weight-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.wt-credit { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--slate); }
.wt-credit input { width: 110px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: #fdfcf9; }
.wt-result { margin-top: 20px; }
.wt-summary .stat .value { font-size: 21px; }
.wt-schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px; background: #fbf7ee; border-top: 1px solid var(--line); }
.wt-schedule { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.wt-schedule-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 15px; border-bottom: 1px solid var(--line); }
.wt-code { display: inline-flex; padding: 3px 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; }
.wt-schedule h3 { margin: 7px 0 3px; font-size: 16px; }
.wt-schedule-head p { color: var(--slate); font-size: 11px; }
.wt-total { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
.wt-flag { font-size: 10px; font-weight: 700; color: var(--red); }
.wt-flag.ok { color: var(--green); }
.wt-flag.zero { color: var(--accent-dark); }
.wt-flag.muted { color: var(--slate-2); }
.wt-schedule-table-wrap { overflow-x: auto; }
.wt-schedule-table { width: 100%; border-collapse: collapse; font-size: 10px; min-width: 520px; }
.wt-schedule-table th { text-align: left; padding: 8px; background: #fdfcf9; color: var(--slate); border-bottom: 1px solid var(--line); font-weight: 600; }
.wt-schedule-table td { padding: 7px 8px; border-bottom: 1px solid #efe7d8; color: var(--ink-2); }
.wt-schedule-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.wt-schedule-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #faf5e9; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wt-schedule-foot span { color: var(--slate-2); font-size: 10px; max-width: 320px; }
.weight-content { max-width: 900px; }

@media (max-width: 900px) {
  .packet-form { grid-template-columns: 1fr 1fr; }
  .packet-field.wide { grid-column: span 2; }
  .wt-schedule-grid { grid-template-columns: 1fr; }
  .weight-reg-box { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .packet-head { flex-direction: column; }
  .packet-form { grid-template-columns: 1fr; }
  .packet-field.wide { grid-column: auto; }
  .packet-actions .btn { width: 100%; }
  .wt-table { min-width: 1080px; }
  .wt-schedule-head { flex-direction: column; }
  .wt-total { font-size: 20px; }
  .weight-actions .btn { width: 100%; }
}

.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hero-eyebrow .status { color: var(--green); }

/* Fuel review (net-of-tax price + truck check) */
.fr-summary { margin: 4px 0 14px; }
.packet-hint {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-left: 3px solid var(--accent);
  background: #fff9ec;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.55;
}
.fr-best td { background: #f2f8ef; }
.fr-flag { color: var(--red); font-size: 10px; line-height: 1.45; }
