*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  /* 七號家辦統一品牌色（與 A1／A2 一致） */
  --navy:#0d2240;--navy-mid:#1a3a5c;--navy-light:#2a5082;
  --gold:#c8a84b;--gold-light:#e0c97a;--gold-pale:#f5ead0;
  --gray-50:#f7f8fa;--gray-100:#f1f3f5;--gray-200:#e9ecef;--gray-300:#d1d5db;
  --gray-400:#ced4da;--gray-500:#adb5bd;--gray-600:#6b7280;--gray-700:#495057;
  --gray-800:#343a40;--gray-900:#212529;
  --red:#c0392b;--red-bg:#fdecea;--yellow:#d97706;--yellow-bg:#fef3c7;
  --green:#166534;--green-bg:#d1fae5;--white:#ffffff;
  /* 共用別名 */
  --gray-dark:#3a3a3a;--gray-mid:#6b7280;--gray-light:#d1d5db;--gray-bg:#f7f8fa;
  --red-light:#fdecea;--yellow-light:#fef3c7;--green-light:#d1fae5;
  --shadow-sm:0 1px 3px rgba(0,0,0,.08);--shadow-md:0 4px 12px rgba(0,0,0,.1);--shadow-lg:0 8px 24px rgba(0,0,0,.12);
  --radius:8px;--radius-sm:6px;--radius-md:10px;--radius-lg:12px;
  --font-heading:'Georgia','Noto Serif TC',serif;
  --font-body:'Helvetica Neue','PingFang TC','Microsoft JhengHei',sans-serif;
}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:'PingFang TC','Noto Sans TC','Microsoft JhengHei',sans-serif;background:var(--gray-50);color:var(--gray-900);line-height:1.6;min-height:100vh}
.app-container{max-width:780px;margin:0 auto;padding:0 16px 80px}
.page{display:none;padding-top:24px}
.page.active{display:block}
/* COVER */
.cover-hero{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-mid) 60%,#1e4d7a 100%);border-radius:var(--radius-lg);padding:40px 32px 36px;margin-top:8px;position:relative;overflow:hidden}
.cover-hero::before{content:'';position:absolute;top:-60px;right:-60px;width:200px;height:200px;background:radial-gradient(circle,rgba(201,168,76,.15) 0%,transparent 70%);border-radius:50%}
.cover-logo-wrap{margin-bottom:20px}
.cover-logo-img{height:56px;width:auto;display:block}
.cover-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(201,168,76,.15);border:1px solid rgba(201,168,76,.4);border-radius:20px;padding:4px 14px;font-size:11px;color:var(--gold-light);letter-spacing:.06em;margin-bottom:16px}
.cover-main-title{font-size:28px;font-weight:700;color:var(--white);line-height:1.3;margin-bottom:8px}
.cover-gold{color:var(--gold)}
.cover-subtitle{font-size:15px;color:rgba(255,255,255,.7);margin-bottom:24px;line-height:1.7}
.cover-features{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:28px}
.cover-feature{display:flex;align-items:center;gap:8px;font-size:13px;color:rgba(255,255,255,.8)}
.feature-dot{width:6px;height:6px;background:var(--gold);border-radius:50%;flex-shrink:0}
.cover-disclaimer{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-sm);padding:14px 16px;font-size:12px;color:rgba(255,255,255,.55);line-height:1.7;margin-bottom:28px}
.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--gold);color:var(--navy);border:none;border-radius:var(--radius-md);padding:14px 32px;font-size:15px;font-weight:700;cursor:pointer;transition:all .2s;letter-spacing:.03em;font-family:inherit}
.btn-primary:hover{background:var(--gold-light);transform:translateY(-1px);box-shadow:var(--shadow-md)}
/* SECTION */
.section-header{margin-bottom:20px;padding-top:4px}
.section-step{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;background:var(--navy);color:var(--white);border-radius:50%;font-size:12px;font-weight:700;margin-bottom:8px}
.section-title{font-size:20px;font-weight:700;color:var(--navy);margin-bottom:4px}
.section-desc{font-size:13px;color:var(--gray-600);line-height:1.6}
/* CARDS */
.card{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius-md);padding:20px;margin-bottom:16px;box-shadow:var(--shadow-sm)}
.card-title{font-family:var(--font-heading);font-size:18px;color:var(--navy);font-weight:bold;margin-bottom:6px;display:flex;align-items:center;gap:8px;padding-bottom:0;border-bottom:none;letter-spacing:normal;text-transform:none}
.card-title .icon{width:28px;height:28px;background:var(--navy);color:var(--gold-light);border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.card-subtitle{font-size:12px;color:var(--gray-600);margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--gray-100)}
/* FORM */
.field{margin-bottom:14px}
.field:last-child{margin-bottom:0}
.field-label{display:block;font-size:13px;font-weight:500;color:var(--gray-800);margin-bottom:5px}
.field-hint{font-size:11px;color:var(--gray-500);margin-top:3px}
.field-required{color:var(--red);margin-left:2px}
input[type=text],input[type=number],select{width:100%;padding:9px 12px;border:1px solid var(--gray-300);border-radius:var(--radius-sm);font-size:14px;color:var(--gray-900);background:var(--white);transition:border-color .15s;font-family:inherit;appearance:none;-webkit-appearance:none}
input:focus,select:focus{outline:none;border-color:var(--navy-light);box-shadow:0 0 0 3px rgba(44,82,130,.1)}
input[type=number]{text-align:right}
select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px}
.input-group{display:flex;align-items:center;gap:6px}
.input-group input{flex:1}
.input-unit{font-size:13px;color:var(--gray-500);white-space:nowrap;flex-shrink:0}
.radio-group,.checkbox-group{display:flex;flex-wrap:wrap;gap:8px}
.radio-opt,.checkbox-opt{display:flex;align-items:center;gap:6px;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius-sm);padding:7px 12px;font-size:13px;color:var(--gray-700);cursor:pointer;transition:all .15s;user-select:none}
.radio-opt:hover,.checkbox-opt:hover{border-color:var(--navy-light);background:#F7F5EE}
.radio-opt input,.checkbox-opt input{accent-color:var(--navy)}
.radio-opt.selected,.checkbox-opt.selected{border-color:var(--navy);background:#F7F5EE;color:var(--navy);font-weight:500}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
/* COMPUTED */
.computed-row{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;background:var(--gray-50);border-radius:var(--radius-sm);margin-bottom:6px;font-size:13px}
.computed-label{color:var(--gray-600)}
.computed-value{font-weight:600;color:var(--navy)}
.computed-value.warn{color:var(--yellow)}
.computed-value.danger{color:var(--red)}
.computed-value.good{color:var(--green)}
.computed-value.na{color:var(--gray-400);font-style:italic;font-weight:400}
.calc-panel{background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius-sm);padding:14px;margin-top:12px}
.calc-panel-title{font-size:11px;font-weight:600;color:var(--gray-500);letter-spacing:.06em;text-transform:uppercase;margin-bottom:10px}
/* NAV */
.nav-bar{display:flex;align-items:center;justify-content:space-between;margin-top:28px;padding-top:20px;border-top:1px solid var(--gray-200);gap:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 24px;border-radius:var(--radius-sm);font-size:14px;font-weight:600;cursor:pointer;border:none;transition:all .2s;font-family:inherit}
.btn-primary{background:var(--navy);color:var(--white);border:none}
.btn-primary:hover{background:var(--navy-mid)}
.btn-secondary{background:var(--white);color:var(--navy);border:1px solid var(--navy)}
.btn-secondary:hover{background:var(--gray-100)}
/* RESULT */
.result-hero{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-mid) 100%);border-radius:var(--radius-lg);padding:28px 24px;margin-bottom:20px;text-align:center}
.result-hero-logo{height:32px;width:auto;display:block;margin:0 auto 16px}
.result-hero-title{font-size:13px;color:rgba(255,255,255,.6);letter-spacing:.06em;margin-bottom:12px}
.score-ring{width:100px;height:100px;border-radius:50%;background:conic-gradient(var(--gold) 0%,var(--gold) var(--pct,60%),rgba(255,255,255,.1) var(--pct,60%));display:flex;align-items:center;justify-content:center;margin:0 auto 12px;position:relative}
.score-ring::before{content:'';position:absolute;width:76px;height:76px;background:var(--navy);border-radius:50%}
.score-number{position:relative;z-index:1;font-size:26px;font-weight:700;color:var(--gold)}
.score-label{font-size:15px;color:var(--white);font-weight:600;margin-bottom:6px}
.score-explain{font-size:12px;color:rgba(255,255,255,.6);margin-top:4px;line-height:1.5}
.score-bands{display:flex;justify-content:center;gap:6px;margin-top:12px;flex-wrap:wrap}
.score-band{font-size:11px;padding:3px 10px;border-radius:12px;border:1px solid rgba(255,255,255,.15);color:rgba(255,255,255,.6)}
.score-band.active-band{background:rgba(201,168,76,.25);border-color:var(--gold);color:var(--gold-light);font-weight:600}
.wpm-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}
.wpm-card{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius-md);padding:16px;box-shadow:var(--shadow-sm)}
.wpm-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.wpm-card-icon{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.icon-flow{background:#e8f4ff}.icon-invest{background:#fff8e8}.icon-risk{background:#fff0f0}.icon-inherit{background:#f0fff4}
.wpm-card-name{font-size:12px;font-weight:700;color:var(--navy)}
.wpm-card-sub{font-size:11px;color:var(--gray-500)}
.traffic-light{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:20px;font-size:12px;font-weight:600}
.light-red{background:var(--red-bg);color:var(--red)}
.light-yellow{background:var(--yellow-bg);color:var(--yellow)}
.light-green{background:var(--green-bg);color:var(--green)}
.light-na{background:var(--gray-100);color:var(--gray-500)}
.light-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.light-red .light-dot{background:var(--red)}.light-yellow .light-dot{background:var(--yellow)}.light-green .light-dot{background:var(--green)}.light-na .light-dot{background:var(--gray-400)}
.wpm-gap{margin-top:6px;padding:7px 10px;background:var(--gray-50);border-radius:var(--radius-sm);font-size:12px}
.gap-label{color:var(--gray-500)}.gap-value{font-weight:600}
.risk-list{list-style:none}
.risk-item{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;margin-bottom:8px;border-radius:var(--radius-sm);font-size:13px;line-height:1.5}
.risk-item.red{background:var(--red-bg);border-left:3px solid var(--red)}
.risk-item.yellow{background:var(--yellow-bg);border-left:3px solid var(--yellow)}
.risk-icon{flex-shrink:0;margin-top:1px;display:flex;align-items:center}
.risk-text strong{display:block;font-size:13px;color:var(--gray-900);margin-bottom:2px}
.risk-text span{font-size:12px;color:var(--gray-600)}
/* FREE VERSION BOUNDARY */
.free-boundary{background:var(--gold-pale);border:1px solid rgba(201,168,76,.4);border-radius:var(--radius-md);padding:16px 20px;margin-bottom:20px}
.free-boundary-title{font-size:13px;font-weight:700;color:#7a5a10;margin-bottom:6px}
.free-boundary-text{font-size:12px;color:#8a6820;line-height:1.7}
/* CTA */
.cta-card{background:linear-gradient(135deg,var(--navy) 0%,#1a3d6b 100%);border-radius:var(--radius-lg);padding:28px 24px;margin-bottom:20px;text-align:center}
.cta-label{font-size:11px;color:var(--gold-light);letter-spacing:.1em;margin-bottom:8px}
.cta-title{font-size:20px;font-weight:700;color:var(--white);margin-bottom:12px}
.cta-desc{font-size:13px;color:rgba(255,255,255,.8);line-height:1.8;margin-bottom:24px;text-align:left;background:rgba(255,255,255,.06);border-radius:var(--radius-sm);padding:14px 16px}
.cta-desc strong{color:var(--gold-light);display:block;margin-bottom:6px;font-size:14px}
.btn-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--gold);color:var(--navy);border:none;border-radius:var(--radius-md);padding:13px 32px;font-size:14px;font-weight:700;cursor:pointer;letter-spacing:.03em;font-family:inherit;transition:all .2s}
.btn-cta:hover{background:var(--gold-light);transform:translateY(-1px)}
.disclaimer-card{background:var(--gray-100);border:1px solid var(--gray-200);border-radius:var(--radius-sm);padding:14px 16px;font-size:11px;color:var(--gray-500);line-height:1.7;margin-bottom:16px}
.action-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}
.btn-action{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border-radius:var(--radius-sm);font-size:13px;font-weight:600;cursor:pointer;border:1px solid var(--gray-300);background:var(--white);color:var(--gray-700);font-family:inherit;transition:all .2s}
.btn-action:hover{background:var(--gray-100)}
.btn-action.primary-action{background:var(--navy);color:var(--white);border-color:var(--navy)}
.btn-action.primary-action:hover{background:var(--navy-mid)}
.tax-result-highlight{background:var(--navy);border-radius:var(--radius-sm);padding:16px;margin-top:12px;text-align:center}
.tax-amount{font-size:24px;font-weight:700;color:var(--gold)}
.tax-label{font-size:12px;color:rgba(255,255,255,.6);margin-top:2px}
.result-section-title{font-size:14px;font-weight:700;color:var(--navy);letter-spacing:.03em;display:flex;align-items:center;gap:8px;margin-bottom:12px}
.result-section-title::before{content:'';width:3px;height:16px;background:var(--gold);border-radius:2px;flex-shrink:0}
.detail-table{width:100%;border-collapse:collapse;font-size:12px}
.detail-table th{text-align:left;color:var(--gray-500);font-weight:500;padding:4px 6px;border-bottom:1px solid var(--gray-100)}
.detail-table td{padding:5px 6px;border-bottom:1px solid var(--gray-100);color:var(--gray-700)}
.detail-table tr:last-child td{border-bottom:none}
/* MISSING DATA WARNING */
.missing-warn{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--gray-500);background:var(--gray-100);border-radius:4px;padding:2px 7px;font-style:italic}
@media print{
  .app-header,.nav-bar,.action-row{display:none!important}
  body{background:white}
  .page{display:block!important}
  .page:not(#page-result){display:none!important}
  .cover-hero,.result-hero,.cta-card{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}
@media(max-width:600px){
  .cover-features,.wpm-grid,.grid-2{grid-template-columns:1fr}
  .cover-main-title{font-size:22px}
  .score-bands{gap:4px}
}

/* ── V1 Hero Banner ── */
.v1-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 32px 36px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.v1-hero::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 200px; height: 200px;
  border: 40px solid rgba(200,168,75,0.1);
  border-radius: 50%;
}
.v1-hero h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
  position: relative;
}
.v1-hero h2 {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: normal;
  margin-bottom: 14px;
  position: relative;
}
.v1-hero p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  max-width: 600px;
  position: relative;
}

/* =============================================
   Progress Bar (統一 A1 樣式)
   ============================================= */
.progress-container{background:var(--white);border-bottom:1px solid var(--gray-200);padding:10px 20px;display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:100;box-shadow:0 1px 4px rgba(0,0,0,.06);}
.progress-label{font-size:13px;color:var(--navy);font-weight:700;white-space:nowrap;}
.progress-bar-wrap{flex:1;height:6px;background:var(--gray-200);border-radius:3px;overflow:hidden;}
.progress-bar-fill{height:100%;background:linear-gradient(90deg,var(--navy),var(--gold));border-radius:3px;transition:width .4s ease;}
.progress-steps{font-size:12px;color:var(--gray-600);white-space:nowrap;}

/* =============================================
   Haven Stone Navy / A1 component alignment
   ============================================= */
:root {
  --background: #EDF3F8;
  --surface: #FFFDF8;
  --surface-muted: #E7EEF5;
  --surface-subtle: #DBE6F0;
  --text-primary: #172033;
  --text-secondary: #4F5663;
  --text-muted: #667085;
  --text-inverse: #FFFDF8;
  --border-subtle: #D9E2EC;
  --border-default: #E2E8F0;
  --border-strong: #E2E8F0;
  --primary: #22395C;
  --primary-hover: #1B2F4D;
  --primary-active: #14243D;
  --primary-soft: #EEF2F6;
  --content-hover: #EEF2F6;
  --accent: #B89455;
  --accent-soft: #F6EEDB;
  --accent-border: #E6D2A3;
  --card: #FFFDF8;
  --card-muted: #EAF1F7;
  --card-border: #E2E8F0;
  --focus-ring: rgba(148, 163, 184, 0.28);
  --success-background: #ECFDF5;
  --success-border: #A7F3D0;
  --success-title: #007A5A;
  --success-text: #008060;
  --success-icon: #059669;
  --success-accent: #10B981;
  --warning-background: #FFFBEB;
  --warning-border: #FCD34D;
  --warning-title: #C2410C;
  --warning-text: #C2410C;
  --warning-icon: #D97706;
  --warning-accent: #F59E0B;
  --error-background: #FFF1F2;
  --error-border: #FDA4AF;
  --error-title: #BE123C;
  --error-text: #BE123C;
  --error-icon: #E11D48;
  --error-accent: #F43F5E;
  --info-background: #ECFEFF;
  --info-border: #67E8F9;
  --info-title: #0369A1;
  --info-text: #0369A1;
  --info-icon: #0891B2;
  --info-accent: #06B6D4;
  --navy: var(--primary);
  --navy-mid: var(--primary-hover);
  --gold: var(--accent);
  --gold-light: var(--accent-border);
  --gold-pale: var(--accent-soft);
  --gray-bg: var(--background);
  --gray-light: var(--border-default);
  --gray-mid: var(--text-secondary);
  --gray-dark: var(--text-primary);
  --red: var(--error-icon);
  --red-bg: var(--error-background);
  --red-light: var(--error-background);
  --yellow: var(--warning-icon);
  --yellow-bg: var(--warning-background);
  --yellow-light: var(--warning-background);
  --green: var(--success-icon);
  --green-bg: var(--success-background);
  --green-light: var(--success-background);
  --font-display-zh: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
  --font-body-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  /* 英數展示字（進度頁數等）：與 a1.css 同款 */
  --font-display-en: "Cormorant Garamond", Georgia, serif;
  --font-body-en: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: var(--font-display-zh);
  --font-body: var(--font-body-zh);
  --radius: 10px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-card: 18px;
  --radius-control: 12px;
  --radius-inputs: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 12px 34px rgba(34, 57, 92, 0.08);
  --shadow-md: 0 22px 60px rgba(34, 57, 92, 0.14);
  --transition: 160ms cubic-bezier(0.22, 1, 0.36, 1);
  --icon-size: 20px;
}

html,
body {
  background: var(--brand-ivory);
  background-attachment: scroll;
}

body {
  color: var(--gray-dark);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.72;
  letter-spacing: 0.01em;
}

[class^="mynaui-"],
[class*=" mynaui-"] {
  width: var(--icon-size);
  height: var(--icon-size);
  display: inline-grid;
  place-items: center;
  flex: 0 0 var(--icon-size);
  color: currentColor;
  font-size: var(--icon-size);
  line-height: 1;
}

.app-container {
  max-width: 980px;
  padding: 0 24px;
}

.nav-bar {
  margin-bottom: 80px;
}

.progress-container {
  z-index: 50;
  min-height: 66px;
  border-bottom: 1px solid rgba(184, 148, 85, 0.36);
  background: linear-gradient(90deg, var(--primary-active) 0%, var(--primary) 100%);
  box-shadow: 0 10px 28px rgba(20, 36, 61, 0.18);
}

.header-logo {
  width: 30px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.progress-label {
  color: var(--text-inverse);
  font-size: 13px;
  font-weight: 800;
}

.progress-bar-wrap {
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 248, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.08);
}

.progress-bar-fill {
  position: relative;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-border), var(--accent));
  box-shadow: 0 0 14px rgba(230, 210, 163, 0.46);
}

