/* Invo.tax site styles. One stylesheet for the landing page and the Try agent page.
   Same-origin only: the _headers CSP forbids inline styles, web fonts and external images. */

@view-transition {
  navigation: auto;
}

:root {
  color-scheme: dark;
  --night: #070a14;
  --night-2: #0e1324;
  --night-line: rgb(255 255 255 / 0.09);
  --on-night: #f4f5fa;
  --on-night-muted: #a6abc2;
  --on-night-tone: #7d8399;
  --paper: #f6f3ee;
  --paper-2: #fbfaf7;
  --card: #ffffff;
  --ink: #14161f;
  --ink-muted: #5b6070;
  --ink-tone: #7b8092;
  --paper-line: #e7e2d9;
  --accent: #6d5df0;
  --accent-text: #5a48dd;
  --accent-soft: #ece9ff;
  --mint: #1f9d78;
  --mint-text: #17735a;
  --mint-soft: #e3f5ee;
  --amber-text: #8a5a0c;
  --amber-soft: #fbf0dc;
  --neutral-text: #4b4f5e;
  --neutral-soft: #efece6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 28px;
  --shadow-soft: 0 1px 2px rgb(20 22 31 / 0.04), 0 18px 40px -18px rgb(20 22 31 / 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--on-night);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid #8b7dff;
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #0b0e18;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 6px 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.5s var(--ease), background-color 0.3s, box-shadow 0.3s, opacity 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-light {
  background: #f4f5fa;
  color: #0b0e18;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  padding: 0 24px;
  border-color: var(--paper-line);
  background: transparent;
  color: var(--ink);
}

.btn-small {
  min-height: 42px;
  padding: 0 4px 0 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
  justify-content: space-between;
}

.chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: #0b0e18;
  color: #f4f5fa;
  font-size: 16px;
  transition: transform 0.5s var(--ease);
}

.btn-ink .chip {
  background: #fff;
  color: var(--ink);
}

.btn-small .chip {
  width: 34px;
  height: 34px;
}

.btn:hover .chip {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}

.text-link:hover {
  background-size: 100% 1px;
}

/* Header */

/* Floating liquid-glass pill. The outer bar ignores pointer input so the page stays clickable around it. */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 30;
  pointer-events: none;
}

.header-row {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1040px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 8px 8px 22px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.03)), rgb(14 19 34 / 0.84);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 20px 50px -20px rgb(0 0 0 / 0.65);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled .header-row {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.05)), rgb(12 16 30 / 0.92);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.26), 0 24px 60px -22px rgb(0 0 0 / 0.75);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark img {
  width: 32px;
  height: 32px;
}

.wordmark span {
  color: #9d8cff;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  font-size: 14px;
  color: var(--on-night-muted);
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.3s, background-color 0.3s;
}

.site-nav a:hover {
  color: var(--on-night);
  background: rgb(255 255 255 / 0.08);
}

.header-cta {
  margin-left: 0;
}

.header-back {
  margin-left: auto;
  color: var(--on-night-muted);
  font-size: 14px;
}

/* Dark hero */

.hero,
.hero-band {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse 70% 60% at 85% 10%, #2a2466 0%, transparent 60%), var(--night);
}

.hero {
  padding: clamp(72px, 11vh, 120px) 0 clamp(130px, 17vh, 190px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  color: var(--on-night-muted);
  font-size: 13px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9d8cff;
  box-shadow: 0 0 14px #9d8cff;
}

.hero h1 {
  margin: 26px 0 22px;
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 1.02;
  color: var(--on-night);
}

.tone {
  color: var(--on-night-tone);
}

.hero .lede {
  max-width: 34ch;
  color: var(--on-night-muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 34px;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 6% 2%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(109 93 240 / 0.35), transparent 66%);
  filter: blur(12px);
}

.hero-art img {
  width: min(100%, 560px);
  animation: float 9s var(--ease) infinite;
}

@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}

/* Light sheet: rises over the dark hero */

.sheet {
  position: relative;
  margin-top: -44px;
  padding: clamp(96px, 12vw, 140px) 0 clamp(96px, 12vw, 130px);
  border-radius: 40px 40px 0 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 -24px 60px -34px rgb(0 0 0 / 0.6);
}

.sheet .tone {
  color: var(--ink-tone);
}

