/* ==========================================================================
   Tap Next — app.css
   Playful editorial: warm paper, oversized display type, confetti blobs,
   hard offset shadows. Light theme only, by design.
   ========================================================================== */

/* --------------------------------------------------------------- tokens */
:root {
  /* surface */
  --paper:    #FBF7EF;
  --paper-2:  #F4EDDF;
  --paper-3:  #ECE1CD;
  --white:    #FFFDF9;

  /* ink */
  --ink:      #14120F;
  --ink-2:    #46403A;
  --ink-3:    #6B6157;
  --hair:     rgba(20,18,15,.14);

  /* confetti */
  --coral:    #FF4D2E;
  --sun:      #FFC53D;
  --mint:     #00C48C;
  --sky:      #2F6BFF;
  --grape:    #7A4DFF;
  --blush:    #FF8FB1;

  /* type */
  --display:  'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --body:     'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono:     'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* geometry */
  --w:        1180px;
  --w-narrow: 760px;
  --gut:      clamp(1.15rem, 4vw, 2.5rem);
  --r-xs:     10px;
  --r-sm:     16px;
  --r:        24px;
  --r-lg:     34px;
  --r-xl:     48px;

  /* motion */
  --ease:     cubic-bezier(.22,.61,.36,1);
  --spring:   cubic-bezier(.34,1.56,.64,1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Paper grain. Sits above the background, below every bit of content. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/assets/img/grain.png');
  background-size: 180px 180px;
  opacity: .5;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 2; }

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--paper-2); }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.035em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7.4vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.9vw, 3.65rem); }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); letter-spacing: -.03em; line-height: 1.06; }
h4 { font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.2; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--sun); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 200; background: var(--ink); color: var(--paper);
  padding: .8rem 1.4rem; border-radius: 0 0 var(--r-xs) var(--r-xs);
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 0; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- layout */
.wrap { width: min(var(--w), 100% - var(--gut) * 2); margin-inline: auto; }
.wrap--narrow { width: min(var(--w-narrow), 100% - var(--gut) * 2); }

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }

/* Section intro */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ''; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--tint, var(--coral));
}
.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  color: var(--ink-2); line-height: 1.55; max-width: 46ch; text-wrap: pretty;
}
.intro { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.intro--center { margin-inline: auto; text-align: center; }
.intro--center .lede { margin-inline: auto; }

/* ---------------------------------------------------------------- blobs */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: var(--c);
  border-radius: 50%;
  opacity: .9;
  mix-blend-mode: multiply;
  animation: float 14s var(--ease) infinite alternate;
  animation-delay: var(--d);
}
@keyframes float {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(0,-26px,0) scale(1.06); }
}

/* -------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--ink); border-radius: 999px;
  font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--spring), box-shadow .18s var(--ease), background .18s var(--ease);
  box-shadow: 0 0 0 0 var(--ink);
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 0 var(--ink); }
.btn:active { transform: translate(1px,1px); box-shadow: 0 0 0 0 var(--ink); }
.btn--primary { --btn-bg: var(--coral); --btn-fg: var(--ink); }
.btn--paper   { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn--sun     { --btn-bg: var(--sun); --btn-fg: var(--ink); }
.btn--lg      { padding: 1.15rem 2rem; font-size: 1.07rem; }
.btn--sm      { padding: .6rem 1.1rem; font-size: .92rem; border-width: 2px; }
.btn .ico     { transition: transform .25s var(--spring); }
.btn:hover .ico--arrow { transform: translateX(4px); }

/* Text link with an animated rule */
.tlink {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; text-decoration: none; color: var(--ink);
  padding-bottom: 2px; background-image: linear-gradient(var(--coral), var(--coral));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s var(--ease);
}
.tlink:hover { background-size: 100% 2px; }
.tlink:hover .ico--arrow { transform: translateX(3px); }
.tlink .ico { transition: transform .25s var(--spring); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .9rem .42rem .55rem;
  background: var(--white); border: 1.5px solid var(--hair);
  border-radius: 999px; font-size: .84rem; font-weight: 500; color: var(--ink-2);
}
.pill b { font-weight: 600; color: var(--ink); }
.pill__dot {
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--tint, var(--mint)); display: grid; place-items: center; color: var(--ink);
  flex: none;
}
.pill__dot .ico { width: .85rem; height: .85rem; }

