/* Fonts are self-hosted (the site's CSP allows only 'self'): latin subsets from Google Fonts, all SIL Open Font License. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/assets/bricolage-grotesque-705c73e0.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/jetbrains-mono-500-11f0614d.woff") format("woff"); }
@font-face { font-family: "Permanent Marker"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/permanent-marker-ed8dddf2.woff2") format("woff2"); }

/* Layout: the teaser's dotted wall and paint band up top, then one 1080px column that alternates copy and real app screenshots,
   handwritten notes in the margins, and the dark sign-up card with the dripping button at the end. */
:root {
  --bg: #e6e8ec;            /* the teaser's grey wall */
  --dot: rgba(20,22,28,.07);
  --tx: #14161c;
  --mu: #586072;
  --ac: #2563eb;            /* the paint */
  --ac-hi: #3d7bf7;
  --err: #c62828;
  --ln: rgba(20,22,28,.14);
  --card: #f6f7fa;
  --plate: #dfe7f8;         /* matches the screenshots' own pale blue */
  --night: #14161c;         /* sign-up card */
  --night-tx: #f2f3f6;
  --night-mu: rgba(242,243,246,.66);
  --shadow: 0 2px 4px rgba(20,22,28,.08), 0 24px 50px -18px rgba(20,22,28,.35);
  --display: "Bricolage Grotesque", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --dot: rgba(255,255,255,.05); --tx: #eef0f4; --mu: #9aa2b4; --ac: #5b8cff; --ac-hi: #7aa2ff; --err: #ff8a8d;
    --ln: rgba(255,255,255,.12); --card: #181b21; --plate: #1d2433; --night: #1b1f27; --night-tx: #f2f3f6;
    --night-mu: rgba(242,243,246,.66); --shadow: 0 2px 4px rgba(0,0,0,.4), 0 24px 50px -18px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --dot: rgba(255,255,255,.05); --tx: #eef0f4; --mu: #9aa2b4; --ac: #5b8cff; --ac-hi: #7aa2ff; --err: #ff8a8d;
  --ln: rgba(255,255,255,.12); --card: #181b21; --plate: #1d2433; --night: #1b1f27; --night-tx: #f2f3f6;
  --night-mu: rgba(242,243,246,.66); --shadow: 0 2px 4px rgba(0,0,0,.4), 0 24px 50px -18px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; position: relative; overflow-x: hidden;
  background-color: var(--bg); color: var(--tx);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 7px 7px;
  font-family: var(--display); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  padding-inline: 20px; padding-block: 0;
}
.dripcv { position: absolute; left: 0; top: 0; width: 100%; height: 600px; pointer-events: none; z-index: 0; display: block; color: var(--ac); }
.wrap { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* header */
header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 34px 18px; position: relative; z-index: 2; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.01em; text-decoration: none;
  text-shadow: 3px 0 var(--bg),-3px 0 var(--bg),0 3px var(--bg),0 -3px var(--bg),2px 2px var(--bg),-2px -2px var(--bg),2px -2px var(--bg),-2px 2px var(--bg),4px 0 var(--bg),-4px 0 var(--bg),0 4px var(--bg),0 -4px var(--bg),0 0 10px var(--bg); }
nav { display: flex; align-items: center; gap: 22px; }
.tag { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--bg); background: var(--tx);
  padding: 7px 14px; border-radius: 99px; text-decoration: none; transition: background .2s; white-space: nowrap; }
.tag:hover { background: var(--ac); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ac); outline-offset: 3px; border-radius: 6px; }

