:root{
  --bg:#eef2f6;
  --surface:#ffffff;
  --surface-2:#f7f9fc;

  --text:#18202a;
  --muted:#667085;

  --line:#d9e0e8;
  --line-strong:#cbd5e1;

  --shadow:0 20px 50px rgba(15,23,42,0.08);
  --shadow-soft:0 12px 28px rgba(15,23,42,0.07);

  --radius:24px;
  --radius-sm:18px;
  --radius-pill:999px;

  --max:980px;
  --content-narrow:760px;
  --content-mid:860px;
  --content-wide:920px;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{
  max-width:100%;
  display:block;
}

button,
input,
select,
textarea{
  font:inherit;
}

a{
  color:inherit;
  text-decoration:none;
}

a:hover{
  text-decoration:none;
}

/* ===== Layout ===== */
.page{
  width:min(980px, calc(100% - 56px));
  margin:0 auto;
  padding:32px 0 52px;
}

.page-wide{
  width:min(1120px, calc(100% - 56px));
  margin:0 auto;
  padding:32px 0 52px;
}

.content-narrow{
  max-width:var(--content-narrow);
  margin:0 auto;
}

.content-mid{
  max-width:var(--content-mid);
  margin:0 auto;
}

.content-wide{
  max-width:var(--content-wide);
  margin:0 auto;
}

.text-center{
  text-align:center;
}

.text-left{
  text-align:left;
}

.back-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.88rem;
  color:#7b8796;
  margin-bottom:16px;
  font-weight:600;
}

/* ===== Cards ===== */
.section-card{
  background:rgba(255,255,255,0.88);
  backdrop-filter:blur(10px);
  border:1px solid rgba(210,218,230,0.9);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:40px 38px;
  margin:0 0 22px;
}

.hero{
  text-align:center;
  padding:54px 42px 40px;
}

