/* frank — tokens from the brand kit (tokens.css) */
:root {
  --paper: #f6f9fc; --raised: #ffffff; --line: #d5e1ec; --field: #768aa3;
  --ink: #13294b; --muted: #4a5b73; --carolina: #7bafd4; --brand-ink: #00749f;
  --navy: #13294b; --soft: #e4eff8; --soon: #b45309; --alert: #b42318;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --gut: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); caret-color: var(--brand-ink); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
p, dd, li { text-wrap: pretty; }
ul, ol { list-style: none; }
::selection { background: var(--carolina); color: var(--navy); }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--field) var(--paper); }
code { font: 500 .88em/1 var(--mono); background: var(--soft); color: var(--ink); padding: .15em .4em; border-radius: var(--r-sm); white-space: nowrap; }
a { color: inherit; }

.wrap { width: min(100% - 2 * var(--gut), 1160px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 20; background: var(--raised); padding: 10px 14px; border-radius: var(--r-md); }
.skip:focus { top: 12px; }

/* wordmark, live type: navy "frank", white period, on its Carolina Blue block */
.wm { display: inline-flex; align-items: center; height: 44px; padding: 0 14px 3px; border-radius: var(--r-md); background: var(--carolina);
      color: var(--navy); font: 800 26px/1 var(--display); letter-spacing: -0.05em; text-decoration: none; }
.wm span { color: #fff; }
.wm--dark { background: none; padding: 0; color: #fff; }
.wm--dark span { color: var(--carolina); }

/* buttons: Carolina Blue fill, navy label */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: var(--r-md);
       background: var(--carolina); color: var(--navy); font: 600 17px/1 var(--sans); text-decoration: none; }
.btn:hover { background: #6aa2cb; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-ink); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.textlink:hover { text-decoration-thickness: 2.5px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.top__bar { display: flex; align-items: center; gap: 32px; height: 68px; }
.top__nav { display: flex; gap: 28px; margin-left: auto; }
.top__nav a { font-weight: 500; font-size: 16px; text-decoration: none; padding: 12px 0; }
.top__nav a:hover { color: var(--brand-ink); }

/* section scaffold */
section { padding-block: clamp(48px, 6vw, 88px); }
.head { max-width: 640px; margin-bottom: clamp(24px, 3vw, 40px); }
h2 { font: 650 clamp(32px, 4.4vw, 52px)/1.05 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
h3 { font: 600 21px/1.3 var(--sans); text-wrap: balance; }
.head p { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 56ch; }

/* hero */
.hero { padding-block: clamp(28px, 4vw, 56px) clamp(32px, 4vw, 56px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.hero__copy { padding-top: clamp(0px, 3vw, 40px); }
h1 { font: 700 clamp(40px, 5.6vw, 72px)/1.02 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.lead { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; }

/* the phone: one conversation, the product itself */
.phone { justify-self: end; width: min(100%, 400px); background: var(--raised); border: 1px solid var(--line); border-radius: 36px;
         box-shadow: 0 2px 4px rgb(19 41 75 / .06), 0 40px 80px -32px rgb(19 41 75 / .35); overflow: hidden; }
.phone__head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 24px 10px; border-bottom: 1px solid var(--line); background: var(--raised); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--carolina); display: flex; align-items: center; justify-content: center;
          font: 800 22px/1 var(--display); letter-spacing: -0.05em; color: var(--navy); padding-bottom: 3px; }
.avatar i { font-style: normal; color: #fff; }
.phone__name { font: 600 14px/1 var(--sans); }
.phone__body { background: #f1f6fb; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 20px; }
.stamp { align-self: center; font: 500 13px/1 var(--mono); color: var(--muted); margin-bottom: 4px; }

/* message bubbles (Message component) */
.msg { max-width: 92%; padding: 10px 15px; border-radius: var(--r-lg); font-size: 16px; line-height: 1.45; white-space: pre-line; }
.msg--frank { align-self: flex-start; background: var(--raised); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; background: var(--carolina); color: var(--navy); border-bottom-right-radius: 6px; }
.msg b { font-weight: 500; }
.t { font-family: var(--mono); font-size: .9em; }
.due { color: var(--soon); }
.miss { color: var(--alert); }

/* what frank texts you: a transcript, one row per text */
.log { border-top: 1px solid var(--line); }
.log__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 6vw, 96px); align-items: center;
            padding-block: 24px; border-bottom: 1px solid var(--line); }
.log__say p { margin-top: 8px; color: var(--muted); max-width: 46ch; }
.log__chat { display: flex; flex-direction: column; gap: 8px; }
.log__chat .msg { max-width: min(88%, 440px); }

/* setup: the order matters, so the steps keep their numbers */
.setup { background: var(--raised); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--navy); }
.steps li::before { content: counter(step); display: block; font: 700 48px/1 var(--display); letter-spacing: -0.03em; color: var(--brand-ink); margin-bottom: 18px; }
.steps p { margin-top: 10px; color: var(--muted); }

/* your data */
.safe { background: var(--soft); }
.safe__grid { display: grid; gap: 0; }
.safe .head { position: static; }
.safe .head p { color: var(--ink); }
.safe__list li { padding-block: 20px; border-bottom: 1px solid rgb(19 41 75 / .14); }
.safe code { background: var(--raised); }
.safe__list strong { display: block; font: 600 19px/1.3 var(--sans); margin-bottom: 4px; }

/* questions */
.faq__grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.faq__item { padding-block: 18px; border-top: 1px solid var(--line); }
.faq__list dt { font: 600 19px/1.35 var(--sans); }
.faq__list dd { margin-top: 6px; color: var(--muted); max-width: 60ch; }

/* close and footer */
.end { background: var(--navy); color: #fff; padding-block: clamp(48px, 6vw, 88px) 32px; }
.end__close { display: grid; gap: 28px; justify-items: start; }
.end__close h2 { max-width: 16ch; color: #fff; }
.end__note { font: 500 15px/1 var(--sans); color: #c5d6e8; }
.btn--light:focus-visible, .end a:focus-visible { outline-color: var(--carolina); }
.end__legal { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .16); display: grid; gap: 14px;
              font-size: 15px; line-height: 1.6; color: #c5d6e8; }
.end__legal p { max-width: 62ch; }

/* tablet and phone */
@media (max-width: 900px) {
  .hero__grid, .safe__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .phone { justify-self: stretch; margin-inline: auto; }
  .safe .head { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 760px) {
  .top__nav { display: none; }
  .top__bar { justify-content: space-between; }
  .log__row { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 28px; }
  .log__chat { padding-left: 12px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero__actions .btn { width: 100%; }
  .end__close .btn { width: 100%; }
  .msg { font-size: 15px; }
}

/* waitlist form, on the navy close */
.end__lead { font-size: 19px; line-height: 1.55; color: #dbe6f2; max-width: 48ch; }
.wl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; width: min(100%, 640px); margin-top: 8px; }
.wl__field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.wl label, .wl legend { font: 500 15px/1.3 var(--sans); color: #fff; }
.wl legend { padding: 0; margin-bottom: 8px; }
.wl input[type="text"], .wl input[type="email"] { height: 52px; padding: 0 14px; border: 1px solid var(--field); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font: 400 17px/1 var(--sans); width: 100%; }
.wl input:focus-visible { outline: 2px solid var(--carolina); outline-offset: 2px; }
.wl input:user-invalid { border: 2px solid #ff8a7a; }
.wl .btn { grid-column: 1 / -1; justify-self: start; border: 0; cursor: pointer; }
.wl .end__note { grid-column: 1 / -1; }
.wl__chips { grid-column: 1 / -1; }
.wl__chips legend { margin-bottom: 10px; }
.opt { font-weight: 400; color: #a9bcd3; margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #5e7fa8; border-radius: 999px;
  font: 500 15px/1 var(--sans); color: #fff; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.chip:hover span { border-color: var(--carolina); }
.chip input:checked + span { background: var(--carolina); border-color: var(--carolina); color: var(--navy); }
.chip input:focus-visible + span { outline: 2px solid var(--carolina); outline-offset: 2px; }
.wl__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 560px) { .wl { grid-template-columns: minmax(0, 1fr); } .wl .btn { width: 100%; } }

/* ---------- motion (site.js adds html.js unless reduced motion is on) ---------- */
/* hero phone: a fixed-height chat that fills from the bottom, like Messages */
.phone { position: relative; }
.phone__body { height: 380px; justify-content: flex-start; overflow: hidden; }
.phone__body > * { flex: none; }
.js .phone__body .msg.is-in { animation: send .5s var(--ease) both; }
@keyframes send { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* typing dots: their own bubble in the hero, inside the waiting bubble in the features */
.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing i, .msg.is-typing::after { display: block; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--field); animation: dot 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* feature chats: hidden in place until they scroll in, so nothing shifts */
.js .log__chat[data-play] .msg { visibility: hidden; }
.js .log__chat[data-play] .msg.is-typing { visibility: visible; color: transparent; position: relative; }
.js .log__chat[data-play] .msg.is-typing * { color: transparent; }
.js .log__chat[data-play] .msg.is-typing::after { content: ""; position: absolute; left: 16px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%;
  background: var(--field); box-shadow: 12px 0 0 var(--field), 24px 0 0 var(--field); animation: pulse 1s infinite ease-in-out; }
@keyframes pulse { 50% { opacity: .35; } }
.js .log__chat[data-play] .msg.is-in { visibility: visible; animation: send .5s var(--ease) both; }

/* small interactions */
.btn { transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgb(19 41 75 / .45); }
.btn:active { transform: translateY(0); box-shadow: none; }
.top__nav a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease), color .2s; }
.top__nav a:hover { background-size: 100% 2px; }
.chip:active span { transform: scale(.96); }
.chip span { transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* the hero: one phone with frank's conversations */
.demo { justify-self: end; width: min(100%, 400px); }
.demo .phone { width: 100%; }

/* the close: the waitlist beside frank's answer to "when do i get in" */
.end__close { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; justify-items: stretch; }
.end__form { display: grid; gap: 28px; justify-items: start; }
.end__chat { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 28px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); }
.end__chat .msg { max-width: 90%; }

@media (max-width: 900px) {
  .demo { justify-self: stretch; margin-inline: auto; }
  .end__close { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero { padding-top: 32px; }
  .hero__grid { gap: 32px; }
  .lead { margin-top: 16px; }
  .hero__actions { margin-top: 24px; gap: 16px; }
  .hero__actions .textlink { display: none; }
  .end__chat { display: none; }
}

/* features: the time each text arrives */
.log__time { font: 500 13px/1 var(--mono); color: var(--muted); margin-bottom: 2px; }
.js .log__chat[data-play] .log__time { visibility: visible; }

/* setup: what you end up with after each step */
.step__end { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-weight: 500; color: var(--ink); }

/* your data: can and can't, then the rest */
.safe__body { display: grid; gap: 28px; }
.safe .safe__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.safe .safe__list li { padding-top: 16px; border-bottom: 0; border-top: 1px solid rgb(19 41 75 / .14); }
.can { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.can__col { background: var(--raised); border: 1px solid rgb(19 41 75 / .12); border-radius: var(--r-lg); padding: 24px; }
.can__col h3 { font: 700 22px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 14px; }
.can__col ul { display: grid; gap: 12px; }
.can__col li { position: relative; padding-left: 28px; line-height: 1.45; }
.can__col li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--carolina) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%2313294b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.can__col--no li::before { background: #fbe7e4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6 6l6 6M12 6l-6 6' fill='none' stroke='%23b42318' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (max-width: 640px) { .can { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 900px) {
  .safe .safe__list, .faq__list { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 28px; }
}

/* forms and anchors land below the sticky header */
section[id], #waitlist, input { scroll-margin-top: 96px; }
.top .btn--sm { transition: opacity .2s var(--ease), visibility .2s; }
.at-waitlist .top .btn--sm { opacity: 0; visibility: hidden; }

@media (max-width: 760px) {
  .phone__body { height: 236px; padding-top: 8px; gap: 8px; }
  .phone__head { flex-direction: row; justify-content: center; gap: 10px; padding: 8px 16px; }
  .avatar { width: 32px; height: 32px; font-size: 18px; }
  .stamp { margin-bottom: 0; }
  .hero { padding-top: 20px; }
  .hero__grid { gap: 22px; }
  .hero__actions { margin-top: 18px; }
  h1 { font-size: 34px; }
  .lead { font-size: 16px; margin-top: 12px; }
  .phone__body { padding-top: 4px; }
  .top__bar { height: 60px; }
  .wm { font-size: 22px; padding: 0 10px 3px; }
  .btn--sm { padding: 0 14px; font-size: 15px; }
}
