:root {
  color-scheme: light;
  --ink: #12223d;
  --muted: #637087;
  --paper: #f4f7fb;
  --white: #ffffff;
  --blue: #0b4fd6;
  --blue-deep: #06389d;
  --cyan: #35c8ed;
  --line: rgba(18, 34, 61, 0.13);
  --panel-width: clamp(22rem, 31vw, 31rem);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-height: 100dvh;
  background: #dfe7f2;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a { font: inherit; }

button { color: inherit; }

.app-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100dvh;
  min-height: 31rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 28%, rgba(53, 200, 237, 0.12), transparent 25rem),
    linear-gradient(135deg, #f9fbfe 0%, var(--paper) 62%, #e9eef7 100%);
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image: linear-gradient(rgba(18, 34, 61, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 34, 61, 0.055) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(to right, black, transparent 70%);
}

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: calc(100% - var(--panel-width));
  height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5rem;
  pointer-events: none;
}

.brand {
  position: absolute;
  top: 2rem;
  left: 3.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.85rem 0.85rem 0.85rem 0.2rem;
  background: var(--ink);
  color: var(--white);
  font: 800 0.9rem/1 "Manrope", sans-serif;
  letter-spacing: -0.04em;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font: 800 1rem/1.1 "Manrope", sans-serif; letter-spacing: -0.03em; }
.brand-copy small { margin-top: 0.25rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.03em; }
.brand-copy strong,
.brand-copy small { transition: color 220ms ease; }
.app-shell.is-photo-slide .brand-mark { border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.14); color: var(--white); backdrop-filter: blur(10px); }
.app-shell.is-photo-slide .brand-copy strong { color: var(--white); }
.app-shell.is-photo-slide .brand-copy small { color: rgba(255,255,255,0.7); }

