:root {
  --tc-navy: #172433;
  --tc-navy-dark: #101a25;
  --tc-copper: #a66a24;
  --tc-copper-light: #c18a47;
  --tc-copper-dark: #805019;
  --tc-white: #ffffff;
  --tc-cream: #faf8f5;
  --tc-heading: #172433;
  --tc-text: #3e4852;
  --tc-muted: #707780;
  --tc-border: #e8e3dc;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--tc-cream); color: var(--tc-text); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
button, input { font: inherit; }
a { color: inherit; }

.navbar { position: sticky; top: 0; z-index: 20; background: rgba(23, 36, 51, .97); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 3px 18px rgba(0,0,0,.12); backdrop-filter: blur(14px); }
.navbar-inner, .footer-inner { width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto; }
.navbar-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--tc-white); text-decoration: none; font-size: 1.28rem; font-weight: 700; }
.logo img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--tc-white); text-decoration: none; font-size: .94rem; font-weight: 600; }
.nav-links a:hover { color: var(--tc-copper-light); }
.nav-links .nav-button { padding: 9px 15px; border: 1px solid var(--tc-copper-light); border-radius: 8px; color: var(--tc-copper-light); }
.nav-links .nav-button:hover { background: var(--tc-copper-light); color: var(--tc-navy-dark); }

.hero { position: relative; overflow: hidden; padding: 96px 24px 108px; background: var(--tc-navy); color: var(--tc-white); }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(193,138,71,.25); }
.hero::before { width: 440px; height: 440px; top: -285px; right: -30px; }
.hero::after { width: 290px; height: 290px; right: 120px; bottom: -225px; }
.hero-inner { position: relative; z-index: 1; width: min(var(--max-width), 100%); margin: 0 auto; display: grid; grid-template-columns: 1.45fr .55fr; align-items: center; gap: 80px; }
.eyebrow, .section-label { margin: 0 0 16px; color: var(--tc-copper-light); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--tc-copper-light); box-shadow: 0 0 0 4px rgba(193,138,71,.15); }
h1, h2, h3 { color: var(--tc-heading); }
.hero h1 { margin: 0 0 28px; color: var(--tc-white); font: 500 clamp(4.2rem, 8vw, 7.6rem)/.84 Georgia, 'Times New Roman', serif; letter-spacing: -.065em; }
.hero h1 em, .results-heading h2 em, .how-heading h2 em { color: var(--tc-copper-light); font-weight: 400; }
.lead { max-width: 620px; margin: 0 0 34px; color: rgba(255,255,255,.75); font-size: 1.08rem; line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 0; border-radius: 8px; cursor: pointer; text-decoration: none; font-weight: 700; }
.button-copper { padding: 14px 20px; background: var(--tc-copper); color: var(--tc-white); box-shadow: 0 8px 20px rgba(128,80,25,.28); }
.button-copper:hover { background: var(--tc-copper-light); color: var(--tc-navy-dark); }
.hero-card { min-height: 330px; padding: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(16,26,37,.72); box-shadow: 14px 14px 0 rgba(166,106,36,.22); transform: rotate(1.5deg); }
.hero-card > p { margin: 0; color: rgba(255,255,255,.7); }
.hero-card .card-number { color: var(--tc-copper-light); font: 500 6rem/.9 Georgia, serif; }
.hero-rule { margin: 32px 0 22px; border-top: 1px solid rgba(255,255,255,.16); }
.hero-card dl { margin: 0; }
.hero-card dl div { display: flex; justify-content: space-between; padding: 8px 0; }
.hero-card dt { color: rgba(255,255,255,.5); font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-card dd { margin: 0; color: var(--tc-white); font-weight: 700; }

.finder-section { padding: 100px 24px 120px; }
.section-heading { width: min(770px, 100%); margin: 0 auto 48px; text-align: center; }
.section-heading h2, .results-heading h2, .how-heading h2 { margin: 0 0 18px; font: 500 clamp(2.6rem, 5vw, 4.5rem)/1 Georgia, serif; letter-spacing: -.04em; }
.section-heading > p:last-child { max-width: 610px; margin: 0 auto; color: var(--tc-muted); }
.finder-card { width: min(var(--max-width), 100%); margin: 0 auto; padding: clamp(28px, 4.5vw, 56px); border: 1px solid var(--tc-border); border-radius: 18px; background: var(--tc-white); box-shadow: 0 18px 55px rgba(23,36,51,.1); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--tc-heading); font: 600 1.3rem Georgia, serif; }
legend span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tc-navy); color: var(--tc-copper-light); font: 700 .75rem Arial, sans-serif; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.goal-grid { grid-template-columns: repeat(6, 1fr); }
.choice { position: relative; min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 16px 34px 16px 16px; border: 1px solid var(--tc-border); border-radius: 10px; background: var(--tc-cream); cursor: pointer; transition: border-color .18s, transform .18s, background .18s; }
.choice:hover { border-color: var(--tc-copper); transform: translateY(-2px); }
.choice.selected { border-color: var(--tc-copper); background: #f6ede2; box-shadow: inset 3px 0 0 var(--tc-copper); }
.choice input { position: absolute; opacity: 0; }
.choice strong { margin-bottom: 4px; color: var(--tc-heading); font-size: .9rem; }
.choice small { color: var(--tc-muted); font-size: .71rem; line-height: 1.35; }
.choice i { position: absolute; right: 13px; top: 13px; width: 15px; height: 15px; border: 1px solid var(--tc-copper); border-radius: 50%; }
.choice.selected i::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--tc-copper); }
.choice input:focus-visible + strong { outline: 2px solid var(--tc-copper); outline-offset: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 42px; padding-top: 40px; border-top: 1px solid var(--tc-border); }
.submit-button { width: 100%; margin-top: 46px; padding: 17px; background: var(--tc-navy); color: var(--tc-white); font-size: 1rem; }
.submit-button:hover { background: var(--tc-copper-dark); }
.form-note { margin: 13px 0 0; color: var(--tc-muted); text-align: center; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }

