/* minimize.tools — one stylesheet, no build step. */
:root {
  --bg: #0b0a16; --bg2: #12101f; --fg: #f4f3ff; --muted: #a29fc0; --faint: #6f6b8f;
  --line: rgba(255,255,255,.09); --card: rgba(255,255,255,.045); --card2: rgba(255,255,255,.08);
  --v: #7c3aed; --p: #db2777; --o: #f97316; --c: #67e8f9; --y: #fde047;
  --grad: linear-gradient(135deg, var(--v) 0%, var(--p) 55%, var(--o) 100%);
  --grad-t: linear-gradient(90deg, #a78bfa, #f472b6 50%, #fb923c);
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  --radius: 22px; --max: 1120px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #faf8ff; --bg2: #f1edfb; --fg: #17142e; --muted: #5f5a80; --faint: #8b87a8;
    --line: rgba(23,20,46,.1); --card: rgba(255,255,255,.75); --card2: #fff;
    --grad-t: linear-gradient(90deg, #7c3aed, #db2777 50%, #ea580c);
    --shadow: 0 20px 50px -24px rgba(60,30,120,.25); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #faf8ff; --bg2: #f1edfb; --fg: #17142e; --muted: #5f5a80; --faint: #8b87a8;
  --line: rgba(23,20,46,.1); --card: rgba(255,255,255,.75); --card2: #fff;
  --grad-t: linear-gradient(90deg, #7c3aed, #db2777 50%, #ea580c);
  --shadow: 0 20px 50px -24px rgba(60,30,120,.25); color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--p); color: #fff; }
:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--grad-t); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* aurora */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 560px; height: 560px; background: var(--v); left: -180px; top: -220px; }
.aurora i:nth-child(2) { width: 480px; height: 480px; background: var(--p); right: -160px; top: 140px; animation-delay: -7s; opacity: .22; }
.aurora i:nth-child(3) { width: 380px; height: 380px; background: var(--o); left: 30%; top: 520px; animation-delay: -14s; opacity: .14; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

/* header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 800; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--card); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 720px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .top .theme-btn { margin-left: auto; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 14px; font: 600 16px/1 var(--body);
  text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--fg); transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); background: var(--card2); }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 10px 30px -10px rgba(219,39,119,.7); }
.btn.primary:hover { box-shadow: 0 16px 40px -12px rgba(219,39,119,.85); }
.btn svg { width: 18px; height: 18px; }

/* hero */
.hero { padding: 88px 0 56px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--card);
  font-size: 14px; font-weight: 500; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; margin: 22px 0 20px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34ch; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 40px; } }

/* minimize demo card */
.demo { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); padding: 18px; overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo-bar span { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 500; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tasks li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-size: 15px;
  animation: squash 8s cubic-bezier(.7,0,.2,1) infinite; transform-origin: center; overflow: hidden; }
.tasks li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--faint); flex: none; }
.tasks li:nth-child(1) { animation-delay: 0s; } .tasks li:nth-child(2) { animation-delay: .12s; } .tasks li:nth-child(3) { animation-delay: .24s; } .tasks li:nth-child(4) { animation-delay: .36s; }
@keyframes squash {
  0%, 30% { max-height: 60px; opacity: 1; padding-block: 12px; margin: 0; }
  45%, 85% { max-height: 0; opacity: 0; padding-block: 0; margin-top: -8px; border-width: 0; }
  100% { max-height: 60px; opacity: 1; padding-block: 12px; margin: 0; }
}
.done { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 14px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 600;
  animation: pop 8s cubic-bezier(.7,0,.2,1) infinite; }
.done svg { width: 22px; height: 22px; flex: none; }
.done small { display: block; font-weight: 400; opacity: .85; font-size: 13px; }
@keyframes pop { 0%, 38% { transform: scale(.92); opacity: .35; } 48%, 85% { transform: scale(1); opacity: 1; } 100% { transform: scale(.92); opacity: .35; } }

