/* ===== Kredofy — "Digital Ledger" design system ===== */

:root {
  --ink: #10151f;
  --ink-soft: #3a4152;
  --muted: #6b6459;
  --paper: #ffffff;
  --paper-card: #ffffff;
  --line: #e3e0d8;
  --accent: #c2720c;
  --accent-dark: #9c5a08;
  --accent-soft: #f6e8d3;
  --teal: #1f7a6c;
  --teal-soft: #e1f0eb;
  --folder-tab: #e4d9bb;
  --stamp: #7a2e2e;
  --stamp-soft: #f5e2df;
  --success: #2f6b45;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16,21,31,0.04), 0 8px 24px rgba(16,21,31,0.06);

  /* Type scale (10 steps) */
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-4xl: 44px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 96px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, .logo {
  font-family: 'Space Grotesk', -apple-system, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.01em;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Prevent Android Chrome from auto-enlarging text ("font boosting"), which
   was pushing the pill nav's Login/Sign Up links onto a second line even
   though the same layout fit fine on iPhone and desktop. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Defensive: make sure [hidden] always actually hides an element, even if
   a class on the same element also sets display (like our progress bars) */
[hidden] {
  display: none !important;
}

/* Keep anchor-linked sections from landing under the floating pill nav */
[id] {
  scroll-margin-top: 100px;
}

/* ---------- Floating pill nav ---------- */
.navbar {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: fit-content; max-width: calc(100% - 40px);
  display: flex; justify-content: center; align-items: center; gap: 48px;
  padding: 14px 24px;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(16,21,31,0.18);
  z-index: 100;
  transition: transform 0.3s ease;
}
.navbar.nav-hidden { transform: translateX(-50%) translateY(-140%); }
.logo { color: #fff; font-weight: 700; font-size: var(--fs-xl); text-decoration: none; display: inline-flex; align-items: center; }
.logo-img { height: 32px; width: 32px; border-radius: 8px; vertical-align: middle; margin-right: 8px; }
.footer-logo { display: flex; align-items: center; }
.footer-logo-img { height: 28px; width: 28px; margin-right: 8px; }
.nav-links a {
  color: #b8bfcf; text-decoration: none; margin-left: 22px;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.btn-nav {
  background: var(--accent); color: #fff !important; padding: 9px 18px;
  border-radius: var(--radius-sm); text-transform: none; letter-spacing: normal; margin-left: 34px;
}
.nav-links a.btn-nav:hover { background: var(--accent-dark); }

@media (max-width: 640px) {
  body { padding-top: 84px; }
  .navbar { width: calc(100% - 24px); padding: 11px 16px; gap: 10px; }
  .nav-links { display: flex; align-items: center; white-space: nowrap; }
  .nav-links a { margin-left: 12px; font-size: 11px; }
  .nav-links a.btn-nav { margin-left: 12px; padding: 7px 12px; }
}

.container {
  max-width: 1040px; margin: 0 auto; padding: 24px 20px 24px;
  width: 100%; flex: 1 0 auto;
  display: flex; flex-direction: column;
}

/* ---------- Flash messages ---------- */
.flash-messages { margin-bottom: 20px; }
.flash {
  background: var(--accent-soft); border: 1px solid var(--accent); color: #6b3d05;
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 8px; font-size: var(--fs-base);
}

/* ---------- Hero (two column with illustration) ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-copy { text-align: left; }
.hero-copy h1 { font-size: clamp(var(--fs-2xl), 6vw, var(--fs-4xl)); font-weight: 700; margin-bottom: 18px; line-height: 1.15; }
.hero-copy .subtitle { font-size: var(--fs-lg); color: var(--muted); max-width: 520px; margin: 0 0 20px; }
.hint { color: var(--muted); font-size: var(--fs-sm); margin-top: 14px; font-family: 'IBM Plex Mono', monospace; }
.hero-hint { font-family: 'Inter', -apple-system, "Segoe UI", Arial, sans-serif; font-size: var(--fs-base); color: var(--ink-soft); font-weight: 500; }
.hero-art { align-self: center; margin-top: -10px; }
.hero-art svg { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .subtitle { margin-left: auto; margin-right: auto; }
  .hero-art { max-width: 320px; margin: 0 auto; order: -1; }
}

/* ---------- Section title (shared) ---------- */
.section-title {
  text-align: center; font-size: var(--fs-2xl); font-weight: 700;
  margin-top: 88px; margin-bottom: 36px;
}

/* ---------- Colorful icon chips (features / steps) ---------- */
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; font-size: var(--fs-lg); margin-bottom: 14px;
}
.icon-amber { background: var(--accent-soft); color: var(--accent-dark); }
.icon-teal { background: var(--teal-soft); color: var(--teal); }
.icon-stamp { background: var(--stamp-soft); color: var(--stamp); }

.chip-solid-amber { background: var(--accent); color: #fff; }
.chip-solid-teal { background: var(--teal); color: #fff; }
.chip-solid-stamp { background: var(--stamp); color: #fff; }

/* ---------- Old way vs Kredofy way comparison ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { border-radius: var(--radius); padding: 28px 26px 28px 34px; border: 1px solid var(--line); }
.compare-col h3 {
  font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-lg); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 16px; margin-left: 0; padding-left: 0; font-weight: 700;
}
.compare-col ul { list-style: none; }
.compare-col li { font-size: var(--fs-md); padding: 9px 0 9px 26px; position: relative; }

.compare-col.old { background: var(--stamp-soft); border: 2px dashed var(--stamp); }
.compare-col.old h3 { color: var(--stamp); letter-spacing: 0.06em; }
.compare-col.old li { color: var(--ink-soft); }
.compare-col.old li::before {
  content: "✕"; position: absolute; left: 0; top: 9px; color: var(--stamp); font-size: var(--fs-base); font-weight: 900;
}

.compare-col.new { background: var(--teal-soft); border: 2px solid var(--teal); }
.compare-col.new h3 { color: var(--teal); letter-spacing: 0.06em; }
.compare-col.new li { color: var(--ink); font-weight: 500; }
.compare-col.new li::before {
  content: "✓"; position: absolute; left: 0; top: 9px; color: var(--teal); font-size: var(--fs-base); font-weight: 700;
}

/* ---------- How it works steps (merged step + feature card) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.step {
  position: relative; margin-top: 12px;
  background: var(--paper-card); padding: 24px 24px 22px;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.step::before {
  content: ""; position: absolute; top: -12px; left: 24px;
  width: 52px; height: 14px; background: var(--tab-color, var(--folder-tab));
  border-radius: 4px 4px 0 0;
}
.step.step-amber { --tab-color: var(--accent-soft); }
.step.step-teal { --tab-color: var(--teal-soft); }
.step.step-stamp { --tab-color: var(--stamp-soft); }
.step:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(16,21,31,0.06), 0 16px 32px rgba(16,21,31,0.08); }
.step-icon-row { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.step-icon-row .icon-chip { margin-bottom: 0; width: 34px; height: 34px; font-size: var(--fs-md); }
.step-num { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: var(--fs-md); color: var(--muted); display: inline-flex; align-items: center; height: 34px; line-height: 1; }
.step h3 { font-size: var(--fs-lg); margin: 0 0 8px; padding-left: 0; }
.step p { color: var(--muted); font-size: var(--fs-base); margin-left: 0; }

/* ---------- Feature cards (folder-tab signature) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; }
.feature {
  background: var(--paper-card); padding: 28px 24px 24px; border-radius: 0 var(--radius) var(--radius) var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative; margin-top: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature::before {
  content: ""; position: absolute; top: -12px; left: 22px;
  width: 52px; height: 14px; background: var(--folder-tab);
  border-radius: 4px 4px 0 0;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(16,21,31,0.06), 0 16px 32px rgba(16,21,31,0.08); }
.feature h3 { margin-bottom: 8px; font-size: var(--fs-lg); }
.feature p { color: var(--muted); font-size: var(--fs-base); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 420px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: var(--fs-md); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: var(--fs-xl); color: var(--accent); font-weight: 400; flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--muted); font-size: var(--fs-base); margin-top: 12px; line-height: 1.6; }

/* ---------- Buttons ----------
   All action buttons share the same size/shape/font (padding, radius,
   font-size, font-weight) — only background color changes by action type
   (orange = primary, dark = neutral/utility, red = danger/delete). */
.btn-primary {
  background: var(--accent); color: #fff; border: none; padding: 10px 20px;
  border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; font-size: var(--fs-sm);
  text-decoration: none; display: inline-block; transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
/* Hero CTA: larger than the standard .btn-primary so the homepage's main
   call-to-action reads as a proper primary button. Scoped to .hero only -
   dashboard/form buttons keep the compact global size. */
.hero .btn-primary {
  font-size: 17px;
  padding: 15px 34px;
  border-radius: var(--radius);
}
.btn-secondary {
  background: #ece9e1; color: var(--muted); border: 1px solid var(--line); padding: 12px 24px;
  border-radius: var(--radius-sm); font-weight: 600; width: 100%; cursor: not-allowed;
}
.btn-small {
  background: var(--ink); color: #fff; border: none; padding: 10px 20px;
  border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; transition: background 0.15s ease, transform 0.1s ease;
}
.btn-small:hover { background: var(--ink-soft); transform: translateY(-1px); }

/* ---------- Auth ---------- */
.auth-card {
  max-width: 400px; margin: 40px auto; background: var(--paper-card); padding: 34px;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.auth-card h2 { margin-bottom: 20px; }
.auth-card label { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 14px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.auth-card input {
  width: 100%; padding: 11px; margin-top: 6px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: var(--fs-base); background: #fdfcfa;
}
.auth-card input:focus { border-color: var(--accent); outline: none; }
.auth-card button { margin-top: 22px; width: 100%; }
.auth-switch { margin-top: 16px; font-size: var(--fs-sm); color: var(--muted); text-align: center; }

/* ---------- Dashboard ---------- */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.plan-badge {
  padding: 4px 12px; border-radius: 20px; font-size: var(--fs-2xs); font-weight: 700;
  font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase;
}
.plan-free { background: #ece9e1; color: var(--muted); }
.plan-pro { background: var(--accent-soft); color: #6b3d05; }

.card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 12px; font-size: var(--fs-md); }

.blog-list-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.blog-list-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 8px rgba(16,21,31,0.06), 0 16px 32px rgba(16,21,31,0.08);
}

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input, .inline-form select {
  flex: 1; min-width: 150px; padding: 10px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fdfcfa;
}

.client-list { display: grid; gap: 16px; }
.client-card {
  display: block; background: var(--paper-card); border: 1px solid #d5d0c2; border-radius: var(--radius);
  padding: 16px 20px; text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent-soft);
}
.client-card:hover { border-color: var(--accent); border-left-color: var(--accent); transform: translateX(2px); box-shadow: 0 4px 14px rgba(16,21,31,0.1); }
.client-card-name { font-weight: 600; }
.client-card-progress { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; font-family: 'IBM Plex Mono', monospace; }

.empty-state { color: var(--muted); font-size: var(--fs-base); }

.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; font-size: var(--fs-base); }
.back-link:hover { color: var(--ink); }

.portal-link-input {
  width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-sm); margin-top: 8px; background: #fdfcfa;
}

.doc-row, .file-row {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.doc-row:last-child, .file-row:last-child { border-bottom: none; }
.doc-row.fulfilled span { color: var(--success); font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-sm); font-weight: 600; }
.doc-row.pending span { color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-sm); }

.upload-form { display: flex; gap: 8px; align-items: center; }
.upload-form input[type=file] { font-size: var(--fs-xs); }

.portal-page { max-width: 600px; margin: 0 auto; }

/* ---------- Pricing (folder-tab signature reused) ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 28px; }
.price-card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 32px 28px; text-align: center; position: relative; margin-top: 12px; box-shadow: var(--shadow);
}
.price-card::before {
  content: ""; position: absolute; top: -12px; left: 24px;
  width: 52px; height: 14px; background: var(--folder-tab);
  border-radius: 4px 4px 0 0;
}
.price-card.featured { border: 2px solid var(--accent); }
.price-card.featured::before { background: var(--accent); }
.price-card h3 { font-size: var(--fs-lg); margin-bottom: 12px; }
.price-card .price { font-size: var(--fs-3xl); font-weight: 700; margin-bottom: 22px; font-family: 'Space Grotesk', sans-serif; }
.price-card .price span { font-size: var(--fs-base); font-weight: 400; color: var(--muted); font-family: 'Inter', sans-serif; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 26px; }
.price-card ul li { padding: 7px 0; color: var(--ink-soft); font-size: var(--fs-base); }
.price-card ul li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ---------- Legal pages ---------- */
.legal-page { max-width: 720px; }
.legal-page h2 { margin-bottom: 6px; }
.legal-page h3 { margin-top: 26px; margin-bottom: 8px; font-size: var(--fs-md); }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: var(--fs-base); margin-bottom: 6px; }
.legal-page em { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Closing CTA band ---------- */
.cta-band {
  background: var(--ink); color: #fff; text-align: center;
  padding: 64px 32px; border-radius: var(--radius); margin-top: 96px;
}
.cta-band h2 { font-size: var(--fs-2xl); margin-bottom: 10px; }
.cta-band p { color: #b8bfcf; font-size: var(--fs-md); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center; padding: 28px 20px; font-size: var(--fs-sm); color: var(--muted);
  border-top: 1px dashed var(--line); margin-top: 40px;
}
.site-footer a { color: var(--muted); text-decoration: none; margin: 0 6px; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .pricing-grid, .compare-grid, .steps-grid { grid-template-columns: 1fr; }
  .section-title { margin-top: 64px; }
}
/* ============================================================
   ADDITIONS — append everything below to the END of style.css
   Matches the existing "Digital Ledger" design system (same
   CSS variables, folder-tab cards, spacing, and type scale).
   ============================================================ */

/* ---------- Solo plan badge (dashboard) ---------- */
.plan-solo { background: var(--teal-soft); color: var(--teal); }

/* ---------- Expired link badges ---------- */
.badge-expired {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 20px;
  font-size: var(--fs-2xs); font-weight: 700; font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em; text-transform: uppercase; background: var(--stamp-soft); color: var(--stamp);
}
.badge-expired-text { color: var(--stamp); font-weight: 600; }

/* ---------- No-login highlight band ---------- */
.no-login-section { margin-top: 88px; }
.no-login-card {
  background: var(--teal-soft); border: 2px solid var(--teal); border-radius: var(--radius);
  padding: 40px 36px; text-align: center; max-width: 720px; margin: 0 auto;
}
.no-login-card .section-title { margin-top: 0; margin-bottom: 12px; color: var(--teal); }
.no-login-card p { color: var(--ink-soft); font-size: var(--fs-md); max-width: 560px; margin: 0 auto; }

/* ---------- Dashboard demo mockup section ---------- */
.demo-section { text-align: center; }
.section-subtitle { color: var(--muted); font-size: var(--fs-md); margin-top: -20px; margin-bottom: 32px; }
.demo-mockup { max-width: 640px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.demo-mockup svg { width: 100%; height: auto; display: block; }

/* ---------- Who is Kredofy for ---------- */
.who-for-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.who-for-card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 28px 24px; text-align: center; position: relative; margin-top: 12px; box-shadow: var(--shadow);
}
.who-for-card::before {
  content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 14px; background: var(--folder-tab); border-radius: 4px 4px 0 0;
}
.who-for-card h3 { font-size: var(--fs-lg); margin-bottom: 10px; }
.who-for-card p { color: var(--muted); font-size: var(--fs-base); }

/* ---------- Security section ---------- */
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.security-item {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.security-item h3 { font-size: var(--fs-md); margin-bottom: 8px; color: var(--teal); }
.security-item p { color: var(--muted); font-size: var(--fs-base); }

/* ---------- Pricing preview (homepage) ---------- */
.pricing-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pricing-preview-cta { text-align: center; margin-top: 32px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.btn-secondary-link { color: var(--accent); font-size: var(--fs-base); font-weight: 600; text-decoration: none; }
.btn-secondary-link:hover { text-decoration: underline; }

/* ---------- Full footer (3-column) ---------- */
.site-footer-full { border-top: 1px dashed var(--line); margin-top: 0; padding: 32px 20px 28px; flex-shrink: 0; }
.footer-grid {
  max-width: 1040px; margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.footer-brand .footer-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: var(--fs-lg); margin-bottom: 8px; }
.footer-brand p { color: var(--muted); font-size: var(--fs-sm); max-width: 260px; }
.footer-col h4 {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 14px; font-weight: 700;
}
.footer-col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: var(--fs-sm); margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1040px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: var(--fs-xs); text-align: center;
}

@media (max-width: 640px) {
  .who-for-grid, .security-grid, .footer-grid, .pricing-grid-3 { grid-template-columns: 1fr; }
  .no-login-card { padding: 28px 22px; }
}

/* ---- Document request checklist (Request a document, client_detail.html) ---- */
.doc-category {
  margin-bottom: 18px;
}

.doc-category-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.doc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-chip-form {
  display: inline-block;
}

.doc-chip {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: var(--fs-sm);
  cursor: pointer;
  color: #6b3d05;
  transition: background 0.15s ease, transform 0.1s ease;
}

.doc-chip:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.doc-chip:disabled,
.doc-chip-added {
  background: #ece9e1;
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
  transform: none;
}

.doc-chip:disabled:hover {
  background: #ece9e1;
  color: var(--muted);
}

/* ---- Auto-reminder checkbox (Add a new client, dashboard.html) ---- */
.reminder-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  margin: 10px 0;
  flex-wrap: wrap;
}

.reminder-checkbox small {
  color: var(--muted);
}

/* ---- Year tabs (client_detail.html) ---- */
.year-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.year-tab {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.year-tab-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.year-tab-new {
  border-style: dashed;
  color: var(--accent-dark);
  border-color: var(--accent);
}

.year-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: #6b3d05;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}

/* ---- Danger zone / delete buttons ---- */
.danger-zone {
  border-color: var(--stamp-soft);
}

.btn-danger {
  background: var(--stamp);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-sm);
}

.btn-danger:hover {
  background: #5e2020;
}

.client-card-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.client-card-row .client-card {
  flex: 1;
}

.client-serial {
  color: var(--muted);
  font-weight: 400;
  margin-right: 4px;
}

.client-delete-form {
  display: flex;
  align-items: center;
}

.btn-icon-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--stamp);
  border: none;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  justify-content: center;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-icon-danger:hover {
  background: #5e2020;
  transform: translateY(-1px);
}

/* ---- Feedback page ---- */
.stacked-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.stacked-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 8px);
  font-size: var(--fs-base);
  background: #fdfcfa;
  font-family: inherit;
  resize: vertical;
}

.stacked-form .btn-primary {
  align-self: flex-start;
}

.rating-picker {
  display: flex;
  gap: 8px;
}

.rating-option {
  cursor: pointer;
}

.rating-option input {
  display: none;
}

.rating-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 600;
}

