:root {
  --ink: #151516;
  --muted: #4a4a57;
  --primary: #3b5aff;
  --secondary: #101841;
  --accent: #ff5c21;
  --canvas: #fafafa;
  --section: #f3f7fb;
  --line: #e7ddda;
  --white: #fff;
  --radius: 1.6rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, Arial, sans-serif; line-height: 1.55; }
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; background: var(--white); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250,250,250,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: inline-flex; }
.logo img { display: block; width: 118px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-weight: 600; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--primary); }
.hero { overflow: hidden; background: var(--section); padding: clamp(4.5rem, 9vw, 8rem) 0 5rem; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.eyebrow { margin: 0 0 .75rem; color: var(--primary); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
h1, h2, h3 { margin-top: 0; font-family: Sora, Inter, Arial, sans-serif; line-height: 1.12; }
h1 { margin-bottom: 1.25rem; font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.055em; }
h2 { margin-bottom: .8rem; font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.04em; }
h3 { margin-bottom: .65rem; font-size: 1.35rem; }
.hero-copy, .section-copy { color: var(--muted); font-size: 1.1rem; max-width: 690px; }
.hero-badge { position: relative; min-height: 290px; border-radius: 12rem 12rem 1.6rem 1.6rem; background: linear-gradient(145deg, var(--secondary), var(--primary)); color: var(--white); padding: 3rem 2rem 2rem; display: flex; flex-direction: column; justify-content: end; box-shadow: 0 24px 60px rgba(16,24,65,.22); }
.hero-badge strong { font: 600 clamp(2.7rem, 6vw, 4.8rem)/1 Sora, sans-serif; }
.hero-badge span { max-width: 240px; opacity: .85; }
.getting-started { padding: 5rem 0; background: var(--white); }
.getting-started-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.getting-started-grid article { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); padding: 1.75rem; }
.getting-started-grid article > span { width: 2.2rem; height: 2.2rem; margin-bottom: 1rem; border-radius: 50%; display: grid; place-items: center; background: #e4e8ff; color: var(--primary); font-weight: 800; }
.getting-started-grid h3 { margin-bottom: .55rem; }
.getting-started-grid p { margin: 0; color: var(--muted); }
.plans { padding: 5rem 0; }
.section-heading { max-width: 760px; margin-bottom: 2.25rem; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 2rem; display: flex; flex-direction: column; min-height: 100%; box-shadow: 0 10px 36px rgba(16,24,65,.06); }
.plan.featured { color: var(--white); border: 0; background: linear-gradient(160deg, var(--secondary), var(--primary)); }
.plan-kicker { font-weight: 700; }
.price { margin: .4rem 0 1.25rem; font: 600 clamp(2.25rem, 5vw, 3.5rem)/1 Sora, sans-serif; letter-spacing: -.04em; }
.price small { font: 500 .95rem/1.4 Inter, sans-serif; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; color: var(--muted); }
.featured ul { color: rgba(255,255,255,.84); }
.plan li { display: flex; gap: .65rem; }
.plan li::before { content: '✓'; color: var(--primary); font-weight: 800; }
.featured li::before { color: #aebaff; }
.button { border: 0; border-radius: .8rem; background: var(--primary); color: var(--white); cursor: pointer; display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: .8rem 1.25rem; font-weight: 700; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(59,90,255,.25); }
.button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(255,92,33,.45); outline-offset: 3px; }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-light { margin-top: auto; background: var(--white); color: var(--secondary); }
.plan:not(.featured) .button { margin-top: auto; }
.checkout { background: var(--section); padding: 5rem 0; }
.checkout-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.5rem; align-items: start; }
.checkout-card, .status-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: 0 16px 50px rgba(16,24,65,.08); }
.form-grid { display: grid; gap: 1.1rem; }
label { display: grid; gap: .4rem; font-weight: 650; }
label span { color: var(--muted); font-size: .82rem; font-weight: 400; }
input { width: 100%; border: 1px solid #c9c9d2; border-radius: .65rem; background: var(--white); padding: .85rem 1rem; }
input:user-invalid { border-color: #bb2727; }
fieldset { display: grid; gap: .65rem; margin: 0; border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; }
legend { padding: 0 .35rem; font-weight: 700; }
.radio-option { grid-template-columns: auto 1fr; align-items: center; gap: .65rem; border-radius: .65rem; padding: .55rem; cursor: pointer; }
.radio-option:has(input:checked) { background: #edf0ff; }
.radio-option input { width: auto; margin: 0; }
.radio-option span { color: var(--ink); font-size: .95rem; font-weight: 600; }
.tooltip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; margin-left: .25rem; border-radius: 50%; background: var(--primary); color: var(--white); cursor: help; font-size: .78rem; }
.tooltip::before { content: ''; position: absolute; z-index: 6; left: 50%; bottom: calc(100% + .25rem); border: .4rem solid transparent; border-top-color: var(--secondary); opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .15s ease; }
.tooltip::after { content: attr(data-tooltip); position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 1rem); width: min(280px, 72vw); padding: .7rem .8rem; border-radius: .6rem; background: var(--secondary); color: var(--white); box-shadow: 0 8px 24px rgba(16,24,65,.22); font-size: .82rem; font-weight: 500; line-height: 1.4; opacity: 0; pointer-events: none; transform: translate(-50%, .25rem); transition: opacity .15s ease, transform .15s ease; white-space: normal; }
.tooltip:hover::before, .tooltip:focus-visible::before, .tooltip:hover::after, .tooltip:focus-visible::after { opacity: 1; }
.tooltip:hover::after, .tooltip:focus-visible::after { transform: translate(-50%, 0); }
.form-note { margin: 0; color: var(--muted); font-size: .85rem; }
.referral-note { border-radius: .7rem; background: #edf0ff; color: var(--secondary); padding: .8rem 1rem; font-size: .9rem; }
.error { border-left: 4px solid #c22626; background: #fff0f0; color: #8b1717; padding: .8rem 1rem; }
[hidden] { display: none !important; }
.checkout-ready { display: grid; gap: 1rem; }
.checkout-summary { padding: .9rem 1rem; border-radius: .7rem; background: var(--section); color: var(--muted); }
.link-button { border: 0; background: none; color: var(--primary); cursor: pointer; padding: 0; text-decoration: underline; justify-self: start; }
.site-footer { background: var(--secondary); color: var(--white); padding: 3.5rem 0 2rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: start; }
.footer-grid img { width: 125px; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,.8); }
.status-main { min-height: calc(100vh - 76px); background: radial-gradient(circle at 50% 0, #e8edff 0, var(--section) 42%); display: grid; place-items: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.status-card { position: relative; width: min(720px, calc(100% - 2rem)); overflow: hidden; text-align: center; }
.status-card-success::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--primary), #7a8cff); }
.status-icon { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 1.25rem; display: grid; place-items: center; background: #edf0ff; color: var(--primary); font-size: 2rem; font-weight: 800; }
.status-card h1 { margin-bottom: 1.5rem; font-size: clamp(2.6rem, 7vw, 4.8rem); }
.status-copy { max-width: 540px; margin: 0 auto; }
.status-copy p { margin: .4rem 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; white-space: pre-line; }
.status-next-step { max-width: 520px; margin: 1.8rem auto 0; padding: 1rem 1.15rem; border-radius: .9rem; display: grid; gap: .25rem; background: #f3f5ff; color: var(--muted); text-align: left; }
.status-next-step strong { color: var(--secondary); }
.status-plan { max-width: 360px; margin: 1.5rem auto 0; padding: 1rem 1.15rem; border: 1px solid #d7ddff; border-radius: .9rem; display: flex; justify-content: space-between; gap: 1rem; background: #edf0ff; color: var(--secondary); text-align: left; }
.status-plan strong { color: var(--primary); text-transform: capitalize; }
.status-actions { margin-top: 1.5rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.text-link { color: var(--primary); font-weight: 700; padding: .75rem; }
body[data-plan="pro"] .status-plan { border-color: transparent; background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%); color: var(--white); box-shadow: 0 12px 28px rgba(59,90,255,.22); }
body[data-plan="pro"] .status-plan strong { color: var(--white); }
@media (max-width: 760px) {
  .hero-inner, .checkout-layout, .plan-grid, .getting-started-grid { grid-template-columns: 1fr; }
  .hero-badge { min-height: 220px; }
  .nav-links a:first-child { display: none; }
  .footer-grid { flex-direction: column; }
}

/* Shared Datum navigation and footer */
.nav-cta { border-radius: .65rem; background: var(--secondary); color: var(--white) !important; padding: .62rem 1rem; }
.plan.featured { position: relative; }
.popular-badge { position: absolute; top: 1.25rem; right: 1.25rem; border-radius: 999px; background: rgba(255,255,255,.14); padding: .35rem .7rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.checkout-steps { margin-top: 2rem; display: grid; gap: 1.1rem; }
.checkout-steps > div { display: grid; grid-template-columns: 2.25rem 1fr; gap: .8rem; align-items: start; }
.checkout-steps span { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: #e4e8ff; color: var(--primary); font-weight: 800; }
.checkout-steps p { margin: .1rem 0 0; color: var(--muted); font-size: .92rem; }
.checkout-steps strong { display: block; color: var(--ink); font-size: 1rem; }
.site-footer { padding: 0; background: var(--ink); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(3rem, 9vw, 9.6rem); padding: 4.8rem 0 3.2rem; }
.footer-brand { max-width: 590px; }
.footer-brand img { display: block; width: 132px; height: auto; margin-bottom: 1.6rem; }
.footer-brand h2 { max-width: 540px; margin-bottom: 1rem; color: var(--white); font-size: clamp(1.75rem, 3vw, 2.65rem); }
.footer-brand p { max-width: 540px; margin: 0 0 1.5rem; color: rgba(255,255,255,.68); }
.footer-cta { background: var(--primary); width: fit-content; }
.footer-navigation { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 2rem; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; }
.footer-column h3 { margin-bottom: 1rem; color: var(--white); font: 600 .95rem/1.4 Inter, sans-serif; }
.footer-column a { padding: .42rem 0; color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; transition: color .2s ease; }
.footer-column a:hover, .footer-column a:focus-visible, .footer-bottom a:hover, .footer-bottom a:focus-visible { color: #8fa0ff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1.5rem 0 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; color: rgba(255,255,255,.58); font-size: .8rem; }
.footer-bottom p { margin: 0; }
.footer-bottom > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.25rem; }
.footer-bottom a { color: inherit; }
.status-main + .site-footer { margin-top: 0; }
@media (max-width: 760px) {
  .nav { min-height: 68px; }
  .nav-links { gap: .65rem; }
  .nav-links a:nth-child(2) { display: none; }
  .footer-top { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-bottom > div { justify-content: flex-start; }
}
