/* Klavigma website: one stylesheet for every page. Dark, with the brand gradient. */
:root {
  color-scheme: dark;
  --bg: #121117;
  --card: #1c1b24;
  --line: #2b2a36;
  --fg: #f2f1f5;
  --muted: #a9a6b8;
  --blue: #5ec8ff;
  --violet: #a78bfa;
  --pink: #f472b6;
  --grad: linear-gradient(90deg, #5ec8ff, #a78bfa, #f472b6);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--fg); font: 17px/1.6 "Segoe UI", Inter, system-ui, -apple-system, sans-serif; }
a { color: var(--violet); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header and footer */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; color: var(--fg); text-decoration: none; letter-spacing: -.3px; }
.mark { width: 34px; height: 34px; border-radius: 9px; background: var(--grad); position: relative; flex: none; }
.mark::after { content: ''; position: absolute; inset: 7px 9px; background: #fff; border-radius: 2px; opacity: .95; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--fg); }
footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); }

/* Buttons */
.btn { display: inline-block; padding: 13px 26px; border-radius: 12px; font: 600 16px/1.2 inherit; text-decoration: none; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.btn:hover { border-color: var(--violet); }
.btn.primary { border: 0; color: #fff; background: linear-gradient(90deg, #4aa8f0, #8b6cf0, #e0529f); box-shadow: 0 10px 30px rgba(139, 108, 240, .35); }
.btn.primary:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.wide { width: 100%; text-align: center; }

/* Hero */
.hero { position: relative; padding: 56px 0 24px; text-align: center; }
.hero::before, .hero::after { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(130px); opacity: .35; z-index: -1; }
.hero::before { background: var(--blue); left: -160px; top: -200px; }
.hero::after { background: var(--pink); right: -160px; top: 60px; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; padding: 4px 12px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .3); color: var(--muted); }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -2px; margin: 22px 0 18px; }
.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 660px; margin: 0 auto 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.small-note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Product picture: a Figma email on the left, the Klaviyo template on the right */
.show { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 8px; max-width: 760px; margin: 56px auto 0; text-align: left; }
.show .cap { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.email { background: #fff; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.email .reg { border: 2px dashed var(--violet); border-radius: 5px; background: rgba(167, 139, 250, .1); height: 44px; }
.email .reg.tall { height: 84px; }
.email .cols { display: flex; gap: 8px; }
.email .cols .reg { flex: 1; height: 62px; }
.tpl { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.tpl .blk { border-radius: 6px; background: #2a2933; border: 1px solid rgba(255, 255, 255, .08); height: 44px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #b9b6c8; }
.tpl .blk.tall { height: 84px; }
.tpl .cols { display: flex; gap: 8px; }
.tpl .cols .blk { flex: 1; height: 62px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; margin: 0 auto; }

/* Sections */
section { padding: 72px 0 0; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -1px; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.sub { color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 12px; }

/* Pricing */
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-bottom: 28px; }
.toggle button { border: 0; background: none; color: var(--muted); font: 600 15px/1 inherit; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: #2d2b3b; color: var(--fg); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 760px; }
.plans.three { max-width: none; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan.pro { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 20px 50px rgba(139, 108, 240, .2); }
.price { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan li { padding-left: 26px; position: relative; font-size: 16px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.plan li.dim { color: var(--muted); }
label.field { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input[type=email] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #0d0c12; color: var(--fg); font: inherit; }
input[type=email]:focus { outline: 2px solid var(--violet); border-color: transparent; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.msg { font-size: 14px; color: #ffb4a8; min-height: 20px; margin: 0; }

/* FAQ and text pages */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; }
details p { color: var(--muted); margin: 10px 0 0; }
.page { padding: 24px 0 0; }
.page h1 { font-size: 40px; letter-spacing: -1px; margin: 8px 0 6px; }
.page h2 { font-size: 22px; letter-spacing: -.3px; margin: 36px 0 8px; }
.page p, .page li { color: #d6d4e0; }
.page .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.bar { height: 4px; border-radius: 2px; background: var(--grad); margin: 0 0 24px; width: 120px; }
.note { background: var(--card); border-radius: 12px; padding: 14px 18px; }

@media (max-width: 640px) {
  .show { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); margin: 8px auto; }
  .nav-links a.hide-sm { display: none; }
}
