/* ═══════════════════════════════════════════════════════════
   PRACTICA — Landing Page Stylesheet  (V2)
   Design system: warm cream bg, forest green, DM Sans
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #1b4332;
  --green-mid:    #2d6a4f;
  --green-light:  #d8eddf;
  --green-xlight: #f0f7f2;
  --green-glow:   rgba(27, 67, 50, 0.12);
  --accent:       #40916c;
  --bg:           #f0ede6;
  --bg-warm:      #e8e4db;
  --surface:      #ffffff;
  --text:         #1a1a1a;
  --text2:        #4a4a4a;
  --text3:        #8a8a8a;
  --border:       rgba(0, 0, 0, 0.08);
  --border-green: rgba(27, 67, 50, 0.2);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg:    0 24px 80px rgba(0,0,0,0.10);
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
}

html { scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes draw {
  from { stroke-dashoffset: 300; }
  to   { stroke-dashoffset: 0; }
}

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(240, 237, 230, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.4rem, 4vw, 2.5rem);
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.55rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em;
}
.nav-brand-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(27,67,50,0.24);
}
.nav-brand-icon svg { width: 18px; height: 18px; fill: white; }

.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text2);
  transition: all 0.15s;
}
.nav-link:hover { background: var(--green-light); color: var(--green); }

.nav-btn {
  padding: 9px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
  border: none; font-family: inherit;
}
.nav-btn-outline {
  background: #ffffff;
  border: 1px solid #d2dbe6;
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 8px 16px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.06);
}
.nav-btn-outline:hover {
  border-color: #b7c4d5;
  color: var(--green);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 12px 22px rgba(15,23,42,0.12), 0 4px 8px rgba(15,23,42,0.08);
}
.nav-btn-solid {
  background: #1b4332;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(27,67,50,0.24);
}
.nav-btn-solid:hover {
  background: #102a1f;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16,42,31,0.35);
}
.nav-btn-solid:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(64,145,108,0.32), 0 8px 28px rgba(27,67,50,0.3);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 2rem) clamp(3rem, 5vw, 4rem);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Decorative soft radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(27,67,50,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-xlight);
  color: var(--green);
  border: 1px solid var(--border-green);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1.75rem;
  animation: fadeIn 0.5s ease both;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.hero-badge-dot::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: pulse-ring 1.8s ease-out infinite;
}

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.4rem;
  letter-spacing: -0.03em;
  animation: fadeUp 0.55s ease 0.1s both;
}
.hero-title-accent { color: var(--green); }
.hero-title-line { display: block; }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text2);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 2.75rem;
  font-weight: 400;
  animation: fadeUp 0.55s ease 0.2s both;
}

.hero-ctas {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  animation: fadeUp 0.55s ease 0.3s both;
}

.btn-hero-primary {
  padding: 14px 30px;
  background: #1b4332;
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 14.5px; font-weight: 700;
  border: none; cursor: pointer; font-family: inherit;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 16px rgba(27,67,50,0.24);
  letter-spacing: -0.01em;
}
.btn-hero-primary:hover {
  background: #102a1f;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16,42,31,0.35);
}
.btn-hero-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(64,145,108,0.32), 0 8px 28px rgba(27,67,50,0.3);
}
.btn-hero-primary svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-hero-secondary {
  padding: 14px 30px;
  background: white; color: var(--text);
  border-radius: var(--radius-md);
  font-size: 14.5px; font-weight: 600;
  border: 1px solid #d2dbe6;
  cursor: pointer; font-family: inherit;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 8px 16px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.06);
}
.btn-hero-secondary:hover {
  border-color: #b7c4d5;
  color: var(--green);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 14px 24px rgba(15,23,42,0.12), 0 4px 8px rgba(15,23,42,0.08);
}

/* ── HERO STATS ── */
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 3.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  animation: fadeUp 0.55s ease 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 1.875rem; font-weight: 800;
  color: var(--green);
  font-family: 'DM Mono', monospace;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-stat-label {
  font-size: 11.5px; color: var(--text3);
  font-weight: 600; margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.hero-stat-divider {
  width: 1px; height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   APP PREVIEW (mock browser window)
   ═══════════════════════════════════════════════════════════ */
.preview-section {
  padding: 1.25rem clamp(1.25rem, 4vw, 2rem) 5.25rem;
  max-width: 1160px; margin: 0 auto;
  animation: fadeUp 0.6s ease 0.45s both;
}

.preview-wrap {
  background: #f0ece4;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12), 0 2px 10px rgba(15, 23, 42, 0.06);
}

.preview-bar {
  background: #e8e3da;
  padding: 12px 18px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.preview-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.preview-url {
  flex: 1; background: white;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 6px; padding: 4px 12px;
  font-size: 11.5px; color: var(--text3);
  font-family: 'DM Mono', monospace;
  margin: 0 8px;
}

.preview-body { display: flex; min-height: 510px; }

/* ── Dark sidebar ── */
.preview-sidebar {
  width: 168px;
  background: #184d39;
  padding: 1rem 0.8rem;
  flex-shrink: 0;
  position: relative;
  display: flex; flex-direction: column;
}
.psb-brand {
  display: flex; align-items: center; gap: 8px; margin-bottom: 1.5rem;
  padding: 0 4px;
}
.psb-brand-dot {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,0.9); flex-shrink: 0;
}
.psb-brand-label {
  width: 64px; height: 9px; border-radius: 4px;
  background: rgba(255,255,255,0.35);
}
.psb-section-label {
  font-size: 7px; color: rgba(255,255,255,0.4);
  font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin: 0 0 5px 8px;
}
.psb-item {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 8px; border-radius: 6px; margin-bottom: 2px;
}
.psb-item.active { background: rgba(255,255,255,0.15); }
.psb-item-icon {
  width: 10px; height: 10px; flex-shrink: 0;
}
.psb-item-label { height: 8px; border-radius: 3px; }
.psb-footer {
  margin-top: auto; padding-top: 8px;
}
.psb-divider { height: 1px; margin-bottom: 6px; }

/* ── Main area ── */
.preview-main {
  flex: 1; background: #f8f5ef;
  padding: 1rem 0.95rem 1rem 0.95rem; overflow: hidden;
  display: flex; flex-direction: column; gap: 9px;
}

/* Welcome header card */
.pm-welcome-card {
  background: #ffffff; border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  padding: 11px 13px;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.pm-welcome-left { display: flex; flex-direction: column; gap: 4px; }
.pm-welcome-eyebrow { width: 50px; height: 6px; border-radius: 3px; background: rgba(0,0,0,0.07); }
.pm-welcome-title { width: 140px; height: 13px; border-radius: 4px; background: rgba(0,0,0,0.1); }
.pm-welcome-sub { width: 170px; height: 7px; border-radius: 3px; background: rgba(0,0,0,0.06); }
.pm-header-actions { display: flex; gap: 6px; }
.pm-btn-green {
  width: 82px; height: 26px;
  background: #1b4332; border-radius: 8px;
  box-shadow: 0 5px 12px rgba(27,67,50,0.24);
}
.pm-btn-white {
  width: 68px; height: 26px;
  background: white; border-radius: 8px;
  border: 1px solid #d2dbe6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 6px 12px rgba(15,23,42,0.08);
}

/* Three stat cards */
.pm-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 9px; flex-shrink: 0;
}
.pm-stat-card {
  border-radius: 12px; padding: 11px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.pm-stat-dark {
  background: linear-gradient(135deg, #0d3327 0%, #155840 52%, #2a8462 100%);
  border-color: transparent;
  box-shadow: 0 10px 18px rgba(27,67,50,0.2);
}
.pm-stat-light {
  background: white;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
}
.pm-stat-eyebrow {
  height: 6px; border-radius: 3px; margin-bottom: 7px;
}
.pm-stat-num {
  font-weight: 800;
  font-family: 'DM Mono', monospace;
  line-height: 1.2;
}

.pm-allowance-split {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 0.62rem;
  border-radius: 0.65rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
}

.pm-allowance-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pm-allowance-item--right {
  text-align: right;
}

.pm-allowance-label {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(223, 255, 239, 0.9);
}

.pm-allowance-value {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f4fff9;
  line-height: 1.05;
}

.pm-allowance-divider {
  width: 1px;
  height: 1.5rem;
  background: rgba(220,255,236,0.5);
}

/* Bottom row: logs + quick-log */
.pm-bottom-row {
  display: grid;
  grid-template-columns: 1fr 178px;
  gap: 8px; flex: 1; min-height: 0;
}

/* Logs card */
.pm-logs-card {
  background: white; border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
  padding: 10px 12px;
  overflow: hidden;
}
.pm-table-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 8px;
}
.pm-table-title {
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--text2);
}
.pm-table { border-radius: 7px; overflow: hidden; border: 1px solid var(--border); }
.pm-table-head {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 9px; background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.pm-table-row {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 9px;
}
.pm-table-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.pm-pill {
  width: 32px; height: 16px; border-radius: 999px;
  background: #d8eddf;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Quick-log panel */
.pm-quicklog-card {
  background: white; border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
  padding: 10px 11px;
  display: flex; flex-direction: column; gap: 8px;
}
.pm-ql-header {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.pm-ql-badge {
  font-size: 7px; font-weight: 700;
  color: #d97706; letter-spacing: 0.05em;
  background: #fef3c7; border-radius: 999px;
  padding: 2px 7px;
}
.pm-ql-textarea {
  height: 40px; border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f3f0ea;
}
.pm-ql-times { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pm-ql-time-group { display: flex; flex-direction: column; }
.pm-ql-time-input {
  font-size: 8px; font-weight: 500; color: var(--text2);
  border: 1px solid #d2dbe6; border-radius: 6px;
  padding: 4px 7px; background: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 3px 8px rgba(15,23,42,0.06);
}
.pm-ql-save {
  background: #1b4332; color: white;
  border-radius: 7px; padding: 7px;
  font-size: 9px; font-weight: 700;
  text-align: center; margin-top: auto;
  box-shadow: 0 6px 14px rgba(27,67,50,0.24);
}

/* ═══════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════ */
.features-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2rem);
  max-width: 1060px; margin: 0 auto;
}
.section-eyebrow {
  text-align: center;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 0.75rem;
}
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em; line-height: 1.15;
}
.section-sub {
  text-align: center;
  font-size: 15px; color: var(--text2);
  max-width: 460px; margin: 0 auto 3.5rem;
  line-height: 1.7;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  flex: 0 1 320px;
  max-width: 320px;
  min-height: 210px;
  transition: all 0.2s ease;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-green);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--green-xlight);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  transition: background 0.2s;
}
.feature-card:hover .feature-icon { background: var(--green-light); }
.feature-icon svg { width: 21px; height: 21px; fill: var(--green); }

.feature-title {
  font-size: 15.5px; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 13px; color: var(--text2);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════ */
.how-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2rem);
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-inner { max-width: 880px; margin: 0 auto; }

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 3.5rem;
  position: relative;
}
/* Connector line between steps */
.how-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(16.66% + 14px);
  right: calc(16.66% + 14px);
  height: 2px;
  background: linear-gradient(to right, var(--green-light), var(--green-light));
  background-size: 8px 2px;
  background-repeat: repeat-x;
}