.journey-nav {
  position: absolute;
  top: 1.65rem;
  right: 3rem;
  display: flex;
  align-items: center;
  padding: 0.32rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0.8rem 2rem rgba(25, 48, 91, 0.06);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.nav-item {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-item span { margin-right: 0.34rem; color: #8b96a9; font-size: 0.68rem; }
.nav-item:hover { color: var(--ink); transform: translateY(-1px); }
.nav-item.is-active { background: var(--ink); color: var(--white); }
.nav-item.is-active span { color: var(--cyan); }

.content-viewport {
  position: absolute;
  inset: 0 var(--panel-width) 0 0;
  overflow: hidden;
}

.slides-track {
  display: flex;
  width: 300%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 680ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 33.333333%;
  width: 33.333333%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 5.8rem 5.6vw 1rem;
  overflow: hidden;
}

.slide-inner { width: min(46rem, 86%); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin: 0 0 1.2rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span { width: 2.2rem; height: 2px; background: var(--cyan); }

h1,
h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.055em;
}

h1 { max-width: 12ch; font-size: clamp(3rem, 6.1vw, 6.8rem); line-height: 0.94; }
h2 { font-size: clamp(2.4rem, 4.3vw, 4.7rem); line-height: 1; }
h1 em,
h2 em { color: var(--blue); font-style: normal; }

.lead {
  max-width: 36rem;
  margin: 1.65rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.trust-row {
  display: flex;
  gap: 1.8rem;
  margin-top: 2.2rem;
  color: #44516a;
  font-size: 0.78rem;
  font-weight: 700;
}

.trust-row span { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.trust-row span::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0.25rem rgba(53, 200, 237, 0.13); }

.tax-year {
  position: absolute;
  right: 3vw;
  top: 48%;
  display: grid;
  opacity: 0.65;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  color: #6d7990;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.tax-year strong { color: var(--ink); font: 700 1.5rem/1.15 "Manrope", sans-serif; letter-spacing: 0.02em; }

.process-copy { max-width: 54rem; }
.slide-process {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 18, 38, 0.9) 0%, rgba(7, 18, 38, 0.72) 54%, rgba(7, 18, 38, 0.28) 100%),
    url("assets/images/how-it-works-test.jpg") center / cover no-repeat;
}
.slide-process .eyebrow { color: #bfefff; }
.slide-process .process-list li {
  border-color: rgba(255,255,255,0.24);
  background: rgba(8, 24, 50, 0.56);
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
}
.slide-process .process-list b { color: #68d8f7; }
.slide-process .process-list span { color: rgba(255,255,255,0.72); }
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.3rem 0 0; padding: 0; list-style: none; }
.process-list li { min-height: 10.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(255,255,255,0.66); }
.process-list b { color: var(--blue); font: 800 0.75rem/1 "Manrope", sans-serif; }
.process-list div { display: grid; gap: 0.6rem; margin-top: 2rem; }
.process-list strong { font: 700 1rem/1.2 "Manrope", sans-serif; }
.process-list span { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }

.about-copy .lead { max-width: 43rem; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 17rem)); gap: 2.5rem; margin-top: 2.2rem; }
.principles div { display: grid; gap: 0.35rem; padding-top: 0.9rem; border-top: 2px solid var(--cyan); }
.principles strong { font: 700 1rem/1.2 "Manrope", sans-serif; }
.principles span { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

.access-panel {
  position: absolute;
  z-index: 15;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--panel-width);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 4vw, 4.8rem);
  overflow: hidden;
  background: linear-gradient(150deg, #0f5de7 0%, var(--blue) 48%, var(--blue-deep) 100%);
  color: var(--white);
}

.access-panel::before {
  content: "";
  position: absolute;
  top: -10rem;
  left: -8rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 3.5rem rgba(255,255,255,0.035), 0 0 0 7rem rgba(255,255,255,0.025);
}

.access-grid { position: absolute; inset: 0; opacity: 0.11; background-image: linear-gradient(rgba(255,255,255,0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.25) 1px, transparent 1px); background-size: 3.2rem 3.2rem; mask-image: linear-gradient(to top, black, transparent 70%); }
.access-kicker { position: relative; margin: 0 0 1rem; color: #b9ddff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.access-panel h2 { position: relative; font-size: clamp(2rem, 3vw, 3.8rem); line-height: 1.02; letter-spacing: -0.045em; }

.start-button {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 6rem;
  margin: 2.2rem 0 0;
  padding: 1rem 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 1.25rem;
  background: var(--white);
  box-shadow: 0 0.45rem 0 #62d6f4, 0 1.5rem 3rem rgba(0, 18, 70, 0.3);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.start-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -55%;
  bottom: -55%;
  left: -45%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(85, 211, 244, 0.18), rgba(255,255,255,0.92), rgba(85, 211, 244, 0.18), transparent);
  transform: skewX(-18deg);
  animation: cta-sheen 7s ease-in-out infinite;
  pointer-events: none;
}
.start-button:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 0.62rem 0 #62d6f4, 0 1.8rem 3.4rem rgba(0, 18, 70, 0.38); }
.start-button:active:not(:disabled) { transform: translateY(0.34rem); box-shadow: 0 0.08rem 0 #62d6f4, 0 0.75rem 1.5rem rgba(0, 18, 70, 0.28); }
.start-button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.start-button:disabled { cursor: wait; opacity: 0.82; }
.start-copy { position: relative; z-index: 1; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 0.42rem; text-align: center; }
.start-copy strong { font: 800 clamp(1rem, 1.4vw, 1.2rem)/1.1 "Manrope", sans-serif; letter-spacing: -0.02em; }
.start-copy small { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.start-copy small img { width: 1rem; height: 1rem; object-fit: contain; }
.access-note { position: relative; min-height: 1.2rem; margin: 1rem 0 0; color: #c5d9fa; font-size: 0.75rem; line-height: 1.4; }
.landing-legal { position: relative; display: flex; align-items: center; gap: 0.55rem; margin-top: 0.65rem; color: rgba(255,255,255,0.76); font-size: 0.7rem; }
.landing-legal a { min-height: 44px; display: inline-flex; align-items: center; color: inherit; text-underline-offset: 0.2rem; }
.landing-legal a:hover { color: #fff; }
.landing-legal a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 0.2rem; }

@keyframes cta-sheen {
  0%, 76% { left: -45%; }
  94%, 100% { left: 125%; }
}

@media (max-width: 980px) {
  :root { --panel-width: clamp(19rem, 36vw, 23rem); }
  .topbar { padding: 0; }
  .brand { left: 2rem; }
  .journey-nav { right: 1.5rem; }
  .brand-copy small { display: none; }
  .nav-item { padding: 0.7rem 0.8rem; font-size: 0.76rem; }
  .nav-item span { display: none; }
  .slide { padding: 5rem 2.5rem 1rem 3.5rem; }
  .trust-row { flex-wrap: wrap; gap: 0.8rem 1.2rem; }
  .process-list { grid-template-columns: 1fr; gap: 0.6rem; }
  .process-list li { min-height: 0; display: flex; gap: 1rem; align-items: center; padding: 0.9rem 1rem; }
  .process-list div { margin-top: 0; }
  .process-list span { display: none; }
  .access-panel { padding: 2rem; }
}

@media (max-width: 700px) {
  .app-shell { min-height: 34rem; }
  .app-shell::before { background-size: 3.5rem 3.5rem; }
  .topbar { width: 100%; height: 0; padding: 0; }
  .brand { gap: 0; }
  .brand { top: 1rem; left: 1rem; }
  .brand-mark { width: 2.35rem; height: 2.35rem; }
  .brand-copy { display: none; }
  .journey-nav { top: 0.9rem; right: 1rem; max-width: calc(100% - 4rem); padding: 0.2rem; overflow: hidden; }
  .nav-item { padding: 0.62rem 0.68rem; font-size: 0.69rem; white-space: nowrap; }
  .content-viewport { inset: 0 0 14.6rem; }
  .slide { align-items: center; padding: 5.2rem 1.4rem 0.8rem; }
  .slide-inner { width: 100%; }
  .eyebrow { margin-bottom: 0.8rem; font-size: 0.66rem; }
  .eyebrow span { width: 1.3rem; }
  h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  h2 { font-size: clamp(2rem, 9.5vw, 3.2rem); }
  .lead { margin-top: 1rem; font-size: 0.93rem; line-height: 1.48; }
  .trust-row { gap: 0.55rem 1rem; margin-top: 1.2rem; font-size: 0.68rem; }
  .trust-row span:last-child { display: none; }
  .tax-year { display: none; }
  .process-list { margin-top: 1.25rem; gap: 0.45rem; }
  .process-list li { padding: 0.65rem 0.8rem; border-radius: 0.85rem; }
  .process-list div { gap: 0.25rem; }
  .process-list strong { font-size: 0.86rem; }
  .process-list span { display: block; font-size: 0.7rem; line-height: 1.25; }
  .principles { gap: 0.8rem; margin-top: 1.1rem; }
  .principles div { gap: 0.2rem; padding-top: 0.55rem; }
  .principles strong { font-size: 0.86rem; }
  .principles span { font-size: 0.7rem; line-height: 1.3; }
  .access-panel { top: auto; left: 0.8rem; right: 0.8rem; bottom: 0.8rem; width: auto; height: 13.2rem; justify-content: flex-start; padding: 1.25rem; border-radius: 1.5rem; }
  .access-panel::before { top: -13rem; left: auto; right: -8rem; }
  .access-kicker { margin-bottom: 0.35rem; font-size: 0.61rem; }
  .access-panel h2 { max-width: none; font-size: 1.48rem; line-height: 0.98; }
  .start-button { position: absolute; right: 1.25rem; bottom: 1.2rem; left: 1.25rem; width: auto; min-height: 4.8rem; margin: 0; padding: 0.65rem 0.8rem; border-radius: 1rem; }
  .start-copy strong { font-size: 1rem; }
  .start-copy small { gap: 0.32rem; font-size: 0.66rem; line-height: 1.15; white-space: normal; }
  .start-copy small img { width: 0.75rem; height: 0.75rem; }
  .access-note { position: absolute; top: 5.45rem; left: 1.25rem; right: 1.25rem; min-height: 0; margin: 0; font-size: 0.62rem; line-height: 1.2; }
  .landing-legal { position: absolute; z-index: 2; top: 6.15rem; left: 1.25rem; right: 1.25rem; gap: 0.45rem; margin: 0; font-size: 0.59rem; }
  .landing-legal a { min-height: 1rem; }
}

@media (max-height: 650px) and (min-width: 701px) {
  .brand { top: 1rem; }
  .journey-nav { top: 0.8rem; }
  .access-panel { padding: 2rem; }
  .access-panel h2 { font-size: 2.35rem; }
  .start-button { min-height: 5.3rem; margin-top: 1.2rem; }
  .play-disc { flex-basis: 3.8rem; height: 3.8rem; }
  .lead { margin-top: 1rem; }
  .trust-row { margin-top: 1rem; }
  .process-list { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