.statement p {
  max-width: 24ch;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.statement {
  margin-bottom: clamp(96px, 12vw, 140px);
}

.sheet > .wrap:not(.statement) {
  margin-top: clamp(96px, 11vw, 136px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow.on-night {
  color: var(--on-night-muted);
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 56px;
}

.section-title {
  max-width: 20ch;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
  color: var(--ink);
}

.section-lede {
  max-width: 58ch;
  color: var(--ink-muted);
  font-size: 17px;
}

.section-lede.on-night {
  color: var(--on-night-muted);
}

.on-night {
  color: var(--on-night);
}

/* Process: sticky-note cards joined by a drawn connector */

.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 8px 0 60px;
}

.process-line {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.process-line path {
  fill: none;
  stroke: #b9b2a6;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
}

.note {
  position: relative;
  z-index: 1;
  padding: 36px 30px 38px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.note:nth-child(1) {
  transform: rotate(-1.6deg);
}

.note:nth-child(2) {
  background: #f3f0ff;
  transform: translateY(44px) rotate(1.2deg);
}

.note:nth-child(3) {
  background: #e9f7f2;
  transform: rotate(-0.9deg);
}

.note:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: 0 2px 4px rgb(20 22 31 / 0.05), 0 28px 60px -22px rgb(20 22 31 / 0.3);
}

.note:nth-child(2):hover {
  transform: translateY(40px) rotate(0);
}

.clip {
  position: absolute;
  top: -18px;
  left: 30px;
  width: 26px;
  height: 50px;
}

.num {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--accent-text);
}

.note h3 {
  margin: 18px 0 10px;
  font-size: 26px;
  line-height: 1.12;
}

.note p {
  color: var(--ink-muted);
  font-size: 15px;
}

/* Bento */

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

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgb(20 22 31 / 0.05), 0 28px 60px -22px rgb(20 22 31 / 0.28);
}

.tile h3 {
  font-size: 30px;
  line-height: 1.1;
}

.tile > p {
  max-width: 44ch;
  color: var(--ink-muted);
  font-size: 15px;
}

.t7 {
  grid-column: span 7;
  min-height: 520px;
}

.t5 {
  grid-column: span 5;
}

.t4 {
  grid-column: span 4;
}

.t12 {
  grid-column: span 12;
}

.tile-idx {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--accent-text);
}

.more {
  margin-top: auto;
  align-self: flex-start;
  color: var(--ink);
  font-size: 15px;
}

.tile-art {
  margin-top: auto;
  text-align: center;
}

.tile-art img {
  width: 74%;
  margin: 0 auto -18px;
}

.tile-dark {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: var(--night-2);
  color: var(--on-night);
}

.tile-dark > p {
  color: var(--on-night-muted);
}

.tile-dark-copy {
  display: grid;
  gap: 12px;
  max-width: 480px;
}

.tile-dark h3 {
  color: var(--on-night);
}

.tile-dark .tile-idx {
  color: #b9b1ff;
}

.tile-dark .btn {
  margin-left: auto;
}

/* Bento components */

.mock {
  margin-top: auto;
  padding: 22px;
  border: 1px solid var(--paper-line);
  border-radius: 20px;
  background: #f8f6f2;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-line);
  font-size: 14px;
  color: var(--ink);
}

.mock-row:last-of-type {
  border-bottom: 0;
}

.mock-row.total {
  padding-top: 16px;
  font-size: 15px;
}

.mock-row.total strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.mock-cap {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tag-mint {
  background: var(--mint-soft);
  color: var(--mint-text);
}

.tag-amber {
  background: var(--amber-soft);
  color: var(--amber-text);
}

.tag-violet {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.tag-neutral {
  background: var(--neutral-soft);
  color: var(--neutral-text);
}

.doc-sheet {
  margin-top: auto;
  padding: 24px;
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px -18px rgb(20 22 31 / 0.35);
}

.doc-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.doc-lines {
  display: grid;
  gap: 10px;
}

.doc-lines span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #ebe8e1;
}

.doc-lines span:nth-child(2) {
  width: 72%;
}

.doc-lines span:nth-child(3) {
  width: 86%;
}

.doc-lines span:nth-child(5) {
  width: 40%;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ink);
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-mark,
.check-open {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.check-mark {
  background: var(--mint-soft);
  color: var(--mint-text);
}

.check-open {
  background: var(--amber-soft);
  color: var(--amber-text);
}

.phone {
  width: min(190px, 72%);
  margin: auto auto 0;
  padding: 12px;
  aspect-ratio: 9 / 18.5;
  border-radius: 34px;
  background: #0b0e18;
  box-shadow: 0 24px 40px -22px rgb(20 22 31 / 0.5);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 18px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #171c2f, #0e1324);
  color: var(--on-night);
  font-size: 12px;
}

.phone-screen h4 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
}

.phone-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.07);
  color: var(--on-night-muted);
}

