:root {
  --paper: #f3ede3;
  --paper-deep: #e9dfd0;
  --surface: #fbf8f2;
  --surface-strong: #fffdf9;
  --ink: #171311;
  --ink-soft: #514b46;
  --ink-muted: #68615b;
  --line: #d7cab9;
  --line-strong: #bca990;
  --oxblood: #741d1d;
  --oxblood-dark: #501313;
  --bronze: #8c6535;
  --bronze-pale: #d9c19d;
  --focus: #175cd3;
  --success: #24673c;
  --danger: #9c2c2c;
  --shadow: 0 18px 48px rgba(45, 31, 19, 0.08);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --content: 1180px;
  color-scheme: light;
}

.pricing-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.function-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.function-link { display: grid; gap: .55rem; color: inherit; text-decoration: none; transition: transform .16s ease, background-color .16s ease; }
.function-link:hover { transform: translateY(-2px); }
.function-link code { color: var(--brass, #b8894f); font-size: 1rem; overflow-wrap: anywhere; }
.function-link span { color: var(--muted, #716961); }
.help-group + .help-group { margin-top: 2.5rem; }
.function-help-shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 5rem; }
.function-help-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1rem; margin-bottom: 1rem; }
.function-help-grid pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: .9rem; border-radius: .75rem; background: rgba(43, 36, 32, .07); }
.parameter-table th, .parameter-table td { text-align: left; vertical-align: top; }
.function-help-back { margin-top: 1.25rem; }
.help-embedded [data-help-chrome] { display: none; }
.help-embedded .function-help-shell { width: min(100% - 1rem, 920px); padding-top: .5rem; }
@media (max-width: 760px) { .pricing-grid-two, .function-directory, .function-help-grid { grid-template-columns: 1fr; } }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 420px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 5%, rgba(140, 101, 53, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.62), transparent);
}

a { color: var(--oxblood); text-underline-offset: 0.18em; }
a:hover { color: var(--oxblood-dark); }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: white;
  padding: 0.7rem 1rem;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(188, 169, 144, 0.72);
  background: rgba(243, 237, 227, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(var(--content), calc(100% - 2rem));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text { padding-left: 0.2rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 620;
  padding: 0.58rem 0.78rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(140, 101, 53, 0.1);
  color: var(--ink);
}

.nav-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 620;
  padding: 0.58rem 0.78rem;
  cursor: default;
}