.how-step { text-align: center; position: relative; }

.how-step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: white;
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.375rem;
  position: relative; z-index: 1;
  font-family: 'DM Mono', monospace;
  box-shadow: 0 4px 16px rgba(27,67,50,0.25);
  transition: transform 0.2s;
}
.how-step:hover .how-step-num { transform: scale(1.08); }

.how-step-title {
  font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.how-step-desc {
  font-size: 13px; color: var(--text2);
  line-height: 1.65; max-width: 220px; margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════ */
.cta-section {
  padding: clamp(4rem, 7vw, 6rem) clamp(1.25rem, 4vw, 2rem);
  max-width: 720px; margin: 0 auto; text-align: center;
}

.cta-box {
  background: var(--green);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 4vw, 3rem);
  position: relative; overflow: hidden;
}
/* Decorative circles */
.cta-box::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -120px; right: -80px;
  pointer-events: none;
}
.cta-box::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -70px; left: -50px;
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 800; color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.025em; line-height: 1.15;
  position: relative; z-index: 1;
}
.cta-sub {
  font-size: 15px; color: rgba(255,255,255,0.75);
  margin-bottom: 2.25rem; line-height: 1.65;
  position: relative; z-index: 1;
}
.cta-btns {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}

.btn-cta-white {
  padding: 13px 30px;
  background: white; color: var(--green);
  border-radius: var(--radius-md);
  font-size: 14.5px; font-weight: 700;
  border: 1px solid #d2dbe6; cursor: pointer; font-family: inherit;
  transition: all 0.15s; display: inline-block;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 8px 16px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.06);
}
.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 14px 24px rgba(15,23,42,0.12), 0 4px 8px rgba(15,23,42,0.08);
}
.btn-cta-outline {
  padding: 13px 30px;
  background: none; color: white;
  border-radius: var(--radius-md);
  font-size: 14.5px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer; font-family: inherit;
  transition: all 0.15s; display: inline-block;
}
.btn-cta-outline:hover {
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.1);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.25rem, 4vw, 2rem);
  font-size: 13px; color: var(--text3);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.footer-item {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.footer-item strong {
  color: #0f172a;
  font-weight: 700;
}

.footer-item--left {
  text-align: left;
}

.footer-item--center {
  text-align: center;
}

.footer-item--right {
  text-align: right;
}

footer strong { color: var(--text2); font-weight: 600; }
footer a { color: var(--green); font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   AUTH MODAL
   ═══════════════════════════════════════════════════════════ */
.auth-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.auth-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 25, 20, 0.5);
}

