/* =========================================================
   ClipDoc — Design System (shared across all pages)
   ========================================================= */
:root {
  --bg:      #F8F6F2;
  --bg-2:    #EEEAE3;
  --card:    #FFFFFF;
  --ink:     #1B1B1E;
  --ink-2:   #42424A;
  --ink-3:   #7A7A82;
  --line:    rgba(27,27,30,0.10);
  --line-2:  rgba(27,27,30,0.06);

  --accent:   #F2A88C;
  --accent-2: #C8E1C1;
  --accent-3: #A9C6F0;
  --accent-4: #E8C8EC;
  --accent-5: #F6DE8A;

  --font:   "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif:  "Instrument Serif", "Times New Roman", serif;

  --r-sm: 14px;
  --r:    22px;
  --r-lg: 32px;
  --r-xl: 48px;

  --shadow-soft: 0 30px 60px -30px rgba(20,20,30,0.18), 0 10px 30px -12px rgba(20,20,30,0.10);
  --shadow-hi:   0 60px 120px -40px rgba(20,20,30,0.22), 0 20px 40px -12px rgba(20,20,30,0.12);
  --shadow-btn:  0 8px 20px -6px rgba(20,20,30,0.18), inset 0 1px 0 rgba(255,255,255,0.4);
  --shadow-card: 0 4px 24px -8px rgba(20,20,30,0.10), 0 1px 4px rgba(20,20,30,0.05);

  --ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { width: 100%; max-width: 1320px; padding-inline: clamp(20px, 4vw, 48px); margin-inline: auto; }
.wrap--narrow { width: 100%; max-width: 800px; padding-inline: clamp(20px, 4vw, 48px); margin-inline: auto; }

/* PASSWORD OVERLAY */
#password-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; justify-content: center; align-items: center; flex-direction: column;
  gap: 16px;
}
#password-form { text-align: center; }
#password-form h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  margin: 0 0 20px; letter-spacing: -0.02em;
}
#password-form label { font-size: 14px; color: var(--ink-2); }
#password-form input {
  display: block; margin: 10px auto;
  padding: 12px 16px; border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card); font-size: 15px;
  outline: none; width: 240px; font-family: inherit;
}
#password-form button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-btn);
  transition: transform .25s var(--ease);
}
#password-form button:hover { transform: translateY(-2px); }

/* NAV — floating pill */
.nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px; padding-left: 16px;
  background: rgba(253, 252, 250, 0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.nav .brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.015em;
  padding-right: 8px;
}
.nav .brand .mk {
  width: 20px; height: 20px; border-radius: 7px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-weight: 700; font-size: 11px;
  box-shadow: inset 0 -1.5px 0 rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.nav .links { display: flex; align-items: center; gap: 2px; margin: 0 4px; }
.nav .links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; color: var(--ink-2); font-weight: 500;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav .links a:hover { background: rgba(27,27,30,0.06); color: var(--ink); }
.nav .links a.active { background: rgba(27,27,30,0.06); color: var(--ink); font-weight: 600; }
.nav .cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-btn);
  transition: transform .25s var(--ease);
}
.nav .cta:hover { transform: translateY(-1px); }
.nav .cta .arr { transition: transform .3s var(--ease); }
.nav .cta:hover .arr { transform: translateX(3px); }
@media (max-width: 720px) { .nav .links { display: none; } }

/* PAGE HEADER (non-hero pages) */
.page-header {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--line-2);
}
.page-header .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 16px;
}
.page-header .eyebrow::before {
  content: ""; width: 20px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.page-header h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0; letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.page-header h1 .it { font-style: italic; color: var(--ink-2); }
.page-header p {
  font-size: 18px; color: var(--ink-2); max-width: 520px; line-height: 1.55; margin: 0;
}

/* SHARED SECTION */
.section { padding: 80px 0; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  text-decoration: none;
}
.btn--primary {
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-btn), 0 20px 40px -16px rgba(20,20,30,0.35);
}
.btn--primary:hover { transform: translateY(-2px); color: var(--bg); }
.btn--ghost {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.btn--ghost:hover { transform: translateY(-2px); background: var(--card); color: var(--ink); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* FOOTER */
.foot {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line-2);
  font-size: 13px; color: var(--ink-3);
  margin-top: auto;
}
.foot-grid {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.foot .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: -0.015em;
}
.foot .brand .mk {
  width: 26px; height: 26px; border-radius: 9px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); transition: color .2s var(--ease); }
.foot-links a:hover { color: var(--ink); }

/* CARD */
.card-base {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

/* FORM INPUTS */
.field-label {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 8px;
}
.field-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 15px; font-family: inherit; color: var(--ink);
  background: var(--card);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(27,27,30,0.08);
}
.field-input::placeholder { color: var(--ink-3); }
textarea.field-input { resize: vertical; min-height: 120px; line-height: 1.55; }