/* --------------------------------------------------------------- header */
.hdr {
  position: sticky; top: 0; z-index: 100;
  padding-block: .85rem;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1.5px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.hdr.is-stuck { border-bottom-color: var(--hair); }
.hdr__in { display: flex; align-items: center; gap: 1.25rem; }
.hdr__nav { display: flex; align-items: center; gap: .35rem; margin-inline: auto; }
.hdr__nav a {
  padding: .55rem .8rem; border-radius: 999px; text-decoration: none;
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.hdr__nav a:hover { background: var(--paper-3); color: var(--ink); }
.hdr__act { display: flex; align-items: center; gap: .6rem; }
.hdr__burger {
  display: none; width: 44px; height: 44px; padding: 0; place-items: center;
  background: var(--white); border: 2px solid var(--ink); border-radius: 50%; cursor: pointer;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo__mark { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.logo__word {
  font-family: var(--display); font-weight: 800; font-size: 1.32rem;
  letter-spacing: -.045em; line-height: 1;
}
.logo__word em { font-style: normal; color: var(--coral); }
.logo__chev { transition: transform .35s var(--spring); transform-origin: 60px 50px; }
.logo:hover .logo__chev { transform: translateX(6px); }
.logo:hover .logo__dot { animation: tapdot .5s var(--spring); }
@keyframes tapdot { 50% { transform: scale(.62); transform-origin: 32px 50px; } }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.hero__badge { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .em { color: var(--coral); position: relative; white-space: nowrap; }
/* Hand-drawn underline that draws itself on load */
.hero h1 .em svg {
  position: absolute; left: 0; right: 0; bottom: -.1em; width: 100%; height: .34em; overflow: visible;
}
.hero h1 .em path {
  fill: none; stroke: var(--sun); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: draw 1.1s .55s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__lede { font-size: clamp(1.1rem, 1.7vw, 1.32rem); max-width: 40ch; }
.hero__form { display: flex; gap: .6rem; margin: 2rem 0 1rem; flex-wrap: wrap; }
.hero__trust { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; color: var(--ink-3); font-size: .89rem; }
.faces { display: flex; }
.faces img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--paper); margin-left: -11px;
}
.faces img:first-child { margin-left: 0; }

/* Inputs */
.field {
  flex: 1 1 15rem; min-width: 0; padding: .95rem 1.25rem;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  font-family: var(--body); font-size: 1rem;
  transition: box-shadow .2s var(--ease);
}
.field::placeholder { color: var(--ink-3); }
.field:focus { outline: none; box-shadow: 4px 4px 0 0 var(--sun); }
.field:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* ------------------------------------------------- the live funnel demo */
.demo { position: relative; }
.demo__stage {
  position: relative; z-index: 2;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 14px 14px 0 0 var(--ink);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  min-height: 27rem;
  display: flex; flex-direction: column;
}
.demo__bar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.demo__dots { display: flex; gap: .3rem; margin-right: auto; }
.demo__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-3); transition: background .3s var(--ease), transform .3s var(--spring); }
.demo__dots i.on { background: var(--coral); transform: scale(1.25); }
.demo__count { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.demo__back {
  border: 0; background: none; padding: .25rem; cursor: pointer; color: var(--ink-3);
  display: grid; place-items: center; border-radius: 50%; transition: color .2s, background .2s;
}
.demo__back:hover { color: var(--ink); background: var(--paper-2); }
.demo__back[hidden] { display: none; }
.demo__back .ico { transform: rotate(180deg); }

.demo__progress { height: 5px; background: var(--paper-3); border-radius: 999px; overflow: hidden; margin-bottom: 1.4rem; }
.demo__progress i { display: block; height: 100%; width: 0; background: var(--coral); border-radius: 999px; transition: width .45s var(--ease); }

.demo__q { font-family: var(--display); font-size: clamp(1.3rem, 2.1vw, 1.65rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 .35rem; }
.demo__help { font-size: .88rem; color: var(--ink-3); margin: 0 0 1.15rem; }

.demo__opts { display: grid; gap: .55rem; margin: 0 0 1rem; }
.opt {
  display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left;
  padding: .8rem .95rem;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--hair); border-radius: var(--r-sm);
  font-family: var(--body); font-size: .97rem; cursor: pointer;
  transition: border-color .18s var(--ease), transform .18s var(--spring), box-shadow .18s var(--ease), background .18s var(--ease);
}
.opt:hover { border-color: var(--ink); transform: translate(-2px,-2px); box-shadow: 4px 4px 0 0 var(--ink); }
.opt.is-picked { border-color: var(--ink); background: var(--sun); box-shadow: 4px 4px 0 0 var(--ink); }
.opt__ico {
  width: 2.35rem; height: 2.35rem; flex: none; border-radius: 11px;
  display: grid; place-items: center; background: var(--paper-2); color: var(--ink);
}
.opt.is-picked .opt__ico { background: var(--ink); color: var(--sun); }
.opt__txt { min-width: 0; }
.opt__label { display: block; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.opt__desc { display: block; font-size: .82rem; color: var(--ink-3); line-height: 1.35; }
.opt__key {
  margin-left: auto; flex: none; font-family: var(--mono); font-size: .68rem;
  color: var(--ink-3); border: 1.5px solid var(--hair); border-radius: 6px;
  padding: .12rem .4rem; line-height: 1.4;
}
.opt.is-picked .opt__key { border-color: var(--ink); color: var(--ink); }

.demo__foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.demo__hint { font-size: .78rem; color: var(--ink-3); display: flex; align-items: center; gap: .4rem; }
.demo__hint kbd {
  font-family: var(--mono); font-size: .68rem; background: var(--paper-2);
  border: 1px solid var(--hair); border-radius: 5px; padding: .1rem .35rem;
}
.demo__email { display: flex; gap: .5rem; width: 100%; flex-wrap: wrap; }
.demo__email .field { flex: 1 1 12rem; padding: .8rem 1.1rem; font-size: .95rem; }
.demo__legal { font-size: .74rem; color: var(--ink-3); margin: .55rem 0 0; }
.demo__legal a { color: var(--ink-2); }

/* Screen transitions */
.demo__screen { display: flex; flex-direction: column; flex: 1; }
.demo__screen[hidden] { display: none; }
.demo__screen.in  { animation: slideIn .38s var(--ease) both; }
.demo__screen.out { animation: slideOut .22s var(--ease) both; }
@keyframes slideIn  { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes slideOut { from { opacity: 1; } to { opacity: 0; transform: translateX(-14px); } }

/* Result screen */
.demo__result { text-align: left; }
.demo__seal {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--mint); color: var(--ink);
  display: grid; place-items: center; margin-bottom: 1rem;
  animation: pop .5s var(--spring) both;
}
@keyframes pop { from { transform: scale(0) rotate(-25deg); } to { transform: none; } }
.demo__plan {
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
  margin: 1.1rem 0; padding: .9rem 1.1rem;
  background: var(--paper-2); border-radius: var(--r-sm); border: 2px solid var(--ink);
}
.demo__plan b { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.03em; }
.demo__plan span { font-size: .85rem; color: var(--ink-3); margin-left: auto; }
.demo__recap { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .35rem; font-size: .88rem; }
.demo__recap li { display: flex; gap: .5rem; color: var(--ink-2); }
.demo__recap .ico { color: var(--mint); flex: none; margin-top: .15rem; }
.demo__restart { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* Tap ripple, fired on every option press */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(20,18,15,.16); transform: scale(0);
  animation: ripple .55s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
.opt { position: relative; overflow: hidden; }

/* -------------------------------------------------------------- marquee */
.marquee {
  border-block: 1.5px solid var(--hair);
  padding-block: 1.6rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__label { display: flex; justify-content: center; margin-bottom: 1.35rem; }
.marquee__track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); padding-right: clamp(2.5rem, 5vw, 4.5rem); }
@keyframes slide { to { transform: translateX(-50%); } }
.brand {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -.03em; color: var(--ink-3); white-space: nowrap;
  opacity: .72; transition: opacity .25s var(--ease), color .25s var(--ease);
}
.brand:hover { opacity: 1; color: var(--ink); }
.brand--wide { letter-spacing: .1em; font-weight: 500; font-size: clamp(.95rem, 1.6vw, 1.2rem); }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.stat { padding-top: 1.15rem; border-top: 3px solid var(--ink); }
.stat__v {
  font-family: var(--display); font-weight: 800; letter-spacing: -.05em; line-height: .9;
  font-size: clamp(2.6rem, 5.2vw, 4rem); margin-bottom: .35rem;
}
.stat:nth-child(1) .stat__v { color: var(--coral); }
.stat:nth-child(2) .stat__v { color: var(--mint); }
.stat:nth-child(3) .stat__v { color: var(--sky); }
.stat:nth-child(4) .stat__v { color: var(--grape); }
.stat__l { font-weight: 600; letter-spacing: -.02em; margin-bottom: .2rem; }
.stat__n { font-size: .85rem; color: var(--ink-3); line-height: 1.4; }

/* ------------------------------------------------------------ use cases */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.card {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--r);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  display: flex; flex-direction: column;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease);
}
.card:hover { transform: translate(-4px,-4px); box-shadow: 8px 8px 0 0 var(--ink); }
.card__ico {
  width: 3.2rem; height: 3.2rem; border-radius: 14px; display: grid; place-items: center;
  background: var(--tint); color: var(--ink); margin-bottom: 1.15rem; border: 2px solid var(--ink);
}
.card__kicker {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3); display: block; margin-bottom: .5rem;
}
.card p { color: var(--ink-2); font-size: .97rem; }
.card__meta {
  margin-top: 1.25rem; padding-top: .9rem; border-top: 1.5px solid var(--hair);
  font-size: .85rem; color: var(--ink-3); display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}

/* ----------------------------------------------------------- photo band */
.band { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 2.5px solid var(--ink); }
.band img { width: 100%; height: clamp(20rem, 42vw, 30rem); object-fit: cover; }
.band__cap {
  position: absolute; left: clamp(1rem,3vw,2.5rem); bottom: clamp(1rem,3vw,2.5rem);
  right: clamp(1rem,3vw,2.5rem);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.band__quote {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--r);
  padding: 1.15rem 1.4rem; max-width: 30rem;
  font-family: var(--display); font-size: clamp(1.05rem,1.8vw,1.35rem); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.15;
}
.band__tag {
  background: var(--sun); border: 2px solid var(--ink); border-radius: 999px;
  padding: .5rem 1rem; font-size: .85rem; font-weight: 600;
}

/* -------------------------------------------------------- feature rows */
.feat {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.feat--flip .feat__media { order: -1; }
.feat h3 { margin-bottom: .85rem; }
.feat p { color: var(--ink-2); max-width: 44ch; }
.feat__list { list-style: none; margin: 1.4rem 0 1.6rem; padding: 0; display: grid; gap: .6rem; }
.feat__list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .97rem; color: var(--ink-2); }
.feat__list .ico { flex: none; margin-top: .25rem; color: var(--ink); background: var(--tint); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }

/* Mockups: real CSS chrome, not screenshots — stays crisp at any size. */
.mock {
  position: relative; background: var(--white);
  border: 2.5px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: 12px 12px 0 0 var(--ink);
  padding: 1.1rem; overflow: hidden;
}
.mock__top { display: flex; align-items: center; gap: .4rem; margin-bottom: .95rem; }
.mock__top i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-3); }
.mock__top i:nth-child(1) { background: var(--coral); }
.mock__top i:nth-child(2) { background: var(--sun); }
.mock__top i:nth-child(3) { background: var(--mint); }
.mock__url {
  margin-left: .5rem; flex: 1; background: var(--paper-2); border-radius: 999px;
  padding: .3rem .8rem; font-family: var(--mono); font-size: .68rem; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock__row {
  display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; margin-bottom: .5rem;
  background: var(--paper-2); border-radius: 12px; font-size: .87rem; font-weight: 500;
}
.mock__row .grip { color: var(--ink-3); letter-spacing: -3px; font-size: .9rem; }
.mock__row .tag {
  margin-left: auto; font-family: var(--mono); font-size: .63rem; letter-spacing: .06em;
  background: var(--white); border: 1px solid var(--hair); border-radius: 5px; padding: .1rem .4rem; color: var(--ink-3);
}
.mock__row.is-live { background: var(--sun); }
.mock__ghost { opacity: .45; }

/* logic diagram */
.logicmap { display: grid; gap: .55rem; }
.logicmap__node {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--white); font-size: .86rem; font-weight: 500;
}
.logicmap__node .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--tint, var(--coral)); flex: none; }
.logicmap__node .pct { margin-left: auto; font-family: var(--mono); font-size: .7rem; color: var(--ink-3); }
.logicmap__branch { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; padding-left: 1.6rem; position: relative; }
.logicmap__branch::before {
  content: ''; position: absolute; left: .7rem; top: -.55rem; bottom: 50%;
  border-left: 2px solid var(--hair); border-bottom: 2px solid var(--hair); border-bottom-left-radius: 10px; width: .9rem;
}

