/* Inkwell marketing site
   Colors follow thesmythgroup.com. Fonts are free Google stand-ins for TSG's
   Superior Title (display) and Elza (text); swap them in --font-display and
   --font-text once the TSG webfont license covers this subdomain. */

:root {
  --tsg-blue: #164A67;
  --deep-blue: #0F3549;
  --steel: #326C8D;
  --coral: #F87854;
  --coral-dark: #BC573A;
  --coral-pressed: #EF6A45;
  --coral-tint: #FFE9E3;
  --coral-light: #FFB49F;
  --mist: #E9EFF4;
  --cloud: #F0F4F7;
  --white: #FFFFFF;
  --charcoal: #1E2428;
  --slate: #44535E;
  --muted: #56656F;
  --border: #D4DAE0;
  --field-border: #98A7B6;
  --blue-gray: #B0C6D0;
  --on-dark-strong: #E1EDF0;
  --selected-tint: #EAF1F3;
  --error: #B42318;
  --ink: var(--tsg-blue);

  --font-display: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --font-text: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, Menlo, monospace;
  --font-hand: 'Nothing You Could Do', 'Bradley Hand', cursive;

  --container: 1200px;
  --gutter: 24px;
  --section-pad: clamp(56px, 10vw, 96px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cloud);
  color: var(--charcoal);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
input, button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--tsg-blue); }
a:hover { color: var(--coral-dark); }
main:focus { outline: none; }
[hidden] { display: none !important; }

.page { position: relative; overflow-x: clip; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.stack-md { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.stack-lg { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); }
.tabular { font-variant-numeric: tabular-nums; }

/* Focus keeps 3:1 contrast on light and dark grounds */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--tsg-blue); outline-offset: 2px; }
.on-dark a:focus-visible, .on-dark button:focus-visible { outline-color: var(--coral-light); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 20;
  padding: 12px 18px; border-radius: 4px;
  background: var(--white); color: var(--tsg-blue);
  font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 20px rgba(15, 53, 73, .3);
}
.skip-link:focus { top: 12px; }

/* Type */
.eyebrow {
  font-size: 13px; line-height: 1.5; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
}
.eyebrow--on-dark { color: var(--coral-light); }
.display-2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1;
  letter-spacing: -.015em; text-wrap: balance;
}
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 46em; }
.section-lede { max-width: 40em; font-size: 17px; color: var(--slate); }
.section-foot { padding-top: 20px; border-top: 1px solid var(--border); font-size: 15px; color: var(--muted); }
.section-foot--plain { padding-top: 0; border-top: 0; }
.caption { font-size: 13px; color: var(--muted); }

/* Buttons: hover lifts, press settles. Links that go somewhere, buttons that do something. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 4px;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: translate .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn--primary { background: var(--coral); color: var(--charcoal); }
.btn--primary:hover { color: var(--charcoal); translate: 0 -2px; box-shadow: 0 10px 22px -10px rgba(188, 87, 58, .7); }
.btn--primary:active { translate: 0 1px; box-shadow: none; background: var(--coral-pressed); }
.btn--outline { min-height: 48px; padding: 0 22px; border: 2px solid var(--tsg-blue); background: var(--white); color: var(--tsg-blue); font-size: 16px; }
.btn--outline:hover { background: var(--tsg-blue); color: var(--white); }
.btn--outline:active { background: var(--deep-blue); color: var(--white); }
.btn--quiet { gap: 6px; padding: 0 12px; background: transparent; color: var(--tsg-blue); font-size: 14px; font-weight: 600; }
.btn--quiet:hover { background: var(--mist); color: var(--tsg-blue); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn--block { width: 100%; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px;
  font-weight: 600; font-size: 17px; color: var(--tsg-blue); text-decoration: none;
}
.nudge svg { transition: translate .2s ease; }
.nudge:hover svg { translate: 4px 0; }
.lift { transition: translate .25s ease, box-shadow .25s ease; }
.lift:hover { translate: 0 -4px; box-shadow: 0 18px 34px -20px rgba(22, 74, 103, .55); }

.tag {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.tag--solid { background: var(--tsg-blue); color: var(--white); }
.tag--soft { background: var(--mist); color: var(--tsg-blue); }
.tag--outline { min-height: 22px; padding: 0 9px; border: 1px solid var(--slate); color: var(--slate); font-size: 11px; }

/* Top bar and header */
.topbar { background: var(--deep-blue); color: var(--blue-gray); font-size: 13px; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 4px; }
.topbar__home { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--white); text-decoration: none; font-weight: 500; }
.topbar__home:hover { color: var(--white); }
.topbar__home img { height: 26px; width: auto; }
.topbar__url { display: inline-flex; align-items: center; gap: 6px; }