.progress-steps {
  color: rgba(255, 253, 248, 0.78);
  font-weight: 600;
}

.progress-container .btn-secondary {
  border-color: rgba(184, 148, 85, 0.72);
  background: transparent;
  color: var(--accent-border);
  box-shadow: none;
}

.progress-container .btn-secondary:hover {
  border-color: var(--accent-border);
  background: rgba(230, 210, 163, 0.12);
  color: var(--surface);
}

.progress-container .btn-secondary > [class^="mynaui-"],
.progress-container .btn-secondary > [class*=" mynaui-"] {
  min-width: 16px;
  min-height: 16px;
  font-size: 16px;
}

.page {
  padding-top: 24px;
}

.cover-hero,
.v1-hero {
  border-radius: var(--radius-lg);
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

.cover-badge {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--primary);
}

.card,
.wpm-card,
.disclaimer-card,
.free-boundary {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.card {
  padding: 28px 32px;
  margin-bottom: 20px;
}

.card-title,
.section-title,
.result-section-title,
.cta-title {
  color: var(--primary);
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.18;
}

.card-title .icon {
  display: none;
}

.card-subtitle,
.section-desc,
.field-hint {
  color: var(--gray-mid);
  font-size: 13px;
}

.section-header {
  margin: 24px 0 16px;
}

.section-step {
  display: none;
}

.section-title,
.result-section-title {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.section-title::before,
.result-section-title::before {
  content: "";
  width: 3px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  flex: 0 0 3px;
}

.field-label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

input[type=text],
input[type=number],
select,
textarea {
  min-height: 46px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-inputs);
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.35;
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-mid);
  font-size: 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.input-unit {
  font-size: 13px;
}

.radio-opt,
.checkbox-opt,
.score-band,
.traffic-light {
  border-radius: var(--radius-pill);
  font-size: 13px;
}

.radio-opt,
.checkbox-opt {
  border-color: var(--border-subtle);
  background: var(--surface);
  color: var(--text-secondary);
  font-weight: 600;
}

.radio-opt:hover,
.checkbox-opt:hover {
  border-color: var(--border-strong);
  background: var(--content-hover);
  color: var(--primary);
}

.radio-opt.selected,
.checkbox-opt.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

input[type=number] {
  text-align: left;
}

.radio-opt,
.checkbox-opt {
  border-radius: var(--radius-inputs);
}

.btn,
.btn-primary,
.btn-secondary,
.btn-cta,
.btn-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-control);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.btn:has(> .mynaui-arrow-right),
.btn-cta:has(> .mynaui-arrow-right) {
  padding-right: 18px;
  padding-left: 24px;
}