/* analytics bars */
.bars { display: flex; align-items: flex-end; gap: .5rem; height: 9.5rem; padding-top: .5rem; }
.barcol { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; text-align: center; }
.barcol i {
  display: block; width: 100%; border-radius: 8px 8px 4px 4px; background: var(--tint, var(--coral));
  height: var(--h); border: 2px solid var(--ink);
  transform-origin: bottom; animation: grow .8s var(--spring) both; animation-delay: var(--d, 0s);
}
@keyframes grow { from { transform: scaleY(.02); } }
.barcol span { font-family: var(--mono); font-size: .62rem; color: var(--ink-3); }
.mock__legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .9rem; font-size: .78rem; color: var(--ink-3); }
.mock__legend b { color: var(--ink); font-weight: 600; }

/* integration chips */
.chipgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.chip {
  display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem;
  background: var(--paper-2); border-radius: 11px; font-size: .8rem; font-weight: 500;
  white-space: nowrap; overflow: hidden;
}
.chip__sq { width: 1.6rem; height: 1.6rem; border-radius: 7px; background: var(--tint); flex: none;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .8rem; color: var(--ink); }

/* Photo tucked behind a mockup for depth */
.mock--photo { padding: 0; }
.mock--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat__media { position: relative; }
.feat__stack { position: relative; }
.feat__stack .mock { position: relative; z-index: 2; }
.feat__photo {
  position: absolute; right: -1.5rem; bottom: -2rem; width: 46%; z-index: 3;
  border: 2.5px solid var(--ink); border-radius: var(--r); overflow: hidden;
  box-shadow: 8px 8px 0 0 var(--ink); background: var(--paper-2);
}
.feat__photo img { aspect-ratio: 4/3; object-fit: cover; }

