/* Coollage — marketing site. Liquid Glass: indigo accent, frosted cards, soft geometry. */
:root {
  color-scheme: light dark;
  --acc: #6366F1;
  --acc-deep: #4F46E5;
  --acc-hi: #818CF8;
  --acc-grad: linear-gradient(135deg, #818CF8, #4F46E5);
  --acc-soft: rgba(99, 102, 241, .14);
  --acc-text: #4F46E5;

  --bg: #FBFAF7;
  --bg-solid: #F4F4F6;
  --fg: #111114;
  --fg2: rgba(60, 60, 67, .78);
  --fg3: rgba(60, 60, 67, .62);
  --line: rgba(60, 60, 67, .14);

  --glass: rgba(255, 255, 255, .66);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-sh: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(255, 255, 255, .4), 0 10px 30px rgba(20, 20, 28, .08);
  --frame: rgba(255, 255, 255, .6);
  --frame-sh: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .6), 0 24px 50px rgba(40, 50, 60, .14);
  --photo-fallback: #A9ACB8;

  --glow:
    radial-gradient(60% 40% at 50% 20%, rgba(222, 232, 190, .55), rgba(222, 232, 190, 0) 72%),
    radial-gradient(55% 40% at 0% 0%, rgba(206, 192, 250, .65), rgba(206, 192, 250, 0) 72%),
    radial-gradient(55% 40% at 100% 8%, rgba(254, 220, 190, .5), rgba(254, 220, 190, 0) 72%),
    radial-gradient(55% 40% at 6% 60%, rgba(196, 226, 246, .5), rgba(196, 226, 246, 0) 72%),
    radial-gradient(55% 40% at 96% 70%, rgba(226, 206, 248, .55), rgba(226, 206, 248, 0) 72%);

  --cta-fg: #fff;
  --store-bg: #0A0A10;
  --store-fg: #fff;

  --r-card: 28px;
  --r-tile: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --acc-soft: rgba(129, 140, 248, .18);
    --acc-text: #A5B4FC;
    --bg: #0B0B10;
    --bg-solid: #0B0B10;
    --fg: #fff;
    --fg2: rgba(255, 255, 255, .78);
    --fg3: rgba(255, 255, 255, .6);
    --line: rgba(255, 255, 255, .12);
    --glass: rgba(255, 255, 255, .08);
    --glass-strong: rgba(28, 28, 36, .78);
    --glass-sh: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .09), 0 10px 30px rgba(0, 0, 0, .3);
    --frame: rgba(255, 255, 255, .12);
    --frame-sh: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 70px rgba(0, 0, 0, .45);
    --photo-fallback: #2A2A33;
    --glow:
      radial-gradient(60% 40% at 50% 10%, rgba(99, 102, 241, .28), rgba(99, 102, 241, 0) 72%),
      radial-gradient(55% 40% at 0% 0%, rgba(129, 90, 220, .26), rgba(129, 90, 220, 0) 72%),
      radial-gradient(55% 40% at 100% 20%, rgba(60, 110, 200, .2), rgba(60, 110, 200, 0) 72%);
    --store-bg: #fff;
    --store-fg: #0A0A10;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--glow), var(--bg);
  background-repeat: no-repeat;
  background-size: 100% 1600px, 100% 1600px, 100% 1600px, 100% 1600px, 100% 1600px, auto;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--acc-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--acc-deep); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 0;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 8px 0 10px;
  border-radius: 999px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: var(--glass-sh);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none;
  font-weight: 700; font-size: 18px; letter-spacing: -.3px;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(79, 70, 229, .25); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--fg2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { color: var(--fg); background: var(--acc-soft); }
.nav a[aria-current="page"] { color: var(--acc-text); background: var(--acc-soft); }
.nav .pill {
  color: #fff; background: var(--acc-grad); font-weight: 600;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .3), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.nav .pill:hover { color: #fff; background: var(--acc-grad); filter: brightness(1.06); }
@media (max-width: 560px) {
  .nav .hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 26px 0 20px;
  border-radius: 999px;
  background: var(--store-bg); color: var(--store-fg);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(20, 20, 28, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.store:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(20, 20, 28, .28); }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 12px; font-weight: 500; opacity: .8; }
.store b { font-size: 20px; font-weight: 600; letter-spacing: -.3px; }

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--acc-grad); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none;
  box-shadow: 0 14px 30px rgba(79, 70, 229, .32), inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* ---------- Hero ---------- */
