/* Home page: glass surfaces, drifting light background, scroll motion. Loaded after cr.css. */
:root {
  --sky-1: #E9EDF7;
  --sky-2: #DCE3F4;
  --sky-3: #F4F5FA;
  --bright: #387DFF;
  --violet: #6B4BFF;
  --deep: #2000A8;
  --glass: rgba(255, 255, 255, .42);
  --glass-hover: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .7);
  --glow-blue: 0 0 18px -2px rgba(56, 125, 255, .85);
  --glow-white: 0 0 28px rgba(255, 255, 255, .9);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

body.home { background: linear-gradient(180deg, var(--sky-3) 0%, var(--sky-1) 40%, var(--sky-2) 100%); min-height: 100vh; overflow-x: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Background: soft colour fields that drift, plus a canvas of light streaks */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 26s ease-in-out infinite alternate; }
.b1 { width: 52vw; height: 52vw; left: -12vw; top: -14vw; background: radial-gradient(circle, #B9C8FF 0%, transparent 70%); }
.b2 { width: 46vw; height: 46vw; right: -10vw; top: 18vh; background: radial-gradient(circle, #D6C9FF 0%, transparent 70%); animation-duration: 32s; animation-delay: -8s; }
.b3 { width: 60vw; height: 60vw; left: 20vw; bottom: -30vw; background: radial-gradient(circle, #C4E0FF 0%, transparent 70%); animation-duration: 38s; animation-delay: -16s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.08); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(.96); }
}
#streaks { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Floating frosted nav with a sliding highlight under the hovered link */
.topbar { position: sticky; top: 0; z-index: 30; padding: 14px 16px 0; }
.glassnav { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: box-shadow .35s var(--ease), background-color .35s var(--ease); }
.topbar.scrolled .glassnav { background: rgba(255, 255, 255, .78); box-shadow: 0 10px 40px rgba(17, 19, 28, .1); }
.navlinks { position: relative; display: flex; gap: 2px; margin: 0 auto; }
.navlinks a { position: relative; z-index: 1; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: 999px; transition: color .2s; }
.navlinks a:hover { color: var(--bright); }
.navline { position: absolute; bottom: 4px; left: 0; height: 2px; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--bright), var(--violet));
  opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .25s; }
.navcta { display: flex; gap: 8px; }

/* Buttons: pill, glass blur; hover lifts slightly with a glow */
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 50px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  background: var(--deep); color: #fff; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s; }
.pill-btn:hover { background: var(--bright); color: #fff; transform: scale(1.02); box-shadow: var(--glow-blue); }
.pill-btn:active { transform: scale(.98); }
.pill-btn.glass { background: rgba(255, 255, 255, .35); color: var(--ink); border-color: var(--glass-line); }
.pill-btn.glass:hover { background: rgba(255, 255, 255, .88); color: var(--ink); box-shadow: var(--glow-white); }
.pill-btn.dark { background: var(--ink); }
.pill-btn.dark:hover { background: var(--bright); }
.pill-btn.light { background: #fff; color: var(--ink); }
.pill-btn.light:hover { background: #fff; color: var(--deep); box-shadow: var(--glow-white); }
.pill-btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.pill-btn.ghost:hover { background: rgba(255, 255, 255, .14); box-shadow: var(--glow-white); }
.pill-btn.small { min-height: 38px; padding: 9px 16px; font-size: 14px; }
.pill-btn.big { min-height: 54px; padding: 16px 28px; font-size: 16px; }

/* Hero: the first words change, sliding up out of a blur */
.hero2 { padding: clamp(56px, 10vh, 120px) 0 72px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: 1; letter-spacing: -.04em; font-weight: 600; }
/* Every word sits in the same grid cell, so the headline is always as wide as its longest word
   and nothing around it moves. The old word leaves first; the next enters after a short pause. */
.rotator { display: inline-grid; white-space: nowrap; padding-bottom: .08em; }
.rotator .word { grid-area: 1 / 1; justify-self: start; opacity: 0; visibility: hidden; will-change: transform, opacity, filter; }
.rotator .word > span { background: linear-gradient(100deg, var(--bright) 0%, var(--violet) 70%, var(--deep) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.rotator .word.is-current { opacity: 1; visibility: visible; }
.rotator .word.is-entering { animation: word-in .75s cubic-bezier(.22, 1, .36, 1) .42s both; }
.rotator .word.is-exiting { animation: word-out .5s cubic-bezier(.32, 0, .67, 0) both; }
@keyframes word-in { 0% { visibility: visible; transform: translateY(100%); filter: blur(10px); opacity: 0; } 100% { visibility: visible; transform: none; filter: blur(0); opacity: 1; } }
@keyframes word-out { 0% { visibility: visible; transform: none; filter: blur(0); opacity: 1; } 100% { visibility: visible; transform: translateY(-30%); filter: blur(10px); opacity: 0; } }
.hero-line2 { display: block; color: var(--ink); }
.hero2 .lede { font-size: clamp(18px, 1.5vw, 21px); max-width: 600px; }

/* Glass card and floating shapes behind it */
.glass-card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 32px; padding: 28px;
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease); }
.glass-card:hover { background: var(--glass-hover); box-shadow: 0 0 30px rgba(255, 255, 255, .95), 0 20px 50px rgba(32, 0, 168, .08); }
.hero-art { position: relative; }
.glass-bar { position: absolute; border-radius: 40px; background: linear-gradient(140deg, rgba(255, 255, 255, .85), rgba(185, 200, 255, .35));
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 12px rgba(255, 255, 255, .9), 0 20px 40px rgba(56, 125, 255, .15); }
.g1 { width: 180px; height: 56px; top: -38px; right: 6%; transform: rotate(-14deg); animation: bob 7s ease-in-out infinite; }
.g2 { width: 110px; height: 110px; bottom: -40px; left: -36px; border-radius: 50%; animation: bob 9s ease-in-out infinite -3s; }
.g3 { width: 70px; height: 220px; top: 22%; right: -30px; transform: rotate(18deg); animation: bob 11s ease-in-out infinite -5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.float { position: relative; animation: bob 8s ease-in-out infinite; }
.glass-card .deadline { border-top-color: rgba(17, 19, 28, .08); }

/* Sections */
.block { padding: clamp(64px, 9vw, 120px) 24px; }
.narrow { max-width: 880px; }
.head2 { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.grad { background: linear-gradient(92deg, var(--bright), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Statement whose words darken as it scrolls through the viewport */
.scroll-reveal { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.18; letter-spacing: -.025em; font-weight: 500; max-width: 1040px; }
.scroll-reveal .w { color: rgba(17, 19, 28, .16); transition: color .3s; }
.scroll-reveal .w.on { color: var(--ink); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat2 { display: flex; flex-direction: column; gap: 10px; padding: 28px 4px 0; border-top: 1px solid rgba(17, 19, 28, .14); }
.stat2 .big { font-size: clamp(40px, 4.4vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stat2 .label { color: var(--muted); font-size: 15px; max-width: 220px; }

/* Glass accordion rows */
.glass-list { display: flex; flex-direction: column; gap: 10px; }
.glass-row { background: rgba(255, 255, 255, .35); border: 1px solid var(--glass-line); border-radius: 40px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), border-radius .35s var(--ease); }
.glass-row:hover, .glass-row[open] { background: rgba(255, 255, 255, .68); box-shadow: 0 0 26px rgba(255, 255, 255, .9); }
.glass-row[open] { border-radius: 32px; }
.glass-row summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
  padding: 14px 14px 14px 32px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.015em; transition: color .25s; }
.glass-row summary::-webkit-details-marker { display: none; }
.glass-row:hover summary { color: var(--bright); }
.plus { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(17, 19, 28, .06);
  transition: background-color .3s, transform .35s var(--ease), box-shadow .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.plus::after { transform: rotate(90deg); }
.glass-row:hover .plus { background: #fff; box-shadow: var(--glow-white); }
.glass-row[open] .plus { transform: rotate(45deg); background: var(--deep); }
.glass-row[open] .plus::before, .glass-row[open] .plus::after { background: #fff; }
.row-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 32px 26px; max-width: 820px; color: var(--muted); font-size: 17px;
  animation: row-open .45s var(--ease); }
@keyframes row-open { from { opacity: 0; transform: translateY(-8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* Card grids */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.step2 { display: flex; flex-direction: column; gap: 12px; }
.step2:hover, .price2:hover { transform: translateY(-4px); }
.step2 .num { font-family: var(--mono); font-size: 13px; color: var(--bright); }
.step2 h3 { font-size: 21px; letter-spacing: -.015em; }
.step2 p, .price2 p { color: var(--muted); }
.price2 { display: flex; flex-direction: column; gap: 14px; }
.price2 .label { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.price2 .amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price2 .amount strong { font-size: 48px; letter-spacing: -.04em; line-height: 1; }
.price2 .amount span { color: var(--muted); }
.table-glass { display: flex; flex-direction: column; gap: 16px; }
.table-glass h3 { font-size: 22px; }
.table-glass .data { width: 100%; border-collapse: collapse; }
.table-glass .data th, .table-glass .data td { border-bottom: 1px solid rgba(17, 19, 28, .08); }
.table-glass:hover { transform: none; }

/* States and portal */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.states2 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.states2 span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; font-family: var(--mono); font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, .4); border: 1px solid var(--glass-line); transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.states2 span:hover { background: var(--bright); color: #fff; transform: scale(1.08); box-shadow: var(--glow-blue); }
.portal-mock { display: flex; flex-direction: column; gap: 14px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 17px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stats div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .6); }
.mock-stats span { font-size: 13px; color: var(--muted); }
.mock-stats strong { font-size: 22px; letter-spacing: -.02em; }
.mock-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 4px; border-top: 1px solid rgba(17, 19, 28, .08); font-weight: 500; }
.mock-row .muted { font-size: 14px; font-weight: 400; }

/* Closing call to action */
.cta2 { position: relative; overflow: hidden; border-radius: 40px; padding: clamp(40px, 6vw, 80px); color: #fff; display: flex; flex-direction: column; gap: 18px;
  background: radial-gradient(120% 140% at 0% 0%, #5B7CFF 0%, var(--deep) 55%, #0D1033 100%); }
.cta2::after { content: ""; position: absolute; width: 60%; height: 200%; top: -50%; left: -70%; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent); animation: sheen 7s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 60% { left: -70%; } 100% { left: 130%; } }
.cta2 .h2 { max-width: 760px; }
.cta2 p { font-size: 19px; color: rgba(255, 255, 255, .78); }

/* Fade up as sections enter the viewport (only once the script has run) */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* Footer sits on the glass background */
.home .footer { padding-top: 48px; }

@media (max-width: 1000px) {
  .hero-grid, .split2 { grid-template-columns: 1fr; }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .cards3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .g3 { display: none; }
}
@media (max-width: 760px) {
  .navlinks { display: none; }
  .glassnav { padding-left: 14px; justify-content: space-between; }
  .brand { font-size: 16px; }
  .hide-sm { display: none; }
  .block { padding-left: 16px; padding-right: 16px; }
  .hero2 .wrap { padding: 0 16px; }
  .cards4 { grid-template-columns: 1fr; }
  .states2 { grid-template-columns: repeat(7, 1fr); }
  .glass-row summary { padding-left: 22px; }
  .row-body { padding: 0 22px 22px; }
  .hero-h1 { font-size: clamp(30px, 11.2vw, 46px); }
  .table-glass { padding: 20px 14px; overflow-x: auto; }
  .g1 { right: 0; }
  .g2 { left: -16px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .glass-bar, .float, .cta2::after { animation: none; }
  .rotator .word, .row-body { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .pill-btn:hover, .states2 span:hover, .step2:hover, .price2:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* State deadline card and the /deadlines page */
.deadline .when { display: flex; flex-direction: column; line-height: 1.25; }
.deadline .when small { font-size: 11px; color: var(--faint); }
.deadline .what { display: flex; align-items: flex-start; gap: 4px; }
.deadline .what .src { flex: none; margin-top: -3px; }
.deadlines-head .mono { font-size: 13px; font-weight: 500; }
.src { display: inline-flex; align-items: center; gap: 6px; color: var(--bright); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 4px; border-radius: 999px; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.src:hover { background: var(--bright); color: #fff; box-shadow: var(--glow-blue); transform: scale(1.06); }
.src span { padding-left: 6px; }
.state-block .src { margin-left: -10px; }
.deadlines-foot { display: flex; justify-content: flex-end; padding-top: 16px; border-top: 1px solid rgba(17, 19, 28, .08); }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.page-head .head2 { margin-bottom: 0; }
.page-head h1.h2 { font-size: clamp(38px, 4.8vw, 66px); }
.deadlines.wide:hover { transform: none; }
.state-jump { display: flex; flex-wrap: wrap; gap: 6px; }
.state-jump a { font-family: var(--mono); font-size: 13px; padding: 6px 9px; border-radius: 10px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .45); border: 1px solid var(--glass-line); transition: background-color .2s, color .2s, box-shadow .2s; }
.state-jump a:hover { background: var(--bright); color: #fff; box-shadow: var(--glow-blue); }
.state-list { display: flex; flex-direction: column; gap: 14px; }
.state-block { scroll-margin-top: 96px; display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; }
.state-block:hover { transform: none; }
.state-block h3 { font-size: 22px; }
.table-scroll { position: relative; overflow-x: auto; min-width: 0; max-width: 100%; }  /* relative: keeps the hidden header label inside the scroller */
.state-block { min-width: 0; max-width: 100%; }
.state-block .data { width: 100%; border-collapse: collapse; font-size: 15px; }
.state-block .data th { text-align: left; font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500; padding: 6px 12px 8px 0; }
.state-block .data td { padding: 12px 12px 12px 0; border-top: 1px solid rgba(17, 19, 28, .08); vertical-align: top; }
.state-block .data { table-layout: fixed; }
.state-block .data th:nth-child(1) { width: 24%; }
.state-block .data th:nth-child(2) { width: 14%; }
.state-block .data th:nth-child(3) { width: 27%; }
.state-block .data th:nth-child(4) { width: 13%; }
.state-block .data td:first-child { font-weight: 600; }
.navlinks a[aria-current="page"] { color: var(--bright); }
.state-block .data td:last-child .src { align-items: flex-start; text-align: left; line-height: 1.35; }
.state-block .data td:last-child .src svg { flex: none; margin-top: 2px; }
@media (max-width: 1000px) { .page-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .state-block { padding: 20px 16px; }
  .state-block .data, .state-block .data tbody, .state-block .data tr, .state-block .data td { display: block; width: auto; }
  .state-block .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .state-block .data tr { padding: 14px 0; border-top: 1px solid rgba(17, 19, 28, .08); }
  .state-block .data td { border: 0; padding: 3px 0; text-align: left; }
  .state-block .data td:last-child { padding-top: 8px; }
  .state-block .data td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .state-block .data td:first-child { font-size: 16px; padding-bottom: 6px; }
  .glass-card.deadlines { padding: 20px 18px; }
  .deadlines-head { gap: 12px; }
  .deadlines-head .mono { white-space: nowrap; }
  .deadline { grid-template-columns: 56px 1fr; gap: 10px; }
  .deadline .pill { display: none; }
}