.btn:has(> .mynaui-arrow-left),
.btn:has(> svg),
.btn-cta:has(> .mynaui-arrow-left),
.btn-cta:has(> svg) {
  padding-right: 24px;
  padding-left: 18px;
}

.btn-primary,
.btn-action.primary-action {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn-secondary,
.btn-action {
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--primary);
}

.btn-primary:hover,
.btn-action.primary-action:hover {
  background: var(--primary-hover);
}

.btn-secondary:hover,
.btn-action:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.computed-row {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-inputs);
  background: var(--surface);
}

.calc-panel,
.tax-result-highlight {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: #fff;
}

.calc-panel-title,
.tax-label {
  color: rgba(255, 255, 255, 0.72);
}

#page-7 .estate-tax-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

#page-7 .tax-result-highlight,
#page-7 .tax-result-highlight + .calc-panel {
  border: 0;
  border-radius: var(--radius-card);
  background: transparent;
  color: var(--text-primary);
  box-shadow: none;
}

#page-7 .tax-result-highlight {
  padding: 20px 22px;
  border-bottom: 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  box-shadow: none;
}

#page-7 .tax-result-highlight + .calc-panel {
  margin-top: 0 !important;
  padding: 20px 22px;
  border-top: 0;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  box-shadow: none;
}

