/* Values from docs/design/DESIGN.md. */
/* One typeface, Bricolage Grotesque (SIL OFL, licence beside the files): the
   text cut for reading, the display cut for lowercase headlines. */
@font-face { font-family: "Bricolage Grotesque Display"; src: url("BricolageGrotesque-Display-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("BricolageGrotesque-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("BricolageGrotesque-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --blue: #2447E6;
  --blue-deep: #142A9C;
  --ink: #0A1033;
  --muted: #4A5372;
  --surface: #F8F9FC;
  --raised: #FFFFFF;
  --sunken: #E9EDF6;
  --line: #DDE2EE;
  --soft: #E4E9FC;
  --line-card: #E6E9F2;
  --mist: #EEF1F8;
  --on-dark: #DDE2F4;
  --orange: #FF6A13;
  --settle: cubic-bezier(.2, .8, .2, 1);
  --gutter: 20px;
  --edge: 8px;
  --display: "Bricolage Grotesque Display", "Bricolage Grotesque", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/24px "Bricolage Grotesque", system-ui, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
img, svg { display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav :focus-visible, .hero :focus-visible, .band :focus-visible, .site-foot :focus-visible { outline-color: #fff; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.display { font: 800 clamp(48px, 11vw, 120px)/.95 var(--display); letter-spacing: -.03em; }
.title { font: 800 clamp(30px, 5vw, 52px)/1.02 var(--display); letter-spacing: -.025em; }
.heading { font-size: 18px; line-height: 24px; font-weight: 700; }
.muted { color: var(--muted); }

/* Line icons: Lucide paths, stroked in the current colour. */
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 32px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; transition: transform .2s var(--settle), background-color .2s; }
.btn:hover { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
/* A button with a trailing arrow sits it in a small round chip, like the app's next-step buttons. */
.btn:has(.btn-dot) { padding-right: 8px; }
.btn-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; }
.btn-blue .btn-dot { background: rgba(255, 255, 255, .18); }
.btn-sm .btn-dot { width: 30px; height: 30px; }
.btn-sm .btn-dot .i { width: 16px; height: 16px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--blue); font-weight: 700; }
.skip:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.eyebrow-light { color: var(--on-dark); }
.eyebrow-light::before { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .16); }

.tile { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: var(--blue); }
.tile-ink { background: var(--ink); }
.tile-glass { background: rgba(255, 255, 255, .1); }

/* Navbar: ink, sticky, a little see-through over the page. */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(10, 16, 51, .88); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { width: 136px; height: auto; }
.nav-links { display: none; gap: 4px; margin: 0 auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--on-dark); font-size: 15px; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.nav-links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-cta { display: none; }
.nav-menu { margin-left: auto; }
.nav-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: #fff; color: var(--ink); }
.nav-panel { position: absolute; left: 12px; right: 12px; top: 76px; display: grid; gap: 4px; padding: 12px; border-radius: 24px; background: #fff; box-shadow: 0 24px 48px -12px rgba(10, 16, 51, .35); animation: drop .2s var(--settle) both; }
.nav-panel a:not(.btn) { padding: 12px 16px; border-radius: 14px; color: var(--ink); font-weight: 700; text-decoration: none; }
.nav-panel a:not(.btn):hover { background: var(--mist); }
.nav-panel .btn { margin-top: 8px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* Hero: ink into Electric Blue, centred, with the app job card on a stage. */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, var(--ink) 0%, var(--blue-deep) 48%, var(--blue) 100%); padding: 56px 0 0; }
.hero-rings, .band-rings { position: absolute; fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1.5; pointer-events: none; }
.hero-rings { width: 420px; right: -160px; top: 40px; }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { margin-top: 20px; }
.lead { max-width: 36em; margin: 24px 0 32px; font-size: 18px; line-height: 28px; color: var(--on-dark); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.checks { list-style: none; padding: 0; margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--on-dark); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .i { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #fff; color: var(--blue); stroke-width: 3; }
/* Arrivals: in from the left, one after another, the way app screens do. */
.hero-in > * { animation: run-in .32s var(--settle) both; }
.hero-in > :nth-child(2) { animation-delay: .06s; }
.hero-in > :nth-child(3) { animation-delay: .12s; }
.hero-in > :nth-child(4) { animation-delay: .18s; }
.hero-in > :nth-child(5) { animation-delay: .24s; }
.stage { animation: rise .5s .3s var(--settle) both; }
@keyframes run-in { from { opacity: 0; transform: translateX(-16px); } }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }

.stage { position: relative; display: grid; justify-items: center; gap: 16px; margin-top: 56px; padding: 32px 16px 0; border-radius: 32px 32px 0 0; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-bottom: 0; }
.stage-cap { padding-bottom: 20px; font-size: 13px; line-height: 18px; color: var(--on-dark); }
.float { display: none; background: #fff; color: var(--ink); border-radius: 24px; padding: 20px; box-shadow: 0 24px 48px -16px rgba(10, 16, 51, .45); }
.float-head { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.float-head .tile { width: 36px; height: 36px; border-radius: 12px; }
.ticks { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232447E6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.float .now { margin-top: 12px; font-size: 18px; line-height: 24px; }
.float .muted { margin-top: 4px; font-size: 14px; line-height: 20px; }

/* Example job card, drawn the way the app draws it. */
.job { width: 100%; max-width: 420px; background: var(--raised); color: var(--ink); border-radius: 28px; padding: 24px; box-shadow: 0 32px 64px -24px rgba(10, 16, 51, .55); text-align: left; }
.job-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--blue); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
/* Signal Orange is for status only, with ink text on it. */
.pill-orange { background: var(--orange); color: var(--ink); }
/* The app's step bar: five stops, filled up to where the job is. */
.stepbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 16px; }
.stepbar i { height: 4px; border-radius: 999px; background: var(--sunken); }
.stepbar i.on { background: var(--blue); }
.stepcap { margin-top: 8px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted); }
.now { margin-top: 16px; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; }
.who { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--blue); font-weight: 700; }
.rows div { display: flex; justify-content: space-between; font-size: 14px; line-height: 28px; }
.rows dt { color: var(--muted); }
.total { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); align-items: baseline; }
.total dt { color: var(--ink); font-weight: 700; }
.total dd { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.01em; }
.held { margin-top: 16px; padding: 12px; border-radius: 16px; background: var(--mist); font-size: 14px; line-height: 20px; }

/* Sections. A .panel is an inset, rounded Mist block. */
main section { padding: 72px 0; }
.panel { margin: 0 var(--edge); border-radius: 32px; background: var(--mist); }
main > .panel:first-child { margin-top: var(--edge); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 40px; }
.section-head .title { max-width: 16em; margin-top: 14px; text-wrap: balance; }
.section-head p:not(.eyebrow) { max-width: 34em; margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 26px; }

/* Steps: four cards with big numbers, a bit of the app in each, and a line under them. */
.steps { list-style: none; padding: 0; display: grid; gap: 16px; }
.step { display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: var(--raised); transition: transform .25s var(--settle), box-shadow .25s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(10, 16, 51, .35); }
.step-top { display: flex; justify-content: space-between; align-items: flex-start; }
.num { font: 800 64px/.9 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--blue); }
.step:nth-child(even) .num { -webkit-text-stroke-color: var(--ink); }
.snip { display: flex; flex-wrap: wrap; gap: 6px; align-content: center; min-height: 72px; margin: 20px 0; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-card); }
.chip { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; line-height: 18px; font-weight: 700; }
.chip-soft { background: var(--soft); border-color: transparent; color: var(--blue); }
.chip-blue { background: var(--blue); border-color: transparent; color: #fff; padding: 8px 16px; }
.snip-rows { display: grid; gap: 0; }
.snip-rows div { display: flex; justify-content: space-between; font-size: 13px; line-height: 22px; }
.snip-rows dt { color: var(--muted); }
.snip-rows dd { font-weight: 700; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 22px; }
.stepline { display: none; }

/* Trades: staggered columns; plumbing leads in blue. */
.trades { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trade { padding: 20px; border-radius: 24px; background: var(--raised); border: 1px solid var(--line-card); transition: transform .25s var(--settle), box-shadow .25s; }
.trade:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(10, 16, 51, .35); }
.trade .heading { margin-top: 20px; }
.trade p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 20px; }
.trade-feature { background: var(--blue); border-color: var(--blue); color: #fff; }
.trade-feature .tile { background: rgba(255, 255, 255, .16); }
.trade-feature p { color: var(--on-dark); }

/* Trust */
.facts { display: grid; gap: 16px; }
.fact { padding: 24px; border-radius: 24px; background: var(--raised); }
.fact .heading { margin-top: 20px; }
.fact p { margin-top: 6px; color: var(--muted); }
.areas { display: grid; gap: 20px; margin-top: 16px; padding: 24px; border-radius: 24px; background: var(--raised); }
.areas-head { display: flex; align-items: center; gap: 14px; }
.areas-head .muted { font-size: 14px; line-height: 20px; }
.area-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-list li { padding: 8px 14px; border-radius: 999px; background: var(--mist); font-size: 14px; line-height: 20px; font-weight: 700; }

/* Artisan band: the hero's colours, in a rounded card. */
.band { position: relative; overflow: hidden; display: grid; gap: 32px; padding: 40px 24px; border-radius: 32px; color: #fff; background: linear-gradient(135deg, var(--ink) 0%, var(--blue-deep) 60%, var(--blue) 100%); }
.band-rings { width: 380px; right: -120px; bottom: -160px; }
.band-copy { position: relative; }
.band .title { margin-top: 14px; }
.band-copy p:not(.eyebrow) { max-width: 30em; margin: 16px 0 28px; color: var(--on-dark); font-size: 17px; line-height: 26px; }
.band-card { position: relative; align-self: center; padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.band-card ul { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 12px; }
.band-card li { display: flex; align-items: center; gap: 14px; color: var(--on-dark); }

/* FAQ: native details, one open at a time is not enforced. */
.faq-grid { display: grid; gap: 8px; }
.faq-grid .btn { margin-top: 24px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: var(--raised); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1033' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s var(--settle), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--soft); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }
.faq details[open] p { animation: drop .25s var(--settle) both; }

/* Footer on the landing page: ink, with the logo set huge and faint. */
.site-foot { position: relative; overflow: hidden; margin-top: 72px; padding: 64px 0 0; background: var(--ink); color: var(--on-dark); font-size: 15px; line-height: 22px; }
.foot-top { display: grid; gap: 40px; }
.foot-brand img { width: 160px; height: auto; }
.foot-brand p { max-width: 22em; margin: 16px 0 24px; }
.foot-label { margin-bottom: 12px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8C96C4; }
.site-foot nav, .site-foot .foot-top > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.site-foot nav a, .site-foot .foot-top > div:last-child a { display: inline-flex; align-items: center; min-height: 36px; color: #fff; text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.foot-bottom { margin-top: 48px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8C96C4; }
.foot-mark { width: calc(100% - 2 * var(--gutter)); max-width: 1100px; height: auto; margin: 8px auto -1.5%; opacity: .07; }

/* Footer on the text pages */
.foot { padding: 32px 0 40px; font-size: 14px; line-height: 20px; color: var(--muted); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); }

/* Text pages */
.doc { max-width: 680px; margin: 0 auto; padding: 40px var(--gutter) 56px; }
.doc h1 { font: 800 clamp(28px, 5vw, 38px)/1.1 var(--display); letter-spacing: -.015em; margin-bottom: 12px; }
.doc h2 { margin: 32px 0 8px; font-size: 18px; line-height: 24px; font-weight: 700; }
.doc p, .doc li { color: var(--muted); }
.doc p + p, .doc p + ul, .doc ul + p, .doc ol + p, .doc table + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 8px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 4px; }
.doc strong { color: var(--ink); }
.doc .btn { margin-top: 24px; }
.table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.table th, .table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--ink); }
.table td { color: var(--muted); }
.table td:first-child { color: var(--ink); font-weight: 700; width: 34%; }

@media (min-width: 640px) {
  :root { --edge: 16px; }
  .trades { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .band { padding: 56px 48px; }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  main section { padding: 104px 0; }
  .nav-links, .nav-cta { display: flex; }
  .nav-menu { display: none; }
  .hero { padding-top: 88px; }
  .hero-rings { width: 560px; right: -180px; top: 24px; }
  .stage { grid-template-columns: 1fr minmax(0, 420px) 1fr; align-items: center; gap: 24px; margin-top: 72px; padding: 48px 32px 0; }
  .stage .job { grid-column: 2; grid-row: 1; margin-bottom: -1px; }
  .float { display: block; width: 100%; max-width: 260px; }
  .float-left { grid-column: 1; grid-row: 1; justify-self: end; transform: rotate(-3deg) translateY(-32px); }
  .float-right { grid-column: 3; grid-row: 1; justify-self: start; transform: rotate(3deg) translateY(40px); }
  .stage-cap { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .stepline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
  .stepline div { display: grid; gap: 8px; }
  .stepline i { height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #6F86F0); }
  .stepline span { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  /* Stagger the trade columns like a bricked wall. */
  .trades { gap: 16px; padding-bottom: 40px; }
  .trade:nth-child(4n + 2), .trade:nth-child(4n + 4) { transform: translateY(40px); }
  .trade:nth-child(4n + 2):hover, .trade:nth-child(4n + 4):hover { transform: translateY(36px); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .areas { grid-template-columns: auto 1fr; align-items: center; gap: 32px; padding: 28px 32px; }
  .band { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; padding: 72px 64px; }
  .faq-grid { grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
  .faq-grid .section-head { position: sticky; top: 112px; align-items: flex-start; text-align: left; margin: 0; }
  .foot-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
}
/* Sections run in as they scroll into view, where the browser can do it
   without script. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head, .step, .trade, .fact, .areas, .band, .faq details { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-in > *, .stage, .nav-panel, .faq details[open] p { animation: none; }
  .btn, .step, .trade, .faq summary::after { transition: none; }
  .btn:hover, .step:hover { transform: none; }
}

/* Invite request form: a native dialog over the page. */
.invite { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: var(--raised); color: var(--ink); box-shadow: 0 32px 64px -24px rgba(10, 16, 51, .55); }
.invite::backdrop { background: rgba(10, 16, 51, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.invite[open] { animation: rise .3s var(--settle) both; }
.invite-form, .invite-done { position: relative; display: grid; gap: 16px; padding: 28px 24px 24px; }
.invite .heading { font-family: var(--display); font-size: 26px; line-height: 30px; font-weight: 800; }
.invite .muted { font-size: 14px; line-height: 20px; margin-top: -8px; }
.invite-x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); cursor: pointer; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; }
.seg legend { margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; line-height: 18px; font-weight: 700; text-align: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.seg input:checked + span { border-color: var(--blue); background: var(--soft); color: var(--blue); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.invite [hidden] { display: none; }
.field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 4px; font-size: 14px; font-weight: 700; }
.field > :is(input, select, textarea) { flex-basis: 100%; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; font-size: 16px; }
.field textarea { resize: vertical; }
/* Every dropdown: our own chevron, with room between it and the edge. */
select, .field select { -webkit-appearance: none; appearance: none; padding-right: 52px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5372' 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 18px center; background-size: 18px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chips legend { margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.chips legend .opt { font-weight: 400; color: var(--muted); }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips label span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .2s, border-color .2s; }
.chips input:checked + span { border-color: var(--blue); background: var(--soft); color: var(--blue); }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; }
.invite-msg { padding: 10px 14px; border-radius: 14px; background: #FDECEC; color: #9B1C1C; font-size: 14px; line-height: 20px; }
.invite-done { justify-items: center; text-align: center; padding-top: 40px; }
.invite-done .muted { margin-top: -8px; }
.invite .btn { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.invite .btn:hover { transform: none; }
.invite .btn:disabled { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .invite[open] { animation: none; } }