.auth-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  padding: 1.4rem 1.3rem 1.2rem;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.18s ease;
  will-change: transform;
}

.auth-modal.open .auth-modal-card {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15,23,42,0.14);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.auth-modal-close:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.5);
  color: #b91c1c;
}

.auth-modal-close:focus-visible {
  outline: none;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.62);
  color: #991b1b;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.auth-modal-close svg {
  width: 16px;
  height: 16px;
}

.auth-modal-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding-right: 2.4rem;
  flex-wrap: wrap;
}

.auth-modal-tab {
  padding: 0.45rem 0.7rem;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  color: #475569;
  border: 1px solid rgba(15,23,42,0.12);
  background: #f8fafc;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.auth-modal-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(27,67,50,0.22);
  box-shadow: 0 4px 10px rgba(15,23,42,0.08);
}

.auth-modal-tab.active {
  color: #1b4332;
  border-color: rgba(27,67,50,0.28);
  background: #e8f3ec;
  box-shadow: 0 6px 12px rgba(27,67,50,0.12);
}

.auth-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.auth-modal-sub {
  font-size: 13px;
  color: #5f6b7a;
  margin-bottom: 1rem;
}

.auth-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}

.auth-panel.active {
  display: block;
  animation: authPanelIn 0.2s ease both;
}

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

