/* Profit Log — Marketing Website Design System */

:root {
  --navy: #0a0f1a;
  --navy-2: #111827;
  --navy-3: #1a2332;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --gold: #fbbf24;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --muted: #64748b;
  --text: #0f172a;
  --text-soft: #475569;
  --border: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-hero: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max-width: 1180px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--emerald-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--emerald);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
  box-shadow: 0 4px 14px var(--emerald-glow);
}

.btn-primary:hover {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline-dark:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.site-header--light {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
}

.site-header--light .logo-text,
.site-header--light .nav-link {
  color: var(--text);
}

.site-header--light .nav-link:hover {
  color: var(--emerald-dark);
}

.site-header--light .nav-toggle-bar {
  background: var(--text);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  margin-left: 8px;
}

/* ——— Hero ——— */

.hero {
  background: var(--navy);
  color: #fff;
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, var(--emerald-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--emerald);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-stars svg {
  color: var(--gold);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.trust-badge svg {
  color: var(--emerald);
}

/* ——— Hero Mockups ——— */

.hero-visual {
  position: relative;
  min-height: 380px;
}

.mockup-laptop {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: var(--radius-lg);
  padding: 12px 12px 0;
  box-shadow: var(--shadow-hero);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-laptop-bar {
  height: 8px;
  background: #334155;
  border-radius: 4px 4px 0 0;
  margin-bottom: 8px;
  display: flex;
  gap: 4px;
  padding: 0 8px;
  align-items: center;
}

.mockup-laptop-bar::before,
.mockup-laptop-bar::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
}

.mockup-screen {
  background: #f8fafc;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 16px;
  min-height: 220px;
}

.mockup-dash-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.mockup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.mockup-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}

.mockup-stat-label {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.mockup-stat-value.emerald {
  color: var(--emerald-dark);
}

.mockup-chart {
  height: 60px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, transparent 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.mockup-chart-line {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: 36px;
  border-bottom: 2px solid var(--emerald);
  border-left: 2px solid transparent;
  clip-path: polygon(0 100%, 15% 70%, 35% 80%, 55% 40%, 75% 50%, 100% 20%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.25), transparent);
}

.mockup-phone {
  position: absolute;
  right: -8px;
  bottom: 20px;
  width: 120px;
  background: #1e293b;
  border-radius: 20px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  border: 2px solid #334155;
}

.mockup-phone-screen {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  min-height: 160px;
}

.mockup-phone-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.mockup-invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 8px;
}

.mockup-invoice-row:last-child {
  border-bottom: none;
}

.status-pill {
  font-size: 7px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 100px;
}

.status-paid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-dark);
}

.status-pending {
  background: rgba(251, 191, 36, 0.2);
  color: #b45309;
}

.mockup-float-card {
  position: absolute;
  left: -20px;
  top: 40px;
  width: 140px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.mockup-float-card .inv-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}

.mockup-float-card .inv-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0 8px;
}

.mockup-float-card .btn-mini {
  font-size: 9px;
  padding: 4px 8px;
  background: var(--emerald);
  color: #fff;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
}

/* ——— Sections ——— */

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--navy);
  color: #fff;
}

.section-soft {
  background: var(--surface-soft);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-soft);
  font-size: 1.0625rem;
  margin: 0;
}

.section-dark .section-header h2 {
  color: #fff;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.65);
}

/* ——— Features ——— */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--emerald);
}

.feature-card h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}

/* ——— Templates ——— */

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.template-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.template-preview {
  height: 140px;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.template-preview::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  opacity: 0.5;
}

.template-preview-line {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 6px;
  width: 60%;
  background: rgba(255, 255, 255, 0.5);
}

.template-preview-line.short {
  width: 40%;
}

.template-preview-line.accent {
  width: 30%;
  background: var(--emerald);
}