/* --------------------------------------------------------- integrations */
.intgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.intcard {
  aspect-ratio: 1; display: grid; place-items: center; gap: .5rem; text-align: center;
  background: var(--white); border: 2px solid var(--hair); border-radius: var(--r-sm);
  font-size: .82rem; font-weight: 500; padding: .75rem;
  transition: border-color .2s var(--ease), transform .25s var(--spring);
}
.intcard:hover { border-color: var(--ink); transform: translateY(-4px); }
.intcard__sq {
  width: 2.5rem; height: 2.5rem; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--ink);
}

/* -------------------------------------------------------- circle + team */
.circle { position: relative; display: grid; place-items: center; padding-block: clamp(1rem,4vw,3rem); }
.circle__img {
  width: clamp(15rem, 34vw, 24rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--ink); position: relative; z-index: 2; background: var(--paper-3);
}
.circle__img img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------- testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.quote {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--r);
  padding: clamp(1.4rem, 2.4vw, 1.9rem); display: flex; flex-direction: column;
  box-shadow: 6px 6px 0 0 var(--tint, var(--sun));
}
.quote:nth-child(even) { margin-top: clamp(0rem, 3vw, 2.5rem); }
.quote__mark { color: var(--tint, var(--sun)); margin-bottom: .8rem; }
.quote p { font-family: var(--display); font-size: clamp(1.05rem,1.7vw,1.28rem); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.quote__who { display: flex; align-items: center; gap: .75rem; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1.5px solid var(--hair); }
.quote__who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); flex: none; }
.quote__name { font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.quote__role { font-size: .84rem; color: var(--ink-3); line-height: 1.3; }

/* -------------------------------------------------------------- pricing */
.toggle {
  display: inline-flex; align-items: center; gap: .3rem; padding: .3rem;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px; margin-inline: auto;
}
.toggle button {
  border: 0; background: none; padding: .5rem 1.05rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink-3); transition: background .2s var(--ease), color .2s var(--ease);
}
.toggle button.on { background: var(--ink); color: var(--paper); }
.toggle .save { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: var(--mint); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
.plan {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--r);
  padding: clamp(1.4rem, 2.4vw, 1.9rem); display: flex; flex-direction: column; position: relative;
}
.plan--pop { background: var(--ink); color: var(--paper); box-shadow: 10px 10px 0 0 var(--coral); }
.plan--pop .plan__blurb, .plan--pop .plan__vol, .plan__per { color: inherit; opacity: .72; }
.plan--pop .feat__list li { color: var(--paper); }
.plan__flag {
  position: absolute; top: -.85rem; right: 1.2rem; background: var(--sun); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; padding: .2rem .8rem;
  font-size: .74rem; font-weight: 700; letter-spacing: -.01em;
}
.plan__name { font-family: var(--display); font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; margin-bottom: .3rem; }
.plan__blurb { font-size: .9rem; color: var(--ink-3); min-height: 2.6em; margin-bottom: 1.1rem; }
.plan__price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .35rem; }
.plan__amt { font-family: var(--display); font-size: clamp(2.4rem,4vw,3.1rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.plan__per { font-size: .85rem; color: var(--ink-3); }
.plan__vol {
  font-size: .86rem; font-weight: 600; color: var(--ink-2);
  padding: .5rem .75rem; background: var(--paper-2); border-radius: 9px; margin-bottom: 1.25rem;
}
.plan--pop .plan__vol { background: rgba(255,255,255,.12); }
.plan .feat__list { margin: 0 0 1.5rem; }
.plan .feat__list .ico { background: var(--mint); color: var(--ink); }
.plan .btn { width: 100%; margin-top: auto; }
.plan--pop .btn--ghost { --btn-fg: var(--paper); border-color: var(--paper); }
.plan--pop .btn--ghost:hover { box-shadow: 4px 4px 0 0 var(--coral); }

.entband {
  margin-top: clamp(1rem,2vw,1.5rem); background: var(--paper-2);
  border: 2px solid var(--ink); border-radius: var(--r); padding: clamp(1.4rem,2.5vw,2rem);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.entband__txt { flex: 1 1 22rem; }
.entband h3 { margin-bottom: .4rem; }
.entband p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ------------------------------------------------------------------ faq */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1.5px solid var(--hair); }
.faq summary {
  display: flex; align-items: flex-start; gap: 1rem; cursor: pointer; list-style: none;
  padding: 1.35rem 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.05rem,1.7vw,1.28rem); letter-spacing: -.028em; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; margin-left: auto; flex: none; width: 1.5rem; height: 1.5rem; margin-top: .1rem;
  background: var(--ink); border-radius: 50%; position: relative;
  -webkit-mask: linear-gradient(#000 0 0) center/.7rem 2px no-repeat, linear-gradient(#000 0 0) center/2px .7rem no-repeat;
          mask: linear-gradient(#000 0 0) center/.7rem 2px no-repeat, linear-gradient(#000 0 0) center/2px .7rem no-repeat;
  transition: transform .3s var(--spring), background .2s;
}
.faq details[open] summary::after { transform: rotate(135deg); background: var(--coral); }
.faq details p { max-width: 68ch; color: var(--ink-2); padding-bottom: 1.4rem; margin: 0; animation: fadeUp .35s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } }

/* ------------------------------------------------------------ resources */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.post { display: flex; flex-direction: column; text-decoration: none; group: post; }
.post__img { border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; margin-bottom: 1rem; background: var(--tint); }
.post__img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .5s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post__meta { display: flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .6rem; }
.post__meta i { width: .4rem; height: .4rem; border-radius: 50%; background: var(--tint); }
.post h3 { font-size: clamp(1.15rem,1.9vw,1.4rem); margin-bottom: .5rem; }
.post p { font-size: .92rem; color: var(--ink-2); }
.post .tlink { margin-top: auto; padding-top: 1rem; }

/* ------------------------------------------------------------------ cta */
.cta { position: relative; overflow: hidden; padding-block: clamp(4.5rem, 9vw, 8rem) clamp(7rem, 14vw, 12rem); }
.cta__in { position: relative; z-index: 3; text-align: center; }
.cta h2 { font-size: clamp(2.5rem, 6.4vw, 5rem); margin-bottom: 1.1rem; }
.cta .lede { margin-inline: auto; margin-bottom: 2rem; }
.cta__form { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; max-width: 34rem; margin-inline: auto; }
.cta__note { font-size: .84rem; color: var(--ink-3); margin-top: 1rem; }

/* --------------------------------------------------------------- footer */
.ftr { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem,6vw,5.5rem) 2rem; }
.ftr a { color: rgba(251,247,239,.72); text-decoration: none; transition: color .2s var(--ease); }
.ftr a:hover { color: var(--sun); }
.ftr .logo { color: var(--paper); }
.ftr .logo__word em { color: var(--sun); }
.ftr__top { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(4, minmax(0,1fr)); gap: clamp(1.5rem,3vw,2.5rem); }
.ftr__about { max-width: 24rem; }
.ftr__about p { color: rgba(251,247,239,.6); font-size: .92rem; margin: 1.1rem 0 1.4rem; }
.ftr__h { font-family: var(--body); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(251,247,239,.45); margin-bottom: 1rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .92rem; }
.ftr__news { display: flex; gap: .5rem; flex-wrap: wrap; }
.ftr__news .field { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); color: var(--paper); padding: .75rem 1.1rem; font-size: .92rem; }
.ftr__news .field::placeholder { color: rgba(251,247,239,.42); }
.ftr__news .field:focus { box-shadow: 4px 4px 0 0 var(--sun); }
.ftr__news .btn { --btn-bg: var(--sun); --btn-fg: var(--ink); border-color: var(--sun); padding: .75rem 1.2rem; }
.ftr__news .btn:hover { box-shadow: 4px 4px 0 0 rgba(255,255,255,.28); }
.ftr__soc { display: flex; gap: .5rem; margin-top: 1.2rem; }
.ftr__soc a {
  width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2);
  display: grid; place-items: center; font-size: .72rem; font-weight: 600;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s;
}
.ftr__soc a:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.ftr__bar {
  margin-top: clamp(2.5rem,5vw,4rem); padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.13);
  display: flex; gap: 1rem 1.5rem; flex-wrap: wrap; align-items: center;
  font-size: .84rem; color: rgba(251,247,239,.55);
}
.ftr__legal { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-right: auto; }
.ftr__addr { font-style: normal; font-size: .84rem; color: rgba(251,247,239,.5); line-height: 1.6; }
.badge-soc {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: rgba(251,247,239,.7);
}

