.subpage-body { background: radial-gradient(circle at 88% 4%, rgba(116, 205, 224, .07), transparent 32%), var(--bg); }
.has-scroll-reveal .scroll-reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.has-scroll-reveal .scroll-reveal:not(.is-visible) { opacity: 0; transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 32px), 0); }
.has-scroll-reveal .scroll-reveal:focus-within { opacity: 1; transform: none; }
.scroll-reveal[data-reveal-from="left"] { --reveal-x: -42px; --reveal-y: 0; }
.scroll-reveal[data-reveal-from="right"] { --reveal-x: 42px; --reveal-y: 0; }
.site-page { min-height: 100vh; }
.page-content { max-width: 1250px; }
.page-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 30px 60px; align-items: end; margin-bottom: 34px; }
.page-intro > p { max-width: 530px; margin: 0 0 4px; color: var(--muted-strong); font-size: 1rem; }
.account-page-intro { grid-template-columns: minmax(0, 680px); gap: 18px; align-items: start; }
.account-page-intro > p { max-width: 620px; margin: 0; }
.page-kicker { margin: 0 0 6px; color: var(--mint); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.text-page-button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 2px; border: 0; background: transparent; color: var(--cyan); font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }

.account-menu-backdrop { position: fixed; z-index: 110; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0, 0, 0, .58); backdrop-filter: blur(3px); }
.account-menu { position: fixed; z-index: 120; left: max(16px, calc(var(--sidebar) - 8px)); bottom: 18px; width: min(360px, calc(100vw - 32px)); padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel-raised); box-shadow: 0 24px 90px rgba(0, 0, 0, .55); }
.account-menu-header { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.account-menu-kicker { margin: 0 0 4px; color: var(--mint); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.account-menu h2 { margin: 0; font-size: 1.25rem; }
.account-menu-email { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: .78rem; }
.account-menu-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: transparent; font-size: 1.35rem; }
.account-menu-actions { display: grid; gap: 4px; padding-top: 10px; }
.account-menu-actions a, .account-menu-actions button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 54px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); text-align: left; text-decoration: none; }
.account-menu-actions a:hover, .account-menu-actions button:hover { background: var(--panel-soft); }
.account-menu-actions strong, .account-menu-actions small { display: block; }
.account-menu-actions small { color: var(--muted); }
.account-menu-signout { width: 100%; }