#page-7 .tax-result-highlight .tax-label,
#page-7 .tax-result-highlight + .calc-panel .calc-panel-title {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

#page-7 .tax-result-highlight .tax-amount {
  margin-top: 6px;
  color: var(--accent);
}

#page-7 .tax-result-highlight div[style*="rgba(255,255,255"] {
  color: var(--text-secondary) !important;
}

#page-7 .tax-result-highlight + .calc-panel .detail-table {
  margin-top: 10px;
}

#page-7 .tax-result-highlight + .calc-panel .detail-table th {
  background: #f8fafc80;
  border-bottom-color: var(--card-border);
  color: var(--text-secondary);
  font-weight: 700;
}

#page-7 .tax-result-highlight + .calc-panel .detail-table td {
  border-bottom-color: var(--card-border);
  color: var(--text-primary);
}

.computed-value.good,
.light-green,
.traffic-light.light-green {
  color: var(--success-text);
}

.computed-value.warn,
.light-yellow,
.traffic-light.light-yellow {
  color: var(--warning-text);
}

.computed-value.danger,
.light-red,
.traffic-light.light-red {
  color: var(--error-text);
}

.light-green {
  border: 1px solid var(--success-border);
  background: var(--success-background);
}

.light-yellow {
  border: 1px solid var(--warning-border);
  background: var(--warning-background);
}

.light-red {
  border: 1px solid var(--error-border);
  background: var(--error-background);
}

.light-na {
  border: 1px solid var(--card-border);
  background: var(--surface-muted);
  color: var(--gray-mid);
}

.light-dot {
  width: 8px;
  height: 8px;
}

.risk-item {
  border: 1px solid var(--card-border);
  border-left: 1px solid var(--card-border) !important;
  border-radius: var(--radius-card);
  background: var(--card) !important;
  box-shadow: none;
}

.risk-text strong {
  color: var(--primary);
}

.score-ring {
  background: conic-gradient(var(--warning-accent) 0%, var(--warning-accent) var(--pct, 60%), var(--surface-muted) var(--pct, 60%));
}

.score-ring::before {
  background: var(--primary);
}

.score-number,
.tax-amount {
  color: var(--accent-border);
}

#page-result .result-report-card {
  padding: 36px 28px 28px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

#page-result {
  padding-bottom: 0;
}

#page-result .result-report-card > .disclaimer-card:first-child {
  margin-bottom: 18px !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
}

#page-result .result-hero {
  --score-ring-color: #F59E0B;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  row-gap: 4px;
  padding: 28px 34px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: none;
  color: var(--text-primary);
  text-align: left;
}

#page-result .result-hero:has(#band-80.active-band) {
  --score-ring-color: #10B981;
}

#page-result .result-hero:has(#band-60.active-band) {
  --score-ring-color: #0891B2;
}

#page-result .result-hero:has(#band-40.active-band) {
  --score-ring-color: #F59E0B;
}

#page-result .result-hero:has(#band-0.active-band) {
  --score-ring-color: #F43F5E;
}

#page-result .result-hero-logo {
  display: none;
}

#page-result .result-hero-title,
#page-result .score-explain {
  color: var(--text-secondary);
}

#page-result .result-hero-title {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0;
}

#page-result #result-consultant {
  grid-column: 2;
  grid-row: 3;
  margin: 0 !important;
  color: var(--text-secondary);
}

#page-result .score-ring {
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 96px;
  height: 96px;
  margin: 0;
  background: conic-gradient(var(--score-ring-color) 0%, var(--score-ring-color) var(--pct, 60%), var(--surface-muted) var(--pct, 60%));
}

#page-result .score-ring::before {
  width: 72px;
  height: 72px;
  background: var(--card);
}

#page-result .score-number,
#page-result .score-label {
  color: var(--primary);
}

#page-result .score-label {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 2px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

#page-result .score-explain {
  grid-column: 2;
  grid-row: 4;
  margin: 2px 0 0;
  font-size: 13px;
}

#page-result .score-bands {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

#page-result .score-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  border-color: var(--card-border);
  border-radius: var(--radius-inputs);
  background: var(--surface);
  color: var(--text-secondary);
  text-align: center;
}

#page-result .score-band::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: 0 0 8px;
  background: var(--score-band-color);
}

#page-result .score-band:nth-child(1) {
  --score-band-color: #10B981;
}

#page-result .score-band:nth-child(2) {
  --score-band-color: #0891B2;
}

#page-result .score-band:nth-child(3) {
  --score-band-color: #F59E0B;
}

