/* Loupe marketing site. Deep Tide design system (Figma "Loupe Brand Guidelines and Design System"; primitives as in the
   platform's packages/ui/src/tokens.css). Seafoam stays the button color; the "tide" colors (seafoam, teal and blue from the
   same palette) carry the bolder accents: the three-band waves, the headline highlight and Connie. */
:root {
  --navy: #102F46;
  --navy-950: #0B2233;
  --navy-800: #183B52;
  --navy-700: #244B62;
  --seafoam: #A8DEC9;
  --seafoam-hover: #8CCBB3;
  --seafoam-100: #D2EEE1;
  --seafoam-50: #E5F3EC;
  --seafoam-700: #2C7359;
  --seafoam-800: #20583F;
  --teal-300: #8AC5C0;
  --blue-300: #91CAE0;
  --blue-50: #E5F0F5;
  --blue-800: #0B536D;
  --amber-300: #E8C477;
  --amber-50: #FCF2D8;
  --amber-800: #725318;
  --violet-50: #F0EDF5;
  --violet-300: #C1B5D6;
  --violet-600: #6D5E84;
  --canvas: #F4F6F2;
  --white: #FFFFFF;
  --subtle: #EAF0ED;
  --line: #DDE8E8;
  --line-strong: #C4D2D5;
  --text: #102F46;
  --text-2: #48606F;
  --text-3: #557182;
  --on-navy: #F4F6F2;
  --on-navy-2: #A9C0CC;
  --line-on-navy: rgba(169,192,204,.2);
  --danger: #8F342B;
  --danger-50: #FBECE9;
  --tide: linear-gradient(100deg, #A8DEC9 0%, #8AC5C0 48%, #91CAE0 100%);
  --shadow-1: 0 2px 8px rgba(16,47,70,.08);
  --shadow-2: 0 8px 24px rgba(16,47,70,.14);
  --shadow-3: 0 16px 48px rgba(16,47,70,.20);
  --r-md: 8px; --r-lg: 12px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1152px;
  --gutter: 64px;
  --nav-h: 72px;
}
@media (max-width: 1023px) { :root { --gutter: 40px; } }
@media (max-width: 639px)  { :root { --gutter: 20px; --nav-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--navy); scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; overflow-x: clip; background: var(--canvas); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-800); outline-offset: 2px; border-radius: 4px; }
.on-navy :focus-visible { outline-color: var(--seafoam); }
.wrap { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--seafoam); color: var(--navy); padding: 8px 16px; border-radius: var(--r-md); }
.skip:focus { left: 12px; }
.wm { display: block; height: auto; color: currentColor; }

