/* Imbak website — Charcoal & Amber, matching the app. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #1a1a1a;
  --surface: #222222;
  --raised: #2c2c2c;
  --well: #121212;
  --inset: #1e1e1e;
  --tile: #262626;
  --text: #f2f0ec;
  --muted: #a8a39a;
  --muted-strong: #c9c4bb;
  --line: rgb(255 255 255 / 0.08);
  --amber: #e9a23b;
  --on-amber: #2a1a00;
  --amber-text: #f5c77e;
  --amber-soft: rgb(233 162 59 / 0.16);
  --link: #8fb3d9;
  --snippet: #d9b86b;
  --rose: #c9a0bc;
  --green: #9dc89a;
  --shadow-raised: 0 12px 28px rgb(0 0 0 / 0.32), inset 0 1px 0 rgb(255 255 255 / 0.06);
  --shadow-card: 0 10px 24px rgb(0 0 0 / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.05);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4f0;
    --surface: #ffffff;
    --raised: #ffffff;
    --well: #ebe7e0;
    --inset: #f1eee8;
    --tile: #efebe4;
    --text: #1f1b16;
    --muted: #645d53;
    --muted-strong: #463f36;
    --line: rgb(31 27 22 / 0.1);
    --amber-text: #7f4c00;
    --amber-soft: rgb(233 162 59 / 0.22);
    --link: #36679a;
    --snippet: #84630c;
    --rose: #86476f;
    --green: #3b7337;
    --shadow-raised: 0 1px 2px rgb(70 50 20 / 0.08), 0 10px 26px rgb(70 50 20 / 0.12);
    --shadow-card: 0 1px 2px rgb(70 50 20 / 0.06), 0 6px 18px rgb(70 50 20 / 0.06);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--amber-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--amber); color: var(--on-amber); padding: 8px 14px; z-index: 10; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.kbd {
  display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--raised);
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.35), 0 0 0 1px var(--line);
  font-size: 0.82em; font-weight: 700; color: var(--text); white-space: nowrap;
}
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { color: var(--muted-strong); font-size: 18px; max-width: 34em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted-strong); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px;
  font: 700 15px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; border: 0;
}
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-quiet { background: var(--surface); color: var(--text); box-shadow: var(--shadow-card); }
.btn-small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--amber-text); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.status { font-size: 14px; color: var(--muted); }
.status strong { color: var(--muted-strong); }

/* Popup mock (static illustration of the real app) */
.mock {
  width: 100%; max-width: 500px; margin: 0; justify-self: end; border-radius: 20px; background: var(--bg); overflow: hidden;
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.45), 0 0 0 1px var(--line);
}
@media (prefers-color-scheme: light) { .mock { box-shadow: 0 24px 60px rgb(70 50 20 / 0.18), 0 0 0 1px var(--line); } }
.mock-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 6px; }
.mock-head img { width: 32px; height: 32px; }
.mock-title { display: flex; flex-direction: column; line-height: 1.2; }
.mock-title b { font-size: 15px; }
.mock-title span { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: inline-block; }
.mock-search { margin: 12px 20px 4px; height: 44px; border-radius: 999px; background: var(--well); border: 1px solid rgb(233 162 59 / 0.55); box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.3), 0 0 0 4px rgb(233 162 59 / 0.14); display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 14px; font-weight: 600; }
.mock-search .typed::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; background: var(--amber); vertical-align: -0.2em; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
.mock-search .hint { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
@keyframes blink { 50% { opacity: 0; } }
.mock-tabs { display: flex; gap: 22px; padding: 12px 24px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; }
.mock-tabs span { padding: 8px 0 11px; color: var(--muted); }
.mock-tabs .on { color: var(--text); box-shadow: inset 0 -2px 0 var(--amber); }
.mock-list { list-style: none; margin: 0; padding: 10px 14px 12px; display: grid; gap: 4px; }
.row { display: flex; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 16px; min-width: 0; }
.row.sel { background: var(--raised); box-shadow: var(--shadow-raised); }
.tile { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--tile); }
.row.sel .tile { background: var(--amber); color: var(--on-amber); }
.tile svg { width: 17px; height: 17px; }
.t-link { color: var(--link); } .t-snip { color: var(--snippet); } .t-text { color: var(--rose); } .t-cmd { color: var(--green); }
.row-body { min-width: 0; flex: 1; }
.row-main { display: block; font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mono { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-weight: 500; font-size: 13px; }
.row-meta { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { padding: 0 6px; border-radius: 6px; background: var(--amber-soft); color: var(--amber-text); font-weight: 700; font-size: 10.5px; }
.swatch { width: 18px; height: 18px; border-radius: 6px; background: #0f6cbd; }
.mock-foot { display: flex; gap: 16px; padding: 11px 22px; background: var(--inset); font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.mock-foot span:last-child { margin-left: auto; }

/* Facts strip */
.facts { border-block: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 28px 24px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: 14px; }

/* Sections */
section.block { padding: 88px 0; }
.block-head { max-width: 640px; margin-bottom: 40px; }
.block-head p { margin-top: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-card); }
.card .tile { margin-bottom: 16px; }
.card p { color: var(--muted-strong); font-size: 15px; margin-top: 8px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; background: var(--surface); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-card); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--amber); color: var(--on-amber); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted-strong); font-size: 15px; margin-top: 8px; }