.auth-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(260px, 360px); gap: 20px; align-items: start; }
.auth-card, .account-card, .plan-card, .manage-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(18, 32, 35, .97), rgba(10, 20, 22, .97)); }
.auth-card { padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 28px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-deep); }
.auth-tab { min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 750; }
.auth-tab.active { background: var(--panel-soft); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.auth-card h2, .account-card h2, .plan-card h2, .manage-card h2 { margin: 0; font-size: 1.55rem; line-height: 1.2; }
.auth-card-intro { margin: 7px 0 22px; color: var(--muted); }
.auth-provider-options { display: grid; gap: 12px; }
.auth-provider-button { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--panel); text-align: left; font-weight: 750; }
.auth-provider-button:hover { border-color: var(--cyan); background: var(--panel-soft); }
.auth-provider-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: rgba(116, 205, 224, .1); color: var(--cyan); font-size: .76rem; }
.auth-provider-arrow { color: var(--muted); }
.auth-sso-disclosure { border: 1px solid var(--line); border-radius: 10px; background: rgba(4, 9, 10, .25); }
.auth-sso-disclosure > summary { min-height: 44px; padding: 10px 12px; cursor: pointer; color: var(--muted-strong); font-weight: 750; }
.auth-sso-block { display: grid; gap: 7px; padding: 0 12px 12px; }
.auth-sso-label { color: var(--muted-strong); font-size: .78rem; font-weight: 750; }
.auth-sso-row { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 8px; }
.auth-provider-button-sso { grid-template-columns: 28px minmax(0, 1fr); }
.auth-sso-hint { margin: 0; color: var(--muted); font-size: .7rem; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .7rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-form, .password-form { display: grid; gap: 14px; }
.auth-form label, .password-form label { display: grid; gap: 6px; color: var(--muted-strong); font-size: .8rem; font-weight: 750; }
.password-hint { margin: -5px 0 0; color: var(--muted); font-size: .72rem; font-weight: 500; }
.terms-check { grid-template-columns: 20px minmax(0, 1fr); align-items: start; }
.terms-check input { width: 20px; min-height: 20px; margin-top: 2px; accent-color: var(--accent); }
.auth-message { min-height: 24px; margin: 14px 0 0; color: var(--muted); font-size: .82rem; }
.auth-message.error { color: var(--danger); }
.auth-message.success { color: var(--success); }
.auth-footer-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 10px; }
.account-card { display: flex; min-height: 360px; padding: 24px; flex-direction: column; justify-content: space-between; }
.account-avatar-large { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border-radius: 14px; background: rgba(112, 216, 189, .1); color: var(--mint); font-weight: 900; }
.account-card p { color: var(--muted); }
.account-detail-list { display: grid; gap: 1px; margin: 20px 0; }
.account-detail-list div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.account-detail-list dt { color: var(--muted); }
.account-detail-list dd { margin: 0; text-align: right; }
.account-danger-zone { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 112, 64, .35); }
.account-danger-zone h3 { margin: 0 0 6px; color: var(--text); font-size: .95rem; }
.account-danger-zone p { margin: 0 0 12px; font-size: .76rem; line-height: 1.5; }
.account-delete-button { min-height: 42px; padding: 8px 14px; border: 1px solid rgba(255, 112, 64, .65); border-radius: 9px; background: transparent; color: var(--accent); font-weight: 800; }
.account-delete-button:hover { background: rgba(255, 112, 64, .1); }
.account-delete-button:disabled { cursor: wait; opacity: .6; }
.account-action-message { min-height: 20px; margin-top: 10px !important; }
.account-action-message.error { color: var(--danger); }
.account-action-message.success { color: var(--success); }

.current-plan { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(13, 24, 26, .7); color: var(--muted-strong); font-size: .82rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan-card { position: relative; padding: clamp(22px, 4vw, 32px); }
.plan-card.featured { border-color: rgba(255, 138, 61, .55); box-shadow: inset 0 3px var(--accent); }
.plan-label { display: inline-flex; min-height: 28px; align-items: center; margin-bottom: 18px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--mint); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plan-card.featured .plan-label { border-color: rgba(255, 138, 61, .45); color: var(--accent); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 12px; }
.plan-price strong { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.05em; }
.plan-price span, .plan-card p, .plan-note { color: var(--muted); }
.plan-card .primary-page-button { width: 100%; margin-top: 16px; }
.plan-note { display: block; margin-top: 10px; font-size: .72rem; text-align: center; }
.billing-status { margin: 16px 0 0; padding: 13px; border: 1px solid var(--line); border-radius: 9px; }
.billing-status.error { color: var(--danger); }
.manage-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 18px; padding: 24px; }
.manage-card p { margin: 7px 0 0; color: var(--muted); }

