/* achtLabel — landing page styles
   Self-contained, no external fonts/assets (fast load).
   Single-goal, conversion-focused layout. */

:root {
  --bg: #0a1526;
  --bg-2: #0e1e38;
  --surface: #12233f;
  --surface-2: #16294a;
  --line: #223a5e;
  --text: #eaf1fb;
  --muted: #9fb4d4;
  --accent: #38bdf8;
  --accent-2: #22d3a6;
  --accent-strong: #0ea5e9;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 700px at 80% -10%, #16294a 0%, transparent 55%),
              radial-gradient(900px 600px at -10% 10%, #0f2c3f 0%, transparent 50%),
              var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  color: #04121f;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 10px 24px -8px rgba(56, 189, 248, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 30px -8px rgba(56, 189, 248, 0.75); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 17px 32px; font-size: 1.06rem; }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(10, 21, 38, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(10, 21, 38, 0.9); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-logo { display: block; height: 80px; width: auto; }
.brand-name { letter-spacing: 0.2px; font-size: 1.12rem; }
.brand-name.small { font-size: 1rem; }

/* ---------- Hero ---------- */
.hero { padding: 68px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}
.hero-title .accent {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 28px;
}
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-note { color: var(--muted); font-size: 0.9rem; }
.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badges li {
  font-size: 0.86rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 999px;
}
.hero-badges li::before { content: "✓ "; color: var(--accent-2); font-weight: 800; }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.label-card {
  width: 100%;
  max-width: 320px;
  background: none;
  padding: 0;
  box-shadow: none;
  border: none;
  position: relative;
  z-index: 2;
}
.label-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-strong);
  background: rgba(14, 165, 233, 0.12);
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.label-lines { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.label-lines span { height: 10px; border-radius: 4px; background: #c3d3ea; }
.label-lines span:nth-child(1) { width: 90%; }
.label-lines span.short { width: 55%; }
.label-barcode { display: flex; gap: 3px; height: 46px; align-items: stretch; margin-bottom: 14px; }
.label-barcode i { display: block; flex: 1; background: #0a1526; border-radius: 1px; }
.label-barcode i:nth-child(2n) { flex: 0.5; }
.label-barcode i:nth-child(3n) { flex: 1.6; }
.label-tags { display: flex; gap: 8px; }
.label-tags em {
  font-style: normal;
  font-weight: 800;
  font-size: 0.74rem;
  color: #0a1526;
  border: 2px solid #0a1526;
  border-radius: 5px;
  padding: 3px 8px;
}
.fanout { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.device {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 0.9rem;
  font-weight: 600;
}
.device-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.device-dot.ok { background: var(--accent-2); box-shadow: 0 0 0 4px rgba(34, 211, 166, 0.18); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
}
.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 64ch;
  margin: 0 auto 8px;
}

/* Problem */
.problem { text-align: center; border-top: 1px solid var(--line); }
.problem .section-lead { margin-bottom: 40px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--muted); font-size: 0.96rem; }

/* Value cards */
.value .section-title { text-align: center; margin-bottom: 40px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.5); }
.card-ico { font-size: 1.7rem; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 1.16rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Differentiator */
.differ { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.differ-inner { max-width: 900px; text-align: center; }
.differ-quote {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}
.differ-quote strong { color: var(--accent); font-weight: 800; }
.differ-caption { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Social proof / testimonials */
.social-proof { border-top: 1px solid var(--line); }
.social-proof .section-title { text-align: center; margin-bottom: 40px; }
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.testimonial blockquote {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.testimonial-photo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-name { font-weight: 700; color: var(--text); }
.testimonial-role { color: var(--muted); font-size: 0.94rem; }
.testimonial-company { color: var(--accent); font-size: 0.94rem; font-weight: 600; }

/* ---------- Objection handling / FAQ ---------- */
.objections { border-top: 1px solid var(--line); text-align: center; }
.objections .section-lead { margin-bottom: 36px; }
.faq {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(147, 193, 77, 0.5); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.06rem;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 16px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.faq-item p:last-child { margin-bottom: 18px; }
.faq-item ul:last-child { margin-bottom: 18px; }
.faq-item ul { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.faq-item ul li { margin-bottom: 6px; }
.faq-item ul li:last-child { margin-bottom: 0; }
.faq-item .faq-lead { font-weight: 600; color: var(--text); }

.trust-badges {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
}
.trust-badge-mark { font-size: 1.05rem; line-height: 1; }
.objections-note { margin: 28px 0 0; color: var(--muted); font-size: 1.05rem; }
.objections-note strong { color: var(--accent); font-weight: 800; }

/* ---------- Demo / Form ---------- */
.demo { border-top: 1px solid var(--line); }
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; font-size: 1.02rem; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(34, 211, 166, 0.15);
  color: var(--accent-2);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
}

.form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.form-title { margin: 0 0 20px; font-weight: 800; font-size: 1.16rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 7px; }
.req { color: var(--accent); margin-left: 3px; }
.opt { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea {
  resize: vertical;
  min-height: 48px;            /* same height as the single-line inputs */
  line-height: 1.5;
  background: var(--surface);  /* slightly lighter/gray → reads as optional */
  border-radius: var(--radius-sm);
}
.field input::placeholder,
.field textarea::placeholder { color: #6b81a6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--danger); }
.field-check { margin-bottom: 16px; }
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  user-select: none;
}
.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
}
.error {
  display: none;
  color: var(--danger);
  font-size: 0.84rem;
  margin-top: 6px;
}
.field.invalid .error { display: block; }
.form-fineprint { color: var(--muted); font-size: 0.8rem; margin: 14px 0 0; line-height: 1.5; }

/* Success state */
.form-success { text-align: center; padding: 20px 6px; }
.success-ico {
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 211, 166, 0.16);
  color: var(--accent-2);
  border-radius: 50%;
  font-size: 1.9rem;
  font-weight: 800;
}
.form-success h3 { margin: 0 0 10px; font-size: 1.3rem; }
.form-success p { color: var(--muted); margin: 0 0 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy { color: var(--muted); font-size: 0.88rem; }
.footer-link { color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.footer-link:hover { color: var(--text); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .container { padding-inline: 18px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 48px 0; }
  .stat-row { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .header-cta { display: none; } /* keep header minimal on small screens; hero CTA stays */
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-lg { width: 100%; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Light-theme adaptation for viewers who prefer light */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef3fb;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f5fc;
    --line: #d5e0f0;
    --text: #0c1a30;
    --muted: #4d5f7d;
    --shadow: 0 20px 50px -24px rgba(20, 40, 80, 0.28);
  }
  body {
    background: radial-gradient(1100px 650px at 82% -12%, #dbe8fb 0%, transparent 55%),
                radial-gradient(800px 560px at -8% 8%, #e2f3f0 0%, transparent 52%),
                var(--bg);
  }
  .site-header { background: rgba(238, 243, 251, 0.8); }
  .site-header.scrolled { background: rgba(238, 243, 251, 0.94); }
  .hero-badges li { background: #ffffff; }
  .btn-primary { color: #ffffff; }
}