.site-header { background: var(--tsg-blue); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 14px; }
.brand { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.brand__link { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--white); text-decoration: none; }
.brand__link:hover { color: var(--white); }
.brand__word { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -.01em; }
.brand__word--sm { font-size: 26px; color: var(--white); }
.brand__tagline { font-size: 12px; line-height: 1.3; font-weight: 500; letter-spacing: .02em; color: var(--blue-gray); }
.logo .brand__mark { transform-origin: 50% 90%; transition: rotate .35s cubic-bezier(.3, 1.4, .5, 1); }
.logo:hover .brand__mark { rotate: -12deg; }

.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; list-style: none; font-size: 15px; font-weight: 500; }
.navlink {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--white); text-decoration: none;
  background: linear-gradient(var(--coral), var(--coral)) no-repeat 0 calc(100% - 8px) / 0 2px;
  transition: background-size .25s ease;
}
.navlink:hover { color: var(--white); background-size: 100% 2px; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--blue-gray); border-radius: 4px;
  background: transparent; color: var(--white); font-weight: 600; cursor: pointer;
}

/* Hero */
.hero { background: var(--white); border-bottom: 1px solid var(--border); }
.hero__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 6vw, 56px);
  padding-top: clamp(44px, 8vw, 72px); padding-bottom: clamp(56px, 10vw, 96px);
}
.hero__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: clamp(20px, 3vw, 28px); }
.hero__title { display: flex; flex-direction: column; gap: clamp(16px, 2.6vw, 24px); font-weight: inherit; }
.hero__headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 7vw, 72px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance;
}
.hero__brand { font-style: italic; color: var(--ink); }
.hero__lede { max-width: 34em; font-size: clamp(17px, 2.2vw, 19px); color: var(--slate); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.hero__note { font-size: 14px; color: var(--muted); }
.hero__visual { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; padding-block: 12px; }

.note-card {
  width: 88%; max-width: 520px; overflow: hidden;
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 1px 2px rgba(22, 74, 103, .08); transform: rotate(-1.6deg);
}
.note-card__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--mist);
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.note-card__body { padding: 16px 18px 18px; font-family: var(--font-mono); font-size: clamp(12.5px, 1.6vw, 13.5px); line-height: 1.7; }
.note-card__title { margin-bottom: 8px; font-weight: 500; }
.note-card__tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding: 12px 16px; background: var(--cloud); border-top: 1px solid var(--mist); font-size: 13px; line-height: 1.3;
}
.note-card__moment { font-weight: 600; }
.note-card__more { color: var(--muted); }

.spot {
  padding: 0 2px; color: var(--charcoal);
  background-color: transparent;
  background-image: linear-gradient(var(--coral-tint), var(--coral-tint)), linear-gradient(var(--coral), var(--coral));
  background-size: 100% 100%, 100% 2px; background-position: 0 0, 0 100%; background-repeat: no-repeat;
}