.phone-row b {
  color: var(--on-night);
  font-weight: 600;
}

.phone-tabs {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  color: var(--on-night-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  color: var(--on-night);
  font-size: 14px;
}

.chip-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7b8092;
}

.chip-status.is-open::before {
  background: #5fd3ad;
}

.chip-status.is-pending::before {
  background: #e0a94c;
}

/* Built for */

.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience .tile h3 {
  font-size: 24px;
}

.glyph {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.glyph svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Billie */

.dark-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 36px;
  background: var(--night);
  color: var(--on-night);
}

.dark-panel .section-title {
  color: var(--on-night);
  margin-top: 16px;
}

.dark-panel .tone {
  color: var(--on-night-tone);
}

.panel-copy {
  max-width: 46ch;
  margin-top: 18px;
  color: var(--on-night-muted);
  font-size: 16px;
}

.chat {
  display: grid;
  gap: 14px;
}

.bubble {
  max-width: 84%;
  padding: 13px 17px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
}

.bubble.user {
  justify-self: end;
  background: var(--accent);
  color: #fff;
}

.proposal {
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
}

.proposal-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.proposal .actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

/* Tax time */

.tax {
  padding-top: 0;
}

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

.mini {
  padding: 30px;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.mini-num {
  display: block;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--accent-text);
}

.mini h3 {
  font-size: 26px;
  line-height: 1.12;
  color: var(--ink);
}

.mini p {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 15px;
}

.boundary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 34px 36px;
  border-radius: var(--radius-card);
  background: var(--amber-soft);
  color: #3f2a05;
}

.boundary h3 {
  margin: 12px 0 8px;
  font-size: 30px;
  line-height: 1.1;
  color: #3f2a05;
}

.boundary p {
  color: #5b4413;
  font-size: 15px;
}

