:root {
  /* Warm, editorial palette — shared across the app family (Jotsum, Clipt, …).
     Same neutrals as jotsum.hrvojematosic.com; Clipt's identity is the blue accent. */
  --bg: #ece5d3;          /* warm cream */
  --bg-2: #e4dbc4;        /* deeper cream for subtle panels */
  --panel: #e7dfca;       /* card surface */
  --border: #cdbc8f;      /* maple/wood-tinted hairline */
  --text: #1c2230;        /* dark with a faint blue undertone */
  --muted: #585f6b;       /* secondary */
  --faint: #8a8a7d;       /* warm grey */
  --accent: #2f63d6;      /* Clipt blue — the brand colour */
  --accent-hover: #2550b4;
  --accent-soft: #aebfe6; /* soft blue (underlines, hairlines) */
  --code-bg: #e0d6bb;     /* inline code highlight */

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--accent); }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

kbd {
  font-family: var(--mono); font-size: 0.85em;
  background: var(--code-bg); border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; color: var(--text);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(236, 229, 211, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 7px; display: block; flex: none;
  background: linear-gradient(135deg, #4c8dff, #7a5cff);  /* Clipt blue→purple */
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a:not(.btn) { color: var(--muted); font-size: 15px; text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--accent); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 5px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .05s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 44px; }
.hero-copy { max-width: 660px; margin: 0 auto; text-align: center; }
.hero-copy .cta-row { justify-content: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.1; margin: 14px 0 18px; letter-spacing: -0.02em; font-weight: 600; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; line-height: 1.6; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-note { color: var(--faint); font-size: 13px; margin-top: 14px; }

/* Hero mock panel (CSS-only, themed light) */
.hero-shot { margin: 44px auto 0; }
.mock {
  max-width: 420px; margin: 0 auto; text-align: left;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 18px 44px rgba(26, 36, 25, .20); overflow: hidden;
}
.mock .bar { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.mock .bar input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; color: var(--text); padding: 6px 10px; font-size: 13px; font-family: var(--sans); }
.mock .row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.mock .row:last-child { border-bottom: none; }
.mock .row.sel { background: rgba(47, 99, 214, .12); }
.mock .row .k { margin-left: auto; color: var(--faint); font-size: 12px; }
.mock .thumb { width: 40px; height: 28px; border-radius: 5px; flex: none; background: linear-gradient(135deg, #4c8dff, #7a5cff); }

/* Sections */
section { padding: 60px 0; border-top: 1px solid var(--border); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 12px; letter-spacing: -0.015em; font-weight: 600; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: 7px; padding: 22px; }
.feature .ic { font-size: 22px; }
.feature h3 { margin: 12px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }
.mono { font-family: var(--mono); font-size: 0.9em; color: var(--accent); background: var(--code-bg); padding: 1px 6px; border-radius: 4px; }

/* Steps (how sync works) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; margin-top: 16px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: 7px; padding: 26px 22px 22px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -15px; left: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.step h3 { margin: 6px 0 6px; font-size: 17px; font-weight: 600; }
.step p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* Callout */
.callout { background: rgba(47, 99, 214, .07); border: 1px solid rgba(47, 99, 214, .22); border-radius: 8px; padding: 16px 18px; margin: 28px auto 0; max-width: 720px; font-size: 15px; color: var(--text); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 640px; margin: 0 auto; }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: 7px; padding: 28px; }
.plan.pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan h3 { font-size: 19px; font-weight: 600; margin: 0; }
.plan .price { font-size: 32px; font-weight: 700; margin: 8px 0 4px; }
.plan .price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan p.tag { color: var(--muted); margin: 0; font-size: 14.5px; }
.plan ul { list-style: none; margin: 16px 0 0; padding: 0; }
.plan li { padding: 6px 0; color: var(--muted); font-size: 14.5px; }
.plan li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 32px); margin: 0 0 10px; font-weight: 600; letter-spacing: -0.015em; }
.cta-band p { color: var(--muted); margin: 0 0 26px; font-size: 17px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); }

/* Docs / legal pages */
.doc { padding: 52px 0; max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4.5vw, 40px); margin: 0 0 8px; font-weight: 600; letter-spacing: -0.02em; }
.doc .lead { color: var(--muted); font-size: 18px; margin: 0 0 40px; }
.doc h2 { font-size: 23px; margin: 44px 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.doc h2 .ic { margin-right: 8px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; font-weight: 600; }
.doc p.note { color: var(--muted); margin: 0 0 16px; }
.doc ul, .doc ol { margin: 8px 0 16px 22px; color: var(--muted); }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--text); font-weight: 600; }
.doc td { color: var(--muted); }

@media (max-width: 820px) {
  .hero-shot { margin-top: 32px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