.letter-card {
  align-self: flex-end; width: 90%; max-width: 540px; margin-top: -30px;
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(18px, 3.5vw, 26px) clamp(20px, 4.5vw, 36px) clamp(22px, 3.5vw, 30px);
  background: var(--white); border-radius: 3px; transform: rotate(1.2deg);
  box-shadow: 0 22px 44px -14px rgba(15, 53, 73, .34), 0 2px 6px rgba(15, 53, 73, .08);
}
.letter-card__firm {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 14px;
  border-bottom: 1px solid var(--mist); text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--slate);
}
.letter-card__message, .letter-card__signoff { font-family: var(--font-hand); font-size: clamp(18px, 2.6vw, 22px); color: var(--ink); }
.letter-card__message { line-height: 1.6; }
.letter-card__signoff { align-self: flex-end; line-height: 1.5; }
.demo__footer { margin-top: 14px; align-self: flex-end; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 16px; }
.demo__footer p { max-width: 30em; text-align: right; font-size: 13px; color: var(--muted); }

.write {
  -webkit-mask-image: linear-gradient(to bottom, #000 44%, transparent 54%); mask-image: linear-gradient(to bottom, #000 44%, transparent 54%);
  -webkit-mask-size: 100% 220%; mask-size: 100% 220%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 0; mask-position: 0 0;
}
.sign { clip-path: inset(0 0 0 0); }

/* Partner band */
.partner-band { background: var(--mist); border-bottom: 1px solid var(--border); }
.partner-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding-block: 36px; }
.partner-band__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.partner-band__statement {
  max-width: 40em; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2.6vw, 24px); line-height: 1.35; text-wrap: balance;
}

/* Sections */
.section { padding-block: var(--section-pad); }
.section--white { background: var(--white); }
.section--cloud { background: var(--cloud); }
.section--mist { background: var(--mist); }
.section--ruled { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--ruled-top { border-top: 1px solid var(--border); }
.section--navy {
  background: var(--tsg-blue); color: var(--white);
  padding-top: clamp(96px, 13vw, 152px); padding-bottom: clamp(64px, 10vw, 104px);
  clip-path: polygon(0 clamp(28px, 4vw, 56px), 100% 0, 100% 100%, 0 100%);
}

/* Workflow */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; }
.flow__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 10px; text-align: center; }
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; left: calc(50% + 42px); width: calc(100% - 84px); height: 2px;
  background: var(--field-border); transform-origin: left center;
}
.flow__node {
  position: relative; z-index: 1; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; background: var(--white); border: 2px solid var(--tsg-blue);
}
.flow__step--key .flow__node { background: var(--coral-tint); border-color: var(--coral); }
.flow__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.flow__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.flow__step--key .flow__label { color: var(--coral-dark); }
.flow__title { font-size: 17px; line-height: 1.3; font-weight: 700; }
.flow__desc { font-size: 14.5px; line-height: 1.5; color: var(--slate); }

/* Review queue screenshot */
.queue { display: flex; flex-direction: column; gap: 14px; }
.browser { overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 34px 60px -34px rgba(15, 53, 73, .5); }
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--mist); border-bottom: 1px solid var(--border); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--field-border); }
.browser__dots span:nth-child(2) { background: var(--blue-gray); }
.browser__dots span:nth-child(3) { background: var(--border); }
.browser__title { flex: 1 1 auto; max-width: 420px; margin-inline: auto; padding: 4px 12px; border-radius: 999px; background: var(--white); font-size: 12px; color: var(--muted); text-align: center; }

.app { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.app__side { display: flex; flex-direction: column; gap: 6px; padding: 20px 14px; background: var(--tsg-blue); color: var(--white); }
.app__brand { display: flex; align-items: center; gap: 8px; padding: 0 8px 16px; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 20px; }
.app__nav { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 4px; font-size: 14px; color: var(--blue-gray); }
.app__nav--active { background: var(--deep-blue); color: var(--white); font-weight: 600; }
.app__count { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--coral); color: var(--charcoal); font-size: 12px; font-weight: 700; text-align: center; }
.app__firm { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--steel); font-size: 12px; color: var(--blue-gray); }
.app__main { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: clamp(14px, 2.6vw, 24px); background: var(--cloud); }
.app__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.app__heading { font-size: 20px; font-weight: 700; }
.app__subhead { font-size: 13px; color: var(--muted); }