/* type */
.eyebrow { font: 500 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ac); margin: 0; }
h1 { font-weight: 800; font-size: clamp(38px, 5.4vw, 68px); line-height: .92; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); line-height: .98; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
h3 { font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--ac); }
/* the first word of the headline cycles; every word sits in one grid cell, so the line never changes height or reflows */
.swap { display: grid; overflow: hidden; padding-block: .06em .1em; margin-block: -.06em -.1em; }
.swap span { grid-area: 1 / 1; transform: translateY(110%); transition: transform .55s cubic-bezier(.6,0,.2,1); }
.swap span.on { transform: none; transition-delay: .08s; }
.swap span.out { transform: translateY(-110%); }
.lede { font-size: 20px; color: var(--mu); margin: 0; max-width: 30em; text-wrap: pretty; }
.lede strong { color: var(--tx); font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.mu { color: var(--mu); }
.hand { font-family: var(--hand); font-weight: 400; color: var(--ac); line-height: 1.1; letter-spacing: 0; }

/* hero */
.hero { display: grid; gap: 28px; padding-block: 28px 30px; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero-copy { display: grid; gap: 18px; }
/* App Store button: ink on the wall, light on the dark card */
.get { display: grid; gap: 12px; justify-items: center; text-align: center; }
.store { display: inline-flex; align-items: center; gap: 11px; background: var(--tx); color: var(--bg); border-radius: 14px; padding: 11px 22px 11px 16px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.store:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(20,22,28,.6); }
button.store { border: 0; font: inherit; cursor: pointer; } /* the join section's Sign in */
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.1; }
.store small { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.store b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.join .store { background: var(--night-tx); color: var(--night); }

/* The extensions section (site/_get_extension): your browser's button, the rest in a line. */
.get-ext { display: grid; gap: 14px; justify-items: start; margin-top: 22px; }
.get-ext-also { margin: 0; color: var(--mu); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.get-ext-also a { color: var(--tx); font-weight: 600; }
.ext-link { display: inline-flex; align-items: center; gap: 6px; }
.ext-link .ext-logo { width: 17px; height: 17px; flex: none; }
.store.is-soon, .get-ext-also .is-soon { opacity: .45; cursor: default; }
.store.is-soon:hover { transform: none; box-shadow: none; }

.note { position: absolute; font-family: var(--hand); color: var(--ac); font-size: clamp(17px, 2vw, 24px); line-height: 1.05; white-space: nowrap; pointer-events: none; }
.note svg { display: block; width: 64px; height: 44px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* n1 is a zero-size anchor at the arrow tip: the top edge of the Chaffiti panel in the hero window (x 1064 / 1400, y 95 / 1034).
   The arrow's tip (62,88 in its 72x96 box) sits on the anchor; the words sit above the screenshot and end where the arrow starts (4,6). */
.n1 { left: 76%; top: 9.2%; width: 0; height: 0; }
.n1 svg { position: absolute; left: -62px; top: -88px; width: 72px; height: 96px; overflow: visible; }
.n1 span { position: absolute; right: 60px; bottom: 92px; transform: rotate(-4deg); transform-origin: right bottom; }
.n2 { left: -6px; bottom: -40px; transform: rotate(-2deg); color: var(--tx); }
/* n0 is drawn like n1, on the page side: its arrow tip lands on the example page's top edge */
.n0 { left: 30%; top: 9.2%; width: 0; height: 0; color: var(--tx); }
.n0 svg { position: absolute; left: -62px; top: -88px; width: 72px; height: 96px; overflow: visible; }
.n0 span { position: absolute; right: 60px; bottom: 92px; transform: rotate(-3deg); transform-origin: right bottom; }

/* sections */
section.blk { padding-block: 84px 0; display: grid; gap: 36px; }
.head { display: grid; gap: 14px; max-width: 40em; }

/* how it works: a real sequence, so it is numbered */
.how { display: grid; max-width: 40em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; counter-increment: s; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--ac); color: #fff;
  display: grid; place-items: center; font: 600 17px var(--mono); }
.steps li > div { display: grid; gap: 6px; padding-top: 7px; }

/* notifications: a reply and five followed pages, each with a handwritten label */
.pings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ping { display: grid; gap: 10px; grid-template-rows: auto 1fr; }
.ping .hand { font-size: 22px; transform: rotate(-3deg); transform-origin: left bottom; justify-self: start; }
.ping:nth-child(even) .hand { transform: rotate(2deg); }
.ping .card { background: var(--card); border: 1px solid var(--ln); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 3px; font-size: 15px; line-height: 1.35; }
.ping .app { display: flex; align-items: center; gap: 8px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mu); margin-bottom: 4px; }
.ping .app i { width: 20px; height: 20px; border-radius: 6px; background: var(--ac); color: #fff; display: grid; place-items: center; font: 800 12px var(--display); font-style: normal; }
.ping .app span { margin-left: auto; text-transform: none; letter-spacing: 0; }
.ping b { font-weight: 650; }
.ping .card > p:last-child { color: var(--mu); }
/* Phones: the cards sit in one row that scrolls sideways, each snapping into place, with the next one peeking in. */
@media (max-width: 700px) {
  .pings { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -20px; padding: 6px 20px 22px; scroll-padding-inline: 20px; }
  .pings::-webkit-scrollbar { display: none; }
  .ping { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
}

/* account */
.acct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.ticks svg { width: 22px; height: 22px; stroke: var(--ac); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.ticks b { font-weight: 650; }
.ticks span { color: var(--mu); }

/* faq */
.faq { display: grid; border-top: 1px solid var(--ln); }
details { border-bottom: 1px solid var(--ln); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; font-weight: 650; font-size: 19px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 500 22px var(--mono); color: var(--ac); flex: none; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--mu); padding-bottom: 22px; max-width: 42em; }

/* sign-up card, as on the teaser */
.join { margin-block: 96px 40px; background: var(--night); color: var(--night-tx); border-radius: 22px; padding: 52px 48px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.joinbg { position: absolute; inset: 0; pointer-events: none; }
.joinbg span { position: absolute; font-family: var(--hand); color: #fff; opacity: .1; white-space: nowrap; line-height: 1; }
.join > div:not(.joinbg) { position: relative; display: grid; gap: 14px; }
.join h2 { color: var(--night-tx); }
.join p { color: var(--night-mu); max-width: 26em; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding-block: 0 40px; font: 12px var(--mono); color: var(--mu); }
footer nav { gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; } footer a:hover { color: var(--tx); }
.sel { user-select: all; }

@media (max-width: 860px) {
  .hero-top, .how, .acct, .join { grid-template-columns: minmax(0, 1fr); }
  .hero-top { gap: 20px; }
  .n0 span, .n1 span { font-size: 15px; }
  .n0 { left: 36%; }
  .n2 { display: none; }
  .acct { gap: 40px; }
  .join { padding: 30px 22px; gap: 22px; margin-top: 72px; }
  section.blk { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .swap span { transition: none; }
}

/* Rails page: no inline styles (CSP), so these were attributes in the draft */
figure { margin: 0; }
.how-copy { display: grid; gap: 34px; }
.join .j1 { left: 4%; top: 10%; font-size: 34px; transform: rotate(-6deg); }
.join .j2 { left: 56%; top: 6%; font-size: 26px; transform: rotate(4deg); }
.join .j3 { left: 3%; top: 44%; font-size: 30px; transform: rotate(-3deg); }
.join .j4 { left: -2%; top: 74%; font-size: 28px; transform: rotate(3deg); }
.join .j5 { left: 62%; top: 78%; font-size: 30px; transform: rotate(-5deg); }
/* closing card: headline and button, centered */
.join { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-block: 64px; }
.join h2 { max-width: 14em; }
/* before launch the store buttons are look-alike placeholders, not links */
.button-soon { cursor: default; }
.store-note, .soon-note { margin: 0; font-weight: 600; opacity: .8; }
.store.button-soon:hover { transform: none; box-shadow: none; }
.tag.button-soon:hover { background: var(--tx); }
@media (max-width: 480px) { .tag .soon-detail { display: none; } }
/* Your name, when signed in on the website (layouts/_account_link): cut short rather than push past the edge. */
.tag.header-account { display: inline-block; max-width: 12em; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
@media (max-width: 480px) { .tag.header-account { max-width: 8em; } }

/* try-it band (site/_try_band): look up a page, or start with a picked one. Shown only while switched on (HomePicks). */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trycard { position: relative; overflow: hidden; display: grid; gap: 22px; background: var(--night); color: var(--night-tx); border-radius: 22px; padding: 52px 48px 44px; }
.trycard > *:not(.joinbg) { position: relative; }
.trycard .eyebrow { color: var(--ac-hi); }
.trycard h2 { color: var(--night-tx); max-width: 14em; }
.trycard h2 em { color: var(--ac-hi); }
.trycard .t1 { right: 6%; top: 9%; font-size: 30px; transform: rotate(-3deg); }
.tryform { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.tryform input { flex: 1 1 320px; min-width: 0; height: 58px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--night-tx); color: #14161c; font: 500 16px var(--mono); }
.tryform input::placeholder { color: #7a8294; }
.tryform button { height: 58px; padding: 0 30px; border: 0; border-radius: 14px; background: var(--ac-hi); color: #fff; font: 700 18px var(--display); cursor: pointer; }
.tryform button:hover { background: var(--ac); }
.trypicks { display: grid; gap: 16px; margin-top: 12px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.trypicks-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.trypicks-head h3 { color: var(--night-tx); }
.trypicks-head span { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--night-mu); }
.trypicks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.trypicks a { height: 100%; box-sizing: border-box; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--night-tx); text-decoration: none; transition: background .15s; }
.trypicks a:hover { background: rgba(255,255,255,.1); }
.trypicks .addr { font: 500 12px var(--mono); color: var(--night-mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trypicks .title { font-weight: 800; font-size: 20px; line-height: 1.15; letter-spacing: -.02em; }
.trypicks .quote { font-size: 15px; line-height: 1.4; color: var(--night-mu); }
.trypicks .count { font-size: 14px; font-weight: 700; color: var(--ac-hi); }
.trytip { font-size: 15px; color: var(--night-mu); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.addrtip { font: 500 14px var(--mono); padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.08); overflow-wrap: anywhere; }
.addrtip b { font-weight: 500; color: var(--ac-hi); }
@media (max-width: 860px) {
  .trycard { padding: 30px 20px 26px; gap: 16px; }
  .trycard .joinbg { display: none; }
  .tryform button { flex: 1 1 100%; }
}

/* Following whole sites, under the alerts (a line to /plans). */
.siteline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 18px 22px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--ln); text-decoration: none; max-width: 760px; }
.siteline:hover { border-color: var(--ac); }
.siteline-text { display: grid; gap: 4px; flex: 1 1 280px; }
.siteline-text .hand { font-size: 20px; transform: rotate(-2deg); transform-origin: left bottom; justify-self: start; }
.siteline-go { font-weight: 700; color: var(--ac); white-space: nowrap; }

/* Support Chaffiti (shared/_tip_block): after the sign-up card, apart from the plans line and the FAQ. */
.tip-block { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: -8px 0 40px;
  padding: 20px 24px; border-radius: 18px; border: 1.5px dashed var(--ln); }
.tip-block-text { flex: 1 1 280px; display: grid; gap: 4px; }
.tip-block h2 { font-size: 21px; letter-spacing: -.015em; line-height: 1.2; }
.tip-block p { color: var(--mu); }
.tip-block-link { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--tx); border: 1px solid var(--tx);
  padding: 8px 16px; border-radius: 99px; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.tip-block-link:hover { background: var(--tx); color: var(--bg); }

/* Under the hero picture, until an extension is out: the button it shows is coming soon. */
.hero-soon { margin: 0; text-align: center; color: var(--mu); font-size: 15px; line-height: 1.5; text-wrap: balance; }
.hero-soon-tag { display: inline-block; margin-right: 6px; padding: 2px 9px; border: 1px solid var(--ln); border-radius: 999px;
                 font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tx); vertical-align: 1px; }
