/* Klipt marketing site — warm-dark espresso theme with a green signal accent.
   Tokens mirror the app's design system (mockups/klipt-mockup.html, dark theme). */
:root {
  --bg: #181312;
  --app-bg:
    radial-gradient(1200px 700px at 18% -10%, #241C1B 0%, transparent 60%),
    radial-gradient(1000px 700px at 112% 8%, rgba(97,169,84,.10) 0%, transparent 55%),
    radial-gradient(900px 600px at 110% 120%, #0F0B0B 0%, transparent 55%),
    #181312;
  --surface: #221B1A;
  --surface-2: #2A2221;
  --line: #3A302E;
  --line-soft: #332A29;
  --text: #ECEAEA;
  --text-mut: #B3A6A5;
  --text-faint: #897D7C;
  --signal: #61A954;
  --signal-bright: #6FBF61;
  --signal-glow: rgba(97,169,84,.22);
  --taupe: #988686;
  --deep: #5C4E4E;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-pill: 999px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 20px 50px rgba(0,0,0,.45);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--app-bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(24,19,18,.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 14px var(--signal-glow); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-mut); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--signal); color: #10240C !important; font-weight: 700;
  padding: 9px 16px; border-radius: var(--radius-pill); font-size: 14px;
}
.nav-cta:hover { background: var(--signal-bright); }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--signal-bright);
  background: var(--signal-glow); border: 1px solid rgba(97,169,84,.28);
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal-bright); box-shadow: 0 0 10px var(--signal-bright); }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
h1 .grad { background: linear-gradient(120deg, var(--signal-bright), var(--taupe)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { max-width: 660px; margin: 22px auto 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--text-mut); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

/* App Store buttons */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 11px 20px; border-radius: 14px; transition: border-color .15s, transform .15s, background .15s;
}
.store-btn:hover { border-color: var(--signal); background: #322827; transform: translateY(-1px); }
.store-btn svg { width: 26px; height: 26px; fill: var(--text); flex: none; }
.store-btn .sb-txt { text-align: left; line-height: 1.15; }
.store-btn .sb-small { font-size: 11px; color: var(--text-faint); }
.store-btn .sb-big { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.hint { margin-top: 18px; font-size: 13px; color: var(--text-faint); }

/* hero visual */
.hero-visual { margin: 64px auto 0; max-width: 880px; }
.window {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden; text-align: left;
}
.titlebar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, #241D1C, #1E1817); }
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.r { background: #ED6A5E; } .tl.y { background: #F4BF4F; } .tl.g { background: #61C554; }
.titlebar .tt { margin-left: 10px; font-size: 13px; color: var(--text-faint); font-weight: 600; }
.clips { padding: 14px; display: grid; gap: 10px; }
.clip { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.clip .ic { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 15px; background: var(--signal-glow); color: var(--signal-bright); border: 1px solid rgba(97,169,84,.28); }
.clip .ic.taupe { background: rgba(152,134,134,.16); color: var(--taupe); border-color: rgba(152,134,134,.3); }
.clip .cmeta { min-width: 0; }
.clip .ctitle { font-weight: 600; font-size: 15px; }
.clip .csub { font-size: 13px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip .pin { margin-left: auto; font-size: 11px; color: var(--signal-bright); background: var(--signal-glow); padding: 3px 9px; border-radius: var(--radius-pill); align-self: center; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker { color: var(--signal-bright); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(27px, 4vw, 40px); letter-spacing: -.02em; margin-top: 10px; line-height: 1.1; }
.section-head p { color: var(--text-mut); margin-top: 14px; font-size: 17px; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .18s, transform .18s;
}
.card:hover { border-color: rgba(97,169,84,.4); transform: translateY(-2px); }
.card .ficon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--signal-glow); border: 1px solid rgba(97,169,84,.26); margin-bottom: 16px; }
.card h3 { font-size: 18px; letter-spacing: -.01em; }
.card p { color: var(--text-mut); font-size: 15px; margin-top: 8px; }

/* split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip .split-text { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip .split-text { order: 0; } }
.split-text .kicker { color: var(--signal-bright); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.split-text h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.02em; margin: 10px 0 12px; line-height: 1.12; }
.split-text p { color: var(--text-mut); font-size: 16px; }
.split-text ul { list-style: none; margin-top: 18px; display: grid; gap: 11px; }
.split-text li { display: flex; gap: 11px; font-size: 15px; color: var(--text); }
.split-text li::before { content: "✓"; color: var(--signal-bright); font-weight: 800; flex: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }

/* phone mock */
.phone { width: 232px; margin: 0 auto; background: #0E0A0A; border: 8px solid #0E0A0A; border-radius: 36px; box-shadow: var(--shadow); overflow: hidden; }
.phone .pscreen { background: var(--surface); border-radius: 28px; overflow: hidden; }
.phone .pbar { height: 30px; display: grid; place-items: center; font-size: 12px; color: var(--text-faint); font-weight: 700; border-bottom: 1px solid var(--line-soft); }
.phone .clips { padding: 10px; gap: 8px; }
.phone .clip { padding: 10px; }
.phone .clip .ic { width: 28px; height: 28px; font-size: 13px; }
.phone .clip .ctitle { font-size: 13px; } .phone .clip .csub { font-size: 11px; }

/* privacy banner */
.privacy-band { background: linear-gradient(180deg, rgba(97,169,84,.07), transparent); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.privacy-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 760px) { .privacy-points { grid-template-columns: 1fr; } }

/* download CTA */
.download { text-align: center; }
.download .box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 52px 28px; box-shadow: var(--shadow); }

/* ===========================================================================
   Klipt macOS app recreation (used in hero + Mac feature section)
   Mirrors the shipping app: 3-pane window — sidebar / clip list / detail.
   =========================================================================== */
.macwin { background: #0E0B0A; border: 1px solid #2a2220; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.mw-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #1e1816; }
.mw-bar .tl { width: 12px; height: 12px; border-radius: 50%; }
.mw-bar .tl.r { background: #ED6A5E; } .mw-bar .tl.y { background: #F4BF4F; } .mw-bar .tl.g { background: #61C554; }
.mw-tools { display: flex; align-items: center; gap: 8px; flex: 1; margin-left: 12px; }
.mw-search { flex: 1; max-width: 300px; background: #1b1513; border: 1px solid #322a28; border-radius: 9px; padding: 6px 11px; font-size: 12px; color: var(--text-faint); display: flex; gap: 8px; align-items: center; }
.mw-pill { font-size: 11px; color: var(--text-mut); border: 1px solid #322a28; border-radius: 8px; padding: 5px 9px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.mw-pill .gd { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 7px var(--signal); }
@media (max-width: 700px) { .mw-pill { display: none; } }

.mw-body { display: grid; grid-template-columns: 198px 1fr 280px; min-height: 452px; }
.mw-side { background: #0B0908; border-right: 1px solid #1e1816; padding: 14px 11px; display: flex; flex-direction: column; gap: 2px; }
.mw-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; margin: 2px 4px 14px; }
.mw-brand .lg { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #4d8341, #2c5526); display: grid; place-items: center; color: #e2f7db; font-weight: 800; font-size: 15px; box-shadow: 0 4px 12px var(--signal-glow); }
.mw-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; color: var(--text-mut); }
.mw-row .ri { width: 16px; height: 16px; flex: none; opacity: .85; }
.mw-row .nm { flex: 1; }
.mw-row .ct { font-size: 12px; color: var(--text-faint); }
.mw-row.active { background: #241d1b; color: var(--text); }
.mw-row .pd { width: 11px; height: 11px; border-radius: 50%; background: #7c5cff; flex: none; }
.mw-sec { font-size: 10px; letter-spacing: .09em; color: var(--text-faint); font-weight: 700; margin: 13px 0 4px; padding-left: 10px; }
.mw-sync { margin-top: auto; display: flex; align-items: center; gap: 9px; background: #1a1513; border: 1px solid #2a2220; border-radius: 11px; padding: 9px 11px; font-size: 12px; font-weight: 600; }
.mw-sync .cl { color: var(--signal-bright); font-size: 14px; }
.mw-sync small { color: var(--text-faint); display: block; font-weight: 500; }

.mw-list { padding: 12px; display: flex; flex-direction: column; gap: 9px; border-right: 1px solid #1e1816; overflow: hidden; }
.mw-clip { display: flex; gap: 11px; padding: 10px; background: #161110; border: 1px solid #251e1c; border-radius: 11px; align-items: center; }
.mw-clip .th { width: 44px; height: 36px; border-radius: 7px; flex: none; background: linear-gradient(135deg, #3a2826, #241a19); }
.mw-clip .th.red { background: linear-gradient(135deg, #5a3330, #3a2422); }
.mw-clip .th.sage { background: linear-gradient(135deg, #44603e, #2c4229); }
.mw-clip .th.gold { background: linear-gradient(135deg, #6a5230, #42351f); }
.mw-clip .th.slate { background: linear-gradient(135deg, #2c3540, #1c2129); }
.mw-clip .cb { min-width: 0; flex: 1; }
.mw-clip .c1 { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-clip .c2 { font-size: 11px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-clip .c3 { font-size: 11px; color: var(--text-faint); }
.mw-clip .hash { font-size: 10px; color: var(--text-faint); border: 1px solid #2e2624; border-radius: 6px; padding: 2px 6px; align-self: flex-start; }

.mw-detail { padding: 14px; display: flex; flex-direction: column; gap: 11px; }
.mw-from { text-align: right; font-size: 12px; color: var(--text-faint); }
.mw-prev { flex: 1; background: #161110; border: 1px solid #251e1c; border-radius: 12px; min-height: 150px; padding: 16px; display: grid; place-items: center; }
.mw-prev .mini { width: 100%; max-width: 180px; border-radius: 8px; border: 1px solid #2e2624; background: #0e0b0a; overflow: hidden; }
.mw-prev .mini .mb { height: 14px; background: #1b1513; border-bottom: 1px solid #2e2624; }
.mw-prev .mini .ml { height: 8px; margin: 8px; border-radius: 3px; background: #241d1b; }
.mw-prev .mini .ml.s { width: 60%; }
.mw-fname { font-size: 14px; font-weight: 700; }
.mw-fmeta { font-size: 11px; color: var(--text-faint); line-height: 1.4; }
.mw-actions { background: #161110; border: 1px solid #251e1c; border-radius: 12px; padding: 11px; display: flex; flex-direction: column; gap: 9px; }
.mw-paste { background: #9b8786; color: #1a1413; font-weight: 700; font-size: 13px; padding: 8px; border-radius: 8px; text-align: center; }
.mw-arow { display: flex; gap: 7px; }
.mw-act { flex: 1; text-align: center; font-size: 11.5px; color: var(--text-mut); border: 1px solid #2e2624; border-radius: 8px; padding: 7px 4px; }

/* compact 2-pane variant for narrow columns (feature sections) */
.macwin.compact .mw-body { grid-template-columns: 168px 1fr; min-height: 360px; }
.macwin.compact .mw-detail { display: none; }
.macwin.compact .mw-list { border-right: none; }

@media (max-width: 880px) { .mw-body { grid-template-columns: 180px 1fr; } .mw-detail { display: none; } .mw-list { border-right: none; } }
@media (max-width: 560px) { .mw-body, .macwin.compact .mw-body { grid-template-columns: 1fr; min-height: 0; } .mw-side { display: none; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 40px 0; margin-top: 24px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot .brand { font-size: 16px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--text-mut); font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.foot-legal { color: var(--text-faint); font-size: 13px; margin-top: 18px; max-width: 720px; }

/* ---------- prose (privacy page) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 0 24px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -.02em; }
.prose .updated { color: var(--text-faint); font-size: 14px; margin-top: 10px; margin-bottom: 30px; }
.prose h2 { font-size: 22px; letter-spacing: -.01em; margin: 34px 0 12px; padding-top: 8px; }
.prose h3 { font-size: 17px; margin: 22px 0 8px; color: var(--text); }
.prose p, .prose li { color: var(--text-mut); font-size: 16px; }
.prose p { margin: 12px 0; }
.prose ul { margin: 12px 0 12px 22px; display: grid; gap: 8px; }
.prose strong { color: var(--text); }
.prose a { color: var(--signal-bright); text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.prose .back { display: inline-block; margin-bottom: 26px; color: var(--text-mut); font-size: 14px; }
.prose .back:hover { color: var(--signal-bright); }