.q-list { display: flex; flex-direction: column; gap: 12px; }
.q-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding: 14px clamp(14px, 2.4vw, 20px); background: var(--white); border: 1px solid var(--border); border-radius: 8px;
}
.q-item--open { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 14px; padding: clamp(14px, 2.4vw, 20px); border: 2px solid var(--tsg-blue); }
.q-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.avatar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mist); color: var(--tsg-blue); font-size: 13px; font-weight: 700; }
.q-item__who { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.q-item__name { font-size: 15px; font-weight: 700; }
.q-item--open .q-item__name { font-size: 16px; }
.q-item__source { font-size: 12.5px; color: var(--muted); }
.q-item__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.q-item__moment { display: flex; flex-direction: column; gap: 6px; }
.q-item__summary { font-size: 15px; font-weight: 700; }
.q-item__quote { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--slate); }
.q-item__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.mini-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--white); border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 10px 22px -16px rgba(15, 53, 73, .5); }
.mini-card__firm { align-self: center; font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); }
.mini-card__message, .mini-card__signoff { font-family: var(--font-hand); font-size: 16.5px; color: var(--ink); }
.mini-card__message { line-height: 1.55; }
.mini-card__signoff { align-self: flex-end; line-height: 1.4; }
.q-details { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.q-details__row { display: flex; flex-direction: column; gap: 2px; line-height: 1.5; }
.q-details__label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.q-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fake-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 4px; color: var(--slate); font-size: 14px; font-weight: 600; }
.fake-btn--primary { padding: 0 16px; background: var(--coral); color: var(--charcoal); font-weight: 700; }
.fake-btn--outline { padding: 0 14px; border: 1.5px solid var(--tsg-blue); color: var(--tsg-blue); }

/* Moments */
.moments { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; }
.moment {
  flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 24px; background: var(--white); border-radius: 6px; box-shadow: 0 8px 24px -16px rgba(22, 74, 103, .35);
}
.moment__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.moment__name { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.moment__desc { font-size: 15px; color: var(--slate); }
.moment__sample { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); font-family: var(--font-hand); font-size: 18px; line-height: 1.5; color: var(--ink); }

/* Compliance */
.guarantees { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 36px 48px; list-style: none; }
.guarantee { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--steel); }
.guarantee__title { font-size: 20px; line-height: 1.3; font-weight: 700; }
.guarantee p { color: var(--blue-gray); }
.callout { padding: 20px clamp(16px, 3vw, 24px); border: 1px solid var(--steel); border-radius: 6px; color: var(--on-dark-strong); font-size: 15px; }

/* CRMs */
.crm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 14px; list-style: none; }
.crm {
  min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: clamp(15px, 2.4vw, 21px); background: var(--white); border: 1px solid var(--border); border-radius: 6px;
}
.crm--live { padding: clamp(14px, 2.4vw, 20px); border: 2px solid var(--tsg-blue); }
.crm__logo { height: 48px; max-width: 100%; display: flex; align-items: center; gap: 8px; }
.crm__logo img { width: auto; max-width: 100%; object-fit: contain; }
.crm__name { font-size: clamp(19px, 2.6vw, 24px); font-weight: 700; letter-spacing: -.01em; }
.logo-h24 { height: 24px; }
.logo-h26 { height: 26px; }
.logo-h30 { height: 30px; }
.logo-h32 { height: 32px; }
.logo-h46 { height: 46px; }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--mist); color: var(--slate); font-size: 12px; font-weight: 600; white-space: nowrap; }
.status--live { background: var(--tsg-blue); color: var(--white); }

/* Pricing and early access */
.pricing { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(40px, 6vw, 56px); }
.pricing__copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-block: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.price__amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 7vw, 56px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.price__unit { font-size: 17px; color: var(--slate); }
.pricing__points { display: flex; flex-direction: column; gap: 12px; padding-left: 20px; color: var(--slate); }