#page-result .score-band:nth-child(4) {
  --score-band-color: #F43F5E;
}

#page-result .score-band.active-band {
  border-color: #93C5FD;
  background: #EFF6FF;
  color: var(--primary);
}

#page-result .score-band:focus-visible {
  outline: none;
  border-color: #93C5FD;
  background: #EFF6FF;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.28);
}

#page-result .result-section-title {
  margin-top: 24px;
  padding-bottom: 0;
  border-bottom: 0;
}

#page-result .wpm-grid {
  margin-bottom: 24px;
}

#page-result .wpm-card {
  box-shadow: none;
}

#page-result .wpm-card .wpm-gap {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

#page-result .wpm-card .gap-label {
  min-width: 0;
  color: var(--text-muted);
  white-space: nowrap;
}

#page-result .wpm-card .gap-value {
  min-width: 0;
  color: var(--text-primary);
  font-weight: 700;
}

#page-result #estate-summary-card {
  padding: 24px 28px 28px;
}

#page-result #estate-summary-card > div:first-child {
  gap: 12px !important;
  margin-bottom: 14px !important;
}

#page-result #estate-summary-card .wpm-gap {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  margin-top: 0;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: none;
  font-size: 13px;
}

#page-result #estate-summary-card .gap-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

#page-result #estate-summary-card .gap-value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--primary);
  line-height: 1.2;
}

#page-result #estate-summary-card .gap-number {
  color: #071A33;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

#page-result #estate-summary-card .gap-unit {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

#page-result .free-boundary {
  margin-top: 18px;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#page-result .free-boundary-title {
  margin-bottom: 6px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}

#page-result .free-boundary-text,
#page-result .free-boundary + .disclaimer-card {
  color: var(--text-secondary);
}

#page-result .free-boundary-text,
#page-result .free-boundary + .disclaimer-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-left: 0;
}

#page-result .free-boundary-text::before,
#page-result .free-boundary + .disclaimer-card::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: 0.72em;
  border-radius: 50%;
  background: var(--text-secondary);
  flex: 0 0 4px;
}

#page-result .free-boundary + .disclaimer-card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media(max-width:600px) {
  #page-result .result-report-card {
    padding: 28px 16px 20px;
  }

  #page-result .result-report-card > .disclaimer-card:first-child {
    margin-bottom: 16px !important;
  }

  #page-result .result-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 24px 18px;
    text-align: center;
  }

  #page-result .score-ring,
  #page-result .score-label,
  #page-result .result-hero-title,
  #page-result #result-consultant,
  #page-result .score-explain,
  #page-result .score-bands {
    grid-column: 1;
    grid-row: auto;
  }

  #page-result .score-ring {
    order: 1;
  }

  #page-result .score-label {
    order: 2;
  }

  #page-result .result-hero-title,
  #page-result #result-consultant,
  #page-result .score-explain {
    order: 3;
  }

  #page-result .score-bands {
    order: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #page-result .wpm-card .wpm-gap {
    grid-template-columns: 82px minmax(0, 1fr);
  }
}

.wpm-card-icon {
  background: var(--primary-soft) !important;
  color: var(--primary);
}

#page-result .wpm-card-icon {
  background: var(--primary) !important;
  color: var(--text-inverse);
}

.alert {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.alert i {
  color: var(--state-icon);
  font-size: var(--icon-size);
}

.alert strong {
  display: block;
  margin-bottom: 4px;
  color: var(--state-title);
}

.alert p {
  margin: 0;
  color: var(--state-text);
  font-size: 14px;
  line-height: 1.5;
}

.alert-success {
  background: var(--success-background);
  border-color: var(--success-border);
  --state-title: var(--success-title);
  --state-text: var(--success-text);
  --state-icon: var(--success-icon);
  --state-accent: var(--success-accent);
}

.alert-warning {
  background: var(--warning-background);
  border-color: var(--warning-border);
  --state-title: var(--warning-title);
  --state-text: var(--warning-text);
  --state-icon: var(--warning-icon);
  --state-accent: var(--warning-accent);
}

.alert-error {
  background: var(--error-background);
  border-color: var(--error-border);
  --state-title: var(--error-title);
  --state-text: var(--error-text);
  --state-icon: var(--error-icon);
  --state-accent: var(--error-accent);
}

.alert-info {
  background: var(--info-background);
  border-color: var(--info-border);
  --state-title: var(--info-title);
  --state-text: var(--info-text);
  --state-icon: var(--info-icon);
  --state-accent: var(--info-accent);
}

.toast {
  max-width: 360px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.toast i {
  color: var(--primary);
  font-size: var(--icon-size);
}

.toast h4 {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.toast p {
  margin: 0;
}

#page-result .risk-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

#page-result .risk-alert {
  width: 100%;
  box-shadow: none;
}

#page-result .risk-toast {
  max-width: none;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

#page-result .risk-toast-red i {
  color: var(--error-icon);
}

#page-result .risk-toast-yellow i {
  color: var(--warning-icon);
}

#page-result .risk-toast-green i,
#page-result .risk-toast:not(.risk-toast-red):not(.risk-toast-yellow) i {
  color: var(--success-icon);
}

#page-result .wpm-alert {
  margin-top: 10px;
  padding: 8px 10px;
  gap: 8px;
  border-radius: var(--radius-md);
}

#page-result .wpm-alert i {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}

#page-result .wpm-alert p {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.a1-native-select {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.a1-custom-select {
  position: relative;
  width: 100%;
}

.a1-custom-select-trigger {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-inputs);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.a1-custom-select.open .a1-custom-select-trigger,
.a1-custom-select-trigger:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
  outline: none;
}

.a1-custom-select-value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a1-custom-select-trigger i {
  color: var(--text-secondary);
  transition: transform var(--transition), color var(--transition);
}

.a1-custom-select.open .a1-custom-select-trigger i {
  color: var(--primary);
  transform: rotate(180deg);
}

.a1-custom-select-list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 9200;
  display: none;
  max-height: 232px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.a1-custom-select.open-up .a1-custom-select-list {
  top: auto;
  bottom: calc(100% + 10px);
}

.a1-custom-select.open .a1-custom-select-list {
  display: grid;
  gap: 2px;
}

.a1-custom-select-option {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.a1-custom-select-option:hover,
.a1-custom-select-option.selected {
  background: var(--primary-soft);
  color: var(--primary);
}

.a1-custom-select-option.selected {
  font-weight: 700;
}

.a1-custom-select-option i {
  display: none;
  color: var(--primary);
}

.a1-custom-select-option.selected i {
  display: inline-grid;
}

@media(max-width:600px){
  .app-container {
    padding: 0 14px;
  }

  .card {
    padding: 22px 18px;
  }
}

#page-1 > .section-header {
  display: none;
}

#page-1 .v1-hero {
  margin: 0 0 24px;
  padding: 38px 42px 34px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--primary);
  box-shadow: var(--shadow-md);
  color: var(--text-inverse, #fff);
}

#page-1 .v1-hero::after {
  content: "";
  position: absolute;
  top: -36px;
  right: -34px;
  width: 188px;
  height: 188px;
  display: block;
  border: 40px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}

#page-1 .v1-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--accent-border);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}

