/* Kram design system v1 — shared by kram.tools and every Kram product site.
   Dark first, automatic light mode. Each site sets its own --accent / --accent-ink. */
@font-face { font-family: "Geist"; src: url(fonts/geist-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/geist-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/geist-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/geist-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0B0C0F; --bg-2: #101217; --surface: #15171D; --surface-2: #1B1E26; --surface-3: #232733;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14); --line-3: rgba(255,255,255,.22);
  --text: #EDEDEF; --muted: #A1A4AD; --dim: #868A93;
  --accent: #FF7A59; --accent-ink: var(--accent-ink-dark, #FF9A7F); --on-accent: #120A07; --accent-soft: rgba(255,122,89,.14);
  --ok: #4ADE80; --danger: #F87171;
  --f: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 10px; --r: 14px; --r-lg: 22px; --r-xl: 28px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.7);
  --w: 1160px;
}
:root[data-theme="light"] {
  /* Warm paper off-white: OKLCH(98.3% 0.0055 85). Cool accents (mint) and the cool-dark screenshots pop against it;
     warm accents (coral) sit in harmony. Chroma is at the edge of perception, so it reads as off-white, not cream. */
  color-scheme: light;
  --bg: #FBF9F5; --bg-2: #F4F2EE; --surface: #FFFFFF; --surface-2: #F7F5F1; --surface-3: #EDEBE6;
  --line: rgba(28,24,16,.09); --line-2: rgba(28,24,16,.15); --line-3: rgba(28,24,16,.26);
  --text: #111318; --muted: #565A63; --dim: #686C74;
  --accent-ink: var(--accent-ink-light, #C2410C); --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --shadow: 0 1px 2px rgba(28,24,16,.05), 0 24px 50px -28px rgba(28,24,16,.25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.6 var(--f); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 88px); }
h2 { font-size: clamp(32px, 4.6vw, 54px); }
h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--w), calc(100% - 48px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 12px; } .skip:focus { left: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* text helpers */
.eyebrow { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.lede { font-size: clamp(17.5px, 1.6vw, 20px); color: var(--muted); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.grad { color: var(--accent-ink); }
.mono { font-family: var(--mono); }
.kbd { font: 500 12px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.03em; }
.brand .icon { width: 30px; height: 30px; border-radius: 9px; }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav .links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
.nav .links a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.menu-btn { display: none; margin-left: 8px; background: none; border: 1px solid var(--line-2); color: var(--text); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: grid; place-items: center; }
  .nav .theme-btn { margin-left: auto; }
  .nav .links { display: none; position: absolute; left: 12px; right: 12px; top: 64px; flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow); }
  .nav.open .links { display: flex; }
  .nav .links a:not(.btn) { padding: 12px 14px; font-size: 16px; }
  .nav .links .btn { margin-top: 6px; justify-content: center; }
}

.theme-btn { margin-left: 8px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background .15s, border-color .15s; flex: none; }
.theme-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--line-3); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; } :root[data-theme="light"] .theme-btn .sun { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font: 600 15px var(--f); letter-spacing: -.01em; text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: var(--line-3); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -10px var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); } .btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; transform: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* pills & badges */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line-2); font: 500 12.5px var(--f); color: var(--muted); background: var(--surface); white-space: nowrap; }
.pill.accent { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.pill .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* sections & cards */
section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; position: relative; transition: border-color .2s, transform .2s, background .2s; }
.card:hover { border-color: var(--line-2); }
.card.lift:hover { transform: translateY(-3px); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .wrap { width: calc(100% - 36px); } }
.ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
.ic svg { width: 21px; height: 21px; }
.card h3 + p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* app icon */
.icon { border-radius: 22%; display: block; box-shadow: 0 0 0 1px var(--line-2), 0 10px 30px -12px rgba(0,0,0,.6); }

/* product card (catalogue) */
.product { display: grid; gap: 16px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; transition: border-color .2s, transform .2s; position: relative; overflow: hidden; }
.product:hover { border-color: var(--line-2); transform: translateY(-3px); }
.product .top { display: flex; align-items: center; gap: 14px; }
.product .icon { width: 56px; height: 56px; }
.product h3 { font-size: 20px; }
.product .tag { color: var(--muted); font-size: 15px; }
.product .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.product .shot { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2); }
.product .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.product.soon { border-style: dashed; background: transparent; }

/* window frame for screenshots */
.window { border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.window .bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window .bar i { width: 11px; height: 11px; border-radius: 99px; background: var(--surface-3); }
.window .bar span { margin-left: 10px; font: 500 12px var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.window img { width: 100%; }

/* forms */
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.field input[type=email], .field input[type=text] { flex: 1 1 220px; min-width: 0; height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 400 15.5px var(--f); }
.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-size: 14px; min-height: 1.5em; margin-top: 10px; } .msg.ok { color: var(--ok); } .msg.err { color: var(--danger); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--dim); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* prose pages (privacy, terms) */
.prose { max-width: 720px; display: grid; gap: 16px; }
.prose h2 { font-size: 24px; letter-spacing: -.02em; margin-top: 18px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--accent-ink); }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--dim); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; } footer.site a:hover { color: var(--text); }
footer.site .brand { font-size: 16px; color: var(--text); } footer.site .brand .icon { width: 24px; height: 24px; border-radius: 7px; }
footer.site .right { margin-left: auto; }
@media (max-width: 620px) { footer.site .right { margin-left: 0; } }

/* backdrop glow + dot grid (decor) */
.glow { position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none; z-index: -1; overflow: hidden; }
.glow::before { content: ""; position: absolute; left: 50%; top: -360px; width: 1100px; height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%); opacity: .55; }
.glow::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, black, transparent 80%); -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%); opacity: .55; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .btn, .card, .product { transition: none; } }