.signup {
  flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px;
  padding: clamp(20px, 4.5vw, 32px); background: var(--cloud);
  border: 1px solid var(--border); border-top: 4px solid var(--coral); border-radius: 6px;
}
.signup__head { display: flex; flex-direction: column; gap: 8px; }
.signup__head p { color: var(--slate); }
.signup__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.6vw, 32px); line-height: 1.15; }
.signup__form { display: flex; flex-direction: column; gap: 20px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { padding: 0; font-size: 14px; font-weight: 600; }
.field__optional { font-weight: 400; color: var(--muted); }
.field__hint { font-size: 13px; color: var(--muted); }
.field__input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--field-border); border-radius: 4px; background: var(--white); color: var(--charcoal); font-size: 16px;
}
.field__input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__error, .form-error { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--error); }
.field__error::before, .form-error::before {
  content: "!"; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--error); color: var(--white); font-size: 11px; font-weight: 700; line-height: 1;
}

.choices { margin: 0; padding: 0; border: 0; min-width: 0; gap: 8px; }
.choices__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 4px; background: var(--white); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.choice:hover { border-color: var(--steel); }
.choice:has(input:checked) { border-color: var(--tsg-blue); background: var(--selected-tint); }
.choice input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--tsg-blue); }
.choices[aria-invalid="true"] .choice { border-color: var(--error); }

.signup__success { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; }
.signup__success:focus { outline: none; }
.signup__success-head { display: flex; align-items: center; gap: 10px; }
.signup__success h3 { font-size: 20px; line-height: 1.3; }
.signup__success p { color: var(--slate); }