#page-1 .v1-hero h2,
#page-1 .v1-hero p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

#page-1 .v1-hero h2 {
  margin: 0 0 18px;
}

#page-1 .v1-hero p {
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.v1-basic-card {
  display: block;
}

.v1-card-intro {
  margin: 0 0 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--card-border);
}

.v1-card-intro-title {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.v1-card-intro-desc {
  color: var(--text-secondary, #4F5663);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.v1-basic-card .card-title {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 30px 0 14px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.v1-basic-card .card-title:first-child {
  margin-top: 0;
}

.v1-basic-card .card-title::before {
  content: "";
  width: 3px;
  height: 22px;
  flex: 0 0 3px;
  border-radius: 999px;
  background: var(--accent);
}

.v1-basic-card .card-title .icon {
  display: none;
}

.emergency-calc-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
  padding: 24px 28px 26px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--primary);
  box-shadow: var(--shadow-sm);
  color: #fff;
}

.emergency-calc-panel::after {
  content: "待檢測";
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.emergency-calc-panel .calc-panel-title {
  min-height: 22px;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-right: 96px;
  color: var(--accent-border);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.emergency-calc-panel .calc-panel-title::before {
  content: "";
  width: 3px;
  height: 22px;
  flex: 0 0 3px;
  border-radius: var(--radius-pill);
  background: var(--accent-border);
}

.emergency-calc-panel .computed-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.emergency-calc-panel .computed-label {
  color: rgba(255, 253, 248, 0.68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.emergency-calc-panel .computed-value {
  color: var(--accent-border);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.emergency-calc-panel .computed-value.good {
  color: var(--success-icon);
}

.emergency-calc-panel .computed-value.warn {
  color: var(--error-icon);
}

.emergency-calc-panel .computed-value.danger {
  color: var(--error-icon);
}

.emergency-calc-panel .computed-value.na {
  color: rgba(255, 253, 248, 0.72);
  font-style: normal;
}

.calc-panel:has(.computed-row) {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px;
  margin-top: 18px;
  padding: 24px 28px 26px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--primary);
  box-shadow: var(--shadow-sm);
  color: #fff;
}

.calc-panel:has(.computed-row) .calc-panel-title {
  min-height: 22px;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent-border);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.calc-panel:has(.computed-row) .calc-panel-title::before {
  content: "";
  width: 3px;
  height: 22px;
  flex: 0 0 3px;
  border-radius: var(--radius-pill);
  background: var(--accent-border);
}

.calc-panel:has(.computed-row) .computed-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.calc-panel:has(.computed-row) .computed-label {
  color: rgba(255, 253, 248, 0.68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.calc-panel:has(.computed-row) .computed-value {
  color: var(--accent-border);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.calc-panel:has(.computed-row) .computed-value.good {
  color: var(--success-icon);
}

.calc-panel:has(.computed-row) .computed-value.warn,
.calc-panel:has(.computed-row) .computed-value.danger {
  color: var(--error-icon);
}

.calc-panel:has(.computed-row) .computed-value.na {
  color: rgba(255, 253, 248, 0.72);
  font-style: normal;
  font-weight: 700;
}

@media(max-width:600px){
  #page-1 .v1-hero {
    padding: 30px 24px 28px;
  }

  #page-1 .v1-hero h1 {
    font-size: 24px;
  }

  .calc-panel:has(.computed-row),
  .emergency-calc-panel {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
}

body:has(#page-cover.active) .app-container {
  max-width: none;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 28px 48px;
}

#page-cover.active {
  width: min(1160px, 100%);
  min-height: min(610px, calc(100svh - 96px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#page-cover .cover-hero {
  width: 100%;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  grid-template-rows: repeat(6, auto);
  align-items: center;
  column-gap: 64px;
  row-gap: 0;
  margin: 0 auto;
  padding: clamp(42px, 4.8vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(230, 210, 163, 0.32);
  border-radius: 28px;
  background: linear-gradient(135deg, #2a50824d, rgba(20, 36, 61, 0) 38%), #14243D;
  box-shadow: 0 32px 90px rgba(7, 27, 82, 0.22);
}

#page-cover .cover-hero::before {
  display: none;
}

#page-cover .cover-logo-wrap,
#page-cover .cover-badge,
#page-cover .cover-main-title,
#page-cover .cover-subtitle,
#page-cover .cover-disclaimer,
#page-cover .btn-primary {
  grid-column: 1;
  position: relative;
  z-index: 1;
}

#page-cover .cover-logo-wrap {
  margin-bottom: 46px;
}

#page-cover .cover-logo-img {
  width: 188px;
  height: auto;
  content: url("../img/seven-family-office-logo-navy.svg");
}

#page-cover .cover-badge {
  justify-self: start;
  margin-bottom: 18px;
  border-color: rgba(230, 210, 163, 0.48);
  background: rgba(34, 57, 92, 0.82);
  color: var(--accent-border);
}

#page-cover .cover-main-title {
  max-width: 500px;
  margin-bottom: 20px;
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-size: clamp(42px, 4.3vw, 52px);
  font-weight: 500;
  line-height: 1.08;
}

#page-cover .cover-gold {
  color: var(--accent-border);
}

#page-cover .cover-subtitle {
  max-width: 520px;
  margin-bottom: 34px;
  color: #c7d8e9;
  font-size: 18px;
  line-height: 1.72;
}

#page-cover .cover-disclaimer {
  max-width: 560px;
  margin-bottom: 36px;
  border-color: rgba(195, 187, 175, 0.24);
  border-radius: var(--radius-inputs);
  background: rgba(34, 57, 92, 0.70);
  color: #a7b8ca;
}

#page-cover .btn-primary {
  width: 200px;
  height: 48px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: #B89455;
  color: #14243D;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.20);
}

#page-cover .btn-primary:hover {
  background: #c39d5b;
  color: #FFFDF8;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

#page-cover .cover-features {
  grid-column: 2;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  align-self: center;
}

#page-cover .cover-feature {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 26px 22px;
  border: 1px solid rgba(195, 187, 175, 0.24);
  border-radius: 14px;
  background: rgba(34, 57, 92, 0.70);
  color: var(--accent-border);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

#page-cover .cover-feature-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: #B89455;
  font-size: 48px;
  line-height: 1;
}

#page-cover .feature-dot {
  width: 42px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: #B89455;
}

@media(max-width:900px) {
  body:has(#page-cover.active) .app-container {
    padding: 18px;
  }

  #page-cover.active {
    min-height: auto;
  }

  #page-cover .cover-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 24px;
    row-gap: 24px;
  }

  #page-cover .cover-features {
    grid-column: 1;
    grid-row: auto;
    gap: 12px;
  }

  #page-cover .cover-feature {
    min-height: 126px;
    font-size: 18px;
  }
}

/* =============================================
   V1 unified assessment layout
   ============================================= */
html,
body {
  min-height: 100%;
  background: var(--brand-ivory);
  background-image: none;
  background-attachment: scroll;
}

body {
  overflow-x: hidden;
}

.app-container,
body:has(#page-cover.active) .app-container {
  width: auto;
  max-width: none;
  min-height: 0;
  display: block;
  margin: 0;
  padding: 0 24px 56px;
}