/* -------------------------------------------------------- cookie banner */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150;
  max-width: 30rem; background: var(--white); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: var(--r); padding: 1.25rem;
  box-shadow: 8px 8px 0 0 var(--ink);
  animation: cookieIn .5s .9s var(--spring) both;
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(30px); } }
.cookie[hidden] { display: none; }
.cookie h4 { margin-bottom: .4rem; }
.cookie p { font-size: .87rem; color: var(--ink-2); margin-bottom: 1rem; }
.cookie__row { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------------------------------------------------------- legal pages */
.legal { padding-block: clamp(2.5rem,5vw,4rem) clamp(4rem,8vw,6rem); }
.legal__head { padding-block: clamp(3rem,6vw,5rem) clamp(1.5rem,3vw,2.5rem); position: relative; overflow: hidden; }
.legal__head h1 { font-size: clamp(2.4rem,5.5vw,4.2rem); margin-bottom: .6rem; }
.legal__date { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.legal__body { max-width: 68ch; }
.legal__body h2 { font-size: clamp(1.5rem,2.6vw,2rem); margin: 2.75rem 0 .8rem; scroll-margin-top: 100px; }
.legal__body h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body ul, .legal__body ol { padding-left: 1.15rem; margin: 0 0 1.1em; display: grid; gap: .45rem; }
.legal__body a { color: var(--ink); font-weight: 500; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .92rem; }
.legal__body th, .legal__body td { text-align: left; padding: .7rem .8rem; border-bottom: 1.5px solid var(--hair); vertical-align: top; }
.legal__body th { font-weight: 600; background: var(--paper-2); }
.legal__toc {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--r);
  padding: 1.3rem 1.5rem; margin-bottom: 2.5rem;
}
.legal__toc h2 { font-size: 1rem !important; font-family: var(--body); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .8rem !important; color: var(--ink-3); }
.legal__toc ol { columns: 2; column-gap: 2rem; font-size: .92rem; margin: 0; padding-left: 1.1rem; display: block; }
.legal__toc li { margin-bottom: .4rem; break-inside: avoid; }
.callout {
  background: var(--paper-2); border-left: 4px solid var(--coral);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 1.1rem 1.3rem; margin: 0 0 1.5em;
  font-size: .93rem;
}

/* ----------------------------------------------------------------- 404 */
.err { text-align: center; padding-block: clamp(4rem,10vw,9rem); position: relative; overflow: hidden; }
.err__code { font-family: var(--display); font-size: clamp(6rem,22vw,16rem); font-weight: 800; letter-spacing: -.06em; line-height: .82; color: var(--coral); }

/* -------------------------------------------------------------- reveals */
.js .rv:not(.in) { opacity: 0; transform: translateY(22px); }
.rv { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv--d1 { transition-delay: .08s; } .rv--d2 { transition-delay: .16s; }
.rv--d3 { transition-delay: .24s; } .rv--d4 { transition-delay: .32s; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .ftr__top { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ftr__about { grid-column: 1 / -1; max-width: none; }
  .intgrid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 940px) {
  /* `1fr` floors at min-content, so a wide child (a nowrap URL in a mockup, a
     chip row) can push the track past the viewport. minmax(0,1fr) lets it shrink. */
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .demo { max-width: 32rem; }
  .feat, .feat--flip { grid-template-columns: minmax(0, 1fr); }
  .feat--flip .feat__media { order: 0; }
  .feat__media { order: -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .cards3, .posts, .plans { grid-template-columns: minmax(0, 1fr); }
  .plan--pop { order: -1; }
  .hdr__nav { display: none; }
  .hdr__burger { display: grid; }
  .hdr__act .btn--ghost { display: none; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote:nth-child(even) { margin-top: 0; }
  .feat__photo { width: 40%; right: -.75rem; bottom: -1.25rem; }
}
@media (max-width: 640px) {
  .intgrid { grid-template-columns: repeat(3, 1fr); }
  .chipgrid { grid-template-columns: repeat(2, 1fr); }
  .legal__toc ol { columns: 1; }
  .band__quote { font-size: 1rem; padding: .9rem 1.1rem; }
  .demo__stage { box-shadow: 8px 8px 0 0 var(--ink); }
  .mock { box-shadow: 8px 8px 0 0 var(--ink); }
  .ftr__top { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 460px) {
  .hero__form .btn, .cta__form .btn { width: 100%; }
  .feat__photo { display: none; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 160; background: var(--paper);
  padding: 1.25rem var(--gut); display: flex; flex-direction: column; gap: .35rem;
  transform: translateY(-100%); overflow-y: auto;
  /* visibility (not just the transform) keeps the closed drawer's links out of
     the tab order — otherwise keyboard users land on off-screen nav items. */
  visibility: hidden;
  transition: transform .4s var(--ease), visibility 0s linear .4s;
}
.drawer.open {
  transform: none; visibility: visible;
  transition: transform .4s var(--ease), visibility 0s linear 0s;
}
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.drawer a.drawer__link {
  font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -.04em;
  text-decoration: none; padding: .5rem 0; border-bottom: 1.5px solid var(--hair);
}
.drawer__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: .6rem; }
body.locked { overflow: hidden; }

/* --------------------------------------------------- motion & printing */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
  .hero h1 .em path { stroke-dashoffset: 0; }
}
@media print {
  .hdr, .ftr__news, .cookie, .demo, .marquee, .cta { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: .8em; color: #555; }
}

/* --------------------------------------------------------------- toasts */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 190;
  transform: translate(-50%, 130%);
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: .8rem 1.4rem;
  font-size: .92rem; font-weight: 500; max-width: min(28rem, calc(100vw - 2rem));
  box-shadow: 0 12px 34px rgba(20,18,15,.28);
  transition: transform .45s var(--spring), opacity .3s var(--ease);
  opacity: 0; text-align: center;
}
.toast.in { transform: translate(-50%, 0); opacity: 1; }
.toast--ok  { background: var(--ink); border-bottom: 3px solid var(--mint); }
.toast--err { background: var(--ink); border-bottom: 3px solid var(--coral); }

/* Accent blobs behind the hero demo sit outside the card, not clipped by it. */
.demo .blobs { overflow: visible; z-index: 0; }

/* Option screens push their footer down; the email and result screens
   read better flowing straight on from the question. */
.demo__screen--flow .demo__foot { margin-top: 0; }

/* Confetti is sized for wide canvases. On a phone the same circles swamp the
   copy, so scale them down and ease off the saturation. */
@media (max-width: 760px) {
  .blob {
    width: calc(var(--s) * .58);
    height: calc(var(--s) * .58);
    margin: calc(var(--s) * -.29) 0 0 calc(var(--s) * -.29);
    opacity: .62;
  }
  .cookie { padding: 1rem 1.1rem; }
  .cookie p { font-size: .84rem; margin-bottom: .8rem; }
}

/* Heading levels follow document outline; these keep the smaller visual size. */
.card__h { font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .5rem; }

/* Grid and flex children default to min-width:auto, which is what lets a long
   unbreakable string widen its whole column. Opt them out explicitly. */
.feat > *, .cards3 > *, .posts > *, .plans > *, .quotes > *, .stats > *,
.hero__grid > *, .mock, .mock__url, .chip, .logicmap__node, .intcard { min-width: 0; }
.mock__row, .mock__legend, .chipgrid, .logicmap { min-width: 0; }
.mock__row { flex-wrap: wrap; }