.page-index { background: var(--bg); }
.hero { background: var(--glow), var(--bg); position: relative; overflow: hidden; margin-top: -80px; padding-top: 80px; }
.mosaic {
  position: absolute; inset: -140px -220px auto -220px; height: 1000px; max-height: calc(100% + 40px);
  display: flex; gap: 18px;
  transform: rotate(-9deg);
  transform-origin: 50% 30%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 60%, transparent 92%);
  mask-image: linear-gradient(#000 60%, transparent 92%);
}
.mosaic .col { flex: 1; display: flex; flex-direction: column; gap: 18px; min-width: 150px; }
.mosaic .col:nth-child(4n+1) { transform: translateY(-36px); }
.mosaic .col:nth-child(4n+2) { transform: translateY(-120px); }
.mosaic .col:nth-child(4n+3) { transform: translateY(-12px); }
.mosaic .col:nth-child(4n+4) { transform: translateY(-90px); }
.piece {
  flex: none; padding: 5px; border-radius: var(--r-tile);
  background: var(--frame); box-shadow: var(--frame-sh);
}
.piece .grid {
  width: 100%; height: 100%;
  display: grid; gap: 2px; border-radius: 17px; overflow: hidden;
}
.piece .grid > i { display: block; background: var(--photo-fallback) center / cover no-repeat; }
.g4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.g2v { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.g2h { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
.g3a { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; }
.g3a > i:first-child { grid-row: span 2; }
.g3b { grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; }
.g3b > i:first-child { grid-column: span 2; }

.hero-fade {
  position: absolute; inset: 0 0 -4px 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 0%, transparent) 0%, color-mix(in srgb, var(--bg) 0%, transparent) 30%, color-mix(in srgb, var(--bg) 70%, transparent) 52%, color-mix(in srgb, var(--bg) 94%, transparent) 64%, var(--bg) 78%);
}
.hero-inner {
  position: relative;
  padding-top: clamp(280px, 30vw, 380px);
  padding-bottom: 72px;
  text-align: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px 0 10px; border-radius: 999px;
  background: var(--acc-grad); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .6px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .3), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.badge svg { width: 18px; height: 18px; }
.hero h1 {
  margin: 18px auto 14px; max-width: 16ch;
  font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800;
}
.hero .lede { margin: 0 auto 30px; max-width: 36ch; font-size: clamp(18px, 2.2vw, 21px); color: var(--fg2); }
.hero .meta { margin: 16px 0 0; font-size: 14px; color: var(--fg3); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.eyebrow {
  margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--acc-text);
}
h2 { margin: 0 0 12px; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; }
.section-lede { margin: 0 0 32px; max-width: 52ch; color: var(--fg2); font-size: 18px; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: var(--glass-sh);
  border-radius: var(--r-card);
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { padding: 26px 24px 24px; }
.steps .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; margin-bottom: 14px;
  background: var(--acc-soft); color: var(--acc-text); font-weight: 700; font-size: 15px;
}
.steps h3, .features h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.2px; }
.steps p, .features p { margin: 0; color: var(--fg2); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features .glass { padding: 24px; }
.features .ico {
  width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--acc-grad); color: #fff;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .25), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.features .ico svg { width: 24px; height: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding: 0; list-style: none; }
.chips li {
  font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--acc-soft); color: var(--acc-text);
}

/* Pro */
.pro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 44px); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan {
  position: relative; padding: 18px 18px 16px; border-radius: 22px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
}
.plan.best { background: var(--glass-strong); box-shadow: inset 0 0 0 2px var(--acc), 0 12px 28px rgba(20, 20, 28, .1); }
.plan .tag {
  position: absolute; top: -12px; right: 14px;
  padding: 3px 10px; border-radius: 999px; background: var(--acc); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .6px;
}
.plan .name { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--fg3); }
.plan .price { margin: 4px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.plan .per { margin: 0; color: var(--fg2); font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--fg3); }

.privacy-band { display: flex; gap: 22px; align-items: center; padding: clamp(24px, 4vw, 40px); }
.privacy-band .ico { flex: none; width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--acc-grad); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .3); }
.privacy-band .ico svg { width: 34px; height: 34px; }
.privacy-band h2 { font-size: clamp(24px, 3vw, 32px); }
.privacy-band p { margin: 0; color: var(--fg2); }

.final { text-align: center; padding: 72px 0 88px; }
.final img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 16px 36px rgba(79, 70, 229, .3); }
.final p { color: var(--fg2); margin: 0 auto 26px; max-width: 40ch; }

@media (max-width: 860px) {
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .pro { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .steps, .features { grid-template-columns: 1fr; }
  .privacy-band { flex-direction: column; align-items: flex-start; }
  section { padding: 40px 0; }
}

/* ---------- Document pages ---------- */
.doc { padding: 28px 0 64px; }
.doc .glass { padding: clamp(24px, 5vw, 52px); }
.doc h1 { margin: 0 0 6px; font-size: clamp(34px, 5.4vw, 50px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.doc .updated { margin: 0 0 28px; color: var(--fg3); font-size: 15px; }
.doc h2 { margin: 36px 0 10px; font-size: 23px; letter-spacing: -.3px; font-weight: 700; }
.doc h3 { margin: 22px 0 6px; font-size: 18px; }
.doc p, .doc li { color: var(--fg2); }
.doc strong { color: var(--fg); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .caps { text-transform: uppercase; font-size: 15px; }
.doc .callout { margin: 0 0 8px; padding: 16px 18px; border-radius: 18px; background: var(--acc-soft); color: var(--fg); }
.doc .callout p { color: var(--fg); margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--acc-soft); text-decoration: none; font-size: 14px; font-weight: 600; }

details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative;
  font-weight: 600; font-size: 18px; color: var(--fg);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--fg3); border-bottom: 2px solid var(--fg3); transform: rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details > div { padding: 0 0 14px; }
details p, details li { margin: 6px 0; }

.contact-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 8px 0 8px; }
.contact-card p { margin: 0; }
.mail { font-size: 20px; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0 40px; color: var(--fg3); font-size: 14px; }
.site-footer .row {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--fg2); text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .hero .mosaic { display: none; }
  body { background: #fff; color: #000; }
  .glass { box-shadow: none; background: none; }
}
