/* E-label.id — v2 draft styles
   Direction: DESIGN_PREFERENCE.md §4. White ground, near-black ink, one blue, one grotesk.
   Radii: 24 (visual cards, panels) · 16 (nav) · 8 (buttons, inputs, tabs). Section spacing constant. */

:root {
  --bg: #ffffff;
  --ink: #0e1116;
  --muted: #5b6470;
  --line: #e6e8ec;
  --panel: #f5f6f8;
  --accent: #c8102e;          /* label promotion red */
  --accent-hover: #a80d26;
  --accent-ink: #ffffff;

  --r-card: 24px;
  --r-nav: 16px;
  --r-ctl: 8px;

  --container: 1200px;
  --gutter: 24px;
  --section: 120px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-ctl); z-index: 100;
}
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin-bottom: 40px; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 20px; color: var(--muted); }
.note { color: var(--muted); font-size: 16px; margin-top: 24px; }
small, .small { font-size: 15px; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.container.narrow { max-width: 760px; }
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: var(--r-ctl);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap;
  border: 1.5px solid var(--accent); cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: rgba(200, 16, 46, 0.06); color: var(--accent-hover); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  height: var(--nav-h); padding: 0 12px 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(245, 246, 248, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(14, 17, 22, 0.05); border-radius: var(--r-nav);
  z-index: 50;
}
.brand { font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 16px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: var(--r-ctl);
  border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
}
.lang-switch:hover { background: var(--panel); text-decoration: none; }
.nowrap { white-space: nowrap; }
.mobile-menu .lang-switch { border: 0; height: auto; padding: 12px 14px; font-size: 16px; font-weight: 500; }
.menu-btn {
  display: none; height: 40px; padding: 0 14px; border-radius: var(--r-ctl);
  background: transparent; border: 1.5px solid var(--line); color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.mobile-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-nav);
  padding: 8px; display: grid;
}
.mobile-menu a { padding: 12px 14px; color: var(--ink); font-weight: 500; border-radius: var(--r-ctl); }
.mobile-menu a:hover { background: var(--panel); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + 16px + 96px); padding-bottom: var(--section); }
.hero-copy { max-width: 800px; margin: 0 auto 56px; text-align: center; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lede { max-width: 640px; margin: 0 auto 32px; }
.hero-copy .cta-row { justify-content: center; }
.hero-visual { aspect-ratio: 16 / 9; }

/* ---------- Placeholder ---------- */
.ph {
  margin: 0; width: 100%; aspect-ratio: var(--ratio, 16 / 9);
  display: grid; place-items: center; padding: 32px;
  border: 2px dashed #b9c0ca; border-radius: var(--r-card);
  background: repeating-linear-gradient(-45deg, #f7f8fa 0 14px, #f1f3f6 14px 28px);
}
.ph figcaption { max-width: 62ch; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ph-kind { display: inline-block; margin-bottom: 10px; color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: 0.01em; }
.ph-source { margin-top: 10px; font-size: 13px; }
.ph strong { color: var(--ink); }

/* ---------- Media cards (real assets) ---------- */
.media {
  position: relative; margin: 0; width: 100%; aspect-ratio: var(--ratio, 16 / 9);
  border-radius: var(--r-card); overflow: hidden; background: var(--panel);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Keep the focal promotion inside both desktop and mobile crops. */
.hero-visual img, .hero-visual video { object-position: 50% 50%; }
.hero-video-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  min-width: 76px; height: 40px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px;
  background: rgba(14, 17, 22, 0.76); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.hero-video-toggle:hover { background: rgba(14, 17, 22, 0.9); }
.tabpanel .media { background: #fff; }

/* ---------- Tabs (What is installed) ---------- */
.tabs-shell { background: var(--panel); border-radius: var(--r-card); padding: 40px; }
.tablist { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-ctl); margin-bottom: 36px; }
.tab {
  height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: transparent;
  color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--accent); color: #fff; }
.tab-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 760px; margin-bottom: 32px; }
.tab-copy p { color: var(--muted); }
.tabpanel .ph { background-color: #fff; }

/* ---------- Steps (How it works) ---------- */
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { padding-top: 20px; border-top: 2px solid var(--ink); }
.step-n { display: block; color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* ---------- Benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.benefit { position: relative; margin: 0; background: var(--panel); border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 9; }
.benefit-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* Photos are rendered with the left 48% and bottom 38% empty; the copy stays inside that band. */
.benefit-copy { position: absolute; left: 32px; bottom: 32px; z-index: 1; width: 46%; }
.benefit-copy h3 { font-size: 22px; margin: 0; }
.benefit-flag { color: var(--accent); font-size: 16px; font-weight: 600; margin: 12px 0 0; }
.benefit-copy .btn { margin-top: 16px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.pricing h2 { margin-bottom: 16px; }
.pricing .lede { margin-bottom: 20px; }
.pricing .cta-row { margin-top: 32px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 20px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 500; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 15px; }
input, select {
  height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-ctl);
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; width: 100%;
}
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--accent); }
.field-error { margin: 0; min-height: 0; color: var(--accent); font-size: 14px; font-weight: 600; }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button:disabled { opacity: 0.6; cursor: progress; }
.form-note { color: var(--muted); font-size: 15px; margin-top: 12px; }
.form-status { font-size: 15px; font-weight: 600; margin-top: 8px; min-height: 1.4em; }
.form-status.ok { color: #1c6b3a; }
.form-status.err { color: var(--accent); }

.contact-aside { background: var(--panel); border-radius: var(--r-card); padding: 32px; }
.contact-aside h3 { font-size: 18px; margin-bottom: 12px; }
.contact-aside h3 + a { display: inline-flex; }
.contact-aside .btn { width: 100%; }
.aside-note { color: var(--muted); font-size: 14px; margin: 10px 0 24px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 120px; color: var(--muted); font-size: 15px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin: 12px 0; }
.footer nav a { color: var(--ink); }
.footer .legal { margin-top: 8px; }

/* ---------- Mobile bar ---------- */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95); border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1fr; gap: 12px;
}
.mobile-bar .btn-outline { background: #fff; }
.mobile-bar .btn { min-width: 0; padding: 0 12px; }
.mobile-bar { transition: transform 0.2s ease; }
.mobile-bar.is-offscreen { transform: translateY(110%); }
@media (prefers-reduced-motion: reduce) { .mobile-bar { transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  :root { --section: 72px; }
  body { padding-bottom: 80px; }
  .nav { padding: 0 8px 0 16px; }
  .nav-links, .nav-actions .btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .hero { padding-top: calc(var(--nav-h) + 16px + 48px); }
  .hero-copy { text-align: left; margin-bottom: 32px; }
  .hero-copy .lede { margin-inline: 0; }
  .hero-copy .cta-row { justify-content: flex-start; }
  .hero-visual { aspect-ratio: 4 / 5; }
  .hero-visual img, .hero-visual video { object-position: 50% 50%; }
  .ph { padding: 20px; }
  .tabs-shell { padding: 20px; }
  .tablist { display: grid; grid-template-columns: 1fr; width: 100%; }
  .benefit-grid { grid-template-columns: 1fr; gap: 16px; }
  /* Phone: photo on top, copy below, so the title never covers the subject on a narrow tile. */
  .benefit { aspect-ratio: auto; }
  .benefit-img { position: static; height: auto; aspect-ratio: 16 / 9; }
  .benefit-copy { position: static; width: auto; padding: 20px; }
  .quote-form { grid-template-columns: 1fr; }
  .mobile-bar { display: grid; }
  .footer { padding-bottom: 48px; }
}