.v1-site-header {
  width: calc(100% + 48px);
  min-height: 330px;
  margin: 0 0 0 -24px;
  padding: 66px max(24px, calc((100% - 980px) / 2 + 24px)) 122px;
  background:
    radial-gradient(circle clamp(220px, 30vw, 460px) at 86% 58%, rgba(32, 112, 198, 0.36) 0%, rgba(32, 112, 198, 0.08) 46%, transparent 72%),
    linear-gradient(120deg, var(--primary-active) 0%, var(--primary) 66%, #2d456b 100%);
  color: var(--text-inverse);
  text-align: left;
}

.v1-site-header-eyebrow {
  margin-bottom: 12px;
  color: var(--accent-border);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
}

.v1-site-header h1 {
  margin: 0;
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.22;
  text-wrap: balance;
}

.v1-site-header h2 {
  margin: 18px 0 0;
  color: rgba(255, 253, 248, 0.84);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.v1-site-header p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 13px;
  line-height: 1.85;
}

.v1-assessment-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  margin: -64px auto 0;
  overflow: visible;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.progress-container[hidden] {
  display: none !important;
}

/* 進度條比照 A1（a1.css .progress-container 系列）：透明底、標籤次要色、頁數大字＋「頁」後綴 */
.v1-assessment-frame > .progress-container {
  position: static;
  min-height: 0;
  display: block;
  padding: 28px 42px 20px;
  border: 0;
  border-radius: 22px 22px 0 0;
  background: transparent;
  box-shadow: none;
}

.progress-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}

.v1-assessment-frame .progress-label {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v1-assessment-frame .progress-steps {
  flex: 0 0 auto;
  color: var(--primary);
  font-family: var(--font-display-en);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.v1-assessment-frame .progress-steps::after {
  content: " 頁";
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
}

.v1-assessment-frame .progress-bar-wrap {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  box-shadow: none;
}

.v1-assessment-frame .progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-border), var(--accent));
  box-shadow: none;
}

.v1-assessment-frame > .page {
  padding: 0;
}

.v1-assessment-frame > .page.active {
  display: block;
}

.v1-assessment-frame > .page > .card,
#page-result > .result-report-card {
  margin: 0;
  padding: 20px 42px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v1-assessment-frame > .page > .nav-bar {
  margin: 0 42px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
}

.v1-assessment-frame .nav-bar .nav-reset {
  margin-left: auto;
  border: 0;
  background: var(--content-hover);
  color: var(--primary);
}

.v1-assessment-frame .nav-bar .nav-reset:hover {
  border: 0;
  background: #e3eaf2;
  color: var(--primary);
}

.v1-assessment-frame .btn,
.v1-assessment-frame .btn-primary,
.v1-assessment-frame .btn-secondary {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}

/* Keep the text + icon group optically centered inside assessment buttons. */
.v1-assessment-frame .btn:has(> .mynaui-arrow-right) {
  padding-right: 18px;
  padding-left: 24px;
}

.v1-assessment-frame .btn:has(> .mynaui-arrow-left),
.v1-assessment-frame .btn:has(> svg:first-child) {
  padding-right: 24px;
  padding-left: 18px;
}

.v1-assessment-frame .btn-secondary {
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--primary);
}

.v1-assessment-frame .btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.v1-assessment-frame .btn-primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--text-inverse);
}

.v1-assessment-frame .btn-primary:hover {
  background: var(--primary-hover);
  color: var(--text-inverse);
}

#page-result.active {
  display: flex;
  flex-direction: column;
}

#page-result > .result-report-card {
  order: 1;
}

#page-result > .nav-bar {
  order: 2;
}

body:has(#page-cover.active) .v1-assessment-frame {
  margin-top: -64px;
}

#page-cover.active {
  width: auto;
  min-height: 0;
  display: block;
  padding: 0;
}

#page-cover .cover-hero {
  width: auto;
  min-height: 0;
  display: block;
  margin: 0;
  padding: 20px 42px 34px;
  overflow: visible;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  color: var(--primary);
}

#page-cover .cover-hero::before {
  content: none;
}

#page-cover .cover-logo-wrap,
#page-cover .cover-badge {
  display: none;
}

#page-cover .cover-main-title {
  max-width: none;
  margin: 0 0 12px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}

#page-cover .cover-gold {
  color: var(--primary);
}

#page-cover .cover-subtitle {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

#page-cover .cover-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

#page-cover .cover-feature {
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  box-shadow: none;
}

#page-cover .cover-feature-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  color: var(--accent);
  font-size: 22px;
}

#page-cover .cover-disclaimer {
  max-width: none;
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text-secondary);
}

#page-cover .cover-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

#page-cover .cover-actions .nav-reset {
  margin-left: auto;
}

#page-cover .cover-actions .btn-primary {
  width: auto;
  height: 44px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 13px;
  box-shadow: none;
}

#page-cover .cover-actions .btn-primary:hover {
  background: var(--primary-hover);
  color: var(--text-inverse);
  box-shadow: none;
}

.v1-footer {
  max-width: 980px;
  margin: 48px auto 0;
  color: var(--text-muted);
  text-align: center;
}

.v1-footer-mark {
  width: 34px;
  height: 34px;
  display: block;
  margin: 0 auto 10px;
  object-fit: contain;
}

.v1-footer-name {
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.v1-footer p {
  margin-top: 4px;
  font-size: 11px;
}

@media (min-width: 721px) and (max-width: 1024px) {
  .app-container,
  body:has(#page-cover.active) .app-container {
    padding-right: 52px;
    padding-left: 52px;
  }

  .v1-site-header {
    width: calc(100% + 104px);
    margin-left: -52px;
    padding-right: 52px;
    padding-left: 52px;
  }
}

@media (max-width: 720px) {
  .app-container,
  body:has(#page-cover.active) .app-container {
    padding: 0 14px 42px;
  }

  .v1-site-header {
    width: calc(100% + 28px);
    min-height: 0;
    margin-left: -14px;
    padding: 64px 14px 78px;
  }

  .v1-site-header-eyebrow {
    margin-bottom: 10px;
    font-size: 19px;
  }

  .v1-site-header h1 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .v1-site-header h2 {
    margin-top: 14px;
    font-size: 14px;
  }

  .v1-site-header p {
    font-size: 12px;
    line-height: 1.75;
  }

  .v1-assessment-frame,
  body:has(#page-cover.active) .v1-assessment-frame {
    margin-top: -40px;
    border-radius: 18px;
  }

  .v1-assessment-frame > .progress-container {
    padding: 20px 18px 16px;
    border-radius: 18px 18px 0 0;
  }

  .progress-heading-row {
    align-items: flex-start;
    gap: 12px;
  }

  .progress-label {
    max-width: 58vw;
  }

  .v1-assessment-frame > .page > .card,
  #page-result > .result-report-card {
    padding: 20px 18px 10px;
  }

  .v1-assessment-frame > .page > .nav-bar {
    margin: 0 18px;
    padding: 20px 0 24px;
  }

  .v1-assessment-frame > .page.active > .nav-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .v1-assessment-frame .nav-bar .nav-reset {
    margin-left: 0;
  }

  .v1-assessment-frame .nav-bar .btn {
    width: 100%;
  }

  #page-cover .cover-hero {
    padding: 20px 18px 24px;
  }

  #page-cover .cover-features {
    grid-template-columns: 1fr;
  }

  #page-cover .cover-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #page-cover .cover-actions .nav-reset,
  #page-cover .cover-actions .btn-primary {
    width: 100%;
    margin-left: 0;
  }

  .v1-footer {
    margin-top: 36px;
  }
}

