/*
 * The landing page, privacy and terms: the site a visitor sees before
 * signing in. Kept apart from app.css so the two can change without
 * tripping over each other. Always light, like the pictures of the app on it.
 */

@font-face {
  font-family: "InterVariable";
  src: url("../fonts/web/InterVariable.9d8f116c74d5.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --tint: #f6f7f9;
  --ink: #12151b;
  --text: #2b313b;
  --muted: #5f6878;
  --faint: #98a2b3;
  --line: #e4e7ec;
  --primary: #2f5bea;
  --primary-dark: #1e42b8;
  --primary-soft: #eef2fe;
  --good: #12805c;
  --good-soft: #ecfdf3;
  --late: #b42318;
  --late-soft: #fef3f2;
  --night: #0f1b3d;
  --radius: 14px;
  --shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, .28), 0 8px 20px -8px rgba(16, 24, 40, .12);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "InterVariable", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv05", "cv08";
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { color: var(--ink); margin: 0 0 .6em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -.01em; margin-bottom: .35em; }
p { margin: 0 0 1em; }
figure { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.lead { font-size: 1.15rem; color: var(--muted); }
.fine { font-size: .88rem; color: var(--muted); margin-top: .9rem; }
.kicker {
  font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .8rem;
}

/* -- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .link-quiet:focus-visible, summary:focus-visible, .sound-toggle:focus-visible {
  outline: 3px solid rgba(47, 91, 234, .35); outline-offset: 2px;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px -6px rgba(47, 91, 234, .6); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9ced6; }
.btn-light { background: #fff; color: var(--night); }
.btn-small { padding: .5rem 1rem; font-size: .92rem; }
.btn-block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.cta-row.is-center { justify-content: center; }

/* -- Top bar ---------------------------------------------------------- */

.site-bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-bar.is-scrolled { border-bottom-color: var(--line); }
.site-bar-row { display: flex; align-items: center; gap: 2rem; height: 68px; }
.site-brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none;
}
.brand-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--primary); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  font-feature-settings: normal;
}
.site-links { display: flex; gap: 1.6rem; }
.site-links a, .link-quiet { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-links a:hover, .link-quiet:hover { color: var(--ink); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
@media (max-width: 860px) { .site-links { display: none; } }
@media (max-width: 400px) { .site-actions .link-quiet { display: none; } }

/* -- Hero ------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(47, 91, 234, .10), transparent 70%),
    radial-gradient(700px 420px at 0% 100%, rgba(18, 128, 92, .07), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.hero .lead { max-width: 34rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .85rem; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: .85rem; font-weight: 600; margin-bottom: 1.4rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(47, 91, 234, .18); }

.hero-visual { position: relative; }
.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; background: #f2f4f7; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; }
.film { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #fff; }
.sound-toggle {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: 999px; border: 0;
  background: rgba(15, 27, 61, .78); color: #fff; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.sound-toggle svg { width: 16px; height: 16px; }
.sound-toggle[aria-pressed="false"] .waves { opacity: .35; }

.float {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem .7rem .75rem; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: .88rem; line-height: 1.3; color: var(--ink);
}
.float strong { display: block; font-weight: 650; }
.float small { display: block; color: var(--muted); font-size: .8rem; }
.float-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 700; flex: none; }
.float-icon svg { width: 18px; height: 18px; }
.float-icon.is-paid { background: var(--good-soft); color: var(--good); }
.float-icon.is-opened { background: var(--primary-soft); color: var(--primary); }
.float-paid { left: -28px; bottom: -26px; animation: bob 6s ease-in-out infinite; }
.float-opened { right: -18px; top: 18%; animation: bob 6s ease-in-out -3s infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .float-paid { left: 8px; bottom: -22px; }
  .float-opened { right: 8px; top: -22px; }
}
@media (max-width: 480px) { .float-opened { display: none; } }

/* -- Sections --------------------------------------------------------- */

.section { padding: 104px 0; }
.section.is-tinted { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head .lead { margin-top: -.2rem; }
@media (max-width: 700px) { .section { padding: 72px 0; } }

/* Before and after */
.chains { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 2.6rem; }
.chain { border-radius: var(--radius); padding: 26px 28px; }
.chain-label { font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.1rem; }
.chain ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 6px; }
.chain li { display: inline-flex; align-items: center; gap: 6px; }
.chain li + li::before { content: "\2192"; color: var(--faint); margin-right: 2px; }
.chain-before { background: var(--tint); border: 1px dashed #d0d5dd; }
.chain-before .chain-label { color: var(--muted); }
.chain-before li {
  padding: 0; font-size: .95rem; color: var(--muted);
}
.chain-before li span, .chain-before li { white-space: nowrap; }
.chain-after { background: var(--night); color: #fff; box-shadow: var(--shadow-lg); }
.chain-after .chain-label { color: #9fb4ff; }
.chain-after li { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.chain-after li + li::before { color: #6f8cff; }
.chain-after li:last-child { color: #6ee7b7; }
.chain-foot { margin: 1.2rem 0 0; font-size: .95rem; }
.chain-before .chain-foot { color: var(--muted); }
.chain-after .chain-foot { color: #c7d2fe; }
.aside { color: var(--muted); font-size: .98rem; margin-top: 2rem; }
@media (max-width: 800px) { .chains { grid-template-columns: 1fr; } }

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
}
.step {
  position: relative; padding: 22px 20px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step p { font-size: .94rem; color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .9rem;
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Feature rows: words on one side, pictures on the other */
.feature-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.feature-grid.is-flipped .feature-copy { order: 2; }
.feature-copy p { color: var(--muted); }
.feature-copy .btn { margin-top: .6rem; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid.is-flipped .feature-copy { order: 0; }
}

.ticks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2312805c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.shot {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.shot-wide { max-width: 920px; margin: 0 auto; }
.shot-stack { display: grid; gap: 18px; }
.shot-stack .shot:nth-child(2) { margin-left: 40px; margin-right: -12px; }
@media (max-width: 900px) { .shot-stack .shot:nth-child(2) { margin: 0; } }

/* Branding: three invoices, tops showing */
.looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 2.6rem; }
.look-paper {
  height: 460px; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
  transition: transform .25s;
}
.look:nth-child(2) .look-paper { transform: translateY(-16px); }
.look:hover .look-paper { transform: translateY(-6px); }
.look:nth-child(2):hover .look-paper { transform: translateY(-22px); }
.look figcaption { margin-top: .9rem; text-align: center; font-weight: 650; color: var(--ink); }
.look figcaption span { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
@media (max-width: 800px) {
  .looks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .look { scroll-snap-align: center; }
  .look:nth-child(2) .look-paper { transform: none; }
  .look-paper { height: 400px; }
}

/* Projects list */
.rows { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.row + .row { border-top: 1px solid var(--line); }
.row-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; }
.row-name { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); }
.row-name small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.pill {
  padding: .25rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--primary-soft); color: var(--primary-dark); white-space: nowrap;
}
.pill.is-quiet { background: #f2f4f7; color: var(--muted); }

/* Income */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin: 0 auto 2.4rem; }
.tile { padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tile span { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.tile strong { display: block; font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile.is-good { background: var(--good-soft); border-color: #a6f4c5; }
.tile.is-good strong { color: var(--good); }
.tile.is-late strong { color: var(--late); }
.income .section-head { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 700px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Audience and currencies */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-up h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.two-up p { color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 1.4rem 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: .4rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--ink); }
.chips.is-money b { color: var(--primary); margin-right: .15rem; }
@media (max-width: 860px) { .two-up { grid-template-columns: 1fr; gap: 48px; } }

/* Pricing */
.price-card {
  margin: 2rem auto 0; max-width: 460px; padding: 34px 32px; text-align: left;
  border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.price { font-size: 1rem; color: var(--muted); margin-bottom: .6rem; }
.price span { font-size: 3rem; font-weight: 750; letter-spacing: -.03em; color: var(--ink); margin-right: .3rem; }
.price-card > p { color: var(--muted); }
.price-card .fine { text-align: center; margin-bottom: 0; }

/* Questions */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 28px 18px 0; position: relative;
  font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* Final call */
.closing {
  background: radial-gradient(700px 360px at 50% 0%, rgba(111, 140, 255, .35), transparent 70%), var(--night);
  color: #dbe3ff;
}
.closing h2 { color: #fff; }
.closing .lead, .closing .fine { color: #b9c6f5; }

/* -- Footer ----------------------------------------------------------- */

.site-foot { border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: .92rem; }
.site-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-note { color: var(--muted); margin: .6rem 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: flex-start; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-small { color: var(--faint); font-size: .85rem; margin-top: 28px; }

/* -- Privacy and terms ------------------------------------------------ */

.doc { padding: 64px 0 96px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .4rem; }
.doc .updated { color: var(--muted); }
.draft-note {
  margin: 0 0 2rem; padding: 14px 18px; border-radius: 12px;
  background: #fffaeb; border: 1px solid #fedf89; color: #93370d; font-size: .95rem;
}

/* -- Coming into view ------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .steps .reveal:nth-child(2) { transition-delay: .07s; }
.js .steps .reveal:nth-child(3) { transition-delay: .14s; }
.js .steps .reveal:nth-child(4) { transition-delay: .21s; }
.js .steps .reveal:nth-child(5) { transition-delay: .28s; }
.js .looks .reveal:nth-child(2) { transition-delay: .1s; }
.js .looks .reveal:nth-child(3) { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-paid, .float-opened { animation: none; }
}