/* type */
.display { font-size: 72px; line-height: 76px; letter-spacing: -2px; }
.h2 { font-size: 48px; line-height: 54px; letter-spacing: -1.2px; }
.h3 { font-size: 28px; line-height: 34px; letter-spacing: -.4px; }
.h4 { font-size: 20px; line-height: 26px; font-weight: 500; }
.lead { font-size: 20px; line-height: 30px; color: var(--text-2); }
.on-navy .lead { color: var(--on-navy-2); }
.tide-text { background: var(--tide); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 1023px) { .display { font-size: 56px; line-height: 60px; } .h2 { font-size: 40px; line-height: 46px; } }
@media (max-width: 639px) { .display { font-size: 42px; line-height: 46px; letter-spacing: -1.2px; } .h2 { font-size: 32px; line-height: 38px; letter-spacing: -.8px; } .h3 { font-size: 24px; line-height: 30px; } .lead { font-size: 18px; line-height: 27px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: var(--r-md);
  font: inherit; font-size: 15px; line-height: 20px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .12s var(--ease); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-lg { min-height: 52px; padding: 14px 22px; font-size: 16px; }
.btn-primary { background: var(--seafoam); color: var(--navy); }
.btn-primary:hover { background: var(--seafoam-hover); }
.btn:disabled { opacity: .5; cursor: progress; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--blue-800); font-weight: 500; text-decoration: none; }
.link svg { width: 16px; height: 16px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.on-navy .link { color: var(--on-navy); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); color: var(--on-navy); background: rgba(11,34,51,.86); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); transition: background-color .24s var(--ease), color .24s var(--ease), box-shadow .24s var(--ease); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 4px; }
.nav .brand { color: inherit; margin-right: auto; display: flex; padding: 8px 0; }
.nav .wm { width: 100px; }
.nav .navlink { color: inherit; text-decoration: none; font-size: 15px; padding: 10px 14px; border-radius: var(--r-md); }
.nav .navlink:hover { background: rgba(244,246,242,.1); }
.nav .navlink[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--seafoam); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.js .nav:not(.over):not(.light) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav:not(.light) :focus-visible { outline-color: var(--seafoam); }
.nav.over { background: rgba(11,34,51,.8); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.nav.light { color: var(--text); background: rgba(244,246,242,.9); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav.light .navlink:hover { background: var(--subtle); }
.nav.light .navlink[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--seafoam-700); }
.nav.light :focus-visible { outline-color: var(--blue-800); }
@media (max-width: 767px) { .nav .navlink { display: none; } .nav .wm { width: 88px; } }

/* sections */
.band { position: relative; padding-block: 128px; }
@media (max-width: 639px) { .band { padding-block: 88px; } }
.navy { background: var(--navy); color: var(--on-navy); }
.white { background: var(--white); }
.canvas { background: var(--canvas); }
.center { text-align: center; }
.center .actions { justify-content: center; }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.center .head { margin-inline: auto; align-items: center; }

/* hero */
.hero { position: relative; padding-top: calc(var(--nav-h) + 72px); padding-bottom: 48px; background: radial-gradient(110% 80% at 80% 10%, var(--navy-800) 0%, var(--navy) 45%, var(--navy-950) 100%); color: var(--on-navy); overflow: hidden; }
.hero .contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .contours path { fill: none; stroke: var(--on-navy-2); stroke-width: 1; opacity: .2; vector-effect: non-scaling-stroke; stroke-dasharray: 3200; stroke-dashoffset: 0; animation: draw 2.4s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 3200; } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
@media (max-width: 1023px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } }
.hero-msg { position: relative; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-msg .lead { max-width: 480px; }
.page-hero { padding-bottom: 72px; }
.page-hero .hero-msg { max-width: 760px; }

/* entrance: the hero settles in once, nothing loops */
.in { animation: rise .9s var(--ease) both; }
.in-2 { animation-delay: .08s; } .in-3 { animation-delay: .16s; } .in-4 { animation-delay: .26s; } .in-5 { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* three-band wave: a section ends in the brand's thread curve, and the bands slide apart as the page scrolls */
.wave { display: block; width: 100%; height: 120px; margin-top: -1px; margin-bottom: -1px; }
.wave path { transform: translate3d(calc(var(--p, .5) * var(--s, 0px)), 0, 0); }
.wave .b1 { --s: -60px; } .wave .b2 { --s: -120px; } .wave .b3 { --s: -180px; }
@media (max-width: 639px) { .wave { height: 64px; } }

/* product cards: few rows, large type */
.card { background: var(--white); color: var(--text); border-radius: 20px; box-shadow: var(--shadow-3), 0 0 0 1px rgba(16,47,70,.04); overflow: hidden; text-align: left; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 16px; }
.card-title { font-size: 18px; line-height: 24px; font-weight: 500; }
.card-sub { font-size: 13px; line-height: 18px; color: var(--text-3); }
.rows { list-style: none; margin: 0; padding: 0 8px 8px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); }
.row + .row { box-shadow: 0 -1px 0 var(--line); }
.row.hl { background: var(--seafoam-50); box-shadow: none; }
.row.hl + .row { box-shadow: none; }
.row strong { display: block; font-weight: 500; }
.row span.sub { display: block; font-size: 13px; line-height: 18px; color: var(--text-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.pill-ok { background: var(--seafoam-50); color: var(--seafoam-800); }
.pill-warn { background: var(--danger-50); color: var(--danger); }
.pill-info { background: var(--blue-50); color: var(--blue-800); }
.pill-amber { background: var(--amber-50); color: var(--amber-800); }
.pill-navy { background: var(--navy); color: var(--on-navy); }
.mini { display: inline-flex; padding: 8px 14px; border-radius: var(--r-md); background: var(--seafoam); color: var(--navy); font-size: 14px; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 4px 24px 24px; }
.stat span { display: block; font-size: 13px; color: var(--text-3); }
.stat b { display: block; font-size: 30px; line-height: 36px; font-weight: 400; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
@media (max-width: 400px) { .stat b { font-size: 24px; line-height: 30px; } }
.bubble { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--white); color: var(--text); border-radius: 20px; box-shadow: var(--shadow-3); text-align: left; }
.bubble p { color: var(--text-2); font-size: 15px; line-height: 22px; }
.bubble strong { display: block; font-weight: 500; font-size: 14px; color: var(--text); }
/* Connie's avatar is the wordmark's own handwritten l */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; grid-template-rows: 100%; place-items: center; flex: none; background: var(--navy); color: var(--on-navy); }
.avatar svg { height: 66%; width: auto; }
.avatar.tide { background: var(--tide); color: var(--navy); }

/* hero visual: two layers, still */
.hero-visual { position: relative; max-width: 520px; justify-self: end; width: 100%; padding-bottom: 104px; }
@media (max-width: 1023px) { .hero-visual { justify-self: center; } }
.hero-visual .bubble { position: absolute; left: -40px; bottom: 0; width: 330px; }
@media (max-width: 639px) { .hero-visual .bubble { left: 12px; right: 12px; width: auto; } }

/* benefits strip */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 40px; }
@media (max-width: 1023px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539px) { .benefits { grid-template-columns: 1fr; } }
.benefit { display: flex; flex-direction: column; gap: 10px; }
.benefit .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px; color: var(--navy); }
.benefit .ic svg { width: 24px; height: 24px; }
.benefit:nth-child(1) .ic { background: var(--seafoam); }
.benefit:nth-child(2) .ic { background: var(--blue-300); }
.benefit:nth-child(3) .ic { background: var(--teal-300); }
.benefit:nth-child(4) .ic { background: var(--amber-300); }
.benefit p { color: var(--text-2); }