.auth-modal-alert {
  border-radius: 10px;
  padding: 0.62rem 0.7rem;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.auth-modal-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-modal-alert--success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.auth-modal-field {
  position: relative;
}

.auth-modal-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-family: inherit;
  font-size: 14px;
  color: #0f172a;
}

.auth-modal-input:focus {
  outline: none;
  border-color: #2d6a4f;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.auth-modal-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-modal-question {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.1rem;
}

.auth-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.auth-modal-btn--primary {
  background: #1b4332;
  color: #fff;
  box-shadow: 0 8px 16px rgba(27,67,50,0.24);
}

.auth-modal-btn--primary:hover {
  background: #153427;
}

.auth-modal-btn--ghost {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav {
    height: 70px;
    padding: 0 0.95rem;
  }

  .nav-brand {
    font-size: 1.2rem;
  }

  .nav-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .nav-brand-icon svg {
    width: 15px;
    height: 15px;
  }

  .nav-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero {
    padding-top: 3.15rem;
    padding-bottom: 2.35rem;
  }

  .nav-link { display: none; }

  .features-grid { gap: 14px; }
  .feature-card { flex: 1 1 100%; max-width: 100%; min-height: unset; }
  .feature-card::before { display: none; }

  .how-steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .how-steps::before { display: none; }
  .how-step-desc { max-width: none; }

  .preview-section {
    padding: 0.95rem 0.85rem 2.6rem;
  }

  .preview-sidebar { display: none; }

  .preview-wrap {
    animation: none;
    border-radius: 20px;
  }

  .preview-body {
    min-height: 0;
  }

  .preview-bar {
    padding: 9px 10px;
    gap: 6px;
  }

  .preview-dot {
    width: 10px;
    height: 10px;
  }

  .preview-url {
    margin: 0 4px;
    padding: 4px 8px;
    font-size: 10.5px;
  }

  .preview-main {
    padding: 0.72rem;
  }

  .pm-bottom-row { grid-template-columns: 1fr; }
  .pm-quicklog-card { display: none; }
  .pm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pm-table {
    overflow-x: auto;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.85rem;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    margin-top: 2.4rem;
    padding-top: 1.6rem;
  }

  .hero-stat {
    min-width: 0;
  }

  .hero-stat-num {
    font-size: 1.62rem;
  }

  .hero-stat-label {
    font-size: 10.5px;
  }

  .hero-stat-divider { display: none; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .footer-item,
  .footer-item--left,
  .footer-item--center,
  .footer-item--right {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-inline: 0.95rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8.4vw, 2.7rem);
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .pm-logs-card {
    padding: 8px 8px;
  }

  .features-grid { gap: 12px; }
  .pm-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nav {
    height: 66px;
    padding: 0 0.75rem;
  }

  .nav-brand {
    font-size: 1.05rem;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-btn {
    padding: 7px 11px;
    font-size: 12.5px;
  }

  .nav-btn-outline { display: none; }

  .hero {
    padding-top: 2.55rem;
  }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn-hero-primary, .btn-hero-secondary { text-align: center; justify-content: center; }

  .hero-stats {
    gap: 0.85rem 0.65rem;
  }

  .pm-stats {
    grid-template-columns: 1fr;
  }

  .preview-section {
    padding: 0.75rem 0.6rem 2.1rem;
  }

  .preview-wrap {
    border-radius: 16px;
  }

  .preview-main {
    padding: 0.58rem;
  }

  .auth-modal {
    padding: 0.7rem;
  }

  .auth-modal-card {
    padding: 1.12rem 0.95rem 0.95rem;
  }

  .auth-modal-close {
    width: 30px;
    height: 30px;
    top: 8px;
    right: 8px;
  }

  .auth-modal-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
    padding-right: 2rem;
  }

  .auth-modal-tab {
    font-size: 11px;
    padding: 0.38rem 0.3rem;
    text-align: center;
  }

  footer {
    padding: 1.45rem 0.95rem;
  }

  .footer-item {
    font-size: 12px;
    line-height: 1.38;
  }

  .cta-btns { flex-direction: column; }
  .btn-cta-white, .btn-cta-outline { text-align: center; }
}