/* Template preview themes */
.tpl-basic { background: linear-gradient(160deg, #f1f5f9, #e2e8f0); }
.tpl-basic .template-preview-line { background: #94a3b8; }

.tpl-modern { background: linear-gradient(160deg, #0f172a, #1e3a5f); }
.tpl-agency { background: linear-gradient(160deg, #7c3aed, #4c1d95); }
.tpl-minimal { background: linear-gradient(160deg, #fafafa, #e5e5e5); }
.tpl-minimal .template-preview-line { background: #a3a3a3; }

.tpl-bilingual { background: linear-gradient(160deg, #065f46, #0f172a); }
.tpl-executive { background: linear-gradient(160deg, #0a0f1a, #1e3a5f); }
.tpl-emerald { background: linear-gradient(160deg, #064e3b, #10b981); }
.tpl-creative { background: linear-gradient(160deg, #ec4899, #8b5cf6); }
.tpl-consultant { background: linear-gradient(160deg, #44403c, #78716c); }
.tpl-tech { background: linear-gradient(160deg, #06b6d4, #0f172a); }
.tpl-luxury { background: linear-gradient(160deg, #171717, #404040); }
.tpl-international { background: linear-gradient(160deg, #2563eb, #dbeafe); }
.tpl-international .template-preview-line { background: rgba(255,255,255,0.7); }

.template-body {
  padding: 18px 20px 20px;
}

.template-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.template-body p {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
}

.badge-premium {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff;
  border-radius: 100px;
}

/* ——— Pricing ——— */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}

.pricing-card.popular {
  border-color: var(--emerald);
  box-shadow: 0 0 0 1px var(--emerald), var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 100px;
}

.pricing-tier {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-alt {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.pricing-features {
  flex: 1;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features svg {
  flex-shrink: 0;
  color: var(--emerald);
  margin-top: 2px;
}

/* ——— Trust ——— */

.trust-section {
  text-align: center;
  padding: 48px 0;
}

.trust-section p {
  font-size: 1.0625rem;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  opacity: 0.5;
}

.trust-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ——— CTA ——— */

.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
  border-radius: var(--radius-lg);
  margin: 0 24px 80px;
  max-width: calc(var(--max-width) - 48px);
  margin-left: auto;
  margin-right: auto;
}

.cta-section h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

/* ——— Footer ——— */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 24px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-nav a:hover {
  color: var(--emerald);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald);
}

/* ——— Legal Pages ——— */

.page-hero {
  background: var(--surface-soft);
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 8px;
}

.page-hero .subtitle {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.legal-toc h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}

.legal-toc a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  margin-bottom: 2px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.legal-toc a:hover,
.legal-toc a.active {
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-dark);
  border-left-color: var(--emerald);
}

.legal-content section {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.legal-content h2 {
  font-size: 1.375rem;
  margin-bottom: 16px;
  padding-top: 8px;
}

.legal-content p,
.legal-content li {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1em;
}

.legal-content li {
  margin-bottom: 0.5em;
}

/* ——— Support Page ——— */

.support-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}

.support-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.support-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-dark);
  margin-bottom: 12px;
}

.support-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.support-card p,
.support-card a {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
}

.support-card a.email-link {
  font-weight: 600;
  color: var(--emerald-dark);
}

.support-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.support-form-wrap h2 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

.form-success {
  display: none;
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  color: var(--emerald-dark);
  font-size: 14px;
  margin-bottom: 20px;
}

.form-success.visible {
  display: block;
}

/* ——— Utilities ——— */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

/* ——— Responsive ——— */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card.popular {
    transform: none;
  }

  .legal-layout,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 16px;
  }

  .legal-toc h2 {
    width: 100%;
  }

  .legal-toc a {
    font-size: 12px;
    padding: 6px 10px;
    border-left: none;
    border: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border-dark);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .site-header--light .nav {
    background: var(--surface);
    border-color: var(--border);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .nav-cta {
    margin: 8px 0 0;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .mockup-phone {
    width: 100px;
    right: 0;
  }

  .mockup-float-card {
    left: 0;
    width: 120px;
  }

  .cta-section {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .templates-grid {
    grid-template-columns: 1fr;
  }
}