/* before and after: twelve rented tools gather into one Loupe */
.swap-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); margin-top: 32px; }
.swap-toggle button { min-height: 40px; padding: 8px 20px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.swap-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); }
.swap { --p: 1; position: relative; container-type: inline-size; width: 100%; max-width: 960px; margin: 40px auto 0; aspect-ratio: 16 / 9; }
.swap-count { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; white-space: nowrap; }
.swap-count span { font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 999px; transition: opacity .5s var(--ease); }
.swap-count .c-before { background: var(--amber-50); color: var(--amber-800); opacity: calc(1 - var(--p)); position: absolute; left: 50%; transform: translateX(-50%); }
.swap-count .c-after { background: var(--seafoam-50); color: var(--seafoam-800); opacity: var(--p); }
.swap-card { position: absolute; left: 5cqw; top: 7cqw; width: 90cqw; height: 47cqw; border-radius: 3cqw; background: var(--white); box-shadow: var(--shadow-3), 0 0 0 1px rgba(16,47,70,.04);
  opacity: var(--p); transform: scale(calc(.94 + var(--p) * .06)); transition: opacity .7s var(--ease), transform .9s var(--ease); overflow: hidden; }
.swap-card::before { content: ""; position: absolute; inset: 0 0 auto; height: .8cqw; background: var(--tide); }
.swap-card header { display: flex; align-items: center; justify-content: space-between; padding: 3.2cqw 3.6cqw 0; color: var(--navy); }
.swap-card .wm { width: 11cqw; }
.tool { position: absolute; left: 0; top: 0; width: 27.6cqw; height: 6.6cqw; display: flex; align-items: center; gap: 1.4cqw; padding: 0 1.6cqw; border-radius: 1.4cqw; background: var(--white);
  font-size: max(12px, 1.5cqw); line-height: 1.2; font-weight: 500; color: var(--text); text-align: left; white-space: nowrap; box-shadow: 0 0 0 1px var(--line), var(--shadow-2);
  transform: translate(calc(var(--ax) * (1 - var(--p)) + var(--bx) * var(--p)), calc(var(--ay) * (1 - var(--p)) + var(--by) * var(--p))) rotate(calc(var(--ar) * (1 - var(--p))));
  transition: transform 1s var(--ease), box-shadow 1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.tool > svg { width: 2.2cqw; height: 2.2cqw; min-width: 16px; min-height: 16px; flex: none; color: var(--text-2); }
.tool .tags { margin-left: auto; display: grid; place-items: center end; }
.tool .tags > * { grid-area: 1 / 1; }
.tool .bill { font-style: normal; font-size: .8em; padding: .2em .55em; border-radius: 999px; background: var(--amber-50); color: var(--amber-800); opacity: calc(1 - var(--p)); transition: opacity .6s var(--ease); }
.tool .inc { width: 2.4cqw; height: 2.4cqw; min-width: 18px; min-height: 18px; border-radius: 50%; background: var(--seafoam); display: grid; place-items: center; opacity: var(--p); transition: opacity .6s .3s var(--ease); }
.tool .inc svg { width: 62%; height: 62%; color: var(--navy); }
.swap[data-state="after"] .tool { box-shadow: 0 0 0 1px var(--line); }
.swap.instant .tool, .swap.instant .swap-card, .swap.instant .bill, .swap.instant .inc, .swap.instant .swap-count span { transition: none !important; }
@media (max-width: 767px) {
  .swap { aspect-ratio: 3 / 5; }
  .swap-card { left: 4cqw; top: 12cqw; width: 92cqw; height: 152cqw; border-radius: 5cqw; }
  .swap-card header { padding: 5cqw 6cqw 0; }
  .swap-card .wm { width: 22cqw; }
  .tool { width: 84cqw; height: 9.4cqw; font-size: 14px; gap: 3cqw; padding: 0 3.6cqw; border-radius: 3cqw;
    transform: translate(calc(var(--mx) * (1 - var(--p)) + 8cqw * var(--p)), calc(var(--my) * (1 - var(--p)) + var(--mb) * var(--p))) rotate(calc(var(--ar) * (1 - var(--p)))); }
  .tool > svg { width: 4.6cqw; height: 4.6cqw; }
  .tool .inc { width: 5.4cqw; height: 5.4cqw; }
}

/* stories: one idea per view, text beside one visual */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; align-items: center; }
.story + .story { margin-top: 160px; }
.story.flip .story-text { order: 2; }
.story-text { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.story-visual { position: relative; padding: 40px; border-radius: 32px; }
.story-visual .card { max-width: 440px; margin-inline: auto; }
.sv-1 { background: linear-gradient(150deg, var(--seafoam-50), var(--blue-50)); }
.sv-2 { background: linear-gradient(150deg, var(--blue-50), var(--violet-50)); }
.sv-3 { background: linear-gradient(150deg, var(--amber-50), var(--seafoam-50)); }
.sv-4 { background: linear-gradient(150deg, var(--seafoam-50), var(--subtle)); }
.story-visual .float { position: absolute; right: -16px; bottom: -24px; max-width: 260px; }
@media (max-width: 1023px) {
  .story { grid-template-columns: 1fr; gap: 40px; }
  .story.flip .story-text { order: 0; }
  .story + .story { margin-top: 104px; }
  .story-visual { padding: 24px; }
  .story-visual .float { right: 8px; bottom: -28px; }
}

/* feature chips drifting by: breadth at a glance */
.chips { margin-top: 48px; display: grid; gap: 14px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.chip-row { display: flex; gap: 14px; width: max-content; animation: slide 60s linear infinite; }
.chip-row.rev { animation-direction: reverse; animation-duration: 70s; }
.chips:hover .chip-row { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--line); font-weight: 500; white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--seafoam)); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Connie */
.connie { overflow: hidden; }
.orb { position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(168,222,201,.32), rgba(145,202,224,.16) 40%, rgba(16,47,70,0) 70%); pointer-events: none; }
.connie-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
@media (max-width: 1023px) { .connie-grid { grid-template-columns: 1fr; gap: 48px; } }
.chat { display: flex; flex-direction: column; gap: 12px; max-width: 460px; width: 100%; justify-self: center; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 23px; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.msg.me { align-self: flex-end; background: var(--navy-700); color: var(--on-navy); border-bottom-right-radius: 6px; }
.msg.cn { align-self: flex-start; background: var(--white); color: var(--text); border-bottom-left-radius: 6px; }
.light-chat .msg.me { background: var(--navy); }
.light-chat .msg.cn { background: var(--subtle); }
.msg.pre { opacity: 0; transform: translateY(10px); }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--white); }
.light-chat .typing { background: var(--subtle); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.voice { display: flex; align-items: center; gap: 4px; height: 28px; }
.voice i { width: 4px; border-radius: 4px; background: var(--navy); height: 30%; animation: talk 1.1s ease-in-out infinite; }
.voice i:nth-child(2n) { animation-delay: .15s; } .voice i:nth-child(3n) { animation-delay: .3s; }
@keyframes talk { 50% { height: 100%; } }

/* quote */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; }
.quote p { font-size: 40px; line-height: 50px; letter-spacing: -.8px; }
.quote cite { display: block; margin-top: 24px; font-style: normal; color: var(--text-3); font-size: 15px; }
@media (max-width: 639px) { .quote p { font-size: 28px; line-height: 36px; } }