/* Footer */
.site-footer { background: var(--deep-blue); color: var(--blue-gray); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 48px; padding-top: 48px; padding-bottom: 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.site-footer__lockup { display: flex; align-items: center; gap: 10px; }
.site-footer__tsg { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__tsg img { height: 40px; width: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; font-size: 14px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-strong); }
.site-footer__links a:hover { color: var(--white); }
.site-footer__legal { flex-basis: 100%; padding-top: 20px; border-top: 1px solid #204E60; font-size: 13px; }

/* Simple pages (thanks, 404) */
.simple { min-height: 60vh; display: flex; align-items: center; background: var(--white); }
.simple__inner { display: flex; flex-direction: column; gap: 20px; max-width: 40em; padding-block: var(--section-pad); }
.simple__inner p { font-size: 17px; color: var(--slate); }

/* ---------- Motion ----------
   Nothing is hidden at rest. The hero plays once on load; blocks further
   down play once as they scroll into view (site.js adds .play-in). */
@keyframes ink-rise { from { opacity: 0; translate: 0 18px; } }
@keyframes ink-pop { from { opacity: 0; scale: .6; } }
@keyframes ink-spot { from { background-size: 0% 100%, 0% 2px; } }
@keyframes ink-write { from { -webkit-mask-position: 0 100%; mask-position: 0 100%; } }
@keyframes ink-sign { from { clip-path: inset(0 100% 0 0); } }
@keyframes ink-spin { to { rotate: 360deg; } }
@keyframes ink-draw-x { from { transform: scaleX(0); } }
@keyframes ink-draw-y { from { transform: scaleY(0); } }
@keyframes ink-pulse { 0% { box-shadow: 0 0 0 0 rgba(248, 120, 84, .6); } 100% { box-shadow: 0 0 0 14px rgba(248, 120, 84, 0); } }

.spinner { animation: ink-spin .8s linear infinite; }

/* Hero: a five-second story, a note becomes a card */
.demo.is-playing .rise { animation: ink-rise .8s var(--ease-out) both; }
.demo.is-playing .pop { animation: ink-pop .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.demo.is-playing .spot { animation: ink-spot 1s cubic-bezier(.6, 0, .3, 1) both; }
.demo.is-playing .write { animation: ink-write 1.8s cubic-bezier(.45, .05, .4, 1) both; }
.demo.is-playing .sign { animation: ink-sign .6s cubic-bezier(.5, 0, .3, 1) both; }
.demo.is-playing .hero__title .eyebrow { animation-delay: .05s; }
.demo.is-playing .hero__headline { animation-delay: .15s; }
.demo.is-playing .hero__lede { animation-delay: .3s; }
.demo.is-playing .hero__actions { animation-delay: .42s; }
.demo.is-playing .hero__note { animation-delay: .52s; }
.demo.is-playing .note-card { animation-delay: .3s; }
.demo.is-playing .note-card .spot { animation-delay: .9s; }
.demo.is-playing .note-card__tags .tag { animation-delay: 1.8s; }
.demo.is-playing .note-card__moment { animation-delay: 1.9s; }
.demo.is-playing .note-card__more { animation-delay: 2s; }
.demo.is-playing .letter-card { animation-delay: 1.95s; }
.demo.is-playing .letter-card__message { animation-delay: 2.25s; }
.demo.is-playing .letter-card__signoff { animation-delay: 3.95s; }
.demo.is-playing .demo__footer { animation-delay: 4.4s; }

/* Scroll-in blocks */
.reveal.play-in { animation: ink-rise .8s var(--ease-out) both; }
.stagger.play-in > * { animation: ink-rise .7s var(--ease-out) both; }
.stagger.play-in > :nth-child(2) { animation-delay: .08s; }
.stagger.play-in > :nth-child(3) { animation-delay: .16s; }
.stagger.play-in > :nth-child(4) { animation-delay: .24s; }
.stagger.play-in > :nth-child(5) { animation-delay: .32s; }
.stagger.play-in > :nth-child(6) { animation-delay: .4s; }

.flow.play-in .flow__node { animation: ink-pop .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.flow.play-in .flow__text { animation: ink-rise .6s var(--ease-out) both; }
.flow.play-in .flow__step::after { animation: ink-draw-x .45s ease-out both; }
.flow.play-in .flow__step:nth-child(1)::after { animation-delay: .3s; }
.flow.play-in .flow__step:nth-child(2) > * { animation-delay: .6s; }
.flow.play-in .flow__step:nth-child(2)::after { animation-delay: .9s; }
.flow.play-in .flow__step:nth-child(3) > * { animation-delay: 1.2s; }
.flow.play-in .flow__step:nth-child(3)::after { animation-delay: 1.5s; }
.flow.play-in .flow__step:nth-child(4) > * { animation-delay: 1.8s; }
.flow.play-in .flow__step:nth-child(4)::after { animation-delay: 2.1s; }
.flow.play-in .flow__step:nth-child(5) > * { animation-delay: 2.4s; }

.queue.play-in { animation: ink-rise .8s var(--ease-out) both; }
.queue.play-in .q-list > * { animation: ink-rise .6s var(--ease-out) both; }
.queue.play-in .q-list > :nth-child(1) { animation-delay: .35s; }
.queue.play-in .q-list > :nth-child(2) { animation-delay: .5s; }
.queue.play-in .q-list > :nth-child(3) { animation-delay: .65s; }
.queue.play-in .spot { animation: ink-spot 1s cubic-bezier(.6, 0, .3, 1) .6s both; }
.queue.play-in .write { animation: ink-write 1.6s cubic-bezier(.45, .05, .4, 1) 1s both; }
.queue.play-in .sign { animation: ink-sign .6s cubic-bezier(.5, 0, .3, 1) 2.5s both; }
.queue.play-in .q-approve { animation: ink-pulse 1.1s ease-out 3.1s 2; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__step { flex-direction: row; align-items: flex-start; gap: 18px; padding: 0 0 28px; text-align: left; }
  .flow__step:last-child { padding-bottom: 0; }
  .flow__step:not(:last-child)::after { top: 72px; bottom: 8px; left: 31px; width: 2px; height: auto; transform-origin: center top; }
  .flow__text { padding-top: 6px; }
  .flow.play-in .flow__step::after { animation-name: ink-draw-y; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .app__side { display: none; }
  .q-item__body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .topbar__note { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; flex-basis: 100%; gap: 0; padding-top: 8px; border-top: 1px solid var(--steel); }
  .nav-links.is-open .navlink { min-height: 48px; width: 100%; }
  .nav-links.is-open .btn { width: 100%; margin-top: 8px; }
  .letter-card { margin-top: -6px; }
  .browser__title { display: none; }
}

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