/* Threadprint landing page. Self-contained: the font is served from this folder, nothing else is fetched. */
@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0c1014;
  --ink-2: #454b57;
  --soft: #6b7089;        /* the quiet half of the headline: 4.6:1 on white, so it holds even off the large-text rule */
  --line: #e4e5ec;
  --ground: #ffffff;
  --ground-2: #f6f6fa;
  --navy: #0e1733;
  --navy-2: #1b2a55;
  --violet: #a334fa;
  --indigo: #6c4cf6;
  --blue: #0b6be0;
  --own: linear-gradient(90deg, #a334fa 0%, #6c4cf6 52%, #0b6be0 100%);
  --focus: #6c4cf6;
  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #c9cad6 transparent; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #e5dcff; color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--indigo); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: #4f33d9; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
p, figcaption, dd { margin: 0; text-wrap: pretty; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -48px; padding: 8px 14px; background: var(--navy); color: #fff; border-radius: 999px; z-index: 10; }
.skip:hover { color: #fff; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff; font-weight: 500; font-size: 1rem; text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 12px 28px -10px rgb(14 23 51 / 0.55), 0 2px 4px rgb(14 23 51 / 0.2);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pill:hover { color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), 0 18px 34px -12px rgb(14 23 51 / 0.6), 0 2px 4px rgb(14 23 51 / 0.2); }
.pill:active { transform: translateY(0); }
.pill-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }
.pill-light { background: #fff; color: var(--navy); box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.5); }
.pill-light:hover { color: var(--navy); }
.link { color: var(--ink-2); font-weight: 500; }
.link:hover { color: var(--ink); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: rgb(255 255 255 / 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgb(228 229 236 / 0.7);
}
.nav-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.nav nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 0;
  /* Faint vertical rules, fading out toward the tiles. */
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), rgb(108 76 246 / 0.06) calc(100% / 12 - 1px) calc(100% / 12)),
    linear-gradient(180deg, #fbfbfe, #fff 60%);
}
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero-copy { padding-top: 12px; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.04em; }
h1 .line { display: block; }
h1 .ink { color: var(--ink); }
h1 .soft { color: var(--soft); }
.switch {
  position: relative; display: inline-block; vertical-align: 0.06em;
  width: 1.62em; height: 0.86em; margin: 0 0.08em;
  border-radius: 999px; background: var(--own);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.18), 0 8px 18px -8px rgb(108 76 246 / 0.7);
}
.knob {
  position: absolute; top: 0.07em; left: calc(100% - 0.79em);
  width: 0.72em; height: 0.72em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #f1f0f7 70%);
  box-shadow: 0 2px 6px rgb(14 23 51 / 0.3), inset 0 -1px 2px rgb(0 0 0 / 0.08);
  animation: knob-on 1.1s var(--ease) 0.35s both;
}
@keyframes knob-on { from { left: 0.07em; } }
.lede { margin-top: 28px; max-width: 34em; color: var(--ink-2); font-size: clamp(1.05rem, 1.3vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 36px; }
.fine { margin-top: 18px; color: #5d6372; font-size: 0.92rem; }

/* Glass frame: the one surface allowed to blur, because it sits on the tiles. */
.glass {
  margin: 0; padding: 10px;
  background: rgb(255 255 255 / 0.62);
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 26px;
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 30px 60px -28px rgb(32 22 92 / 0.38), 0 4px 14px -6px rgb(32 22 92 / 0.12);
}
.glass img { border-radius: 18px; background: #fff; }
.chat-card { position: relative; margin-bottom: 64px; }
.chat-card .clip { max-height: 600px; overflow: hidden; border-radius: 18px; background: #fff; }
.chat-card .clip img { -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.chat-card figcaption { padding: 10px 8px 2px; color: #5d6372; font-size: 0.82rem; }

/* ---------- Glass tiles ---------- */
.mosaic {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(16, 1fr); gap: 8px;
  width: min(1320px, 100% + 40px); margin: -230px auto 0; padding: 0 0 8px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
}
.t {
  --c: #6c4cf6;
  aspect-ratio: 1; border-radius: 24%;
  background:
    radial-gradient(130% 120% at 28% 18%, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0) 52%),
    linear-gradient(160deg, color-mix(in oklab, var(--c) var(--mix), white), color-mix(in oklab, var(--c) calc(var(--mix) + 12%), white));
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.95),
    inset 0 -12px 20px rgb(255 255 255 / 0.28),
    0 14px 26px -16px color-mix(in oklab, var(--c) 70%, transparent);
  animation: rise 1.4s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 1ms);
}
.h0 { --c: #2f7cf0; } .h1 { --c: #3d6af2; } .h2 { --c: #6c4cf6; } .h3 { --c: #9a46f6; } .h4 { --c: #d55fd0; } .h5 { --c: #f39a78; }
.i0 { --mix: 2%; box-shadow: inset 0 1px 1px #fff, 0 10px 24px -18px rgb(32 22 92 / 0.35); }
.i1 { --mix: 16%; } .i2 { --mix: 32%; } .i3 { --mix: 50%; } .i4 { --mix: 68%; }
.t:nth-child(16n+1) { --d: 0; } .t:nth-child(16n+2) { --d: 40; } .t:nth-child(16n+3) { --d: 80; } .t:nth-child(16n+4) { --d: 120; }
.t:nth-child(16n+5) { --d: 160; } .t:nth-child(16n+6) { --d: 200; } .t:nth-child(16n+7) { --d: 240; } .t:nth-child(16n+8) { --d: 280; }
.t:nth-child(16n+9) { --d: 320; } .t:nth-child(16n+10) { --d: 360; } .t:nth-child(16n+11) { --d: 400; } .t:nth-child(16n+12) { --d: 440; }
.t:nth-child(16n+13) { --d: 480; } .t:nth-child(16n+14) { --d: 520; } .t:nth-child(16n+15) { --d: 560; } .t:nth-child(16n) { --d: 600; }
@keyframes rise { from { opacity: 0.35; filter: saturate(0.2) blur(3px); } }

/* Four-point sparkles where tiles meet. */
.spark {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px rgb(255 255 255 / 0.9));
}
.s1 { left: 25%; top: 50%; } .s2 { left: 43.75%; top: 75%; } .s3 { left: 62.5%; top: 50%; }
.s4 { left: 81.25%; top: 75%; } .s5 { left: 12.5%; top: 75%; } .s6 { left: 93.75%; top: 50%; }

/* ---------- Sections ---------- */
.band { padding: clamp(80px, 10vw, 136px) 0; }
.soft-band { background: var(--ground-2); }
.band h2 { max-width: 18em; }
.intro { margin-top: 18px; max-width: 38em; color: var(--ink-2); font-size: 1.1rem; }

.sheets { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 56px; }
.sheet { margin: 0; }
.sheet img {
  border-radius: 6px; background: #fff;
  box-shadow: 0 0 0 1px rgb(14 23 51 / 0.06), 0 28px 50px -30px rgb(14 23 51 / 0.45), 0 8px 18px -10px rgb(14 23 51 / 0.15);
}
.sheet figcaption { margin-top: 22px; max-width: 30em; color: var(--ink-2); }
.sheet figcaption b { color: var(--ink); font-weight: 600; }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin: 56px 0 0; padding: 0; }
.steps > li { counter-increment: step; }
.steps > li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px;
  border-radius: 12px; background: var(--own); color: #fff; font-weight: 600;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 10px 20px -10px rgb(108 76 246 / 0.7);
}
.steps ul { list-style: none; display: grid; gap: 12px; margin: 16px 0 0; padding: 0; color: var(--ink-2); font-size: 0.97rem; line-height: 1.55; }
.steps ul li { position: relative; padding-left: 20px; text-wrap: pretty; }
.steps ul li::before {
  content: ''; position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
}
.steps b { color: var(--ink); font-weight: 600; }
.nowrap { white-space: nowrap; }

.proof { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.proof-shot { background: linear-gradient(160deg, #f3efff, #eef4ff); border-color: #fff; }
.facts { margin: 36px 0 0; }
.facts dt { font-weight: 600; font-size: 1.05rem; }
.facts dd { margin: 6px 0 0; color: var(--ink-2); }
.facts dd + dt { margin-top: 24px; }

.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 44px); margin-top: 48px; }
.uses > div { padding-top: 22px; border-top: 2px solid transparent; border-image: var(--own) 1; }
.uses p { margin-top: 10px; color: var(--ink-2); }
.plans { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: clamp(24px, 3vw, 48px); margin-top: 48px; align-items: start; }
.plan { padding-top: 22px; border-top: 2px solid transparent; border-image: var(--own) 1; }
.plan .price { margin-top: 6px; font-size: clamp(2.2rem, 3.4vw, 2.8rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan p:not(.price) { margin-top: 12px; color: var(--ink-2); }
.plan-how { padding: 22px 24px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.plan-how ul { margin: 12px 0 16px; padding-left: 1.1em; color: var(--ink-2); display: grid; gap: 8px; }
.plan-how p { color: var(--ink-2); }
.plan-how b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 56px; }
.trio > div { padding-top: 22px; border-top: 1px solid var(--line); }
.trio p { margin-top: 10px; color: var(--ink-2); }

/* ---------- Closing ---------- */
.closing { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #1b2a55, var(--navy) 62%); color: #fff; }
.closing-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 34px; padding: clamp(88px, 11vw, 136px) 0 clamp(170px, 20vw, 270px); text-align: center; }
.closing h2 { color: #fff; max-width: 16em; }
.mosaic.dim { position: absolute; left: 50%; bottom: -14%; transform: translateX(-50%); margin: 0; opacity: 0.9; mask-image: linear-gradient(180deg, transparent 8%, #000 75%); -webkit-mask-image: linear-gradient(180deg, transparent 8%, #000 75%); }
/* On navy the tiles glow from within; the clear ones are only an edge of light. */
.mosaic.dim .t { animation: none; background: radial-gradient(130% 120% at 28% 18%, rgb(255 255 255 / 0.35), rgb(255 255 255 / 0) 55%), color-mix(in oklab, var(--c) calc(var(--mix) + 20%), transparent); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 18px 34px -18px var(--c); }
.mosaic.dim .i0 { background: rgb(255 255 255 / 0.03); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1); }

.foot { padding: 36px 0 48px; color: #5d6372; font-size: 0.9rem; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.foot-in p:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.foot-in p:nth-child(2) { max-width: 44em; }
.foot a { color: var(--ink-2); }

/* ---------- Guides ---------- */
.foot-guides { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot-title { font-weight: 600; color: var(--ink); }
.foot-guides ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 32px; margin: 14px 0 0; padding: 0; }
.foot-guides a { color: var(--ink-2); text-decoration: none; }
.foot-guides a:hover { color: var(--ink); text-decoration: underline; }
.foot-guides [aria-current] { color: var(--ink); font-weight: 500; }

.guide { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.guide-in { width: min(760px, 100% - 32px); }
.crumbs { color: #5d6372; font-size: 0.92rem; }
.crumbs a { color: var(--ink-2); }
.guide h1 { margin-top: 18px; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; }
.guide .lede { margin-top: 20px; max-width: none; }
.guide h2 { margin: 56px 0 14px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -0.025em; }
.guide p { color: var(--ink-2); }
.guide p + p { margin-top: 14px; }
.guide b { color: var(--ink); font-weight: 600; }
.guide-shot { margin-top: 36px; }
.guide-shot figcaption { padding: 10px 8px 2px; color: #5d6372; font-size: 0.85rem; }
.guide-shot.clip img { width: 100%; max-height: 520px; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.guide-steps { counter-reset: gs; list-style: none; display: grid; gap: 14px; margin: 18px 0 0; padding: 0; }
.guide-steps li { counter-increment: gs; position: relative; padding-left: 44px; color: var(--ink-2); }
.guide-steps li::before {
  content: counter(gs);
  position: absolute; left: 0; top: 0.05em;
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 9px; background: var(--own); color: #fff; font-size: 0.88rem; font-weight: 600;
}
.guide-know { display: grid; gap: 12px; margin: 18px 0 0; padding-left: 1.1em; color: var(--ink-2); }
.guide-cta { margin-top: 56px; padding: 28px; border-radius: var(--radius); background: var(--ground-2); }
.guide-cta h2 { margin-top: 0; }
.guide-cta .actions { margin-top: 20px; }
.faq { margin: 8px 0 0; }
.faq dt { margin-top: 22px; font-weight: 600; }
.faq dd { margin: 6px 0 0; color: var(--ink-2); }
.more { display: grid; gap: 8px; margin: 8px 0 0; padding-left: 1.1em; }

/* ---------- Smaller screens ---------- */
@media (max-width: 980px) {
  .nav nav { display: none; }
  .nav-in { justify-content: space-between; }
  .hero-in { grid-template-columns: 1fr; }
  .chat-card { max-width: 520px; margin: 0 0 56px; }
  .chat-card .clip { max-height: 480px; }
  .mosaic { margin-top: -170px; grid-template-columns: repeat(8, 1fr); width: calc(100% + 24px); }
  .mosaic .t:nth-child(16n+9), .mosaic .t:nth-child(16n+10), .mosaic .t:nth-child(16n+11), .mosaic .t:nth-child(16n+12),
  .mosaic .t:nth-child(16n+13), .mosaic .t:nth-child(16n+14), .mosaic .t:nth-child(16n+15), .mosaic .t:nth-child(16n) { display: none; }
  .spark { display: none; }
  .sheets, .proof, .steps, .trio { grid-template-columns: 1fr; }
  .uses { grid-template-columns: 1fr 1fr; gap: 32px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-how { grid-column: 1 / -1; }
  .steps, .trio { gap: 36px; }
  .foot-in { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pill-sm { display: none; }
  .actions .pill { width: 100%; }
  .uses { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .chat-card .clip { max-height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knob, .t { animation: none; }
  .pill { transition: none; }
}
