/* Yup For It · public website. The app's look from artifact/design/design-tokens.json:
   the cream canvas, ink type, black pills, the brush "Yup", brand orange and YUP pink.
   Light by default, dark with the system setting or the theme button (data-theme). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
/* Kaushan Script, only the letters of the brush lines ("You're all for it!"). */
@font-face {
  font-family: 'Yup Brush';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/kaushan-yup.woff') format('woff');
}

:root {
  color-scheme: light;
  --canvas: #fdfbf7;
  --surface: #ffffff;
  --sunken: #f3f1ec;
  --hairline: #e7e3dc;
  --ink: #0b1220;
  --ink-2: #5f6270;
  --link: #1f55e0;
  --accent-text: #b83e00;
  --orange: #fd641b;
  --spark: #fec823;
  --pink: #e90362;
  --pink-text: #c2185b;
  --success: #2e7d34;
  --danger: #c0261b;
  --danger-bg: #d92d20;
  --cta: #141414;
  --on-cta: #ffffff;
  --focus: #1f55e0;
  --aurora-pink: #feeef1;
  --aurora-apricot: #fee1c0;
  --aurora-mint: #d2f2da;
  --aurora-lilac: #f2e2f9;
  --aurora-sky: #cbe5ee;
  --magic: linear-gradient(180deg, #262c60 0%, #43417a 30%, #795484 50%, #df7a5f 75%, #fda053 88%, #fdc06d 100%);
  --shadow-card: 0 8px 24px rgba(11, 18, 32, 0.08);
  --shadow-float: 0 12px 32px rgba(20, 20, 20, 0.18);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --gutter: 24px;
  --max: 1080px;
  --font: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --canvas: #0e1016;
    --surface: #171a22;
    --sunken: #20242e;
    --hairline: #2c313d;
    --ink: #f5f2ec;
    --ink-2: #a9acb8;
    --link: #8eb1ff;
    --accent-text: #ff8f57;
    --orange: #ff7a3d;
    --pink-text: #ff7ab4;
    --success: #6fd27b;
    --danger: #ff8a80;
    --cta: #f5f2ec;
    --on-cta: #0e1016;
    --focus: #8eb1ff;
    --aurora-pink: #2a1420;
    --aurora-apricot: #2a1c10;
    --aurora-mint: #10241a;
    --aurora-lilac: #221530;
    --aurora-sky: #0f2230;
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #0e1016;
  --surface: #171a22;
  --sunken: #20242e;
  --hairline: #2c313d;
  --ink: #f5f2ec;
  --ink-2: #a9acb8;
  --link: #8eb1ff;
  --accent-text: #ff8f57;
  --orange: #ff7a3d;
  --pink-text: #ff7ab4;
  --success: #6fd27b;
  --danger: #ff8a80;
  --cta: #f5f2ec;
  --on-cta: #0e1016;
  --focus: #8eb1ff;
  --aurora-pink: #2a1420;
  --aurora-apricot: #2a1c10;
  --aurora-mint: #10241a;
  --aurora-lilac: #221530;
  --aurora-sky: #0f2230;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--link);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-2);
  max-width: 40em;
}
.muted {
  color: var(--ink-2);
}
.small {
  font-size: 0.9rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: var(--cta);
  color: var(--on-cta);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
}

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
/* The logo is the app's own artwork (splash and onboarding, `frontend/assets/onboarding/logo.webp`):
   the ink "Yup" over the orange "For It" with the yellow sparks. On a dark ground the "Yup" is drawn
   reversed, as the app's LogotypeArt does (`logo-dark.webp`). Plain images, no CSS mask: a mask image
   is fetched with CORS and vanishes when the page is opened from a file or another origin. */
.logo {
  display: block;
  height: 52px;
  aspect-ratio: 560 / 419;
  line-height: 0;
}
.logo-art {
  display: block;
  width: 100%;
  height: 100%;
}
.logo-on-dark {
  display: none;
}
:root[data-theme='dark'] .logo-on-dark {
  display: block;
}
:root[data-theme='dark'] .logo-on-light {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .logo-on-dark {
    display: block;
  }
  :root:not([data-theme='light']) .logo-on-light {
    display: none;
  }
}
.site-footer .logo {
  height: 60px;
  margin-bottom: 12px;
}
.site-nav {
  margin-left: auto;
  order: 2;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover {
  background: var(--sunken);
}
.site-nav a[aria-current='page'] {
  background: var(--sunken);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  order: 3;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.icon-button svg {
  width: 20px;
  height: 20px;
}
.menu-button {
  display: none;
}
.theme-icon-dark {
  display: none;
}
:root[data-theme='dark'] .theme-icon-dark {
  display: block;
}
:root[data-theme='dark'] .theme-icon-light {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-icon-dark {
    display: block;
  }
  :root:not([data-theme='light']) .theme-icon-light {
    display: none;
  }
}

@media (max-width: 860px) {
  .js .menu-button {
    display: inline-flex;
  }
  .site-header .wrap {
    flex-wrap: wrap;
  }
  .header-actions {
    margin-left: auto;
    order: 2;
  }
  .site-nav {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .js .site-nav {
    display: none;
  }
  .js .site-nav.open {
    display: block;
    padding-bottom: 12px;
  }
  .site-nav ul {
    flex-direction: column;
  }
  .site-nav a {
    width: 100%;
    font-size: 1.05rem;
  }
}

/* ---- Buttons and pills --------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--cta);
  color: var(--on-cta);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.16s ease;
}
.button:hover {
  box-shadow: var(--shadow-float);
}
.button:active {
  transform: scale(0.97);
}
.button[disabled],
.button[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.button.secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--hairline);
}
.button.danger {
  background: var(--danger-bg);
  color: #ffffff;
}
.button.yup {
  background: var(--pink);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(253, 98, 162, 0.35);
}
.button .arrow {
  font-size: 1.2em;
  line-height: 1;
}
.link-button:disabled {
  color: var(--ink-2);
  text-decoration: none;
  cursor: default;
}
.link-button {
  background: none;
  border: 0;
  padding: 8px 4px;
  min-height: 44px;
  color: var(--link);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  border: 1.5px dashed var(--hairline);
  font: inherit;
  text-align: left;
  cursor: not-allowed;
}
.store-button svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.store-button strong {
  display: block;
  font-size: 1rem;
}
.store-button span span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--sunken);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.draft-banner {
  border: 2px solid var(--accent-text);
  background: color-mix(in srgb, var(--aurora-apricot) 70%, var(--surface));
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 0 0 32px;
}
.draft-banner strong {
  color: var(--accent-text);
  letter-spacing: 0.04em;
}

/* ---- Sections ------------------------------------------------------------ */
main {
  display: block;
}
.section {
  padding: 64px 0;
}
.section.tight {
  padding: 40px 0;
}
.section + .section {
  border-top: 1px solid var(--hairline);
}
.page-head {
  position: relative;
  padding: 56px 0 24px;
  overflow: hidden;
}
.page-head .wrap {
  position: relative;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 560px;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 30%, var(--aurora-pink) 0%, transparent 70%),
    radial-gradient(35% 45% at 80% 20%, var(--aurora-sky) 0%, transparent 70%),
    radial-gradient(35% 40% at 60% 70%, var(--aurora-apricot) 0%, transparent 70%),
    radial-gradient(30% 40% at 35% 85%, var(--aurora-mint) 0%, transparent 70%),
    radial-gradient(30% 35% at 92% 70%, var(--aurora-lilac) 0%, transparent 70%);
  filter: saturate(1.05);
  z-index: 0;
}
.page-head .wrap,
.hero .wrap {
  z-index: 1;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 860px) {
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .grid.two,
  .grid.three {
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding: 48px 0;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card h3 {
  margin-top: 4px;
}
.card p:last-child {
  margin-bottom: 0;
}
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sunken);
  font-size: 1.35rem;
}
.prose > * {
  max-width: 46em;
}
.prose h2 {
  margin-top: 2em;
}
.prose h3 {
  margin-top: 1.6em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.5em;
  font-size: 0.95rem;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
}
.prose th {
  background: var(--sunken);
}
.table-scroll {
  overflow-x: auto;
}
.placeholder {
  background: color-mix(in srgb, var(--spark) 35%, transparent);
  border-radius: 4px;
  padding: 0 4px;
}

/* ---- Home hero ------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}
.hero-logo {
  margin: 0 0 18px;
}
.hero h1 {
  margin-bottom: 16px;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}
.privacy-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 500;
}
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- How it works steps ---------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 72px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cta);
  color: var(--on-cta);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 {
  margin-bottom: 4px;
}
.steps p {
  margin: 0;
  color: var(--ink-2);
}
.signature {
  font-weight: 800;
}
.anon-row {
  display: flex;
  gap: -8px;
  margin: 8px 0 12px;
}
.anon-row img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  margin-right: -10px;
  box-shadow: 0 0 0 2px rgba(139, 92, 251, 0.35);
}
.never-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.never-list li {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--hairline);
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-color: var(--danger);
  text-decoration-thickness: 2px;
}

/* ---- FAQ ------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.4rem;
  color: var(--ink-2);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details > div {
  padding-bottom: 18px;
  color: var(--ink-2);
}
.faq details > div p:last-child {
  margin-bottom: 0;
}

/* ---- Forms (delete my account) --------------------------------------------- */
.flow {
  max-width: 560px;
}
.flow-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 600px) {
  .flow-card {
    padding: 20px;
  }
}
.progress {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}
.progress li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.progress li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hairline);
}
.progress li[aria-current='step'] {
  color: var(--ink);
}
.progress li[aria-current='step']::before,
.progress li.done::before {
  background: var(--link);
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.field label {
  font-weight: 700;
}
.field .hint {
  color: var(--ink-2);
  font-size: 0.9rem;
}
.input-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  overflow: hidden;
}
.input-row:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent);
}
.input-row .prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--sunken);
  font-weight: 700;
  border-right: 1.5px solid var(--hairline);
}
.input-row input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  padding: 0 14px;
}
.input-row input:focus {
  outline: none;
}
input.code {
  letter-spacing: 0.4em;
  font-variant-numeric: tabular-nums;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0 20px;
  font-weight: 600;
}
.check input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--danger-bg);
  flex-shrink: 0;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.message {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 0 0 16px;
  font-weight: 600;
}
.message:empty {
  display: none;
}
.message.error {
  background: color-mix(in srgb, var(--danger-bg) 14%, var(--surface));
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger-bg) 40%, transparent);
}
.message.info {
  background: var(--sunken);
  color: var(--ink);
}
.timeline {
  display: grid;
  gap: 0;
  margin: 8px 0 20px;
  padding: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  padding: 0 0 18px 32px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--link);
}
.timeline li::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: var(--hairline);
}
.timeline li:last-child::after {
  display: none;
}
.timeline strong {
  display: block;
}
strong[data-fill] {
  white-space: nowrap;
}
.flow-card + p {
  margin-top: 16px;
}
.reference {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background: var(--sunken);
  border-radius: 8px;
  padding: 2px 10px;
}
[hidden] {
  display: none !important;
}