.chips-off {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips-off li {
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: #3f2a05;
  font-size: 14px;
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  padding-top: clamp(96px, 12vw, 130px);
  border-top: 1px solid var(--paper-line);
  margin-top: clamp(96px, 12vw, 130px);
}

.faq .section-title {
  margin-top: 16px;
}

.faq-list details {
  padding: 22px 0;
  border-bottom: 1px solid var(--paper-line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--paper-line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 22px;
  transition: transform 0.4s var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 60ch;
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 15px;
}

.faq-list details[open] p {
  animation: reveal-in 0.5s var(--ease);
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Final call to action */

.final {
  margin-top: clamp(96px, 12vw, 130px);
  padding: clamp(48px, 7vw, 96px);
  border-radius: 36px;
  background: radial-gradient(circle at 15% 100%, rgb(109 93 240 / 0.35), transparent 45%), var(--night);
  color: var(--on-night);
}

.final .section-title {
  color: var(--on-night);
  margin: 16px 0 18px;
}

.final .tone {
  color: var(--on-night-tone);
}

/* Footer */

.site-footer {
  padding: 72px 0 36px;
  border-top: 1px solid var(--night-line);
  background: var(--night);
  color: var(--on-night-muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer-grid h2 {
  margin-bottom: 14px;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-night);
}

.footer-grid nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid nav a,
.footer-status a {
  text-decoration: none;
  transition: color 0.3s;
}

.footer-grid nav a:hover,
.footer-status a:hover {
  color: var(--on-night);
}

.footer-brand p {
  max-width: 32ch;
  margin-top: 16px;
}

.footer-status p {
  margin-bottom: 12px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  font-size: 12px;
}

.footer-bottom a {
  text-decoration: none;
}

/* Try agent page */

.hero-band {
  padding: clamp(120px, 16vh, 170px) 0 clamp(120px, 15vh, 170px);
}

.hero-band h1 {
  max-width: 16ch;
  margin: 22px 0 22px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
  color: var(--on-night);
}

.hero-band .lede {
  max-width: 56ch;
  color: var(--on-night-muted);
  font-size: 18px;
}

/* Reveal and motion. Only applied once site.js has added .js to <html>,
   so content stays visible without JavaScript. */

.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  translate: 0 0;
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms;
}

.reveal[data-d="1"] {
  --d: 120ms;
}

.reveal[data-d="2"] {
  --d: 240ms;
}

.reveal[data-d="3"] {
  --d: 360ms;
}

.reveal[data-d="4"] {
  --d: 480ms;
}

.reveal[data-d="5"] {
  --d: 600ms;
}

.js .process-line path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease) 0.3s;
}

.js .process-line.is-in path {
  stroke-dashoffset: 0;
}

/* Polish and transitions. Base states stay visible, so reduced motion (which disables animations) shows the final layout. */

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

::view-transition-old(root) {
  animation: vt-out 0.32s var(--ease) both;
}

::view-transition-new(root) {
  animation: vt-in 0.5s var(--ease) both;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.site-header .header-row {
  animation: header-in 0.9s var(--ease) both;
}

.btn:active {
  transform: scale(0.98);
}

.site-nav a[aria-current="true"] {
  color: var(--on-night);
  background: rgb(255 255 255 / 0.1);
}

.js .tile.is-in .chip-status {
  animation: chip-in 0.7s var(--ease) both;
}

.js .tile.is-in .chips li:nth-child(1) { animation-delay: 300ms; }
.js .tile.is-in .chips li:nth-child(2) { animation-delay: 380ms; }
.js .tile.is-in .chips li:nth-child(3) { animation-delay: 460ms; }
.js .tile.is-in .chips li:nth-child(4) { animation-delay: 540ms; }
.js .tile.is-in .chips li:nth-child(5) { animation-delay: 620ms; }

.js .tile.is-in .checklist li {
  animation: chip-in 0.6s var(--ease) both;
}

.js .tile.is-in .checklist li:nth-child(1) { animation-delay: 250ms; }
.js .tile.is-in .checklist li:nth-child(2) { animation-delay: 330ms; }
.js .tile.is-in .checklist li:nth-child(3) { animation-delay: 410ms; }

.footer-grid nav a,
.footer-status a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.3s, background-size 0.4s var(--ease);
}

.footer-grid nav a:hover,
.footer-status a:hover {
  background-size: 100% 1px;
}

/* Responsive */

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .dark-panel,
  .boundary,
  .faq {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: 2;
    max-width: 560px;
  }

  .t7,
  .t5,
  .t4 {
    grid-column: span 12;
  }

  .t7 {
    min-height: 0;
  }

  .audience,
  .mini-grid {
    grid-template-columns: 1fr 1fr;
  }

  .faq {
    gap: 40px;
  }
}

@media (max-width: 880px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .header-row {
    width: calc(100% - 24px);
    gap: 10px;
    min-height: 56px;
    padding: 6px 6px 6px 14px;
  }

  .header-row .wordmark {
    font-size: 19px;
  }

  .header-row .wordmark img {
    width: 26px;
    height: 26px;
  }

  .header-row .btn-small {
    margin-left: auto;
    min-height: 40px;
    padding: 0 4px 0 14px;
    font-size: 13px;
  }

  .header-row .btn-small .chip {
    width: 32px;
    height: 32px;
  }

  .sheet {
    margin-top: -32px;
    border-radius: 28px 28px 0 0;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 0;
  }

  .process-line {
    display: none;
  }

  .note,
  .note:nth-child(n) {
    transform: none;
  }

  .note:nth-child(2) {
    background: #f3f0ff;
  }

  .note:hover,
  .note:nth-child(2):hover {
    transform: translateY(-3px);
  }

  .audience,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .tile {
    padding: 24px;
  }

  .bubble {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .tile-dark {
    flex-direction: column;
    align-items: flex-start;
  }

  .tile-dark .btn {
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .header-cta {
    padding-left: 14px;
  }
}

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

  .js .reveal {
    opacity: 1;
    translate: none;
  }

  .js .process-line path {
    stroke-dashoffset: 0;
  }
}