.guide-intro { display: block; }
.guide-intro-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; }
.guide-intro-row p { max-width: 560px; margin: 0; color: var(--muted-strong); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.guide-steps { display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.guide-step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: clamp(22px, 4vw, 34px); }
.guide-step + .guide-step { border-top: 1px solid var(--line); }
.guide-step-number { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.2rem; font-weight: 850; }
.guide-step-label { margin: 0 0 6px; color: var(--mint); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guide-step h2 { margin: 0; font-size: 1.45rem; }
.guide-step-content > p:last-of-type { color: var(--muted); }
.guide-file-types { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.guide-file-types span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted-strong); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; }
.guide-file-types small { display: inline-flex; align-items: center; color: var(--muted); }
.guide-aside { position: sticky; top: 82px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(150deg, rgba(255, 138, 61, .1), var(--panel)); }
.guide-aside-kicker { color: var(--mint); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guide-aside-mark { color: var(--accent); font-size: 1.5rem; }
.guide-aside h2 { font-size: 1.55rem; line-height: 1.15; }
.guide-aside h2 em { color: var(--accent); font-style: normal; }
.guide-aside > p { color: var(--muted); }
.guide-aside-link { font-weight: 750; }

.runway-intro { display: block; }
.runway-intro > p:last-child { max-width: 760px; margin-top: 20px; }
.runway-safety-callout { margin-bottom: 18px; padding: 14px 16px; border: 1px solid rgba(244, 195, 106, .38); border-radius: 10px; background: rgba(244, 195, 106, .06); color: var(--muted-strong); }
.runway-safety-callout strong { color: var(--warning); }
.runway-stepper { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: rgba(13, 24, 26, .68); list-style: none; overflow: hidden; }
.runway-stepper li { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 10px 14px; color: var(--muted); font-size: .78rem; }
.runway-stepper li + li { border-left: 1px solid var(--line); }
.runway-stepper span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: .7rem; }
.runway-stepper li.active { color: var(--text); }
.runway-stepper li.active span { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.runway-stepper li.complete span { border-color: var(--success); color: var(--success); }
.runway-layout { display: grid; grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr); gap: 18px; align-items: start; }
.runway-detail-column { display: grid; min-width: 0; gap: 18px; align-content: start; }
.runway-form-card, .runway-result-card, .runway-preflight, .runway-source-notes { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.runway-form-card, .runway-result-card { padding: clamp(20px, 3vw, 28px); }
.runway-card-heading, .runway-candidates-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.runway-card-heading h2, .runway-candidates-heading h3, .runway-confirmation h3 { margin: 0; }
.runway-card-mark { color: var(--accent); font-size: 1.3rem; }
.runway-field { display: grid; gap: 5px; margin-top: 15px; color: var(--muted-strong); font-size: .78rem; font-weight: 750; }
.runway-field small { color: var(--muted); font-weight: 400; }
.runway-submit { width: 100%; margin-top: 20px; }
.runway-form-message { min-height: 22px; margin: 12px 0 0; color: var(--muted); font-size: .78rem; }
.runway-form-message.error { color: var(--danger); }
.runway-form-message.success { color: var(--success); }
.runway-confidence { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--mint); font-size: .72rem; font-weight: 800; }
.runway-suggestion { margin: 20px 0; padding: 18px; border: 1px solid rgba(112, 216, 189, .28); border-radius: 12px; background: rgba(112, 216, 189, .055); }
.runway-suggestion h3 { margin: 0; font-size: 1.4rem; }
.runway-suggestion p { margin: 5px 0 0; color: var(--muted); }
.runway-evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.runway-evidence-item { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(4, 9, 10, .3); }
.runway-evidence-item dt { color: var(--muted); font-size: .68rem; }
.runway-evidence-item dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: .82rem; font-weight: 750; }
.runway-warnings { display: grid; gap: 8px; margin: 14px 0; }
.runway-warning { padding: 10px; border-radius: 8px; background: rgba(244, 195, 106, .07); color: var(--warning); font-size: .76rem; }
.runway-candidates-heading { align-items: end; margin-top: 20px; }
.runway-table { min-width: 560px; margin-top: 10px; }
.runway-confirmation { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.runway-confirmation > p, .runway-confirmation > div > p:last-child { color: var(--muted); }
.runway-confirm-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; margin: 16px 0; color: var(--muted-strong); font-size: .8rem; }
.runway-confirm-check input { width: 20px; min-height: 20px; margin-top: 2px; accent-color: var(--accent); }
.runway-preflight { padding: 22px; }
.runway-preflight h2 { margin: 0 0 8px; font-size: 1.1rem; }
.runway-preflight ol { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.runway-preflight > p:last-child { color: var(--muted); font-size: .78rem; }
.runway-source-notes { margin-top: 18px; padding: 22px; }
.runway-source-notes > p:last-child { color: var(--muted); font-size: .78rem; }
.runway-history-card { min-width: 0; margin-top: 0; }
.runway-history-card .local-history-heading { gap: 16px; }
.runway-history-card .local-history-heading h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.runway-history-card .local-history-list { margin-top: 16px; }
.runway-history-card .local-history-empty { padding: 20px; }
.runway-history-card .local-history-entry { grid-template-columns: 1fr; gap: 6px; }

.legal-body { background: var(--bg); }
.legal-document { width: min(100%, 940px); margin: 0 auto; padding: 26px clamp(18px, 5vw, 54px) 32px; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal-brand { width: 130px; }
.legal-back { min-height: 44px; display: inline-flex; align-items: center; font-size: .82rem; font-weight: 750; }
.legal-article { padding: clamp(38px, 7vw, 74px) 0; }
.legal-section-kicker { margin: 0 0 9px; color: var(--mint); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-article h1 { margin: 0; font-size: clamp(2.7rem, 8vw, 5.4rem); line-height: .95; letter-spacing: -.055em; }
.legal-article h1 em { color: var(--accent); font-style: normal; }
.legal-lede { max-width: 720px; margin: 24px 0 42px; color: var(--muted-strong); font-size: 1.08rem; }
.legal-placeholder { margin: -20px 0 36px; padding: 14px 16px; border: 1px solid rgba(116, 205, 224, .28); border-radius: 10px; background: rgba(116, 205, 224, .05); }
.legal-section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 12px; font-size: 1.35rem; }
.legal-section p, .legal-section li { color: var(--muted-strong); }
.legal-section p { max-width: 780px; }
.legal-meta { color: var(--muted); font-size: .75rem; }
.legal-meta-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }

.specimen-shell { width: min(100%, 1180px); margin: 0 auto; padding: 40px 22px; }
.specimen-header, .specimen, .copy-matrix { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.specimen + .specimen, .copy-matrix { margin-top: 16px; }
.matrix-head, .copy-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.copy-row { padding: 12px 0; border-top: 1px solid var(--line); }

@media (max-width: 1080px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .runway-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .account-menu { left: auto; right: 16px; bottom: auto; top: 78px; }
  .auth-layout { grid-template-columns: 1fr; }
  .account-card { min-height: 280px; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-aside { position: static; }
}

@media (max-width: 720px) {
  .scroll-reveal[data-reveal-from="left"] { --reveal-x: -16px; }
  .scroll-reveal[data-reveal-from="right"] { --reveal-x: 16px; }
  .scroll-reveal[data-reveal-from="up"] { --reveal-y: 20px; }
  .page-intro { display: block; }
  .page-intro > p { margin-top: 18px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .manage-card { grid-template-columns: 1fr; }
  .guide-intro-row { align-items: stretch; flex-direction: column; }
  .guide-step { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 22px 18px; }
  .runway-intro { display: block; }
  .runway-evidence-grid { grid-template-columns: 1fr; }
  .runway-history-card .secondary-page-button { margin-top: 14px; }
  .legal-document { padding-top: 16px; }
  .legal-top { align-items: flex-start; }
  .legal-brand { width: 112px; }
  .matrix-head, .copy-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .has-scroll-reveal .scroll-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 520px) {
  .auth-card { padding: 20px 16px; }
  .auth-sso-row { grid-template-columns: 1fr; }
  .auth-provider-button-sso { grid-template-columns: 28px minmax(0, 1fr); }
  .auth-footer-actions { display: grid; }
  .account-menu { left: 12px; right: 12px; width: auto; }
  .legal-footer { flex-direction: column; }
  .runway-stepper li { display: grid; justify-items: center; gap: 5px; min-width: 0; padding: 8px 4px; font-size: .68rem; line-height: 1.15; text-align: center; }
}