/* features page */
.fgroup { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 64px; padding-block: 72px; border-top: 1px solid var(--line); }
.fgroup:first-child { border-top: 0; }
.fgroup-head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.fgroup-head .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.flist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.flist li { display: flex; flex-direction: column; gap: 6px; }
.flist strong { font-weight: 500; font-size: 18px; line-height: 24px; }
.flist span { color: var(--text-2); }
@media (max-width: 1023px) { .fgroup { grid-template-columns: 1fr; gap: 32px; } .fgroup-head { position: static; } }
@media (max-width: 539px) { .flist { grid-template-columns: 1fr; gap: 28px; } }

/* Connie page: one ability per view */
.ability { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; align-items: center; }
.ability + .ability { margin-top: 160px; }
.ability.flip > :first-child { order: 2; }
.stage-box { border-radius: 32px; padding: 40px; min-height: 360px; display: grid; align-items: center; }
@media (max-width: 1023px) { .ability { grid-template-columns: 1fr; gap: 40px; } .ability.flip > :first-child { order: 0; } .ability + .ability { margin-top: 104px; } .stage-box { padding: 24px; min-height: 0; } }
.phone { width: min(320px, 100%); margin-inline: auto; padding: 10px; border-radius: 40px; background: var(--navy-950); box-shadow: var(--shadow-3); }
.phone .screen { border-radius: 32px; background: var(--white); padding: 20px 14px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 360px; max-width: none; }
.phone .screen .from { text-align: center; font-size: 13px; color: var(--text-3); padding-bottom: 6px; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
@media (max-width: 1023px) { .rules { grid-template-columns: 1fr; } }
.rule { padding: 28px; border-radius: 20px; background: rgba(244,246,242,.05); box-shadow: inset 0 0 0 1px var(--line-on-navy); }
.rule svg { width: 24px; height: 24px; color: var(--seafoam); margin-bottom: 14px; }
.rule p { font-size: 18px; line-height: 26px; }

/* pricing page */
.calc { max-width: 720px; margin: 48px auto 0; border-radius: 24px; background: var(--white); box-shadow: var(--shadow-3), 0 0 0 1px var(--line); overflow: hidden; text-align: left; }
.calc-rows { padding: 16px 32px 24px; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: center; padding: 12px 0; }
.calc-row + .calc-row { border-top: 1px solid var(--line); }
.calc-row label { font-size: 16px; }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.money::after { content: "/mo"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 13px; }
.money input { width: 100%; min-height: 46px; padding: 10px 44px 10px 28px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font: inherit; font-size: 16px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; background: var(--white); }
.money input:focus { outline: 2px solid var(--blue-800); outline-offset: 0; border-color: var(--blue-800); }
.calc-total { padding: 28px 32px; background: var(--navy); color: var(--on-navy); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.calc-total span { color: var(--on-navy-2); }
.calc-total output { font-size: 48px; line-height: 52px; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
@media (max-width: 539px) { .calc-rows { padding: 8px 20px 16px; } .calc-row { grid-template-columns: minmax(0, 1fr) 128px; } .calc-total { padding: 24px 20px; } .calc-total output { font-size: 36px; line-height: 40px; } }
.perks { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.perk { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: rgba(244,246,242,.06); box-shadow: inset 0 0 0 1px var(--line-on-navy); }
.perk svg { width: 18px; height: 18px; color: var(--seafoam); }

/* apply page */
.apply-wrap { margin-top: -120px; position: relative; z-index: 2; scroll-margin-top: calc(var(--nav-h) + 16px); }
.apply-card { max-width: 760px; margin: 0 auto; background: var(--white); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-3), 0 0 0 1px var(--line); color: var(--text); text-align: left; }
@media (max-width: 639px) { .apply-card { padding: 24px 20px; } }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
@media (max-width: 639px) { .fields { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; line-height: 20px; font-weight: 500; }
.field label .opt { font-weight: 400; color: var(--text-3); }
.control { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--white); color: var(--text); font: inherit; font-size: 16px; line-height: 22px; }
.control:hover { border-color: var(--text-3); }
.control:focus { outline: 2px solid var(--blue-800); outline-offset: 0; border-color: var(--blue-800); }
.control[aria-invalid="true"] { border-color: var(--danger); }
select.control { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2348606F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
textarea.control { min-height: 112px; resize: vertical; }
.field-error { font-size: 12px; line-height: 18px; color: var(--danger); }
.apply-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.apply-foot p { flex: 1 1 260px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.apply-foot a { color: var(--blue-800); }
.form-alert { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-md); background: var(--danger-50); color: var(--danger); font-size: 14px; line-height: 20px; }
.form-alert a { color: inherit; font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts:empty { display: none; }
.ts { margin-top: 16px; }
.apply-done { display: flex; gap: 16px; align-items: flex-start; }
.apply-done:focus { outline: none; }
.apply-done svg { width: 32px; height: 32px; flex: none; color: var(--seafoam-800); background: var(--seafoam-50); border-radius: 50%; padding: 6px; }
.apply-done p { color: var(--text-2); margin-top: 8px; }

/* questions */
.faq { max-width: 820px; margin: 48px auto 0; text-align: left; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 68px; padding: 18px 0; font-size: 19px; line-height: 26px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--text-3); transition: transform .18s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 48px 24px 0; font-size: 17px; line-height: 26px; }

/* closing and footer */
.closing { text-align: center; }
.closing .head { gap: 32px; }
footer { background: var(--navy); color: var(--on-navy-2); position: relative; }
.script { overflow: hidden; color: var(--on-navy-2); opacity: .5; padding-top: 24px; }
.script svg { display: block; height: 72px; width: auto; animation: slide 50s linear infinite; }
.script path { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
footer .wrap { padding-block: 40px 48px; display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: start; }
footer .wm { width: 100px; color: var(--on-navy); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 28px; }
.foot-links a { color: var(--on-navy); text-decoration: none; font-size: 14px; padding: 10px 0; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
footer .copy { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 767px) { footer .wrap { grid-template-columns: 1fr; } .foot-links { justify-content: flex-start; } }

/* gentle reveal for things below the first screen (added by the page script, only when motion is allowed) */
.rv { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv-pre { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .rv-pre { opacity: 1; transform: none; }
  .chip-row { flex-wrap: wrap; width: auto; justify-content: center; }
  .chip-row > [aria-hidden="true"] { display: none !important; }
}
