/* Nottely site: static CSS, no build step. Light + dark via prefers-color-scheme. */
:root {
  --bg: #f7f6ff;
  --bg-2: #efecff;
  --text: #14122b;
  --muted: #55527a;
  --accent: #4749db;
  --accent-2: #b049fb;
  --accent-text: #4749db;
  --card: rgba(255, 255, 255, 0.72);
  --card-border: rgba(71, 73, 219, 0.14);
  --shadow: 0 10px 40px rgba(71, 73, 219, 0.12);
  --nav-bg: rgba(247, 246, 255, 0.78);
  --glow: rgba(139, 73, 245, 0.35);
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0a20;
    --bg-2: #15103a;
    --text: #f3f1ff;
    --muted: #b8b3de;
    --accent-text: #b4b6ff;
    --card: rgba(34, 28, 74, 0.6);
    --card-border: rgba(160, 140, 255, 0.18);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    --nav-bg: rgba(13, 10, 32, 0.78);
    --glow: rgba(139, 73, 245, 0.45);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--card-border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--card-border); border-radius: 999px; overflow: hidden; background: var(--card); }
.lang button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 999px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--glow); }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; }
.hero::before, .glow::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); filter: blur(30px); z-index: -1; pointer-events: none; }
.hero::before { right: -120px; top: -40px; }
.hero { isolation: isolate; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); background: var(--card); border: 1px solid var(--card-border); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { h1 span { background: linear-gradient(90deg, #a3a5ff, #d48fff); -webkit-background-clip: text; background-clip: text; } }
.lead { margin-top: 22px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 520px; }
.badge { display: inline-block; margin-top: 32px; }
.badge img { height: 52px; width: auto; }
.hero-shot { position: relative; justify-self: center; width: min(100%, 340px); }
.hero-shot img { border: 1px solid var(--card-border); border-radius: 36px; box-shadow: 0 30px 80px rgba(71, 73, 219, 0.35); aspect-ratio: 1320/2868; width: 100%; height: auto; }

/* Sections */
section { padding: 88px 0; position: relative; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.bento .card { grid-column: span 2; }
.bento .card.wide { grid-column: span 3; }
.bento .card.big { grid-column: span 4; background: linear-gradient(135deg, #4749db, #9a49f0); border-color: transparent; color: #fff; }
.bento .card.big p { color: rgba(255,255,255,.92); }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; margin-bottom: 18px; }
.big .ico { background: rgba(255,255,255,.2); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 16px; }

/* Use cases */
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* Gallery */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 28px; max-width: 100%; -webkit-overflow-scrolling: touch; scrollbar-color: var(--accent) transparent; }
.gallery figure { flex: 0 0 min(260px, 68vw); scroll-snap-align: center; }
.gallery img { border: 1px solid var(--card-border); border-radius: 28px; box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 1320/2868; }
@media (min-width: 1200px) { .gallery { justify-content: center; } }

/* CTA */
.cta { text-align: center; isolation: isolate; }
.cta .glow-box { max-width: 880px; margin: 0 auto; padding: 64px 24px; border-radius: 36px; background: linear-gradient(135deg, #4749db, #9a49f0); color: #fff; box-shadow: 0 30px 80px var(--glow); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.92); margin: 14px auto 0; max-width: 520px; font-size: 18px; }
.cta .badge { margin-top: 28px; }

/* Footer */
footer { border-top: 1px solid var(--card-border); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }

/* Cookie notice */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; width: auto; max-width: 560px; margin: 0 auto; z-index: 60; display: none; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); font-size: 14px; color: var(--text); }
.cookie.show { display: flex; }
.cookie > span { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.cookie button { flex: none; border: 0; cursor: pointer; font: inherit; white-space: nowrap; }
@media (max-width: 480px) {
  .cookie { flex-wrap: wrap; }
  .cookie > span { flex: 1 1 100%; }
  .cookie button { width: 100%; }
}

/* Support page */
.page { padding: 64px 0 88px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); }
.page .lead { max-width: 640px; }
.stack { display: grid; gap: 16px; margin-top: 40px; max-width: 760px; }
details.card { padding: 0; }
details summary { cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent-text); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 24px 20px; }
.mail { font-weight: 700; font-size: 20px; word-break: break-all; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf h1 { font-size: clamp(64px, 14vw, 128px); }

/* Reveal (only when JS present) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero { padding-top: 40px; }
  .nav-links { display: none; }
  .bento .card, .bento .card.wide, .bento .card.big { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav .btn { display: none; }
  .wrap { padding: 0 18px; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