.nav-disabled small {
  color: var(--bronze);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links .nav-account {
  border: 1px solid var(--line-strong);
  margin-left: 0.35rem;
  padding-inline: 1rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 19px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: "";
}
.nav-toggle-lines::before { transform: translateY(-6px); }
.nav-toggle-lines::after { transform: translateY(4px); }

main { overflow: clip; }

.shell {
  width: min(var(--content), calc(100% - 2rem));
  margin-inline: auto;
}

.narrow { width: min(780px, calc(100% - 2rem)); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  min-height: 620px;
  padding-block: clamp(5rem, 11vw, 8.5rem);
}

.hero-copy { max-width: 760px; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--oxblood);
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, h3, h4, p { margin-top: 0; }

h1 {
  max-width: 900px;
  margin-bottom: 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.046em;
  line-height: 0.98;
}

.product-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); }

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.lede {
  max-width: 740px;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-mark {
  width: min(330px, 78vw);
  justify-self: center;
  filter: drop-shadow(0 22px 32px rgba(44, 28, 16, 0.2));
}

.hero-mark img {
  display: block;
  width: 100%;
  border-radius: 28%;
}

.hero-mark img.website-logo {
  max-height: 520px;
  object-fit: contain;
  border-radius: 0;
}

.floating-sword {
  position: absolute;
  top: 92px;
  left: max(0.5rem, calc(50vw - 720px));
  width: clamp(104px, 11vw, 155px);
  aspect-ratio: 1;
  z-index: 90;
  background: url('/public/assets/brand/johco-sword-512.png') center / contain no-repeat;
  filter: drop-shadow(0 14px 18px rgba(44, 28, 16, 0.22));
  pointer-events: none;
  transition: width 180ms ease, top 180ms ease, left 180ms ease, filter 180ms ease;
  transform-origin: top left;
}
.floating-sword.is-docked {
  position: fixed;
  top: 86px;
  left: max(0.35rem, calc(50vw - 720px));
  width: 44px;
  filter: drop-shadow(0 8px 12px rgba(44, 28, 16, 0.18));
}

.sword-home { position: absolute; top: 250px; left: 0; width: 1px; height: 1px; }
.home-hero { grid-template-columns: 1fr; }
.home-hero, .page-title { padding-left: clamp(175px, 18vw, 240px); }
.home-hero h1 { font-size: clamp(2.35rem, 5vw, 4.7rem); }
.page-title { padding-top: clamp(4.5rem, 9vw, 7rem); padding-bottom: clamp(2.25rem, 5vw, 4rem); }
.page-title h1 { max-width: 850px; margin-bottom: 0; font-size: clamp(2.7rem, 6vw, 5rem); }

.release-scope {
  max-width: 790px;
  margin-bottom: 1.15rem;
  border-left: 4px solid var(--bronze);
  background: rgba(251, 248, 242, 0.72);
  color: var(--ink-soft);
  padding: 0.85rem 1rem;
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.68rem 1.2rem;
  text-decoration: none;
}

.button:hover { background: var(--oxblood-dark); color: white; }

.button.secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover { background: var(--surface); }

.button.disabled,
.button[aria-disabled="true"],
button:disabled {
  border-color: var(--line);
  background: var(--paper-deep);
  color: var(--ink-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.availability-note {
  margin: 0.8rem 0 0;
  color: var(--ink-muted);
  font-size: 0.83rem;
}

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section.compact { padding-block: clamp(3.25rem, 6vw, 5rem); }
.section.tint {
  border-block: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.62);
}
.section.dark {
  background: #1d1714;
  color: #f9f4ec;
}
.section.dark .eyebrow { color: var(--bronze-pale); }
.section.dark .muted, .section.dark .section-intro { color: #cfc5bb; }
.section.dark .card,
.section.dark .mode-card,
.section.dark .callout { color: var(--ink); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(300px, 1fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.section-head h2 { margin-bottom: 0; }
.section-head.simple-head { grid-template-columns: 1fr; align-items: start; }
.section-intro {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
}

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1rem;
}
.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)); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: 0 1px 0 rgba(255,255,255,0.65) inset;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .number {
  display: block;
  margin-bottom: 1rem;
  color: var(--bronze);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}
.card.status-planned { border-style: dashed; }
.card.status-current { border-top: 3px solid var(--oxblood); }

.product-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
}
.product-card .product-index {
  color: var(--bronze);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-card h3 {
  margin: 1.8rem 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
}
.product-card p { color: var(--ink-soft); }
.product-card .text-link { margin-top: auto; }
.product-card .button { margin-top: auto; }
.product-order { align-items: stretch; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}
.text-link::after { content: "→"; }

.status-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  padding: 0.24rem 0.62rem;
  text-transform: uppercase;
}
.status-tag.current { border-color: rgba(116,29,29,0.35); color: var(--oxblood); }

.callout {
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--oxblood);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 1.25rem 1.4rem;
}
.callout.warning { border-left-color: var(--bronze); }
.callout p:last-child { margin-bottom: 0; }

.feature-list,
.plain-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list li,
.check-list li {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0 0.7rem 1.25rem;
}
.feature-list li:last-child,
.check-list li:last-child { border-bottom: 0; }
.feature-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bronze);
}
.plain-list li { margin-bottom: 0.6rem; }

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

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.15rem;
  vertical-align: top;
}
thead th {
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
tbody th { font-size: 0.95rem; }
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
.price-cell {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  white-space: nowrap;
}
.table-note {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-muted);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.72rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.price-card {
  display: flex;
  min-height: 450px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.35rem, 2.5vw, 2rem);
}
.price-card.primary { border-top: 3px solid var(--oxblood); }
.price-card h3 { font-size: 1rem; }
.price {
  margin: 1rem 0 0.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  line-height: 1;
}
.price small {
  color: var(--ink-muted);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.78rem;
}
.price-period-inline {
  color: var(--ink-muted);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}
