:root {
  --ink: #07140f;
  --night: #0b1b15;
  --night-2: #10271e;
  --paper: #f6f4ee;
  --white: #ffffff;
  --line: #cedbd4;
  --muted: #52635c;
  --green: #007b57;
  --green-dark: #005e43;
  --mint: #dff7ec;
  --amber: #fff0cc;
  --danger: #9d2d2d;
  --radius: 16px;
  --shadow: 0 14px 36px rgba(8, 28, 20, 0.1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 30; padding: 10px 14px; background: var(--white); }
.skip-link:focus { left: 12px; top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(11,27,21,.98); color: var(--white); }
.nav-inner, .inner { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.nav-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 20px; font-weight: 900; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { display:inline-flex; align-items:center; flex:0 0 auto; }
.brand-mark img { display:block; width:min(300px,42vw); height:auto; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: #93edc8; }
.page-head { padding: 74px 0 68px; background: var(--night); color: var(--white); }
.page-head.compact { padding: 52px 0; }
.eyebrow { margin: 0 0 12px; color: #70e4b6; font-size: 13px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.08; }
h1 { max-width: 850px; font-size: clamp(42px, 7vw, 74px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 25px; }
.lede { max-width: 790px; margin: 22px 0 0; color: #dce8e2; font-size: clamp(18px, 2.2vw, 23px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 17px; border: 1px solid #82958c; border-radius: 9px; background: transparent; color: inherit; font-weight: 850; text-decoration: none; cursor: pointer; }
.button.primary { border-color: var(--mint); background: var(--mint); color: var(--night); }
.button.green { border-color: var(--green); background: var(--green); color: var(--white); }
.button.secondary { background: var(--white); color: var(--ink); }
.button:hover, .button:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.preview-note { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 11px; border: 1px solid rgba(112,228,182,.5); border-radius: 999px; color: #bdf7df; font-size: 13px; font-weight: 800; }
.section { padding: 62px 0; }
.section.soft { background: #edf2ef; }
.section-copy { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.product-grid.three-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.product-card > header { padding: 25px; border-bottom: 1px solid var(--line); }
.product-card .price { margin-top: 10px; font-size: 18px; font-weight: 900; }
.state { display: inline-block; margin-bottom: 12px; padding: 5px 9px; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.state.locked { background: var(--amber); color: #76520c; }
.paths { display: grid; gap: 0; height: 100%; }
.path { padding: 24px; }
.path + .path { border-top: 1px solid var(--line); background: #fbfcfb; }
.path-label { margin: 0 0 8px; color: var(--green-dark); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.path p { margin: 10px 0 0; color: var(--muted); }
.path .button { width: 100%; margin-top: 18px; }
.chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 30px; }
.chain-step { min-height: 125px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.chain-step strong { display: block; margin-bottom: 8px; font-size: 18px; }
.chain-arrow { color: var(--green); font-size: 28px; font-weight: 900; }
.quick-choices { display:grid; gap:0; margin-top:28px; border:1px solid var(--line); border-radius:14px; background:var(--white); overflow:hidden; }
.quick-choices a { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:center; padding:18px 22px; text-decoration:none; }
.quick-choices a + a { border-top:1px solid var(--line); }
.quick-choices a:hover, .quick-choices a:focus-visible { background:var(--mint); }
.quick-choices strong { color:var(--green-dark); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.fact { padding: 22px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { display: block; font-size: 18px; }
.fact span { color: var(--muted); font-size: 14px; }
.choice-panel { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; margin-top: 30px; }
.choice { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.choice.primary-choice { border: 2px solid var(--green); }
.choice ul { padding-left: 20px; color: var(--muted); }
.notice { margin-top: 22px; padding: 18px 20px; border-left: 5px solid #d79716; border-radius: 8px; background: var(--amber); }
.page-footer { padding: 34px 0; background: var(--night); color: #cddbd4; font-size: 14px; }
.page-footer a { color: #8de7c3; }
.portal-shell { min-height: calc(100vh - 64px); padding: 34px 0 60px; background: #edf2ef; }
.portal-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 24px; }
.sidebar, .workspace { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.sidebar { padding: 22px; }
.sidebar a { display: block; padding: 11px 12px; border-radius: 8px; text-decoration: none; font-weight: 760; }
.sidebar a.active { background: var(--mint); color: var(--green-dark); }
.workspace { padding: 28px; }
.workspace h1 { font-size: clamp(32px, 5vw, 52px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 800; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #9eb0a7; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
textarea { min-height: 120px; resize: vertical; }
input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--green); }
.muted { color: var(--muted); }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.status-pill { padding: 5px 9px; border-radius: 999px; background: #edf2ef; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.status-pill.green { background: var(--mint); color: var(--green-dark); }
.local-note { color: var(--green-dark); border-color: #8bcdb4; background: var(--mint); }
.side-link { display: block; width: 100%; margin: 3px 0; padding: 11px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-weight: 760; text-align: left; cursor: pointer; }
.side-link:hover, .side-link:focus-visible, .side-link.active { background: var(--mint); color: var(--green-dark); }
.side-link:disabled { opacity: .45; cursor: not-allowed; }
.provider-box { display: grid; gap: 5px; margin-top: 24px; padding: 14px; border: 1px solid #e6c477; border-radius: 10px; background: var(--amber); font-size: 13px; }
.provider-box span { color: #6c5526; }
.success-banner { display:flex; align-items:center; gap:14px; margin-bottom:26px; padding:17px 19px; border:1px solid #8bcdb4; border-radius:12px; background:var(--mint); color:var(--green-dark); }
.success-banner > span { display:grid; width:38px; height:38px; place-items:center; border-radius:50%; background:var(--green); color:var(--white); font-size:22px; font-weight:900; }
.success-banner strong { font-size:18px; }
.success-banner p { margin:2px 0 0; }
.welcome-products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:28px; }
.welcome-product { display:flex; flex-direction:column; padding:22px; border:1px solid var(--line); border-radius:14px; background:var(--white); }
.welcome-product.recommended { border:2px solid var(--green); }
.welcome-product h2 { font-size:26px; }
.welcome-product p { flex:1; color:var(--muted); }
.welcome-product .button { width:100%; margin-top:18px; }
.welcome-price { display:block; margin-top:14px; }
.purchase-context { display:flex; justify-content:space-between; gap:16px; margin-bottom:22px; padding:15px 18px; border-left:5px solid var(--green); border-radius:9px; background:var(--mint); color:var(--green-dark); }
.app-notice { margin: 0 0 22px; padding: 14px 16px; border: 1px solid #8bcdb4; border-radius: 10px; background: var(--mint); color: var(--green-dark); font-weight: 800; }
.app-notice.error { border-color: #d9a3a3; background: #fff0f0; color: var(--danger); }
.auth-grid, .dashboard-grid, .upload-layout { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 28px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.panel h2 { margin-bottom: 18px; font-size: 25px; }
.panel .field + .field { margin-top: 15px; }
.panel .button { margin-top: 20px; }
.panel small { color: var(--muted); }
.view-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 28px 0; }
.journey-step { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 9px; min-height: 70px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf9; color: var(--muted); text-align: left; cursor: pointer; }
.journey-step span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #dfe6e2; font-weight: 900; }
.journey-step.complete { border-color: #8bcdb4; background: var(--mint); color: var(--green-dark); }
.journey-step.complete span { background: var(--green); color: var(--white); }
.form-panel { margin-top: 26px; }
.drop-zone { display: grid; min-height: 180px; place-items: center; align-content: center; gap: 8px; padding: 28px; border: 2px dashed #82ac99; border-radius: 12px; background: #f6fbf8; text-align: center; cursor: pointer; }
.drop-zone span { color: var(--muted); font-size: 14px; }
.drop-zone input { width: auto; margin-top: 10px; border: 0; background: transparent; }
.upload-panel .button, .sample-panel .button { width: 100%; }
.sample-panel { align-self: stretch; }
.sample-panel p { color: var(--muted); }
.text-link { display: block; margin-top: 14px; color: var(--green-dark); font-weight: 800; text-align: center; }
.text-button { display: block; margin: 15px auto 0; padding: 4px; border: 0; background: transparent; color: var(--green-dark); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.reset-panel { max-width: 620px; margin: 22px auto 0; }
.reset-panel p:not(.eyebrow) { color: var(--muted); }
.reset-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.orders-list { display: grid; gap: 22px; margin-top: 28px; }
.order-card { border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 8px 24px rgba(8,28,20,.08); overflow: hidden; }
.order-card > header { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 24px; background: var(--night); color: var(--white); }
.order-card > header h2 { font-size: 24px; }
.order-facts { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.order-facts > div { display: grid; gap: 2px; padding: 16px 18px; }
.order-facts > div + div { border-left: 1px solid var(--line); }
.order-facts small { color: var(--muted); }
.legal-box, .next-action, .delivery-box, .unlock-box, .aftercare-box { padding: 20px 24px; }
.legal-box h3, .delivery-box h3, .unlock-box h3 { margin: 0 0 12px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin: 8px 0; font-weight: 600; }
.check-row input { flex: 0 0 auto; margin-top: 3px; }
.check-row a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.legal-version-note { max-width: 760px; margin: 14px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.next-action, .delivery-box { background: #f8faf9; }
.delivery-box p { overflow-wrap: anywhere; color: var(--muted); font-size: 14px; }
.fiscal-note { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.access-note { margin-top: 14px; font-weight: 750; }
.access-note.expired { color: var(--danger); }
.unlock-box { border-top: 1px solid var(--line); background: var(--amber); }
.unlock-box.available { background: var(--mint); }
.aftercare-box { display:flex; flex-wrap:wrap; align-items:center; gap:12px; border-top:1px solid var(--line); }
.aftercare-box h3 { width:100%; margin:0; }
.aftercare-box .button { margin:0; }
.request-state { flex-basis:100%; margin:0; color:var(--muted); }
.request-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:28px; }
.request-history { margin-top:30px; }
.request-history > h2 { margin-bottom:16px; font-size:28px; }
#request-history-list { display:grid; gap:10px; }
.request-item { padding:16px 18px; border:1px solid var(--line); border-radius:11px; background:#f8faf9; }
.request-item > div { display:flex; justify-content:space-between; gap:14px; align-items:center; }
.request-item p { margin:8px 0 3px; color:var(--muted); }
.request-item small { color:var(--muted); }
.empty-state { padding: 38px; border: 1px dashed #9eb0a7; border-radius: 14px; text-align: center; }
.empty-state p { color: var(--muted); }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .product-grid, .product-grid.three-products, .choice-panel, .portal-layout { grid-template-columns: 1fr; }
  .welcome-products, .request-grid { grid-template-columns:1fr; }
  .chain { grid-template-columns: 1fr; }
  .chain-arrow { transform: rotate(90deg); text-align: center; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(4) { border-top: 1px solid var(--line); }
  .journey { grid-template-columns: 1fr; }
  .order-facts { grid-template-columns: repeat(2, 1fr); }
  .order-facts > div { border-bottom: 1px solid var(--line); }
  .order-facts > div + div { border-left: 0; }
  .order-facts > div:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .nav-inner, .inner { width: min(100% - 24px, 1160px); }
  .page-head { padding: 48px 0; }
  .section { padding: 44px 0; }
  .facts, .form-grid, .auth-grid, .dashboard-grid, .upload-layout { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .actions .button { width: 100%; }
  .quick-choices a { grid-template-columns:1fr; gap:4px; }
  .workspace { padding: 20px; }
  .order-card > header, .view-heading { align-items: flex-start; flex-direction: column; }
  .purchase-context { align-items:flex-start; flex-direction:column; }
  .order-facts { grid-template-columns: 1fr; }
  .order-facts > div:nth-child(even) { border-left: 0; }
}
