/* Original: @import of Rubik 300–900 from fonts.googleapis.com. Same font, self-hosted: */
@import url('/site/fonts/rubik.css');

:root {
  --bg: #ffffff;
  --bg-elevated: #f5f0e8;
  --card: #ffffff;
  --card-hover: #f5f0e8;
  --border: rgba(31,31,31,.10);
  --border-strong: rgba(31,31,31,.18);

  --gold-300: #4cc46c;
  --gold-400: #2fa84e;
  --gold-500: #24a148;
  --gold-600: #187a38;
  --gold-glow: rgba(36,161,72,.28);
  --gold-gradient: linear-gradient(135deg, var(--gold-300), var(--gold-500));

  --text: #1f1f1f;
  --text-dim: #666666;
  --text-faint: #8a8a8a;

  --whatsapp: #25d366;
  --whatsapp-dark: #1fa855;
  --danger: #dc2626;
  --danger-bg: rgba(220,38,38,.08);
  --success: #24a148;
  --warn: #b8860b;
  --warn-bg: rgba(184,134,11,.1);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-gold: 0 16px 36px -16px var(--gold-glow);
  --shadow-card: 0 16px 40px -22px rgba(31,31,31,.18);

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: 'Rubik', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: inherit;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* iPhone home-indicator clearance (viewport-fit=cover is set in head.ejs) */
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
strong { font-weight: 700; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 24px 60px -18px var(--gold-glow); }
.btn-primary:active { transform: translateY(0) scale(.99); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-400); transform: translateY(-1px); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 999px; }
.btn-lg { padding: 18px 38px; font-size: 18px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: #fbf4ee;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -8px var(--gold-glow);
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark .mascot-icon { width: 100%; height: 100%; object-fit: cover; }
.brand-word { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand-word .il { color: var(--gold-500); }
.nav-links { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lang-switch {
  display: flex; align-items: center; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px; flex-shrink: 0; gap: 2px;
}
.lang-switch button {
  border: none; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 700; color: var(--text-dim);
  padding: 5px 11px; border-radius: 999px; transition: background .2s ease, color .2s ease;
}
.lang-switch button.is-active { background: var(--gold-gradient); color: #ffffff; }

.nav-links .link { color: var(--text-dim); font-size: 15px; padding: 8px 6px; }
.nav-links .link:hover { color: var(--text); }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-circle {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(36,161,72,.16), rgba(36,161,72,.04));
  border: 1px solid rgba(36,161,72,.22);
  color: var(--gold-400);
  margin-bottom: 18px;
}
.icon-circle.alt { background: linear-gradient(160deg, rgba(37,211,102,.14), rgba(37,211,102,.03)); border-color: rgba(37,211,102,.22); color: var(--whatsapp); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px;
  background: radial-gradient(closest-side, rgba(36,161,72,.18), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(36,161,72,.1); border: 1px solid rgba(36,161,72,.25); color: var(--gold-400);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  margin-bottom: 22px;
}
.eyebrow-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 3px rgba(37,211,102,.25); }
.hero-tagline { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.hero h1 { font-size: 52px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; }
.hero h1 .hl, .hero-tagline .hl, .hero p.sub .hl {
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub .hl { font-weight: 700; }
.hero p.sub { font-size: 19px; color: var(--text-dim); max-width: 540px; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--text-faint); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .icon { width: 15px; height: 15px; }

/* ---------- WhatsApp phone mockup ---------- */
.phone {
  position: relative; margin: 0 auto; width: 290px;
  border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #1c1d21, #0d0e10);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02);
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #0d0e10; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen { background: #0b141a; border-radius: 32px; overflow: hidden; min-height: 480px; display: flex; flex-direction: column; }
.wa-header { background: #1f2c34; padding: 34px 16px 14px; display: flex; align-items: center; gap: 10px; }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; background: #fbf4ee; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.wa-avatar .mascot-icon { width: 100%; height: 100%; object-fit: cover; }
.wa-name { font-size: 14px; font-weight: 700; color: #f0f0f0; }
.wa-status { font-size: 11px; color: #8fa89b; }
.wa-body { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; background: #0b141a repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 40px); direction: ltr; }
#heroWaBody { height: 340px; flex: none; overflow-y: hidden; scroll-behavior: smooth; }
.wa-bubble { direction: rtl; }
.wa-bubble { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; position: relative; flex-shrink: 0; }
.wa-bubble.in { align-self: flex-start; background: #202c33; color: #e9edef; border-radius: 4px 12px 12px 12px; }
.wa-bubble.out { align-self: flex-end; background: #005c4b; color: #e9edef; border-radius: 12px 4px 12px 12px; }
.wa-bubble.enter { animation: bubble-in .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.phone-live { animation: phone-breathe 7s ease-in-out infinite; }
@keyframes phone-breathe { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(.4deg); } }
@media (prefers-reduced-motion: reduce) {
  .phone-live { animation: none; }
  .wa-bubble.enter { animation: none; }
  #heroWaBody { scroll-behavior: auto; }
}
.wa-time { font-size: 9.5px; color: #8fa89b; margin-top: 3px; display: block; text-align: left; }
.wa-inputbar { padding: 10px 12px 16px; display: flex; align-items: center; gap: 8px; background: #1f2c34; }
.wa-input { flex: 1; background: #2a3942; border-radius: 999px; height: 32px; }
.wa-mic { width: 32px; height: 32px; border-radius: 50%; background: var(--whatsapp-dark); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.phone-float {
  position: absolute; background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 12px 14px; font-size: 12.5px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 8px;
}
.phone-float.f1 { top: 8%; right: -8%; }
.phone-float.f2 { bottom: 12%; left: -10%; }
.phone-float .icon { width: 16px; height: 16px; color: var(--gold-400); flex-shrink: 0; }

/* ---------- Mascot ---------- */
.mascot-icon { display: block; width: 100%; height: 100%; }
.mascot-full {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 20px 30px rgba(24,122,56,.22));
}
.hero-mascot-wrap { position: relative; }
.hero-mascot {
  position: absolute; bottom: -28px; left: -70px; width: 168px; z-index: 3;
  animation: mascot-float 4.5s ease-in-out infinite;
}
@keyframes mascot-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@media (max-width: 960px) { .hero-mascot { left: -36px; width: 138px; bottom: -18px; } }
@media (max-width: 480px) { .hero-mascot { display: none; } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--bg-elevated); }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title.left { text-align: start; margin-bottom: 32px; }
.section-title .eyebrow { color: var(--gold-500); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.section-title h2 { font-size: 36px; margin: 12px 0; font-weight: 800; letter-spacing: -.01em; }
.section-title p { color: var(--text-dim); max-width: 560px; margin: 0 auto; font-size: 16px; }
.section-title.left p { margin: 0; }

/* ---------- Problem/Solution ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.split-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-dim); }
.split-list.good li { color: var(--text); }
.chip-x { width: 22px; height: 22px; border-radius: 50%; background: var(--danger-bg); color: var(--danger); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 1px; }
.chip-check { width: 22px; height: 22px; border-radius: 50%; background: rgba(36,161,72,.12); color: var(--gold-400); flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.chip-check .icon { width: 13px; height: 13px; stroke-width: 2.5; }

/* ---------- Feature grid ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.feature-card:hover { border-color: var(--border-strong); background: var(--card-hover); transform: translateY(-3px); }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.feature-card p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

/* ---------- Testimonials ---------- */
.t-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; }
.t-quote { font-size: 14.5px; color: var(--text); margin: 0 0 20px; line-height: 1.7; }
.t-person { display: flex; align-items: center; gap: 10px; }
.t-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-gradient); color: #ffffff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t-name { font-size: 14px; font-weight: 700; }
.t-role { font-size: 12.5px; color: var(--text-faint); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 780px; margin: 0 auto; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 34px;
  display: flex; flex-direction: column; position: relative;
}
.price-card.featured {
  border: 1px solid rgba(36,161,72,.4);
  background: linear-gradient(180deg, rgba(36,161,72,.07), var(--card) 40%);
  box-shadow: 0 30px 70px -30px var(--gold-glow);
}
.price-ribbon {
  position: absolute; top: -14px; right: 30px;
  background: var(--gold-gradient); color: #ffffff; font-size: 12px; font-weight: 800;
  padding: 6px 16px; border-radius: 999px;
}
.price-card h3 { margin: 0; font-size: 15px; color: var(--text-dim); font-weight: 600; }
.price-row { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 2px; }
.price-num { font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.price-unit { font-size: 15px; color: var(--text-dim); }
.price-sub { font-size: 13.5px; color: var(--text-faint); margin-bottom: 22px; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-list li { font-size: 14.5px; display: flex; gap: 10px; align-items: center; }
.price-list .icon { width: 16px; height: 16px; color: var(--gold-400); stroke-width: 2.5; flex-shrink: 0; }
.price-trial-note { text-align: center; font-size: 13px; color: var(--text-faint); margin-top: 28px; }

/* ---------- Choose plan page ---------- */
.plan-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 780px; margin: 40px auto 0; }
.plan-card {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--r-xl); padding: 30px;
  cursor: pointer; transition: border-color .2s ease, transform .2s ease;
  display: block;
}
.plan-card:hover { transform: translateY(-2px); }
.plan-card.selected { border-color: var(--gold-500); box-shadow: var(--shadow-gold); }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 15.5px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--text-dim); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 220px; padding-bottom: 22px; }
.faq-plus { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; transition: transform .25s ease, border-color .25s ease; }
.faq-item.open .faq-plus { transform: rotate(45deg); border-color: var(--gold-500); color: var(--gold-500); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta h2 { font-size: 34px; margin-bottom: 14px; }
.final-cta p { color: var(--text-dim); margin-bottom: 30px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 48px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 14px; }
.footer-links { display: flex; gap: 20px; font-size: 13.5px; color: var(--text-faint); }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 84vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 40px; width: 100%; max-width: 420px; position: relative; z-index: 1; box-shadow: var(--shadow-card); }
.auth-card h1 { font-size: 26px; margin: 0 0 6px; text-align: center; font-weight: 800; }
.auth-card .sub { text-align: center; color: var(--text-dim); font-size: 14px; margin-bottom: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
.field input {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font-size: 16px; font-family: inherit;
  transition: border-color .2s ease;
}
/* 16px minimum on every text input - anything smaller makes iOS Safari
   auto-zoom the page when the field is focused. */
input, select, textarea { font-size: 16px; }
.field input:focus { outline: none; border-color: var(--gold-500); }
.error-box { background: var(--danger-bg); border: 1px solid rgba(255,92,92,.35); color: var(--danger); padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 18px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--text-dim); margin-top: 22px; }
.auth-alt a { color: var(--gold-400); font-weight: 600; }

/* ---------- Dashboard ---------- */
.dash-header { border-bottom: 1px solid var(--border); padding: 18px 0; background: var(--bg-elevated); padding-top: calc(18px + env(safe-area-inset-top)); }
.dash-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-header-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dash-shell { padding: 36px 0 80px; }

/* ---------- Welcome ---------- */
.dash-welcome { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.dash-welcome h1 { font-size: 28px; margin: 0 0 8px; font-weight: 800; letter-spacing: -.01em; }
.dash-welcome .lead { margin: 0; color: var(--text-dim); font-size: 15.5px; max-width: 480px; }
.dash-welcome .btn .icon { width: 17px; height: 17px; }

/* ---------- Stat cards ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.stat-card:hover { border-color: rgba(36,161,72,.35); background: var(--card-hover); transform: translateY(-3px); }
.stat-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.stat-icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(36,161,72,.18), rgba(36,161,72,.05));
  border: 1px solid rgba(36,161,72,.22); color: var(--gold-400);
}
.stat-icon .icon { width: 19px; height: 19px; }
.stat-number { font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -.02em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.stat-desc { font-size: 12.5px; color: var(--text-faint); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.stat-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--gold-400); }
.stat-link .icon { width: 14px; height: 14px; stroke-width: 2.5; transform: scaleX(-1); }
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .stat-number { font-size: 34px; } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(52,211,153,.25); animation: live-pulse 1.8s ease-in-out infinite; margin-right: 2px; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.list-simple.flash-in { animation: flash-in .9s ease; }
@keyframes flash-in { 0% { background: rgba(36,161,72,.18); } 100% { background: transparent; } }
.dash-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; }

/* ---------- Dashboard preview (landing page) ---------- */
.dash-preview-window {
  background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: 0 30px 70px -30px rgba(31,31,31,.28);
}
.dash-preview-bar { display: flex; align-items: center; gap: 6px; padding: 14px 16px; background: #ece5d8; border-bottom: 1px solid var(--border); }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.dash-preview-url { margin-right: 12px; font-size: 12px; color: var(--text-faint); background: var(--bg); border-radius: 999px; padding: 4px 14px; flex: 1; text-align: center; direction: ltr; }
.dash-preview-body { padding: 22px; }
.dash-preview-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash-preview-body .panel:last-child { margin-bottom: 0; }
.dash-preview-body .panel h2 { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 14px; }
.dash-preview-body .panel h2 .icon { width: 16px; height: 16px; color: var(--gold-400); }
@media (max-width: 480px) { .dash-preview-body { padding: 16px; } }
.panel h2 { font-size: 15.5px; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.panel h2 .icon { width: 18px; height: 18px; color: var(--gold-400); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-pill.trialing { background: rgba(36,161,72,.14); color: var(--gold-400); }
.status-pill.active { background: rgba(52,211,153,.14); color: var(--success); }
.status-pill.past_due { background: var(--warn-bg); color: var(--warn); }
.status-pill.canceled, .status-pill.none { background: var(--border); color: var(--text-dim); }
.banner { border-radius: var(--r-md); padding: 16px 18px; font-size: 14px; margin-bottom: 20px; display: flex; gap: 12px; align-items: flex-start; }
.banner.warn { background: var(--warn-bg); border: 1px solid rgba(255,184,107,.3); color: var(--warn); }
.banner.info { background: rgba(36,161,72,.08); border: 1px solid rgba(36,161,72,.25); color: var(--gold-300); }
.code-box {
  background: var(--bg-elevated); border: 1px dashed var(--gold-500); border-radius: var(--r-sm);
  padding: 16px; text-align: center; font-size: 22px; font-weight: 800; letter-spacing: 3px; color: var(--gold-400);
  margin: 14px 0; direction: ltr;
}
.step { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.step .n { background: var(--gold-gradient); color: #ffffff; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.list-simple { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.list-simple li { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.list-simple .meta { color: var(--text-faint); font-size: 12px; white-space: nowrap; }
.empty-state { color: var(--text-faint); font-size: 14px; text-align: center; padding: 24px 0; }

/* ---------- Item actions (delete / toggle-done / edit) ---------- */
.list-simple li .item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-simple li .item-text { overflow: hidden; text-overflow: ellipsis; }
.list-simple li.item-done .item-text { text-decoration: line-through; color: var(--text-faint); }
.item-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.item-actions button {
  border: none; background: transparent; cursor: pointer; font-size: 15px; line-height: 1;
  width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease; flex-shrink: 0;
}
.item-actions button:hover { background: var(--border); transform: scale(1.08); }
.item-actions .item-delete:hover { background: var(--danger-bg); }
.list-name-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 6px; }
.list-name-row p { font-weight: 700; margin: 0; }
.item-edit-input {
  flex: 1; font-family: inherit; font-size: 16px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--gold-500); background: var(--card); color: var(--text); min-width: 0;
}

/* ---------- Account details panel ---------- */
.account-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.account-row:last-of-type { border-bottom: none; }
.account-label { color: var(--text-dim); flex-shrink: 0; }
.account-value { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-value-group { display: flex; align-items: center; gap: 4px; min-width: 0; }
.account-value-group .account-value { direction: ltr; text-align: left; }
.account-note {
  font-size: 12.5px; color: var(--warn); background: var(--warn-bg);
  border-radius: var(--r-sm); padding: 10px 12px; margin: 8px 0 0; line-height: 1.5;
}

/* ---------- Confirm dialog ---------- */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(31,31,31,.45); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.confirm-overlay[hidden] { display: none; }
.confirm-box {
  background: var(--card); border-radius: var(--r-lg); padding: 26px; max-width: 340px; width: 100%;
  box-shadow: var(--shadow-card); text-align: center;
}
.confirm-box p { font-size: 16px; font-weight: 600; margin: 0 0 20px; }
.confirm-box .confirm-buttons { display: flex; gap: 10px; }
.confirm-box .confirm-buttons .btn { flex: 1; }
.locked-panel { text-align: center; padding: 60px 30px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); }
.locked-panel .icon-circle { margin: 0 auto 20px; }

.msg-box { padding: 100px 20px 80px; text-align: center; max-width: 480px; margin: 0 auto; }
.msg-box .icon-circle { margin: 0 auto 22px; width: 64px; height: 64px; }
.msg-box .icon-circle .icon { width: 28px; height: 28px; }
.msg-box h1 { font-size: 26px; margin-bottom: 10px; font-weight: 800; }
.msg-box p { color: var(--text-dim); margin-bottom: 28px; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .phone { margin-top: 20px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .dash-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero { padding: 44px 0 20px; }
  .hero h1 { font-size: 34px; }
  .hero p.sub { font-size: 16px; }
  .section-title h2 { font-size: 27px; }
  .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid, .plan-picker { grid-template-columns: 1fr; }
  .phone { width: 250px; }
  .phone-float { display: none; }
  .btn-lg { padding: 15px 28px; font-size: 16px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 29px; }
  footer .wrap { flex-direction: column; text-align: center; }
}

/* ---------- Mobile nav (compact header instead of shrinking everything) ---------- */
@media (max-width: 480px) {
  .nav .wrap { height: 60px; gap: 6px; }
  .brand { gap: 6px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .brand-word { font-size: 15px; }
  .nav-links { gap: 6px; }
  .lang-switch { padding: 2px; }
  .lang-switch button { padding: 4px 8px; font-size: 11px; }
  .nav-links .link { font-size: 12.5px; padding: 6px 4px; }
  .nav-links .btn-sm { padding: 8px 11px; font-size: 12.5px; }
}
@media (max-width: 360px) {
  .brand-word { font-size: 13px; }
  .nav-links .link { font-size: 11.5px; }
  .nav-links .btn-sm { padding: 7px 9px; font-size: 11.5px; }
}

/* ---------- Mobile dashboard ---------- */
@media (max-width: 640px) {
  .dash-welcome { flex-direction: column; align-items: stretch; }
  .dash-welcome .btn { width: 100%; }
  .dash-welcome h1 { font-size: 23px; }
  .panel { padding: 16px; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-number { font-size: 28px; margin-bottom: 6px; }
  .stat-label { font-size: 13px; }
  .stat-desc { font-size: 11.5px; }
  /* Text + meta + actions no longer share one cramped row - the item's
     own text gets the full first line, meta and the action buttons share
     the line below it, so nothing has to shrink or clip. */
  .list-simple li { flex-wrap: wrap; padding: 12px; }
  .list-simple li .item-text { flex-basis: 100%; white-space: normal; }
  .list-simple li .meta { order: 2; }
  .list-simple li .item-actions { order: 3; margin-inline-start: auto; }
  /* Buttons you tap with a thumb need real room, not a 30px desktop hit
     target meant for a mouse pointer. */
  .item-actions button { width: 38px; height: 38px; font-size: 16px; }
  .list-name-row { flex-wrap: wrap; }
}