/* ---- Invite page ------------------------------------------------------------ */
/* Phone first: one warm card, the inviter's initial in the brand ring, one big button. */
.invite-hero {
  position: relative;
  padding: 28px 0 40px;
  overflow: hidden;
}
.invite-hero .wrap {
  position: relative;
  z-index: 1;
}
.invite-card {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 22px 22px;
}
.invite-avatar {
  width: 108px;
  height: 108px;
  margin: 2px auto 18px;
  padding: 4px;
  border-radius: 50%;
  background: var(--magic);
  box-shadow: 0 14px 40px rgba(233, 3, 98, 0.22);
}
.invite-avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  font-size: 2.6rem;
  line-height: 1;
}
.invite-avatar span.is-initial {
  font-size: 2.9rem;
  font-weight: 800;
  color: var(--ink);
}
.invite-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 7.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.invite-card .lead {
  max-width: 30em;
  margin: 0 auto 22px;
  color: var(--ink-2);
  font-size: 1.05rem;
}
.invite-actions {
  display: grid;
  gap: 12px;
}
.invite-actions .button {
  width: 100%;
}
.invite-open {
  min-height: 60px;
  font-size: 1.15rem;
}
.invite-store-note,
.invite-iphone,
.invite-fallback {
  margin: 10px 0 0;
}
.invite-iphone.is-strong {
  color: var(--ink);
  font-weight: 600;
}
.invite-hint {
  margin: 14px 0 0;
  color: var(--accent-text);
  font-weight: 600;
}
.invite-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 26px 0 6px;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  background: var(--sunken);
  list-style: none;
}
.invite-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 0.85rem;
  line-height: 1.3;
}
.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--hairline);
}
.invite-steps li:last-child .step-dot {
  background: var(--pink);
  color: #ffffff;
  box-shadow: none;
}
.invite-code {
  margin-top: 14px;
}
.invite-code summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 0.9rem;
  cursor: pointer;
}
.invite-card .code-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 4px 0;
  padding: 8px 8px 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--sunken);
}
.invite-card .code-box code {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  word-break: break-all;
}
.invite-more {
  margin: 18px 0 0;
}
@media (min-width: 700px) {
  .invite-hero {
    padding: 56px 0 72px;
  }
  .invite-card {
    padding: 36px 40px 28px;
  }
}

