/* static/css/main.css */

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --bg:        #F7F4EE;
  --surface:   #FFFFFF;
  --text:      #1F2933;
  --muted:     #5B6470;
  --brand:     #315C4B;
  --brand-dark:#264a3b;
  --brand-lt:  #e8f0ec;
  --accent:    #B86A4B;
  --accent-lt: #f5ede8;
  --border:    #E7E1D8;
  --muted-bg:  #F1ECE4;
}

/* ── Base ───────────────────────────────────────────────────── */
* {
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}

h1, h2, h3, .font-serif { font-family: 'Lora', serif; }

body {
  background: var(--bg);
  color: var(--text);
  animation: fadeIn 0.18s ease-out;
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Password toggle ────────────────────────────────────────── */
input::-ms-reveal,
input::-ms-clear { display: none; }

input::-webkit-contacts-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}

.password-group {
  position: relative;
  display: flex;
  align-items: center;
}

.password-group .input { padding-right: 2.75rem; }

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  z-index: 2;
}

.password-toggle:hover { color: var(--brand); }
.password-toggle svg   { width: 18px; height: 18px; }

/* ── Responsive layout helpers ──────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

@media (max-width: 640px) {
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-header .page-header-actions { width: 100%; }
  .page-header .page-header-actions a,
  .page-header .page-header-actions button { width: 100%; justify-content: center; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

.stats-grid .card          { padding: 0.625rem 0.875rem !important; }
.stats-grid .font-serif    { font-size: 1.35rem !important; margin-top: 0.125rem !important; }
.stats-grid p:first-child  { font-size: 0.65rem !important; }

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

@media (max-width: 480px) { .form-grid-2 { grid-template-columns: 1fr; } }

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  text-decoration: none;
  transition: background 0.15s;
  gap: 1rem;
}

.list-row:hover { background: var(--bg); }

.list-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.list-row-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.list-row-date { font-size: 0.75rem; color: var(--muted); }

@media (max-width: 600px) {
  .list-row      { padding: 0.875rem 1rem; }
  .list-row-date { display: none; }
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
}

.member-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.member-row-right {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .member-row { flex-direction: column; align-items: flex-start; padding: 1rem; }
  .member-row-right { width: 100%; justify-content: flex-start; padding-left: calc(34px + 0.75rem); }
}

.org-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  gap: 1rem;
}

@media (max-width: 600px) {
  .org-card-row { flex-direction: column; align-items: flex-start; }
  .org-card-actions { width: 100%; display: flex; gap: 0.5rem; }
  .org-card-actions a,
  .org-card-actions button { flex: 1; justify-content: center; text-align: center; }
}

/* ── Mobile nav ─────────────────────────────────────────────── */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--muted);
}

.mobile-nav-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  gap: 0.25rem;
}

.mobile-nav-menu.open { display: flex; }

.mobile-nav-link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav-link:hover { background: var(--muted-bg); color: var(--text); }

@media (max-width: 768px) {
  .mobile-nav-toggle { display: flex; }
  .desktop-nav { display: none !important; }
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 51, 0.45);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(31, 41, 51, 0.15);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal-backdrop.open .modal-box { transform: translateY(0) scale(1); }
.modal-danger .modal-box        { border-color: rgba(184, 106, 75, 0.3); }

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-loading .spinner  { display: inline-block; }
.btn-loading .btn-text { display: none; }
.btn-loading           { pointer-events: none; opacity: 0.75; }