.quota { margin-bottom: 1.4rem; color: var(--ink-soft); font-size: 0.88rem; }
.price-card .feature-list { margin-bottom: 1.5rem; }
.price-card .check-list { margin-bottom: 1.5rem; }
.price-card .button { margin-top: auto; }

.pricing-link-row { justify-content: flex-end; margin-top: 1.25rem; }
.method-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.method-lines p { margin: 0; border-top: 1px solid var(--line-strong); padding-top: 1rem; color: var(--ink-soft); }
.plan-section + .plan-section { border-top: 1px solid var(--line); }
.strategy-card { min-height: 0; display: grid; grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr); gap: 2rem; align-items: start; }
.strategy-card .button { grid-column: 1 / -1; justify-self: start; }

.function-list { display: grid; gap: 1rem; }
.function-card { display: grid; grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr); gap: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(1.35rem, 3vw, 2rem); }
.function-card h3 { font-size: 1.05rem; }
.function-card p { margin-bottom: 0; color: var(--ink-soft); }
.function-card .example { margin: 0; }

.excel-example { min-width: 0; }
.excel-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #c8c8c8;
  border-bottom: 0;
  background: #f7f7f7;
  color: #222;
  padding: 0.5rem 0.65rem;
  font-family: Aptos, Calibri, "Segoe UI", sans-serif;
  font-size: 0.78rem;
}
.excel-input span,
.excel-output-label {
  color: #5a5a5a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.excel-input code {
  overflow-x: auto;
  color: #111;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}
.excel-output-label { display: block; margin: 0.65rem 0 0.3rem; }
.excel-sheet {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #b7b7b7;
  background: white;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}
.excel-grid {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  color: #111;
  font-family: Aptos, Calibri, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  line-height: 1.25;
  table-layout: auto;
}
.excel-grid th,
.excel-grid td {
  min-width: 72px;
  height: 28px;
  border: 1px solid #d9d9d9;
  padding: 0.32rem 0.48rem;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}
.excel-grid thead th,
.excel-grid tbody th {
  min-width: 31px;
  background: #f3f3f3;
  color: #4b4b4b;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}
.excel-grid td { background: #fff; }
.excel-grid tbody tr:first-child td:first-of-type { box-shadow: inset 0 0 0 2px #217346; }
.excel-grid-wide td { min-width: 106px; text-align: left; }
.purchase-notice { margin-bottom: 1.5rem; border-left: 4px solid var(--bronze); background: var(--paper-deep); padding: 1rem 1.2rem; }
.purchase-notice h3 { margin-bottom: 0.45rem; }
.purchase-notice p { margin-bottom: 0; }

.strategy-price {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.mode-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.7rem;
}
.mode-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.example {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #211b18;
  color: #f5eee5;
  padding: 1rem 1.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.step {
  position: relative;
  border-top: 1px solid var(--line-strong);
  padding: 1.3rem 1rem 0 3.3rem;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.18rem;
  left: 0;
  color: var(--bronze);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1rem;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 720;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 0.75rem 0.85rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field-help { margin-top: 0.3rem; color: var(--ink-muted); font-size: 0.75rem; }
.form-status { min-height: 1.6rem; margin-top: 0.8rem; font-size: 0.84rem; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }
.hp-field { position: absolute !important; left: -10000px !important; }

.account-shell {
  width: min(var(--content), calc(100% - 2rem));
  min-height: 70vh;
  margin-inline: auto;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.account-nav {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}
.account-nav a {
  border-bottom: 3px solid transparent;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 740;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
}
.account-nav a:hover,
.account-nav a[aria-current="page"] { border-bottom-color: var(--oxblood); color: var(--ink); }
.account-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.account-heading h1, .signin-panel h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.account-card h2 { font-size: 1.8rem; }
.account-facts { margin: 0; }
.account-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; border-top: 1px solid var(--line); padding: 0.7rem 0; }
.account-facts dt { color: var(--ink-muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.account-facts dd { margin: 0; overflow-wrap: anywhere; }
.usage-number { margin-bottom: 0.7rem; font-family: Georgia, "Times New Roman", serif; font-size: 3.1rem; line-height: 1; }
.usage-number small { color: var(--ink-muted); font-family: inherit; font-size: 1.1rem; }
.usage-track { display: block; width: 100%; height: 9px; overflow: hidden; border: 0; border-radius: 999px; background: var(--paper-deep); appearance: none; }
.usage-track::-webkit-progress-bar { border-radius: 999px; background: var(--paper-deep); }
.usage-track::-webkit-progress-value { border-radius: 999px; background: var(--oxblood); }
.usage-track::-moz-progress-bar { border-radius: 999px; background: var(--oxblood); }
.account-section { border-top: 1px solid var(--line); }
.selectable { cursor: pointer; }
.selectable > span { display: flex; align-items: center; gap: 0.5rem; font-size: 1.05rem; }
.mode-warning { grid-column: 1 / -1; }
.mode-grid > [data-language-state],
.mode-grid > .button-row { grid-column: 1 / -1; }
.check-row { display: block; margin: 0.8rem 0; }
.fine-print { color: var(--ink-muted); font-size: 0.78rem; }
.signin-panel { width: min(720px, 100%); margin-inline: auto; text-align: center; }
.signin-panel .lede { margin-inline: auto; }
.signin-mark { border-radius: 28%; box-shadow: var(--shadow); }
.signin-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.auth-dialog { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.auth-card { width: min(480px, 100%); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 2rem; text-align: center; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2.3rem; }
.auth-card img { border-radius: 28%; }
.auth-actions { display: grid; gap: 0.7rem; margin-block: 1.4rem; }
.credential-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.credential-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1rem 1.2rem; }
.credential-row:last-child { border-bottom: 0; }
.credential-row span { display: block; color: var(--ink-muted); font-size: 0.76rem; }
.refund-list { display: grid; gap: 0.7rem; margin-top: 1rem; }
.refund-row { border-top: 1px solid var(--line); padding-top: 0.85rem; }
.refund-row > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.refund-row p { margin: 0.3rem 0 0; overflow-wrap: anywhere; }
.status-badge { border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.2rem 0.55rem; color: var(--ink-muted); font-size: 0.68rem; font-weight: 750; text-transform: capitalize; }
.status-succeeded { border-color: var(--success); color: var(--success); }
.status-failed, .status-denied { border-color: var(--danger); color: var(--danger); }
.credential-empty { padding: 0 1.2rem; }
.one-time-token { margin-top: 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper-deep); padding: 0.8rem; overflow-wrap: anywhere; }
.text-button { border: 0; background: transparent; color: var(--oxblood); cursor: pointer; font-weight: 700; }
.button.danger { border-color: var(--danger); background: var(--danger); }

.purchase-step + .purchase-step { border-top: 1px solid var(--line); }
.product-choice,
.plan-choice {
  width: 100%;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.product-choice {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}
.product-choice strong { margin-top: auto; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 500; }
.product-choice > span:last-child { color: var(--ink-soft); }
.product-choice.is-selected,
.plan-choice.is-selected { border-color: var(--oxblood); box-shadow: 0 0 0 2px rgba(116, 29, 29, 0.12); }
.plan-choice { align-items: stretch; }
.plan-choice .button { width: fit-content; }
.purchase-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.2rem 1.4rem;
}
.purchase-summary p { margin: 0; }
.purchase-summary p:nth-child(2) { flex: 1; color: var(--ink-soft); }

.ack-dialog {
  width: min(660px, calc(100% - 2rem));
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 28px 90px rgba(23, 19, 17, 0.28);
}
.ack-dialog::backdrop { background: rgba(23, 19, 17, 0.64); backdrop-filter: blur(4px); }
.ack-dialog-card { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-strong); padding: clamp(1.5rem, 5vw, 2.75rem); }
.ack-dialog-card h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
.ack-copy { color: var(--ink-soft); }
.ack-actions { justify-content: flex-end; margin-top: 2rem; }

.product-library { display: grid; gap: 1rem; }
.library-product { display: grid; gap: 0.5rem; }
.library-product-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.library-product-header h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 500; }
.install-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; border-bottom: 1px solid var(--line); }
.install-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--ink-soft); cursor: pointer; font-weight: 730; padding: 0.75rem 1rem; }
.install-tabs button[aria-selected="true"] { border-bottom-color: var(--oxblood); color: var(--ink); }
.install-panel { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); padding: clamp(1.4rem, 4vw, 2.4rem); }
.install-panel h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; }
.install-panel li { margin-bottom: 0.7rem; padding-left: 0.35rem; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--paper-deep); padding: 0.05rem 0.35rem; font-size: 0.82em; }

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(1.6rem, 4vw, 3rem);
}
.cta-panel h2 { margin-bottom: 0.65rem; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.cta-panel p { max-width: 720px; margin-bottom: 0; color: var(--ink-soft); }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(233, 223, 208, 0.58);
  padding: 3.2rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.7fr);
  gap: 2rem;
}
.footer-brand { max-width: 350px; }
.footer-brand p { margin-top: 1rem; color: var(--ink-soft); font-size: 0.84rem; }
.footer-col h2 {
  margin-bottom: 0.75rem;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-col a { display: block; width: fit-content; margin: 0.42rem 0; color: var(--ink-soft); font-size: 0.82rem; text-decoration: none; }
.footer-col a:hover { color: var(--oxblood); text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.muted { color: var(--ink-soft); }
.small { font-size: 0.82rem; }
.center { text-align: center; }
.spaced-top { margin-top: 2rem; }
.no-margin { margin: 0; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    padding: 0.75rem;
  }
  .nav-links.open { display: grid; }
  .nav-links .nav-account { margin-left: 0; }
  .nav-disabled { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-mark { width: min(260px, 68vw); grid-row: 1; }
  .hero-copy { text-align: center; }
  .hero-copy .button-row { justify-content: center; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .grid-3, .grid-4, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-price, .strategy-card, .contact-layout, .function-card { grid-template-columns: 1fr; }
  .strategy-card .button { grid-column: auto; }
  .account-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .nav-shell, .shell, .narrow { width: min(100% - 1.25rem, var(--content)); }
  .hero { padding-block: 3.5rem 4.5rem; }
  .home-hero, .page-title { padding-left: 5.75rem; }
  .page-title { padding-top: 3.5rem; }
  .floating-sword { left: 0.35rem; width: 68px; }
  .floating-sword.is-docked { top: 82px; left: 0.25rem; width: 38px; }
  .hero-mark { width: 185px; }
  h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .grid-2, .grid-3, .grid-4, .pricing-grid, .mode-grid, .steps, .method-lines { grid-template-columns: 1fr; }
  .product-card { min-height: 0; }
  .price-card { min-height: 0; }
  .cta-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .account-shell { width: min(100% - 1.25rem, var(--content)); padding-block: 3rem; }
  .account-heading { align-items: start; flex-direction: column; }
  .account-nav { overflow-x: auto; }
  .purchase-summary { align-items: stretch; flex-direction: column; }
  .purchase-summary .button { width: 100%; }
  .ack-actions { align-items: stretch; flex-direction: column-reverse; }
  .credential-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .button-row, .cta-panel { display: none !important; }
  body { background: white; }
  .section { padding-block: 2rem; }
  .card, .table-wrap { break-inside: avoid; box-shadow: none; }
}