.feature-card,
.decision-card,
.fit-card,
.list-card,
.route-card,
.mini-card,
.tool-card,
.cta-card,
.compare-card{
  background:linear-gradient(180deg,#ffffff 0%, #f8fafc 100%);
  border:1px solid #dde5ee;
  border-radius:22px;
  padding:26px 24px;
  min-height:100%;
  transition:all .18s ease;
}

.feature-card:hover,
.decision-card:hover,
.fit-card:hover,
.list-card:hover,
.route-card:hover,
.mini-card:hover,
.tool-card:hover,
.cta-card:hover,
.compare-card:hover{
  transform:translateY(-2px);
  border-color:#c9d4e0;
  box-shadow:0 12px 28px rgba(15,23,42,0.07);
}

.decision-card-highlight{
  background:linear-gradient(180deg,#ffffff 0%, #f3f7fc 100%);
  border:1.5px solid #c7d3e1;
  box-shadow:0 16px 34px rgba(15,23,42,0.08);
}

.decision-card-highlight:hover{
  border-color:#bcc9d8;
  box-shadow:0 18px 36px rgba(15,23,42,0.10);
}

/* ===== Typography ===== */
.eyebrow,
.card-label,
.small-tag{
  display:inline-block;
  font-size:10px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#7f8a99;
  margin-bottom:10px;
}

.eyebrow{
  font-size:11px;
  margin-bottom:12px;
  color:#7a8798;
}

h1,h2,h3,h4{
  margin:0;
  color:var(--text);
  text-wrap:balance;
}

.hero h1,
.section-title{
  font-size:clamp(2rem,4vw,3.35rem);
  line-height:1.04;
  letter-spacing:-0.04em;
  font-weight:700;
}

.section-head h2,
.section-card h2{
  font-size:clamp(1.7rem,3vw,2.55rem);
  line-height:1.1;
  letter-spacing:-0.035em;
  font-weight:700;
  margin:0;
  text-wrap:balance;
}

.feature-card h3,
.decision-card h3,
.fit-card h3,
.list-card h3,
.route-card h3,
.mini-card h3,
.tool-card h3,
.cta-card h3,
.compare-card h3{
  margin:0 0 10px;
  font-size:1.18rem;
  line-height:1.16;
  letter-spacing:-0.02em;
  font-weight:700;
  text-wrap:balance;
}

p{
  margin:0 0 12px;
  font-size:.94rem;
  line-height:1.72;
  color:var(--muted);
}

.hero-sub{
  max-width:760px;
  margin:14px auto 0;
  font-size:1.03rem;
  color:var(--muted);
  text-wrap:balance;
}

.hero-note,
.hero-support{
  max-width:760px;
  margin:12px auto 0;
  font-size:.93rem;
  color:#8a94a3;
  text-wrap:balance;
}

.section-head{
  text-align:center;
  margin-bottom:18px;
}

.section-head p{
  max-width:760px;
  margin:10px auto 0;
  color:var(--muted);
  font-size:.98rem;
  text-wrap:balance;
}

.section-intro{
  max-width:760px;
  margin:10px auto 0;
  color:var(--muted);
  font-size:.98rem;
  text-wrap:balance;
  text-align:center;
}

.section-intro.left{
  text-align:left;
  max-width:none;
}

.impact-line{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #e5ebf2;
  font-size:.92rem;
  line-height:1.72;
  color:#344256;
  font-weight:700;
}

.micro-note{
  text-align:center;
  margin-top:14px;
  font-size:.84rem;
  color:#7d8897;
  text-wrap:balance;
}

.path-preview{
  margin-top:14px;
  padding-top:11px;
  border-top:1px solid #e5ebf2;
  font-size:.79rem;
  line-height:1.42;
  color:#748091;
}

.path-preview strong{
  color:#3c495c;
  font-weight:700;
}

.decision-line{
  margin-top:10px;
  font-size:.82rem;
  line-height:1.6;
  color:#6f7c8d;
  font-weight:700;
}

.soft-note{
  text-align:center;
  margin-top:16px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid #dbe4ee;
  background:linear-gradient(180deg,#ffffff 0%, #f7fafd 100%);
  font-size:.9rem;
  line-height:1.7;
  color:#667085;
}

/* ===== Buttons / Dynamic Link Buttons ===== */
.hero-actions,
.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  margin-top:24px;
}

.btn,
.button,
.button-secondary,
.button-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid var(--line-strong);
  font-size:.95rem;
  font-weight:700;
  transition:all .18s ease;
  background:#fff;
  color:var(--text);
  white-space:nowrap;
}

.btn:hover,
.button:hover,
.button-secondary:hover,
.button-ghost:hover{
  transform:translateY(-1px);
  border-color:#b8c4d3;
  box-shadow:0 10px 24px rgba(15,23,42,0.08);
}

.btn-primary,
.button{
  background:#44526a;
  color:#fff;
  border-color:#44526a;
}

.btn-primary:hover,
.button:hover{
  background:#3a475c;
  border-color:#3a475c;
}

.button-secondary{
  background:#fff;
  color:var(--text);
}

.button-ghost{
  background:transparent;
  border-color:transparent;
  color:#4d5b70;
  box-shadow:none;
}

.button-ghost:hover{
  background:#f2f5f9;
  border-color:#d9e0e8;
}

/* ===== Inline links ===== */
.inline-links,
.site-mini{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:16px;
  margin-top:16px;
  font-size:.88rem;
  color:#7b8796;
}

.inline-links a,
.site-mini a{
  font-weight:600;
}

/* ===== Flow ===== */
.decision-flow{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin:6px 0 20px;
  font-size:.82rem;
  font-weight:700;
  color:#6f7c8d;
}

.flow-arrow{
  color:#9aa5b3;
  font-weight:800;
}

/* ===== Grids ===== */
.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

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

.grid-4{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.route-links{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.quick-answer{
  max-width:860px;
  margin:0 auto;
}

.quick-answer-box{
  background:linear-gradient(180deg,#ffffff 0%, #f7fafd 100%);
  border:1px solid #dbe4ee;
  border-radius:22px;
  padding:24px 24px 22px;
  text-align:center;
}

.quick-answer-box h3{
  margin:0;
  font-size:1.35rem;
  line-height:1.15;
  letter-spacing:-0.02em;
  text-wrap:balance;
}

.quick-answer-box p{
  max-width:720px;
  margin:12px auto 0;
  font-size:.97rem;
  color:var(--muted);
  text-wrap:balance;
}

.answer-pills{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-top:18px;
}

.pill{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid #d9e1ea;
  background:#fff;
  color:#536071;
  font-size:.85rem;
  font-weight:700;
}

.fit-list{
  margin:12px 0 0;
  padding-left:18px;
  color:var(--muted);
  font-size:.93rem;
}

.fit-list li{
  margin:8px 0;
}

/* ===== Tables ===== */
.table-wrap{
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  margin-top:18px;
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

th,td{
  padding:13px;
  border-bottom:1px solid var(--line-soft);
  text-align:left;
  vertical-align:top;
  color:#344256;
}

th{
  background:#f7f9fc;
  font-weight:600;
  color:#111827;
}

tr:last-child td{
  border-bottom:none;
}

/* ===== Footer ===== */
.footer-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  margin-top:18px;
  font-size:.88rem;
  color:#7b8796;
}

.footer-links a{
  font-weight:700;
  color:#4d5b70;
}

.footer-feedback{
  text-align:center;
  color:#7e8a99;
  font-size:.83rem;
  margin-top:18px;
}

.footer-feedback a{
  font-weight:700;
  color:#4d5b70;
}

.back-home{
  text-align:center;
  margin-top:18px;
  font-size:.88rem;
  color:#7b8796;
}

.back-home a{
  font-weight:600;
}

/* ===== Special tuning blocks ===== */
.default-direction-section .section-head h2{
  max-width:760px;
  margin:0 auto;
  font-size:clamp(1.75rem, 2.9vw, 2.5rem);
  line-height:1.08;
  text-wrap:balance;
}

.default-direction-section .section-head p{
  max-width:700px;
}

.default-direction-section .quick-answer{
  max-width:780px;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .grid-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .grid-2,
  .grid-3,
  .route-links{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .page,
  .page-wide{
    width:min(980px, calc(100% - 20px));
    padding:18px 0 34px;
  }

  .section-card{
    border-radius:22px;
    padding:28px 18px;
    margin-bottom:16px;
  }

  .hero{
    padding:36px 20px 26px;
  }

  .hero-actions,
  .cta-row{
    flex-direction:column;
    align-items:stretch;
  }

  .btn,
  .button,
  .button-secondary,
  .button-ghost{
    width:100%;
  }

  .inline-links,
  .site-mini,
  .footer-links{
    gap:10px 14px;
    font-size:.84rem;
  }

  .grid-4{
    grid-template-columns:1fr;
  }

  .feature-card,
  .decision-card,
  .fit-card,
  .list-card,
  .route-card,
  .mini-card,
  .tool-card,
  .cta-card,
  .compare-card{
    padding:22px 18px 20px;
  }

  .decision-flow{
    gap:8px;
    font-size:.78rem;
    margin-bottom:16px;
  }

  .hero h1,
  .section-title{
    font-size:clamp(1.8rem,6.8vw,2.4rem);
    line-height:1.08;
  }

  .section-head h2,
  .section-card h2{
    font-size:clamp(1.55rem,6vw,2rem);
  }

  .default-direction-section .section-head h2{
    font-size:clamp(1.45rem, 5.8vw, 1.9rem);
    line-height:1.14;
  }

  .default-direction-section .quick-answer{
    max-width:100%;
  }

  th,td{
    padding:10px;
  }
}
