/*
 * Style Blend site, poster edition. Sits on top of styles.css, which still
 * draws the phone mockups so they keep matching the app; nothing here
 * changes the shared tokens.
 *
 * One system on every page:
 *   sky     the ground
 *   navy    text: the headline, running copy, labels, the footer
 *   tomato  display type, rules and the color blocks
 *   white   only for text set on tomato
 * Everything raised (buttons, cards, the picker) is square with the same
 * hard navy offset shadow, and every section opens on a numbered tomato
 * rule (.p-rail). The photo pills are the only rounded shapes: they are
 * pictures, not interface.
 *
 * Contrast: navy on sky 9.1:1; white on tomato 4.9:1; tomato on sky 3.2:1,
 * so tomato type on sky is always display size.
 */

:root {
  --p-sky: #B5D5F5;
  --p-sky-deep: #9CC4EE;
  --p-ink: #1E2A4A;
  --p-red: #C8432F;
  --p-rule: 3px solid var(--p-red);
  --p-lift: 6px 6px 0 var(--p-ink);
  --p-lift-hover: 9px 9px 0 var(--p-ink);
  --p-wrap: 1240px;
  --p-ease: cubic-bezier(.2, .8, .2, 1);
}

body { background: var(--p-sky); color: var(--p-ink); }
.poster { overflow-x: clip; }
::selection { background: var(--p-red); color: #FFFFFF; }
:focus-visible { outline: 3px solid var(--p-ink); outline-offset: 3px; }


/* ── Header: sticky, on a tomato rule ─────────────────────────────── */
.site-header { background: var(--p-sky); border-bottom: var(--p-rule); }
@media (min-width: 900px) { .site-header { position: sticky; top: 0; z-index: 50; } }
.site-header .wrap { max-width: var(--p-wrap); padding-left: 24px; padding-right: 24px; }
.site-nav a { color: var(--p-ink); }
.site-nav a:hover { color: var(--p-red); }
.site-nav a[aria-current="page"] { color: var(--p-red); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-nav a.nav-login {
  background: var(--p-red);
  color: #FFFFFF;
  border: 0;
  border-radius: 0;
  padding: 9px 14px;
  box-shadow: 4px 4px 0 var(--p-ink);
  transition: transform .2s var(--p-ease), box-shadow .2s var(--p-ease);
}
.site-nav a.nav-login:hover { background: var(--p-red); color: #FFFFFF; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--p-ink); }

/* ── Shared pieces ────────────────────────────────────────────────── */
.p-wrap { max-width: var(--p-wrap); margin: 0 auto; padding: 0 24px; }

/* Every section opens on this: a tomato rule with a number and a name. */
.p-rail {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: var(--p-rule);
  padding-top: 14px;
  margin-bottom: 40px;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p-ink);
}
.p-rail span:first-child { color: var(--p-red); }
/* The privacy policy's date, under its title. */
.doc-date { font-family: var(--label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--p-ink); margin: 12px 0 0; }

.p-display {
  font-family: var(--wide);
  font-weight: 900;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  word-spacing: 0.12em;
  line-height: 0.86;
  color: var(--p-red);
  margin: 0;
}
/* The square full stop from the poster. */
.nw { white-space: nowrap; }
.p-display .dot, .doc-head h1::after {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  background: currentColor;
  margin-left: 0.06em;
  vertical-align: baseline;
}
.p-h2 { font-size: clamp(56px, 11vw, 160px); margin-bottom: 56px; }
.p-h3 { font-size: clamp(30px, 3.6vw, 46px); line-height: 0.92; margin-bottom: 14px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.p-hero { padding: 40px 0 44px; }
/* The opening headline fills the first screen: the section is as tall as the
   window under the header, and the type is sized to whichever runs out
   first, the height (six lines) or the width. --p-head is the header's height. */
.p-hero {
  --p-head: 92px;
  min-height: calc(100svh - var(--p-head));
  display: flex; align-items: center;
  padding: 3vh 0;
}
.p-hero .p-wrap { max-width: none; width: 100%; padding: 0 4vw; }
.p-hero .p-hero-title { font-size: min(calc((100svh - var(--p-head) - 6vh) / 6.1), 10.4vw); margin: 0; }
/* The photo headline: words with photo pills set into the line. */
/* The photo headline: the display type, with photo pills set into the line. */
.p-photo-line { font-size: clamp(38px, min(6.4vw, 11vh), 96px); line-height: 0.98; }
.p-photo-line .yours { color: var(--p-ink); }
.p-photo-line .pill {
  display: inline-block;
  height: 0.9em;
  width: 2.1em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -0.1em;
  margin: 0 0.04em;
  box-shadow: 0.06em 0.06em 0 var(--p-ink);
}
.p-photo-line .pill img { width: 100%; height: 100%; object-fit: cover; }
/* Pills that cycle through several icons or designers (poster.js). */
.p-photo-line .pill-cycle { position: relative; }
.p-photo-line .pill-cycle img { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.p-photo-line .pill-cycle img.on { opacity: 1; }
.p-photo-line .pill-swirl { background: var(--raised); }
.p-photo-line .pill-swirl img { object-fit: contain; padding: 0.06em 0; }

/* ── Roll: the swirl rolls across the navy band and shoves the words off,
   a ribbon of its five colors behind it; the ribbon slides away to the
   right and drags the words back in from the left (poster.js). Without
   motion it rests as laid out. */
.p-roll {
  --s: clamp(64px, 8vw, 116px);
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  padding: 24px max(16px, calc((100vw - var(--p-wrap)) / 2 + 32px)) 24px 0;
  background: var(--p-ink);
  overflow: hidden;
}
.p-roll-trail {
  flex: 1;
  align-self: center;
  height: calc(var(--s) * 0.5);
  margin-right: calc(var(--s) * -0.5 - clamp(12px, 2vw, 32px));
  transform-origin: 0 50%;
  display: flex;
  flex-direction: column;
}
.p-roll-trail i { flex: 1; transform-origin: 0 50%; }
.p-roll-trail i:nth-child(1) { background: #D84A2E; }
.p-roll-trail i:nth-child(2) { background: #EC97A4; }
.p-roll-trail i:nth-child(3) { background: #E8A93A; }
.p-roll-trail i:nth-child(4) { background: #2E6B4E; }
.p-roll-trail i:nth-child(5) { background: #2F55B0; }
.p-roll-swirl { position: relative; flex: none; width: var(--s); height: var(--s); object-fit: contain; }
.p-roll-words {
  flex: none;
  margin: 0;
  white-space: nowrap;
  font-family: var(--wide);
  font-weight: 900;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(22px, 3.6vw, 56px);
  line-height: 0.95;
  color: var(--raised);
}
@media (max-width: 700px) {
  .p-roll-words { white-space: normal; max-width: 62vw; }
}

/* ── How it works: 2 × 2 screens, three example styles ─────────────── */
.p-how { padding: 56px 0 48px; }
.p-how .p-h2 { margin-bottom: 44px; }
.p-styles-lbl {
  margin: 0 0 20px;
  font-family: var(--wide); font-weight: 900; font-variation-settings: "wdth" 112;
  font-size: clamp(20px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.01em;
  text-transform: uppercase; text-wrap: balance;
  color: var(--p-ink);
}
/* The three example blends: one row of equal widths, stacked when narrow. */
.p-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 56px; }
/* Narrow: one column as wide as the widest button (never wider than the
   screen), so all three match without stretching into long empty bars. */
@media (max-width: 900px) { .p-styles { grid-template-columns: minmax(0, max-content); justify-content: start; gap: 12px; } }
/* The picker uses the button system: outline when off, tomato when on. */
.p-style {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 22px 8px 12px;
  border: 3px solid var(--p-ink);
  border-radius: 0;
  background: var(--p-sky);
  color: var(--p-ink);
  font: 700 17px/1.1 var(--body);
  cursor: pointer;
  transition: transform .2s var(--p-ease), box-shadow .2s var(--p-ease), background .2s, color .2s, border-color .2s;
}
.p-style:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--p-ink); }
.p-style[aria-checked="true"] { background: var(--p-red); border-color: var(--p-red); color: #FFFFFF; box-shadow: var(--p-lift); transform: none; }
.p-dots { display: flex; }
.p-dots i { width: 22px; height: 22px; border-radius: 50%; margin-left: -7px; box-shadow: 0 0 0 2px var(--p-sky); }
.p-dots i:first-child { margin-left: 0; }
.p-style[aria-checked="true"] .p-dots i { box-shadow: 0 0 0 2px var(--p-red); }
/* Each option names the style, then the mix it blends. */
.p-style-txt { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.p-style-txt b { font-weight: 700; }
.p-style-txt small { font: 500 13px/1.2 var(--body); opacity: .8; }
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--p-rule); }
.p-cell { display: flex; gap: 28px; align-items: center; justify-content: space-between; padding: 40px 32px 48px 0; border-bottom: var(--p-rule); }
.p-cell:nth-child(even) { padding: 40px 0 48px 32px; border-left: var(--p-rule); }
.p-cell-text { align-self: flex-start; }
.p-num {
  font-family: var(--wide);
  font-weight: 900;
  font-variation-settings: "wdth" 112;
  font-size: clamp(110px, 12vw, 170px);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--p-red);
  margin-bottom: 20px;
}
.p-cell-text p { font-size: 18px; line-height: 1.5; margin: 0; max-width: 14em; color: var(--p-ink); }
.p-screens { display: grid; flex: none; }
.p-variant { grid-area: 1 / 1; transition: opacity .45s ease, transform .6s var(--p-ease), visibility 0s .45s; }
.p-variant:not(.on) { opacity: 0; visibility: hidden; transform: translateY(16px) scale(.97); }
.p-variant.on { transition-delay: 0s; }
.p-cell:nth-child(2) .p-variant.on { transition-delay: .06s; }
.p-cell:nth-child(3) .p-variant.on { transition-delay: .12s; }
.p-cell:nth-child(4) .p-variant.on { transition-delay: .18s; }
.p-cell:nth-child(odd) .phone { transform: rotate(-2deg); }
.p-cell:nth-child(even) .phone { transform: rotate(2deg); }
.p-screens .phone { box-shadow: 10px 10px 0 var(--p-ink); }

/* ── Privacy band: the same layout, reversed out of tomato ────────── */
.p-private { background: var(--p-red); padding: 56px 0 56px; }
.p-private .p-rail { border-top-color: var(--p-sky); color: #FFFFFF; }
.p-private .p-rail span:first-child { color: var(--p-sky); }
.p-private .p-display { color: var(--p-sky); }
.p-promises { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--p-sky); }
.p-promise { padding: 28px 28px 8px 0; }
.p-promise + .p-promise { padding-left: 28px; border-left: 3px solid var(--p-sky); }
.p-promise h3 { font-family: var(--wide); font-weight: 900; font-variation-settings: "wdth" 112; text-transform: uppercase; letter-spacing: -0.02em; word-spacing: 0.1em; font-size: 26px; line-height: 1; margin: 0 0 14px; color: var(--p-sky); }
.p-promise p { margin: 0; font-size: 18px; line-height: 1.55; color: #FFFFFF; }

/* ── Privacy and Support pages ────────────────────────────────────── */
/* Privacy and Support: centered, as wide as the home page's content. */
.doc { max-width: var(--p-wrap); margin: 0 auto; padding: 56px 24px 120px; color: var(--p-ink); }
.doc > * { max-width: none; }
.doc-head { text-align: left; margin-bottom: 64px; max-width: none; container-type: inline-size; }
.doc-head .p-rail { margin-bottom: 32px; }
.doc-head h1 {
  font-family: var(--wide);
  font-weight: 900;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  word-spacing: 0.12em;
  line-height: 0.86;
  /* Sized to the column, so the longest word ("Support.") fits on one line. */
  font-size: clamp(40px, 15cqi, 180px);
  color: var(--p-red);
  margin: 0 0 24px;
}
.doc-head h1::after { content: ""; }
.doc-head p { color: var(--p-ink); font-size: 18px; }
.doc h2 {
  font-variation-settings: "wdth" 112;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  word-spacing: 0.1em;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 0.95;
  color: var(--p-red);
  margin: 80px 0 18px;
  padding-top: 18px;
  border-top: var(--p-rule);
}
.doc h3, .doc p, .doc li, .doc strong { color: var(--p-ink); }
.doc p, .doc li { font-size: 17px; line-height: 1.65; }
.doc li::marker { color: var(--p-red); }
.doc a { color: var(--p-ink); text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--p-red); }
.doc a:hover { color: var(--p-red); }

/* Privacy: at a glance, contents, the sharing table */
.glance { gap: 0; border-top: var(--p-rule); margin-bottom: 56px; max-width: none; }
.glance div { background: none; border: 0; border-bottom: var(--p-rule); border-radius: 0; padding: 22px 24px 22px 0; font-size: 17px; color: var(--p-ink); }
.glance div:nth-child(even) { border-left: var(--p-rule); padding-left: 24px; }
.glance svg { color: var(--p-red); width: 26px; height: 26px; }
.toc { background: var(--p-red); border: 0; border-radius: 0; padding: 28px 32px; box-shadow: var(--p-lift); }
.toc .eyebrow { color: #FFFFFF; }
.doc .toc li, .doc .toc a { color: #FFFFFF; text-decoration-color: var(--p-sky); }
.doc .toc li::marker { color: var(--p-sky); }
.table-wrap { background: var(--p-sky); border: 3px solid var(--p-ink); border-radius: 0; box-shadow: var(--p-lift); }
th { background: var(--p-red); color: #FFFFFF; }
th, td { border-bottom: 2px solid var(--p-red); color: var(--p-ink); }
.callout { background: var(--p-sky-deep); border-radius: 0; border-left: 6px solid var(--p-red); color: var(--p-ink); }

/* Support: contact block, questions */
.contact-card { background: var(--p-red); color: #FFFFFF; border-radius: 0; text-align: left; padding: clamp(24px, 6vw, 36px) clamp(20px, 6vw, 36px) clamp(28px, 6vw, 40px); box-shadow: var(--p-lift); }
.doc .contact-card .eyebrow, .doc .contact-card p { color: #FFFFFF; opacity: 1; }
.doc .contact-card a.email { color: #FFFFFF; font-family: var(--wide); font-weight: 900; font-variation-settings: "wdth" 112; letter-spacing: -0.03em; font-size: clamp(18px, 5.4vw, 44px); text-decoration: none; white-space: nowrap; }
.doc .contact-card a.email:hover { text-decoration: underline; }
.faq { border-top: var(--p-rule); }
.faq details { border-bottom: var(--p-rule); padding: 6px 0; }
.faq summary { color: var(--p-red); font-family: var(--wide); font-weight: 900; font-variation-settings: "wdth" 112; text-transform: uppercase; letter-spacing: -0.02em; word-spacing: 0.1em; font-size: clamp(18px, 2vw, 22px); line-height: 1.1; padding: 18px 40px 18px 0; }
.faq summary::after { border-color: var(--p-ink); width: 12px; height: 12px; border-width: 0 3px 3px 0; }
.doc .faq details p { color: var(--p-ink); }

/* ── Footer: navy, closing the page like the navy headline opens it ─ */
.site-footer { background: var(--p-ink); color: var(--p-sky); border-top: 0; margin-top: 0; padding: 48px 0 56px; }
.site-footer .wrap { max-width: var(--p-wrap); padding-left: 24px; padding-right: 24px; }
.site-footer small, .site-footer .fineprint { color: var(--p-sky); }
.site-footer a { color: #FFFFFF; text-decoration-color: var(--p-red); text-underline-offset: 4px; }
.site-footer .links a { font-family: var(--label); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer .links a:hover { color: var(--p-sky); }

/* ── Motion ───────────────────────────────────────────────────────────
 * Scripted reveals only kick in once poster.js has marked the page, so
 * without script everything is simply visible.
 */
.p-anim [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--p-ease), transform .9s var(--p-ease); }
.p-anim [data-reveal].in { opacity: 1; transform: none; }
/* Rails draw their rule in from the left. */
.p-anim .p-rail[data-reveal] { transform: none; border-top-color: transparent; background: linear-gradient(var(--p-red), var(--p-red)) 0 0 / 0 3px no-repeat; transition: opacity .6s ease, background-size 1s var(--p-ease); }
.p-anim .p-rail[data-reveal].in { background-size: 100% 3px; }
.p-anim .p-private .p-rail[data-reveal] { background-image: linear-gradient(var(--p-sky), var(--p-sky)); }
.p-anim .p-hero-title { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform 1s var(--p-ease); }
.p-anim .p-hero-title.in { opacity: 1; transform: none; }
.p-anim .p-hero-title .pill { transform: scale(0); transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); }
.p-anim .p-hero-title.in .pill { transform: none; }
.p-anim .p-hero-title.in .pill:nth-of-type(1) { transition-delay: .35s; }
.p-anim .p-hero-title.in .pill:nth-of-type(2) { transition-delay: .5s; }
.p-anim .p-hero-title.in .pill:nth-of-type(3) { transition-delay: .65s; }
.p-anim .p-hero-title .yours { display: inline-block; transform: rotate(-8deg) scale(.6); opacity: 0; transition: transform .7s cubic-bezier(.3, 1.5, .5, 1) .85s, opacity .3s ease .85s; }
.p-anim .p-hero-title.in .yours { transform: none; opacity: 1; }
.p-anim .p-num { transform: translateY(30%); transition: transform 1.1s var(--p-ease); }
.p-anim .p-cell.in .p-num { transform: none; }
.p-anim .p-cell .p-screens { transform: translateY(60px) rotate(4deg); opacity: 0; transition: transform 1.1s var(--p-ease) .15s, opacity .8s ease .15s; }
.p-anim .p-cell.in .p-screens { transform: none; opacity: 1; }
.p-anim .p-cell:nth-child(even) { transition-delay: .1s; }
.p-anim .p-promise:nth-child(2) { transition-delay: .12s; }
.p-anim .p-promise:nth-child(3) { transition-delay: .24s; }

/* ── Smaller screens ──────────────────────────────────────────────── */
/* The logo never shrinks; the links never break across lines. */
.site-header .logo { flex: none; }
.site-nav a { white-space: nowrap; }
/* Once the row is too tight for all of it: logo and Log In on one row,
   the page links spread under them. */
@media (max-width: 900px) {
  .site-header .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; row-gap: 12px; padding-top: 14px; padding-bottom: 12px; }
  .site-nav { display: contents; }
  .site-header .logo { grid-column: 1 / 3; grid-row: 1; justify-self: start; }
  .site-nav a.nav-login { grid-column: 3; grid-row: 1; justify-self: end; }
  .site-nav a:not(.nav-login) { grid-row: 2; }
  .site-nav a:nth-child(1) { justify-self: start; }
  .site-nav a:nth-child(2) { justify-self: center; }
  .site-nav a:nth-child(3) { justify-self: end; }
}
@media (max-width: 900px) {
  .p-grid { grid-template-columns: 1fr; }
  .p-cell, .p-cell:nth-child(even) { padding: 36px 0 44px; border-left: 0; }
  /* One column: the words, then the phone centered under them. */
  .p-cell { flex-direction: column; align-items: stretch; gap: 24px; }
  .p-cell-text { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: end; }
  .p-cell-text .p-num { grid-row: span 2; }
  .p-screens { align-self: center; }
  .p-promises { grid-template-columns: 1fr; }
  .p-promise + .p-promise { padding-left: 0; border-left: 0; border-top: 3px solid var(--p-sky); }
}
@media (max-width: 560px) {
  .p-wrap, .site-header .wrap, .site-footer .wrap { padding-left: 16px; padding-right: 16px; }
  .p-hero { padding-top: 28px; padding-bottom: 36px; }
  .p-h2 { margin-bottom: 40px; }
  .p-how, .p-private { padding-top: 40px; padding-bottom: 40px; }
  .doc { padding: 32px 16px 88px; }
  .glance div:nth-child(even) { border-left: 0; padding-left: 0; }
}
/* The narrowest phones: the mockups shrink a little to clear the edge. */
@media (max-width: 360px) {
  .p-screens { zoom: 0.88; }
}

/* About jumps to the roll banner, landing it just under the sticky header. */
@media (min-width: 901px) { #about { scroll-margin-top: 99px; } }
