/* ─────────────────────────────────────────────────────────────
   Content Saver — landing page
   Base language: Portrait (white canvas, navy ink, one rainbow)
   Borrowed from Family: mascots + confetti, hairline inset cards,
   dark pill / dark feature card, ember demo links, status pills.
   ───────────────────────────────────────────────────────────── */

:root {
  --ink: #08304c;
  --teal: #084e72;
  --body: #2c2c2c;
  --soft: #4a6378;          /* helper text, AA on white */
  --fog: #c7c7c7;
  --ash: #dedede;
  --mist: #eeeeee;
  --white: #ffffff;
  --mint: #d7ffe2;
  --sky: #e8f1ff;
  --peach: #ffebd6;
  --stone: #eeeeee;         /* Family hairline tone */
  --sand: #f4f4f4;
  --cream: #fafafa;
  --slate: #797979;
  --rainbow: linear-gradient(90deg, #26c0ff, #e600c2 20%, #ff494e 40%, #ffa13e 60%, #ffc837 80%, #00cc3d);
  --hair: inset 0 0 0 1px rgba(8, 48, 76, .09);
  --float: 0 1px 2px rgba(8, 48, 76, .05), 0 4px 12px rgba(8, 48, 76, .05), 0 12px 32px rgba(8, 48, 76, .06);
  --lift: 0 2px 4px rgba(8, 48, 76, .04), 0 10px 24px rgba(8, 48, 76, .06), 0 24px 56px rgba(8, 48, 76, .07);
  --display: 'Plus Jakarta Sans', 'Basier Circle', 'Inter', system-ui, sans-serif;
  --text: 'Inter', 'Switzer', system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--body);
  font-family: var(--text); font-size: 17px; line-height: 1.5; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--peach); color: var(--ink); }

/* ── type ─────────────────────────────────────────────── */
@keyframes shimmer { to { background-position: 100% 0; } }

/* ── buttons ──────────────────────────────────────────── */
@keyframes ring { to { background-position: 0 0, 100% 0; } }

/* ── nav ──────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 19px; letter-spacing: -.04em; }
.brand img.brand-mark { width: auto; height: 28px; border-radius: 0; object-fit: contain; }

/* ── hero ─────────────────────────────────────────────── */
.hero { position: relative; padding: 170px 0 0; overflow: clip; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -2;
  background:
    radial-gradient(520px 340px at 18% 12%, rgba(232, 241, 255, .95), transparent 70%),
    radial-gradient(560px 360px at 84% 8%, rgba(255, 235, 214, .75), transparent 70%),
    radial-gradient(520px 300px at 52% 0%, rgba(215, 255, 226, .65), transparent 70%);
}
.hero h1 { max-width: 12.5ch; }

/* polaroids around hero */
@keyframes bob { 50% { translate: 0 -12px; } }
@keyframes pop { 0%, 6% { opacity: 0; transform: scale(.6) translateY(8px); } 12%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: scale(.9) translateY(-6px); } }
@keyframes sway { from { rotate: -6deg; } to { rotate: 6deg; } }
@keyframes drift { from { transform: translateY(0) rotate(var(--r0, -10deg)); } to { transform: translateY(-18px) rotate(var(--r1, 14deg)); } }

