@font-face {
  font-family: "Anton";
  src: url("./fonts/Anton-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f6f8fc;
  --surface: #ffffff;
  --surface-muted: #f0f4ff;
  --surface-selected: #eaf0ff;
  --text: #172033;
  --text-secondary: #5e6980;
  --text-tertiary: #7b8599;
  --border: #dfe5f0;
  --border-strong: #c9d2e3;
  --action: #2f61f3;
  --action-hover: #244fd1;
  --focus: #91adff;
  --success: #159455;
  --success-soft: #e8f8ef;
  --warning: #b96a06;
  --warning-soft: #fff6df;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --shadow: 0 22px 58px rgba(24, 39, 75, 0.12);
  --shadow-small: 0 8px 24px rgba(24, 39, 75, 0.08);
  --radius: 20px;
  --font-heading: "Anton", Impact, "Arial Narrow", sans-serif;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
}

.account-panel { width: min(520px, calc(100% - 40px)); margin: 64px auto; padding: clamp(24px, 5vw, 42px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.account-symbol { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: var(--action); color: white; font-size: 24px; font-weight: 850; margin-bottom: 28px; }
.account-panel h1 { font-size: clamp(28px, 5vw, 36px); line-height: 1.15; letter-spacing: -.04em; }
.account-copy { color: var(--text-secondary); line-height: 1.65; font-size: 14px; }
.account-form { display: grid; gap: 22px; margin-block: 28px; }
.account-field { display: grid; gap: 8px; }
.account-field label { font-size: 14px; font-weight: 650; }
.account-field input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 9px; font: inherit; background: var(--surface); color: var(--text); }
.account-error, .account-form .errorlist { color: var(--danger); font-size: 14px; line-height: 1.5; }
.account-success { padding: 20px; border-radius: 12px; color: var(--success); background: var(--success-soft); line-height: 1.6; }
.account-form .primary-button { cursor: pointer; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--background); }
a { color: var(--action); }
a:hover { color: var(--action-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; padding: 10px 14px; border-radius: 10px; color: #fff; background: var(--action); }
.skip-link:focus { top: 16px; }

.site-header, .site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header { min-height: 76px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 850; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #2f61f3, #8b5cf6); box-shadow: 0 8px 20px rgba(47,97,243,.25); font-size: 13px; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-header nav a, .site-footer nav a { color: var(--text-secondary); font-size: 13px; font-weight: 700; text-decoration: none; }

.home-hero { min-height: calc(100vh - 200px); width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0 130px; text-align: center; }
.eyebrow { margin: 0 0 16px; color: var(--action); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.home-hero h1, .legal-heading h1 { margin: 0; font-size: clamp(42px, 7vw, 72px); line-height: 1.03; letter-spacing: -.055em; }
.hero-copy { max-width: 680px; margin: 24px auto 0; color: var(--text-secondary); font-size: 19px; line-height: 1.6; }
.subscription-card { width: min(430px, 100%); margin: 44px auto 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.primary-button { width: 100%; min-height: 50px; border: 0; border-radius: 13px; color: #fff; background: var(--action); font: inherit; font-weight: 850; }
.primary-button:disabled { cursor: not-allowed; opacity: .68; }
.price { margin: 18px 0 0; font-size: 24px; font-weight: 850; }
.price span { color: var(--text-secondary); font-size: 14px; font-weight: 650; }
.subscription-status { margin: 8px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.form-error { margin: 12px 0 0; color: #b42318; font-size: 13px; font-weight: 700; }
.text-button { display: inline-block; margin-top: 24px; font-weight: 800; }
.home-resources { width: min(820px, 100%); margin: 34px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; text-align: left; }
.resource-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; color: var(--text); background: rgba(255,255,255,.78); text-decoration: none; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.resource-card:hover { transform: translateY(-2px); border-color: var(--focus); color: var(--text); box-shadow: var(--shadow-small); }
.resource-card span:last-child { min-width: 0; display: grid; gap: 4px; }
.resource-card small { color: var(--text-secondary); font-size: 12px; line-height: 1.45; }
.resource-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--action); background: var(--surface-selected); font-size: 12px; font-weight: 900; }

.legal-shell { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 110px; }
.legal-heading { margin-bottom: 34px; }
.legal-heading h1 { max-width: 820px; font-size: clamp(38px, 6vw, 58px); }
.legal-updated { color: var(--text-secondary); font-size: 13px; }
.legal-card { padding: clamp(24px, 5vw, 54px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.legal-card h2 { margin: 42px 0 14px; font-size: 23px; letter-spacing: -.02em; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { margin: 28px 0 10px; font-size: 17px; }
.legal-card p, .legal-card li { color: #344058; font-size: 15px; line-height: 1.75; }
.legal-card li + li { margin-top: 7px; }
.legal-card .notice { padding: 16px 18px; border-left: 4px solid var(--action); border-radius: 0 12px 12px 0; background: var(--surface-muted); }
.legal-card address { font-style: normal; }
.site-footer { padding: 28px 0 38px; align-items: flex-start; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 12px; }
.site-footer p { margin: 5px 0 0; }

/* Public documentation and help */
.guide-page { background-image: radial-gradient(circle at 10% 0%, rgba(47,97,243,.08), transparent 28rem); }
.guide-hero { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 68px 0 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr); align-items: end; gap: 56px; }
.guide-hero h1 { max-width: 760px; margin: 0; font-size: clamp(40px, 6vw, 66px); line-height: 1.02; letter-spacing: -.052em; }
.guide-hero-copy > p:not(.eyebrow, .guide-reviewed) { max-width: 700px; margin: 20px 0 0; color: var(--text-secondary); font-size: 18px; line-height: 1.65; }
.guide-reviewed { margin: 14px 0 0; color: var(--text-tertiary); font-size: 12px; }
.guide-search { position: relative; z-index: 4; }
.guide-search > label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 12px; font-weight: 800; }
.guide-search-control { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-small); }
.guide-search-control > span { color: var(--text-tertiary); font-size: 24px; line-height: 1; }
.guide-search-control input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; }
.guide-search-control input::placeholder { color: var(--text-tertiary); }
.guide-search-control kbd { padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-tertiary); background: var(--background); font: 700 10px/1 ui-monospace, monospace; }
.guide-search-hint { margin: 7px 2px 0; color: var(--text-tertiary); font-size: 11px; }
.guide-search-results { display: none; position: absolute; top: calc(100% - 14px); left: 0; right: 0; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.guide-search-results.is-open { display: grid; }
.guide-search-results a { padding: 11px 12px; border-radius: 9px; color: var(--text); font-size: 13px; font-weight: 750; text-decoration: none; }
.guide-search-results a:hover, .guide-search-results a:focus-visible { color: var(--action); background: var(--surface-selected); }
.guide-search-empty { margin: 0; padding: 14px 12px; color: var(--text-secondary); font-size: 13px; }
.guide-switcher { width: min(1180px, calc(100% - 40px)); margin: 18px auto 0; display: flex; gap: 6px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.guide-switcher a { padding: 9px 13px; border-radius: 10px; color: var(--text-secondary); font-size: 13px; font-weight: 800; text-decoration: none; }
.guide-switcher a:hover { color: var(--text); background: var(--surface-muted); }
.guide-switcher a[aria-current="page"] { color: var(--action); background: var(--surface-selected); }
.guide-layout { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 110px; display: grid; grid-template-columns: 230px minmax(0, 820px); justify-content: space-between; align-items: start; gap: 54px; }
.guide-sidebar { position: sticky; top: 22px; }
.guide-sidebar details { border: 1px solid var(--border); border-radius: 15px; background: rgba(255,255,255,.82); overflow: hidden; }
.guide-sidebar summary { padding: 13px 15px; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 850; }
.guide-sidebar nav { display: grid; padding: 0 7px 9px; }
.guide-sidebar a { padding: 9px 10px; border-radius: 8px; color: var(--text-secondary); font-size: 12px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.guide-sidebar a:hover, .guide-sidebar a.is-active { color: var(--action); background: var(--surface-selected); }
.guide-content { min-width: 0; }
.guide-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.guide-related a { display: grid; gap: 4px; padding: 18px 20px; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-small); }
.guide-related a:last-child { text-align: right; }
.guide-related a:hover { color: var(--action); border-color: var(--action); }
.guide-related span { color: var(--text-tertiary); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.guide-section { scroll-margin-top: 24px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small); }
.guide-section + .guide-section { margin-top: 22px; }
.section-kicker { margin: 0 0 8px; color: var(--action); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.guide-section h2 { margin: 0 0 18px; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -.035em; }
.guide-section h3 { margin: 30px 0 10px; font-size: 18px; letter-spacing: -.015em; }
.guide-section p, .guide-section li, .guide-section dd { color: #344058; font-size: 15px; line-height: 1.75; }
.guide-section p { margin: 0 0 16px; }
.guide-section ul, .guide-section ol { padding-left: 22px; }
.guide-section li + li { margin-top: 8px; }
.guide-section code { padding: 2px 5px; border-radius: 5px; color: #2448ad; background: var(--surface-muted); font: 650 .9em/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.callout { margin: 22px 0; padding: 17px 19px; border: 1px solid var(--border); border-left-width: 4px; border-radius: 12px; background: var(--surface-muted); }
.callout strong { display: block; font-size: 14px; }
.callout p { margin: 5px 0 0; font-size: 13px; }
.callout-info { border-left-color: var(--action); }
.callout-warning { border-left-color: var(--warning); background: var(--warning-soft); }
.callout-danger { border-left-color: var(--danger); background: var(--danger-soft); }
.callout-neutral { border-left-color: var(--border-strong); }
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--success); background: var(--success-soft); font-size: 11px; font-weight: 900; }
.step-list { list-style: none; padding: 0 !important; counter-reset: guide-step; }
.step-list li { position: relative; min-height: 44px; padding-left: 54px; counter-increment: guide-step; }
.step-list li::before { content: counter(guide-step); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--action); background: var(--surface-selected); font-size: 13px; font-weight: 900; }
.step-list strong, .step-list span { display: block; }
.step-list span { margin-top: 2px; color: var(--text-secondary); }
.code-block { margin: 18px 0 24px; padding: 20px; max-width: 100%; overflow: auto; border: 1px solid #263553; border-radius: 14px; color: #e6edff; background: #172033; box-shadow: var(--shadow-small); }
.code-block code { padding: 0; color: inherit; background: transparent; font-size: 13px; }
.definition-list { display: grid; gap: 9px; margin: 18px 0; }
.definition-list > div { padding: 15px 17px; border: 1px solid var(--border); border-radius: 12px; background: var(--background); }
.definition-list dt { margin-bottom: 4px; color: var(--text); font-size: 13px; font-weight: 850; }
.definition-list dd { margin: 0; font-size: 13px; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.guide-section table { width: 100%; min-width: 660px; border-collapse: collapse; }
.guide-section th, .guide-section td { padding: 13px 15px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; font-size: 13px; line-height: 1.5; }
.guide-section th { color: var(--text-secondary); background: var(--background); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.guide-section tr:last-child td { border-bottom: 0; }
.troubleshooting-grid, .feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.troubleshooting-grid article, .feature-grid article { padding: 17px; border: 1px solid var(--border); border-radius: 13px; background: var(--background); }
.troubleshooting-grid h3, .feature-grid h3 { margin: 0 0 7px; font-size: 14px; }
.troubleshooting-grid p, .feature-grid p { margin: 0; font-size: 13px; }
.guide-next { margin-top: 30px !important; padding-top: 22px; border-top: 1px solid var(--border); font-weight: 700; }

@media (max-width: 700px) {
  .site-header, .site-footer, .home-hero, .legal-shell { width: calc(100% - 28px); }
  .site-header nav { display: none; }
  .home-hero { padding: 72px 0 90px; text-align: left; }
  .hero-copy { margin-left: 0; }
  .subscription-card { margin-left: 0; text-align: center; }
  .home-resources { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .guide-hero, .guide-switcher, .guide-layout { width: calc(100% - 28px); }
  .guide-hero { padding-top: 48px; grid-template-columns: 1fr; gap: 28px; }
  .guide-search-control kbd { display: none; }
  .guide-layout { padding-top: 22px; grid-template-columns: 1fr; gap: 18px; }
  .guide-sidebar { position: static; }
  .guide-sidebar details:not([open]) nav { display: none; }
  .guide-section { padding: 23px 19px; border-radius: 16px; }
  .troubleshooting-grid, .feature-grid { grid-template-columns: 1fr; }
  .guide-related { grid-template-columns: 1fr; }
  .guide-related a:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