.results-section { scroll-margin-top: 72px; padding: 100px 24px 110px; background: var(--tc-navy-dark); color: var(--tc-white); }
.results-heading { width: min(var(--max-width), 100%); margin: 0 auto 42px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.results-heading h2 { margin: 0; color: var(--tc-white); }
.outline-button, .change-button { padding: 11px 15px; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; background: transparent; color: var(--tc-white); cursor: pointer; font-weight: 700; }
.outline-button:hover, .change-button:hover { border-color: var(--tc-copper-light); color: var(--tc-copper-light); }
.result-grid { width: min(var(--max-width), 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.result-card { min-height: 475px; display: flex; flex-direction: column; padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: var(--tc-navy); box-shadow: inset 0 4px 0 var(--tc-copper); }
.result-top { display: flex; align-items: start; justify-content: space-between; }
.rank { color: rgba(255,255,255,.45); font: italic 1.2rem Georgia, serif; }
.tool-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #f4e3cf; color: var(--tc-navy); font-weight: 900; }
.match-label { width: max-content; margin: 38px 0 10px; padding: 5px 9px; border-radius: 999px; background: var(--tc-copper); color: var(--tc-white); font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.result-card h3 { margin: 0 0 14px; color: var(--tc-white); font: 500 2.25rem/1 Georgia, serif; }
.tool-description { min-height: 82px; margin: 0; color: rgba(255,255,255,.64); font-size: .88rem; }
.result-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.13); }
.result-card dl div { display: flex; flex-direction: column; gap: 4px; }
.result-card dt { color: rgba(255,255,255,.4); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.result-card dd { margin: 0; color: var(--tc-white); font-size: .78rem; font-weight: 700; }
.result-card > a { display: flex; justify-content: space-between; margin-top: auto; padding: 13px 15px; border-radius: 8px; background: var(--tc-white); color: var(--tc-navy); text-decoration: none; font-size: .8rem; font-weight: 800; }
.result-card > a:hover { background: var(--tc-copper-light); }
.change-button { display: block; margin: 28px auto 0; }

.how-section { padding: 105px 24px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; background: #f2ece4; }
.how-heading { justify-self: end; max-width: 500px; }
.how-heading > p:last-child { color: var(--tc-muted); }
.principles { width: min(650px, 100%); border-top: 1px solid var(--tc-border); }
.principles article { display: grid; grid-template-columns: 55px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid #d8cfc4; }
.principles article > span { color: var(--tc-copper); font: italic 1rem Georgia, serif; }
.principles h3 { margin: 0 0 6px; font: 600 1.35rem Georgia, serif; }
.principles p { margin: 0; color: var(--tc-muted); font-size: .9rem; }

footer { padding: 46px 0; background: var(--tc-navy); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 28px; }
.footer-inner p { margin: 0; color: rgba(255,255,255,.62); font-size: .8rem; }
.footer-inner .fine-print { max-width: 330px; justify-self: end; text-align: right; font-size: .68rem; }

@media (max-width: 900px) {
  .hero-inner, .how-section { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; transform: none; }
  .goal-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 36px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-card { min-height: 420px; }
  .how-heading { justify-self: start; }
  .principles { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner .fine-print { justify-self: start; text-align: left; }
}

@media (max-width: 620px) {
  .navbar-inner, .footer-inner { width: min(100% - 32px, var(--max-width)); }
  .nav-links > a:not(.nav-button) { display: none; }
  .nav-links .nav-button { font-size: .75rem; }
  .hero { padding: 76px 18px 86px; }
  .hero-inner { gap: 55px; }
  .hero h1 { font-size: clamp(3.8rem, 19vw, 5.6rem); }
  .lead { font-size: .95rem; }
  .finder-section, .results-section, .how-section { padding-left: 16px; padding-right: 16px; }
  .finder-card { padding: 25px 15px; }
  .goal-grid, .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .choice { min-height: 86px; }
  .results-heading { align-items: start; flex-direction: column; }
  .how-section { gap: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