/* ---- Footer ----------------------------------------------------------------- */
.site-footer {
  margin-top: 40px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 24px;
}
.footer-grid h2 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-grid li {
  margin-bottom: 6px;
}
.footer-grid a {
  color: var(--ink);
  display: inline-block;
  padding: 4px 0;
}
.footer-bottom {
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 0.85rem;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---- Landing page, For businesses, header button (wave 21) --------------------- */
/* "Partner log in": the last item of the menu, drawn as a button. */
.site-nav .nav-cta a {
  margin-left: 6px;
  padding: 0 20px;
  background: var(--cta);
  color: var(--on-cta);
}
.site-nav .nav-cta a:hover {
  background: var(--cta);
  box-shadow: var(--shadow-float);
}
@media (max-width: 860px) {
  .site-nav .nav-cta {
    margin-top: 8px;
  }
  .site-nav .nav-cta a {
    justify-content: center;
    margin-left: 0;
  }
}

/* Hero: the app icon beside the brush logo, and the store buttons. */
.hero-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px clamp(14px, 3vw, 24px);
  margin: 0 0 22px;
}
.hero-brand .hero-logo {
  margin: 0;
  min-width: 0;
}
.app-icon {
  display: block;
  flex-shrink: 0;
  width: clamp(56px, 9vw, 96px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22%;
  box-shadow: var(--shadow-float);
}
.get-app {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}
.get-app > * {
  margin: 0;
}
.get-app-label {
  font-weight: 700;
}
.store-button.live {
  border-style: solid;
  border-color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.store-button.live:hover {
  box-shadow: var(--shadow-card);
}
/* The icon and the logo artwork share one row. */
.hero-logo .logo {
  height: clamp(118px, 15vw, 188px);
}
@media (max-width: 860px) {
  .hero-logo .logo {
    height: clamp(104px, 30vw, 160px);
  }
}

/* Sections of the landing page. */
main [id] {
  scroll-margin-top: 84px;
}
.section-link {
  margin: 24px 0 0;
  font-weight: 600;
}
.step-cards {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.step-cards li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.step-cards li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--cta);
  color: var(--on-cta);
  font-weight: 800;
}
.step-cards h3 {
  margin-top: 0;
}
.step-cards p {
  margin: 0;
  color: var(--ink-2);
}
@media (max-width: 860px) {
  .step-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 860px) {
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .grid.four {
    grid-template-columns: minmax(0, 1fr);
  }
}
.band {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow-card);
}
.band > :last-child {
  margin-bottom: 0;
}
.band.tint {
  background: color-mix(in srgb, var(--aurora-apricot) 45%, var(--surface));
}
.section-intro {
  margin-bottom: 28px;
}
.tick-list,
.cross-list {
  display: grid;
  gap: 12px;
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}
.tick-list li,
.cross-list li {
  position: relative;
  padding-left: 34px;
}
.tick-list li::before,
.cross-list li::before {
  position: absolute;
  left: 0;
  top: 0.12em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}
.tick-list li::before {
  content: '✓';
  content: '✓' / '';
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
}
.cross-list li::before {
  content: '✕';
  content: '✕' / '';
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  color: var(--danger);
}
.faq-wide {
  max-width: 780px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.chip-row .chip {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--hairline);
}
.biz-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}
@media (max-width: 860px) {
  .biz-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
.fee-rows {
  margin: 0 0 24px;
}
.fee-rows > div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.fee-rows > div:first-child {
  border-top: 1px solid var(--hairline);
}
.fee-rows dt {
  font-weight: 700;
}
.fee-rows dd {
  margin: 0;
  color: var(--ink-2);
}
@media (max-width: 600px) {
  .fee-rows > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
.button-row + .small,
.portal-note {
  margin-top: 16px;
}
.section .store-buttons + .small {
  margin-top: 12px;
}

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