/* sections */
section { padding: 72px 0; }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head .kicker { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--p); }
h2 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; margin: 10px 0 14px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 18px; }

/* tools grid */
.tools { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tool { position: relative; grid-column: span 2; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: 26px; display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; transition: transform .25s, border-color .25s, background .25s; min-height: 220px; }
a.tool:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--p) 50%, var(--line)); background: var(--card2); }
.tool.feature { grid-column: span 4; grid-row: span 2; min-height: 460px; overflow: hidden; }
.tool h3 { font-size: 28px; font-weight: 800; }
.tool.feature h3 { font-size: clamp(36px, 4vw, 48px); }
.tool p { margin: 0; color: var(--muted); }
.tool .ico { width: 56px; height: 56px; }
.tool.feature .ico { width: 88px; height: 88px; animation: float 4s ease-in-out infinite; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; letter-spacing: .04em; text-transform: uppercase; }
.badge.live { background: rgba(52,211,153,.14); color: #34d399; }
.badge.soon { background: var(--card2); color: var(--faint); border: 1px solid var(--line); }
.tool .more { margin-top: auto; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.tool.ghost { border-style: dashed; background: transparent; }
.tool.ghost .ico { width: 48px; height: 48px; border-radius: 14px; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--faint); font: 700 22px var(--display); }
.feature .shot { position: absolute; right: -40px; bottom: -30px; width: 58%; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(-4deg); }
.feature .txt { max-width: 46%; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); background: var(--card); }
@media (max-width: 880px) {
  .tools { grid-template-columns: 1fr 1fr; }
  .tool, .tool.feature { grid-column: span 2; grid-row: auto; min-height: 0; }
  .tool.feature { padding-bottom: 0; }
  .feature .txt { max-width: none; }
  .feature .shot { position: static; width: 100%; transform: none; margin-top: 10px; border-radius: 16px 16px 0 0; border-bottom: 0; }
}
@media (min-width: 881px) { .tools .tool.ghost:nth-of-type(n+4) { grid-column: span 2; } }

/* principles */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: 24px; }
.card h3 { font-size: 22px; font-weight: 700; margin: 14px 0 6px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font: 800 18px var(--display); }
.card .num svg { width: 20px; height: 20px; }

/* big statement */
.statement { text-align: center; padding: 96px 0; }
.statement p { font: 800 clamp(34px, 5.5vw, 68px)/1.08 var(--display); letter-spacing: -.035em; margin: 0 auto; max-width: 16ch; }
.statement s { color: var(--faint); text-decoration-thickness: 4px; text-decoration-color: var(--p); }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--p); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 10px 0 0; max-width: 70ch; }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps .card { counter-increment: s; }
.steps .card::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 800 16px var(--display); }

/* callout */
.callout { border-radius: var(--radius); padding: 24px 26px; border: 1px solid color-mix(in srgb, var(--o) 40%, var(--line)); background: color-mix(in srgb, var(--o) 8%, transparent); }
.callout h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em; }
.callout p { margin: 6px 0 0; color: var(--muted); }