.privacy { background: var(--surface); }
.privacy .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--muted-strong); }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--amber-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9a23b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
.checks b { color: var(--text); }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; }
.plan { background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.plan.pro { box-shadow: var(--shadow-card), 0 0 0 1.5px var(--amber); }
.plan h3 { font-size: 20px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan ul { margin: 0 0 24px; padding-left: 20px; color: var(--muted-strong); display: grid; gap: 6px; font-size: 15px; }
.plan .btn { margin-top: auto; justify-content: center; }
.tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-text); font-size: 12px; font-weight: 700; vertical-align: middle; }

.faq { max-width: 760px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 14px; padding: 4px 20px; box-shadow: var(--shadow-card); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber-text); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--muted-strong); }

.cta { text-align: center; padding: 88px 0; }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--muted-strong); margin: 0 auto 28px; max-width: 32em; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.site-footer a { color: var(--muted-strong); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted-strong); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }

/* Motion (site.js). Static when JavaScript is off or reduced motion is requested. */
.mock { position: relative; }
.row { max-height: 64px; transition: background-color 0.18s ease, box-shadow 0.18s ease, max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease, margin 0.28s ease; }
.row.is-filtered { max-height: 0; opacity: 0; padding-block: 0; overflow: hidden; }
.row .tile { transition: background-color 0.18s ease, color 0.18s ease; }
.mock-list { transition: opacity 0.3s ease; }
.mock.is-pasting .row.sel { background: var(--amber-soft); box-shadow: 0 0 0 1.5px var(--amber); }
.mock.is-pasting .mock-list { opacity: 0.55; }
.mock-toast {
  position: absolute; left: 50%; bottom: 56px; transform: translate(-50%, 10px); opacity: 0;
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--amber); color: var(--on-amber); font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.3); transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none;
}
.mock-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
.hero h1, .hero .lead, .hero .actions, .hero .status, .mock { animation: rise 0.7s ease both; }
.hero .lead { animation-delay: 0.08s; } .hero .actions { animation-delay: 0.16s; } .hero .status { animation-delay: 0.22s; } .mock { animation-delay: 0.12s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero .wrap, .privacy .wrap { grid-template-columns: minmax(0, 1fr); }
  .mock { justify-self: start; }
  .grid3, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .facts .wrap, .grid3, .steps, .plans { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  section.block { padding: 64px 0; }
  .hero { padding-top: 44px; }
  .mock-foot span:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .row.sel { outline: 2px solid Highlight; }
  .btn { border: 1px solid ButtonText; }
}

/* Thanks page: licence key */
.key-box { display: grid; gap: 12px; justify-items: start; margin: 8px 0 14px; }
.key-box textarea {
  width: 100%; resize: none; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line, rgba(127,127,127,.25));
  background: var(--surface); color: var(--text); font: 13px/1.55 Consolas, "Cascadia Mono", monospace; word-break: break-all;
}
.legal .steps { padding-left: 22px; display: grid; gap: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