/* marquee */
.marquee { padding: 34px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ── sections ─────────────────────────────────────────── */
section { position: relative; }

/* reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.w.punct { margin-left: -.06em; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--base, 0ms)); }
.split-on .w > span { transform: none; }

/* ── browser mock ─────────────────────────────────────── */
.bbar .url { margin-left: 12px; flex: 1; height: 26px; border-radius: 9px; background: #fff; box-shadow: var(--hair); font-size: 12.5px; color: var(--soft); display: flex; align-items: center; padding: 0 12px; }
.bbar .ext.brand-mark { width: auto; height: 26px; border-radius: 0; overflow: visible; object-fit: contain; }
.save-badge svg { width: 14px; height: 14px; }
.photo.hov .save-badge { opacity: 1; transform: none; }
.photo.hov img { transform: scale(1.02); }
.save-badge.press { transform: scale(.94); background: #062b45; }
.sel { background: linear-gradient(var(--sky), var(--sky)) no-repeat 0 100% / 0% 100%; transition: background-size 1s var(--ease); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 1px 0; }
.sel.on { background-size: 100% 100%; }
.bm-badge.on { opacity: 1; transform: none; }
.bm-badge.press { transform: scale(.88); }
.picker.on { opacity: 1; transform: none; }
.picker .ph { padding: 8px 10px 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.picker .row i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.picker .row span { margin-left: auto; font-size: 12px; color: var(--soft); font-weight: 400; }
.picker .row.hl { background: var(--sky); }
.toast.on { opacity: 1; transform: none; }

/* ── bento ────────────────────────────────────────────── */

.pill { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; box-shadow: var(--hair); color: var(--ink); background: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.pill.on { background: var(--ink); color: #fff; box-shadow: none; }

/* dark card (Family) */
.arow { display: flex; align-items: center; gap: 14px; padding: 16px 16px; border-radius: 12px; background: #111; transition: background .3s, transform .4s var(--ease); cursor: default; }
.arow:hover, .arow.hl { background: #1c1c1c; transform: translateX(4px); }
.arow b { display: block; font-weight: 600; font-size: 15.5px; letter-spacing: -.015em; }
.arow span { display: block; font-size: 13px; color: rgba(255, 255, 255, .58); }

/* page media */
.mpanel { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.mpanel.on { opacity: 1; transform: none; }

/* video hover toolbar */
.vid video { width: 100%; height: 100%; object-fit: contain; }
@keyframes vt { 0%, 10% { opacity: 0; transform: translateY(-8px); } 18%, 70% { opacity: 1; transform: none; } 82%, 100% { opacity: 0; transform: translateY(-8px); } }

/* context menu */
@keyframes sub { 0%, 22% { opacity: 0; transform: translateX(-8px); } 32%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes hlt { 0%, 14% { background: transparent; } 20%, 90% { background: var(--sky); } 98%, 100% { background: transparent; } }

/* ── collections ──────────────────────────────────────── */
@keyframes rec { 50% { opacity: .25; } }
@keyframes blink { 50% { opacity: 0; } }
.results { display: grid; gap: 8px; }
.res { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: 16px; background: #fff; box-shadow: var(--hair); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.res.on { opacity: 1; transform: none; }
.res img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.res b { display: block; font-size: 15px; color: var(--ink); letter-spacing: -.02em; }
.res small { color: var(--soft); font-size: 13px; }

/* ── AI ───────────────────────────────────────────────── */
.pit .ck { position: absolute; top: 7px; left: 7px; width: 22px; height: 22px; border-radius: 7px; background: #fff; box-shadow: var(--hair); display: grid; place-items: center; transition: background .3s; }
.pit.sel .ck { background: var(--ink); }
.pit.sel .ck svg { opacity: 1; }
.pit .hint { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 8px; font-size: 10.5px; font-weight: 600; background: rgba(18, 18, 18, .8); color: #fff; opacity: 0; transition: opacity .3s; }
.pit:hover .hint { opacity: 1; }
.chat-in.over { background: var(--sky); box-shadow: 0 0 0 2px var(--ink); }
.att { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 12px; background: var(--stone); font-size: 12.5px; font-weight: 500; color: var(--ink); transform: scale(0); transform-origin: 0 100%; transition: transform .5s var(--ease); }
.att.on { transform: none; }
.att img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.dots i.on { background: #00ca48; }

/* ── how ──────────────────────────────────────────────── */

/* ── install + cta ────────────────────────────────────── */

.foot { padding: 30px 0 46px; border-top: 1px solid var(--mist); }

/* toast global */
.gtoast.on { translate: -50% 0; opacity: 1; }

#sq:empty::before { content: "Search all collections…"; color: #9aa7b2; }
#sq { min-width: 2px; }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 680px) {
  .hero { padding-top: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .w > span { transform: none; }
}
@keyframes stk { to { transform: translateX(calc(var(--k) * 28px)) translateY(-5px) rotate(calc(var(--k) * 13deg)); } }

/* folders: coloured pocket holds the text */
.mpanel { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; align-content: start; }

/* ── mobile polish ── */
.brand { white-space: nowrap; }
@media (max-width: 680px) {
  .hero h1 { max-width: none; }
}

/* tablet: polaroids move into a row beneath the CTA so nothing sits on the copy */

/* collections: header + search side by side, plain grey folders */

/* ═════════ STORY: hero cards fly into the collection board ═════════ */


/* item actions */


/* folder illustration */
.folder-art { position: relative; width: var(--w, 300px); aspect-ratio: 500 / 380; flex: none; filter: drop-shadow(0 calc(var(--w) * .04) calc(var(--w) * .05) rgba(8, 48, 76, .18)); }
.folder-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fa-cards { position: absolute; inset: 0; }
.fa-cards img {
  position: absolute; left: var(--l); top: var(--t); width: 38%; aspect-ratio: 1 / 1.14; object-fit: cover; background: #fff;
  border: calc(var(--w) * .014) solid #fff; border-bottom-width: calc(var(--w) * .045); border-radius: calc(var(--w) * .035);
  transform: rotate(var(--r)); transition: transform .9s var(--ease); box-shadow: 0 2px 8px rgba(8, 48, 76, .18);
}
.folder-art:hover .fa-cards img { transform: translateY(-16%) rotate(var(--r)); }
@keyframes rise { from { transform: translateY(46%) rotate(0deg); opacity: 0; } to { transform: rotate(var(--r)); opacity: 1; } }

/* ── static mode (phones, tablets, reduced motion): no pinned scene ── */

/* ═════════ Portrait conformance pass ═════════
   one ink, one rainbow, white canvas, pastel washes only (mint / sky / peach),
   24px cards, 28px buttons, no filled colour buttons, no heavy shadows */
:root {
  --text: 'Switzer', 'Inter', system-ui, sans-serif;
  --soft: rgba(8, 48, 76, .72);
}
body { letter-spacing: 0; }
.pill { letter-spacing: .01em; }

/* badges: only the three pastel washes */

/* the old dark feature card is now a quiet Sky Wash card */
.arow { background: #fff; box-shadow: var(--hair); border-radius: 18px; padding: 14px 16px; color: var(--ink); }
.arow:hover, .arow.hl { background: #fff; box-shadow: var(--hair), var(--float); transform: translateX(4px); }
.arow b { color: var(--ink); }
.arow span { color: var(--soft); }

/* secondary CTA = ghost text; ink instead of black everywhere */
.dots i.on { background: #fff; }
.arow:hover { cursor: default; }

/* soft surfaces use Mist, never cream/sand */

/* shadows: capped at 8% and layered thin */

/* step illustrations (photos, not mascots) */
.arow { padding: 20px 18px; }


/* ── hero headline: lead-in + oversized 10x (case-study lockup) ── */
