/* Hemmitel marketing — styles.css
   Dependency-light, system-friendly, accessible. */

:root {
  --indigo: #4f46e5;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-50: #eef2ff;
  --ink: #0f172a;
  --slate: #475569;
  --slate-400: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0b1020;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(67, 56, 202, 0.35);
  --container: 1140px;
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--indigo-700); text-decoration: none; }
img, svg { max-width: 100%; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .98rem; padding: 11px 20px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 20px -8px rgba(79,70,229,.6); }
.btn-primary:hover { background: var(--indigo-700); box-shadow: 0 12px 26px -8px rgba(79,70,229,.7); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo-700); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
  color: var(--indigo); margin: 0 0 .6rem;
}
.grad {
  background: linear-gradient(100deg, #6366f1, #4338ca 60%, #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.brand-mark { display: inline-flex; }
.main-nav { display: flex; gap: 26px; margin-left: 8px; flex: 1; }
.main-nav a { color: var(--slate); font-weight: 500; font-size: .96rem; }
.main-nav a:hover { color: var(--ink); }
.header-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: 10px 4px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--bg-alt); }
.mobile-nav .btn { margin-top: 8px; }
.mobile-nav.open { display: flex; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: -1;
  background:
    radial-gradient(40% 50% at 75% 20%, rgba(124,58,237,.18), transparent 70%),
    radial-gradient(45% 55% at 15% 10%, rgba(79,70,229,.20), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy .lede { font-size: 1.2rem; color: var(--slate); max-width: 36ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 14px; }
.hero-note { font-size: .9rem; color: var(--slate-400); }

/* Hero mockup */
.hero-visual { perspective: 1400px; }
.mock {
  display: grid; grid-template-columns: 64px 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); transform: rotateY(-9deg) rotateX(4deg) translateZ(0);
}
.mock-side { background: var(--bg-dark); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.mock-logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg,#6366f1,#4338ca); }
.mock-nav { height: 9px; border-radius: 5px; background: #334155; }
.mock-nav.active { background: #6366f1; }
.mock-main { padding: 20px; display: flex; flex-direction: column; gap: 16px; background: var(--bg-alt); }
.mock-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mock-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mock-kpi b { display: block; font-size: 1.25rem; color: var(--ink); }
.mock-kpi small { color: var(--slate-400); font-size: .72rem; }
.mock-board { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; }
.mock-board .rm { aspect-ratio: 1; border-radius: 8px; background: #e2e8f0; }
.rm.ok { background: #d1fae5; } .rm.busy { background: #c7d2fe; } .rm.dirty { background: #fde68a; }
.mock-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.mock-bars span { flex: 1; background: linear-gradient(180deg,#818cf8,#4f46e5); border-radius: 4px 4px 0 0; }

/* Trust */
.trust { text-align: center; margin-top: 56px; }
.trust > p { color: var(--slate-400); font-size: .9rem; margin-bottom: 12px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; color: var(--slate); font-weight: 600; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-sub { color: var(--slate); font-size: 1.1rem; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.fi {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem;
  background: var(--indigo-50); margin-bottom: 14px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--slate); font-size: .96rem; margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step-no {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--indigo); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.steps p { color: var(--slate); margin: 0; }

/* Who */
.who-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 999px;
  background: #dcfce7; color: #15803d; display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}
.who-card { background: linear-gradient(160deg,#1e1b4b,#312e81); color: #e0e7ff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.who-card blockquote { margin: 0 0 20px; font-size: 1.18rem; line-height: 1.5; font-weight: 500; }
.who-by { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 999px; background: #6366f1; color: #fff; display: grid; place-items: center; font-weight: 700; }
.who-by strong { display: block; }
.who-by small { color: #a5b4fc; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--indigo); box-shadow: var(--shadow-lg); position: relative; }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--indigo); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.plan-price { font-size: 1rem; color: var(--slate); margin: 6px 0 4px; }
.plan-price span { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.plan-for { color: var(--slate); font-size: .92rem; min-height: 42px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 24px; display: grid; gap: 10px; flex: 1; }
.plan ul li { position: relative; padding-left: 26px; color: var(--ink); font-size: .96rem; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px;
  transition: border-color .2s;
}
.faq details[open] { border-color: #c7d2fe; }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 16px 30px 16px 0; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--indigo); font-weight: 400; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--slate); margin: 0 0 16px; }

/* CTA */
.cta { background: linear-gradient(135deg,#4338ca,#6d28d9); color: #fff; padding: 84px 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #ddd6fe; max-width: 52ch; margin: 0 auto 8px; }
.cta-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 26px 0 12px; }
.cta-form input {
  min-width: 280px; padding: 14px 18px; border-radius: 999px; border: 0; font-size: 1rem; font-family: inherit;
}
.cta-fine { font-size: .85rem; color: #c4b5fd; }

/* Footer */
.site-footer { background: var(--bg-dark); color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.brand-light .brand-name { color: #fff; }
.footer-brand p { color: var(--slate-400); max-width: 34ch; margin-top: 12px; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer nav a { display: block; color: #cbd5e1; padding: 5px 0; font-size: .95rem; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px; color: var(--slate-400); font-size: .85rem; flex-wrap: wrap; gap: 8px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .who-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .steps, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .mock { transform: none; }
}

:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; border-radius: 6px; }