/* product hero */
.phero { padding: 72px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.phero .mascot { width: 120px; height: 120px; animation: float 4s ease-in-out infinite; }
.phero h1 { margin-top: 18px; }
.phero .shot { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 880px) { .phero { grid-template-columns: 1fr; } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* legal / prose */
.prose { max-width: 760px; padding: 64px 0 40px; }
.prose h1 { font-size: clamp(40px, 6vw, 60px); margin: 12px 0 10px; }
.prose .meta { color: var(--faint); font-size: 15px; margin-bottom: 28px; }
.prose h2 { font-size: 26px; margin: 40px 0 10px; letter-spacing: -.02em; }
.prose h3 { font-size: 19px; margin: 22px 0 6px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--fg); }
.prose a { color: var(--fg); text-decoration-color: var(--p); text-underline-offset: 3px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--fg); font-weight: 600; }
.prose td { color: var(--muted); }
.tldr { border-radius: 18px; border: 1px solid var(--line); background: var(--card); padding: 20px 22px; margin: 8px 0 24px; }
.tldr strong { display: block; margin-bottom: 6px; }
.tldr ul { margin: 0; }
.ph { background: rgba(253,224,71,.18); color: var(--fg); padding: 0 4px; border-radius: 4px; font-style: normal; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.legal-nav a { text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.legal-nav a[aria-current="page"] { color: var(--fg); background: var(--card2); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.contact-grid a.card { text-decoration: none; transition: transform .2s; }
.contact-grid a.card:hover { transform: translateY(-3px); }
.contact-grid .mail { font-weight: 600; color: var(--fg); margin-top: 10px; display: block; word-break: break-all; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h4 { color: var(--fg); margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; color: var(--muted); } footer a:hover { color: var(--fg); }
footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > div:first-child { grid-column: 1 / -1; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .tasks li { display: none; }
}
.tool .more svg, .btn svg { width: 18px; height: 18px; flex: none; }
.tool.wide { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 22px; }
.tool.wide .badge { grid-column: 1 / -1; }
.tool.wide .more { margin: 0; }
.tool.wide h3 { font-size: 24px; }
@media (max-width: 720px) { .tool.wide { grid-template-columns: 1fr; } }
.statement p { max-width: 22ch; }
.tool.wide .badge { justify-self: start; }
.grid3.six { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* hero demo v2: many steps -> one step */
.dm-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.dm-label b { text-transform: none; letter-spacing: 0; color: var(--faint); font-weight: 500; }
.old-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: os; }
.old-steps li { counter-increment: os; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); font-size: 14.5px;
  animation: oldstep 10s linear infinite; }
.old-steps li::before { content: counter(os); width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid var(--faint); color: var(--muted); }
.old-steps li:nth-child(2) { animation-delay: .9s; } .old-steps li:nth-child(3) { animation-delay: 1.8s; } .old-steps li:nth-child(4) { animation-delay: 2.7s; } .old-steps li:nth-child(5) { animation-delay: 3.6s; }
@keyframes oldstep {
  0% { border-color: var(--line); }
  4%, 9% { border-color: color-mix(in srgb, var(--o) 70%, transparent); background: color-mix(in srgb, var(--o) 10%, var(--card2)); }
  13%, 55% { border-color: var(--line); background: var(--card2); text-decoration: none; opacity: 1; }
  60%, 95% { text-decoration: line-through; text-decoration-color: var(--p); opacity: .45; }
  100% { opacity: 1; text-decoration: none; }
}
.dm-arrow { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0; font: 800 18px var(--display); color: var(--faint); }
.dm-arrow svg { width: 20px; height: 20px; transform: rotate(90deg); color: var(--p); }
.dm-new { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 700; font-size: 17px; animation: newstep 10s ease infinite; }
.dm-new .n { width: 34px; height: 34px; flex: none; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font: 800 17px var(--display); }
.dm-new small { display: block; font-weight: 400; font-size: 13px; opacity: .9; }
.dm-new b { margin-left: auto; font-size: 14px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.2); white-space: nowrap; }
@keyframes newstep { 0%, 52% { transform: scale(.97); box-shadow: none; filter: saturate(.6); opacity: .7; } 60%, 95% { transform: scale(1); filter: none; opacity: 1; box-shadow: 0 14px 40px -12px rgba(219,39,119,.8); } 100% { transform: scale(.97); opacity: .7; } }
.tools > .tool { grid-column: span 2; }
@media (max-width: 880px) { .tools > .tool { grid-column: span 2; } }
@media (min-width: 881px) { .tools { grid-template-columns: repeat(3, 1fr); } .tools > .tool { grid-column: auto; } }