/* ── Inputs ─────────────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 0.625rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder { color: #A8B0B9; }

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(49, 92, 75, 0.1);
}

.input-error {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(184, 106, 75, 0.1) !important;
}

select.input { cursor: pointer; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--brand);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover  { background: var(--brand-dark); color: white; }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover { border-color: #c8c0b4; color: var(--text); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--accent);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-danger:hover { background: #a55c3f; color: white; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
}

/* ── Nav link ───────────────────────────────────────────────── */
.nav-link {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover  { color: var(--text); background: var(--muted-bg); }
.nav-link.active { color: var(--brand); background: var(--brand-lt); }

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge-active    { background: #e6f4ef; color: #1f6b4f; border: 1px solid #b8dece; }
.badge-on-hold,
.badge-on_hold   { background: #fef3e2; color: #a16207; border: 1px solid #fde68a; }
.badge-completed { background: var(--brand-lt); color: var(--brand); border: 1px solid #c0d9d0; }
.badge-archived  { background: var(--muted-bg); color: var(--muted); border: 1px solid var(--border); }
.badge-owner     { background: var(--brand-lt); color: var(--brand); border: 1px solid #c0d9d0; }
.badge-admin     { background: var(--accent-lt); color: var(--accent); border: 1px solid #e8c4b4; }
.badge-member    { background: var(--muted-bg); color: var(--muted); border: 1px solid var(--border); }

/* ── Status dot ─────────────────────────────────────────────── */
.dot-active    { background: #22a06b; }
.dot-on-hold,
.dot-on_hold   { background: #f59e0b; }
.dot-completed { background: var(--brand); }
.dot-archived  { background: #9ca3af; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast { animation: slideDown 0.25s ease; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ccc5ba; }

/* ── Divider ────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }

/* ── Section label (app-wide utility) ──────────────────────── */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Auth card ──────────────────────────────────────────────── */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(31, 41, 51, 0.07);
}

@media (min-width: 480px) { .auth-card { padding: 2.5rem; } }

/* ── Utility ────────────────────────────────────────────────── */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ════════════════════════════════════════════════════════════
   LANDING PAGE
   ════════════════════════════════════════════════════════════ */

@keyframes lp-slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lp-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}
@keyframes lp-pulse-ring {
  0%   { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

.lp-reveal { opacity: 0; animation: lp-slideUp 0.6s cubic-bezier(.16,1,.3,1) forwards; }
.lp-reveal-1 { animation-delay: 0.05s; }
.lp-reveal-2 { animation-delay: 0.15s; }
.lp-reveal-3 { animation-delay: 0.25s; }
.lp-reveal-4 { animation-delay: 0.38s; }
.lp-reveal-5 { animation-delay: 0.50s; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem 0.35rem 0.5rem;
  background: var(--brand-lt);
  border: 1px solid #c0d9d0;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 1.75rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  position: relative;
}
.hero-badge .dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  animation: lp-pulse-ring 1.8s ease-out infinite;
}

.hero-headline {
  font-family: 'Lora', serif;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1.25rem;
}
.hero-headline em { font-style: italic; color: var(--brand); }

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
  margin: 0 0 2.25rem;
}

.hero-actions { display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; }

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.875rem;
  background: var(--text);
  color: #F7F4EE;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-hero:hover  { background: #2d3a44; color: #F7F4EE; }
.btn-hero:active { transform: scale(0.98); }

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.btn-hero-ghost:hover         { color: var(--text); }
.btn-hero-ghost svg           { transition: transform 0.2s; }
.btn-hero-ghost:hover svg     { transform: translateX(3px); }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-avatars { display: flex; }
.trust-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.trust-avatar:first-child { margin-left: 0; }
.ta-1 { background: #315C4B; }
.ta-2 { background: #B86A4B; }
.ta-3 { background: #4a6b8a; }
.ta-4 { background: #7a5c8a; }
.trust-text        { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.trust-text strong { color: var(--text); font-weight: 600; display: block; }

/* App preview mockup */
.hero-visual {
  position: relative;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}
.app-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(31,41,51,0.1), 0 4px 16px rgba(31,41,51,0.06);
  animation: lp-float 5s ease-in-out infinite;
}
.app-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.app-dot   { width: 9px; height: 9px; border-radius: 50%; }
.app-dot-r { background: #f5a9a9; }
.app-dot-y { background: #f5d9a9; }
.app-dot-g { background: #a9e0c8; }
.app-topbar-title { margin-left: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--text); }

.app-body    { display: grid; grid-template-columns: 160px 1fr; }
.app-sidebar { border-right: 1px solid var(--border); padding: 1rem 0.75rem; background: #faf8f5; }
.app-sidebar-section {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0.75rem 0 0.5rem 0.375rem;
}
.app-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.app-sidebar-item.active { background: var(--brand-lt); color: var(--brand); font-weight: 600; }
.app-sidebar-item .si-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.app-content { padding: 1.125rem; }
.app-content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.875rem; }
.app-content-title  { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.mini-btn {
  background: var(--brand);
  color: white;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.275rem 0.6rem;
  border-radius: 0.375rem;
  white-space: nowrap;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.625rem;
  border-radius: 0.5rem;
  margin-bottom: 0.35rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.task-check {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1.5px solid #c5bdb3;
  flex-shrink: 0;
}
.task-check.done { background: var(--brand); border-color: var(--brand); position: relative; }
.task-check.done::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 7.5L6 10L11 5' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.task-label { font-size: 0.75rem; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-label.done { color: var(--muted); text-decoration: line-through; }
.task-pill  { font-size: 0.6rem; font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 9999px; flex-shrink: 0; }
.pill-high   { background: #fdf2f0; color: #b05a3a; border: 1px solid #e8c4b4; }
.pill-medium { background: #fffbeb; color: #92600e; border: 1px solid #f5dfa0; }
.pill-low    { background: #f0f9f5; color: #1f6b4f; border: 1px solid #b8dece; }

.progress-bar-wrap { margin-top: 0.75rem; background: var(--muted-bg); border-radius: 9999px; height: 5px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--brand), #4a8a72); width: 60%; }

.app-stats    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.75rem; }
.app-stat     { background: var(--muted-bg); border-radius: 0.5rem; padding: 0.55rem 0.625rem; text-align: center; }
.app-stat-num { font-size: 1rem; font-weight: 700; color: var(--text); font-family: 'Lora', serif; }
.app-stat-lbl { font-size: 0.58rem; color: var(--muted); margin-top: 0.1rem; }

.floating-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--accent);
  color: white;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 24px rgba(184,106,75,0.35);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  min-width: 120px;
}
.floating-badge .fbl { font-size: 1.1rem; font-weight: 700; display: block; margin-bottom: 0.1rem; }

/* Strip */
.lp-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4.5rem;
}
.lp-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  border-right: 1px solid var(--border);
  text-align: center;
}
.lp-strip-item:last-child { border-right: none; }
.lp-strip-item svg        { color: var(--brand); flex-shrink: 0; }

/* Feature cards */
.lp-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
  text-align: center;
}
.lp-headline {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  text-align: center;
}
.lp-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 3rem;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: box-shadow 0.15s;
}
.feature-card:hover   { box-shadow: 0 4px 16px rgba(31,41,51,0.07); }
.feature-icon {
  width: 38px; height: 38px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.fi-green  { background: var(--brand-lt);  color: var(--brand); }
.fi-amber  { background: #fffbeb;          color: #92600e; }
.fi-rust   { background: var(--accent-lt); color: var(--accent); }
.fi-slate  { background: #eef2f7;          color: #4a6b8a; }
.fi-purple { background: #f0edf7;          color: #7a5c8a; }
.fi-teal   { background: #e8f5f3;          color: #2a7a6a; }
.feature-card-title { font-size: 0.9rem;  font-weight: 700; color: var(--text);  margin-bottom: 0.375rem; }
.feature-card-body  { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

/* Steps */
.steps-section { padding: 4.5rem 0; border-top: 1px solid var(--border); }
.steps-grid    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.step-num   { font-family: 'Lora', serif; font-size: 2.75rem; font-weight: 600; color: var(--border); line-height: 1; margin-bottom: 0.875rem; letter-spacing: -0.04em; }
.step-title { font-size: 0.9rem;  font-weight: 700; color: var(--text);  margin-bottom: 0.5rem; }
.step-body  { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }

/* CTA */
.cta-section {
  margin: 5rem -1rem -2rem;
  background: var(--brand);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before { content: ''; position: absolute; top: -60px;  right: -60px; width: 280px; height: 280px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.cta-section::after  { content: ''; position: absolute; bottom: -80px; left: -40px; width: 320px; height: 320px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.cta-headline { font-family: 'Lora', serif; font-size: clamp(1.6rem, 3.5vw, 2.75rem); font-weight: 600; color: #fff; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 1rem; position: relative; z-index: 1; }
.cta-sub      { font-size: 0.95rem; color: rgba(255,255,255,0.72); margin: 0 0 2.25rem; position: relative; z-index: 1; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: #F7F4EE;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  position: relative;
  z-index: 1;
}
.btn-cta:hover  { background: #fff; color: var(--brand-dark); }
.btn-cta:active { transform: scale(0.98); }
.cta-note   { margin-top: 1.25rem; font-size: 0.8rem; color: rgba(255,255,255,0.5); position: relative; z-index: 1; }
.cta-note a { color: rgba(255,255,255,0.7); text-decoration: underline; }

/* Landing responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 0 2rem; gap: 2.5rem; }
  .hero-sub { max-width: 100%; }
  .floating-badge { bottom: -12px; right: 8px; }
  .lp-strip { grid-template-columns: repeat(2, 1fr); }
  .lp-strip-item:nth-child(2) { border-right: none; }
  .lp-strip-item:nth-child(3) { border-top: 1px solid var(--border); }
  .lp-strip-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 1.75rem; margin-top: 2rem; }
}

@media (max-width: 640px) {
  .hero { padding: 2.25rem 0 1.5rem; gap: 2rem; }
  .hero-actions   { flex-direction: column; align-items: stretch; }
  .btn-hero       { justify-content: center; padding: 1rem 1.5rem; font-size: 1rem; }
  .btn-hero-ghost { justify-content: center; padding: 0.875rem; border: 1.5px solid var(--border); border-radius: 0.625rem; }
  .app-sidebar    { display: none; }
  .app-body       { grid-template-columns: 1fr; }
  .floating-badge { display: none; }
  .lp-strip-item  { flex-direction: column; gap: 0.375rem; font-size: 0.72rem; padding: 1rem 0.5rem; }
  .feature-grid   { grid-template-columns: 1fr; }
  .step-item      { padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
  .step-item:last-child { border-bottom: none; padding-bottom: 0; }
  .cta-section    { padding: 3.5rem 1.25rem; }
  .btn-cta        { width: 100%; justify-content: center; padding: 1rem 1.5rem; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-reveal, .hero-visual { animation: none; opacity: 1; }
  .app-frame { animation: none; }
  .hero-badge .dot::after { animation: none; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { margin-top: auto; padding: 4rem 1rem 2rem; }

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-blurb {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 240px;
  margin: 0;
}

.footer-col { display: flex; flex-direction: column; gap: 0.625rem; }

.footer-col-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.footer-link {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  width: fit-content;
}
.footer-link:hover { color: var(--text); }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy { font-size: 0.75rem; color: var(--muted); }

.footer-legal { display: flex; gap: 1.25rem; }

.footer-legal-link {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-legal-link:hover { color: var(--text); }

.footer-slim {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .footer-blurb { max-width: 100%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:first-child { grid-column: auto; }
}