/* =============================================
   V1 entrance hero
   ============================================= */
body:has(#page-cover.active) {
  background: #07101f;
}

body:has(#page-cover.active) .app-container {
  width: 100%;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle clamp(220px, 30vw, 460px) at 86% 58%, rgba(32, 112, 198, 0.36) 0%, rgba(32, 112, 198, 0.08) 46%, transparent 72%),
    radial-gradient(ellipse 34% 28% at 82% 76%, rgba(184, 148, 85, 0.22) 0%, transparent 72%),
    linear-gradient(125deg, #07101f 0%, #0d1f38 52%, #173d68 100%);
}

body:has(#page-cover.active) .v1-site-header,
body:has(#page-cover.active) .v1-footer {
  display: none;
}

body:has(#page-cover.active) .v1-assessment-frame {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:has(#page-cover.active) #page-cover.active {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

body:has(#page-cover.active) #page-cover::before,
body:has(#page-cover.active) #page-cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

body:has(#page-cover.active) #page-cover::before {
  right: -15vw;
  bottom: -42vw;
  width: 72vw;
  height: 72vw;
}

body:has(#page-cover.active) #page-cover::after {
  right: 7vw;
  bottom: -18vw;
  width: 32vw;
  height: 32vw;
  background: rgba(184, 148, 85, 0.08);
  filter: blur(60px);
}

.entry-header {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
}

.entry-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.entry-brand img {
  width: 146px;
  height: auto;
  display: block;
}

.entry-home-link {
  width: 126px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-control);
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.entry-home-link:hover {
  border-color: #fff;
  background: #fff;
  color: var(--primary-active);
}

body:has(#page-cover.active) #page-cover .cover-hero {
  position: relative;
  z-index: 1;
  width: min(100%, 1200px);
  min-height: calc(100svh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: clamp(54px, 8vh, 92px) 48px 36px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  text-align: center;
}

body:has(#page-cover.active) #page-cover .cover-logo-wrap {
  display: none;
}

body:has(#page-cover.active) #page-cover .cover-badge {
  order: 1;
  display: inline-flex;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-border);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

body:has(#page-cover.active) #page-cover .cover-main-title {
  order: 2;
  max-width: 920px;
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

body:has(#page-cover.active) #page-cover .cover-gold {
  color: var(--accent-border);
}

body:has(#page-cover.active) #page-cover .cover-subtitle {
  order: 3;
  max-width: none;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.72;
  white-space: nowrap;
}

body:has(#page-cover.active) #page-cover .cover-disclaimer {
  order: 7;
  max-width: none;
  margin: 32px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 1.72;
  white-space: nowrap;
}

body:has(#page-cover.active) #page-cover .cover-actions {
  order: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0 0;
  padding: 0;
  border: 0;
}

body:has(#page-cover.active) #page-cover .cover-actions .btn-primary {
  width: auto;
  min-width: 184px;
  height: 48px;
  min-height: 48px;
  padding: 0 18px 0 24px;
  border: 0;
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--primary-active);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

body:has(#page-cover.active) #page-cover .cover-actions .btn-primary:hover {
  background: var(--accent-border);
  color: var(--primary-active);
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.32);
}

body:has(#page-cover.active) #page-cover .cover-features {
  order: 6;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: clamp(54px, 9vh, 96px) 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(5, 17, 34, 0.68);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
}

body:has(#page-cover.active) #page-cover .cover-feature {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: 26px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-body);
  text-align: left;
  box-shadow: none;
}

body:has(#page-cover.active) #page-cover .cover-feature + .cover-feature {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

body:has(#page-cover.active) #page-cover .cover-feature-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent-border);
}

body:has(#page-cover.active) #page-cover .cover-feature-heading {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

body:has(#page-cover.active) #page-cover .cover-feature-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

body:has(#page-cover.active) #page-cover .cover-feature-description {
  margin: 0;
  padding-left: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

@media (max-width: 960px) {
  body:has(#page-cover.active) #page-cover .cover-main-title {
    font-size: clamp(36px, 8vw, 56px);
  }
}

@media (max-width: 1199px) {
  body:has(#page-cover.active) #page-cover .cover-subtitle {
    max-width: 700px;
    white-space: normal;
  }

  body:has(#page-cover.active) #page-cover .cover-disclaimer {
    max-width: 820px;
    white-space: normal;
  }
}

@media (max-width: 720px) {
  body:has(#page-cover.active) .app-container {
    padding: 0;
  }

  .entry-header {
    height: 64px;
    padding: 0 18px;
  }

  .entry-brand img {
    width: 132px;
  }

  .entry-home-link {
    width: auto;
    min-width: 96px;
    height: 38px;
    padding: 7px 14px;
    font-size: 12.5px;
  }

  body:has(#page-cover.active) #page-cover .cover-hero {
    min-height: calc(100svh - 64px);
    align-items: flex-start;
    justify-content: flex-start;
    padding: 52px 20px 28px;
    text-align: left;
  }

  body:has(#page-cover.active) #page-cover .cover-badge {
    margin-bottom: 20px;
  }

  body:has(#page-cover.active) #page-cover .cover-main-title {
    max-width: 340px;
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.2;
  }

  body:has(#page-cover.active) #page-cover .cover-subtitle {
    margin-top: 20px;
    font-size: 14.5px;
    line-height: 1.72;
  }

  body:has(#page-cover.active) #page-cover .cover-disclaimer {
    margin-top: 24px;
    font-size: 14px;
  }

  body:has(#page-cover.active) #page-cover .cover-actions {
    margin-top: 26px;
  }

  body:has(#page-cover.active) #page-cover .cover-actions .btn-primary {
    width: auto;
    min-width: 176px;
    margin: 0;
  }

  body:has(#page-cover.active) #page-cover .cover-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 48px;
  }

  body:has(#page-cover.active) #page-cover .cover-feature {
    min-height: 172px;
    padding: 18px 16px;
    gap: 12px;
  }

  body:has(#page-cover.active) #page-cover .cover-feature-title {
    font-size: 15px;
  }

  body:has(#page-cover.active) #page-cover .cover-feature-description {
    padding-left: 0;
    font-size: 11.5px;
    line-height: 1.65;
  }

  body:has(#page-cover.active) #page-cover .cover-feature:nth-child(3) {
    border-left: 0;
  }

  body:has(#page-cover.active) #page-cover .cover-feature:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 420px) {
  body:has(#page-cover.active) #page-cover .cover-badge {
    font-size: 15px;
  }

  body:has(#page-cover.active) #page-cover .cover-main-title {
    font-size: clamp(31px, 10.5vw, 40px);
  }
}