.rating-option input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---- Admin dashboard ---- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.admin-stat {
  text-align: center;
  padding: 16px 12px;
}

.admin-stat-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}

.admin-stat-value {
  font-size: var(--fs-xl, 1.6rem);
  font-weight: 700;
  color: var(--ink);
}

.admin-feedback-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.admin-feedback-row:last-child {
  border-bottom: none;
}

.admin-feedback-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.admin-feedback-rating {
  background: var(--accent-soft);
  color: #6b3d05;
  font-weight: 700;
  font-size: var(--fs-xs);
  padding: 2px 10px;
  border-radius: 999px;
}

.admin-feedback-meta {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.admin-feedback-message {
  color: var(--ink-soft);
  margin-bottom: 8px;
  white-space: pre-wrap;
}

.btn-danger-small {
  background: #fff;
  border: 1px solid var(--stamp);
  color: var(--stamp);
}

.btn-danger-small:hover {
  background: var(--stamp-soft);
}

.admin-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  flex-wrap: wrap;
}

.admin-log-row:last-child {
  border-bottom: none;
}

.admin-log-time {
  color: var(--muted);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

/* ---- Inline feedback section (landing page + dashboard) ---- */
.feedback-inline-section {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

.feedback-inline-card {
  text-align: left;
}

.feedback-inline-card h3 {
  margin-bottom: 4px;
}

.badge-new-upload {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.file-row:last-of-type {
  border-bottom: none;
}

.file-row-select {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.file-row-actions {
  display: flex;
  gap: 8px;
}

/* ---- Trash page ---- */
.trash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.trash-row:last-of-type {
  border-bottom: none;
}

.trash-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trash-row-meta {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.trash-row-actions {
  display: flex;
  gap: 8px;
}

/* ---- Preview modal ---- */
.preview-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 21, 31, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.preview-modal-box {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  gap: 12px;
}

.preview-modal-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-modal-body {
  padding: 18px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.preview-modal-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 6px;
}

.preview-modal-iframe {
  width: 100%;
  height: 70vh;
  border: none;
}

/* ---- Floating Trash button (sits in the empty side margin on wide screens) ---- */
.floating-trash-btn {
  position: fixed;
  top: 160px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 10px 16px 10px 12px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: var(--fs-sm);
  z-index: 90;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.floating-trash-btn:hover {
  border-color: var(--stamp);
  color: var(--stamp);
  transform: translateY(-1px);
}

.floating-trash-icon {
  font-size: 1.1rem;
}

/* On narrower screens there's no empty side margin to sit in - shrink to
   an icon-only button tucked in the bottom-right corner instead, so it
   never overlaps page content. */
@media (max-width: 1200px) {
  .floating-trash-btn {
    top: auto;
    bottom: 24px;
    right: 20px;
    padding: 12px;
    border-radius: 50%;
  }
  .floating-trash-label {
    display: none;
  }
}

/* ---- Floating Delete menu (client_detail.html only, sits near Trash) ---- */
.floating-delete-wrap {
  position: fixed;
  top: 216px;
  right: 28px;
  z-index: 90;
}

.floating-delete-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 10px 16px 10px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--stamp);
  list-style: none;
}

.floating-delete-btn::-webkit-details-marker {
  display: none;
}

.floating-delete-btn::marker {
  content: "";
}

.floating-delete-btn:hover {
  border-color: var(--stamp);
  transform: translateY(-1px);
}

.floating-delete-icon {
  font-size: 1.1rem;
}

@media (max-width: 1200px) {
  .floating-delete-btn {
    padding: 12px;
    border-radius: 50%;
  }
  .floating-delete-label {
    display: none;
  }
}

.floating-delete-menu {
  position: absolute;
  top: 52px;
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(16,21,31,0.18);
  padding: 16px;
}

.floating-delete-menu-title {
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-bottom: 10px;
  color: var(--stamp);
}

.floating-delete-item {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.floating-delete-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.floating-delete-item .inline-form {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.floating-delete-item input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 8px;
  font-size: var(--fs-sm);
}

.floating-delete-menu-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: var(--fs-sm);
}

@media (max-width: 1200px) {
  .floating-delete-wrap {
    top: auto;
    bottom: 84px;
    right: 20px;
  }
  .floating-delete-menu {
    top: auto;
    bottom: 52px;
  }
}

/* ---- Upload progress bar (client-facing portal.html) ---- */
.upload-progress-wrap {
  margin-top: 8px;
  width: 100%;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  width: 0%;
  transition: width 0.15s ease;
  border: 1px solid var(--line);
}

.upload-progress-label {
  font-size: var(--fs-xs);
  color: var(--muted);
}


/* ---------- Persona landing pages (SEO) ---------- */
.persona-pains-section { margin: 56px 0; }
.persona-pains { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 12px; }
.persona-pains li {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; font-size: var(--fs-base); color: var(--ink-soft);
}
.persona-pains li::before { content: "\2715  "; color: var(--stamp); font-weight: 700; }
.persona-benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .persona-benefits-grid { grid-template-columns: 1fr; } }
.who-for-link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--teal); text-decoration: none; }
.who-for-link:hover { text-decoration: underline; }
