/* Eartrax — edenware.app/eartrax/
   Palette from the app: #171719 background, #F04444 primary, #FF5A52 highlight.
   The global header and footer come from /edenware-theme.css + /edenware-nav.js. */

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

:root {
  --bg: #171719;
  --surface: #222226;
  --surface-2: #1c1c20;
  --primary: #f04444;
  --primary-2: #ff5a52;
  --wine: #851e2b;
  --deep: #c62836;
  --text: #f2f0ef;
  --muted: #a7a3a3;
  --border: #3a3032;
  --radius: 18px;
}

/* The global header and footer read the --ew-* tokens, so remapping them here is
   what makes the chrome share the app palette instead of the default purple/navy. */
:root {
  --ew-bg: #121214;
  --ew-surface: #222226;
  --ew-surface-2: #1c1c20;
  --ew-border: #3a3032;
  --ew-border-light: #2b2426;
  --ew-primary: #f04444;
  --ew-primary-hover: #d93a3a;
  --ew-primary-light: #ff7a7a;
  --ew-primary-bg: rgba(240, 68, 68, 0.14);
  --ew-primary-gradient: linear-gradient(135deg, #f04444, #851e2b);
  --ew-text: #f2f0ef;
  --ew-text-secondary: #a7a3a3;
  --ew-text-muted: #8b8787;
  --ew-nav-shadow:
    0 1px 0 rgba(240, 68, 68, 0.12), 0 8px 24px rgba(0, 0, 0, 0.45);
}

html {
  scroll-padding-top: 72px;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  display: block;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.wrap.narrow {
  width: min(860px, calc(100% - 48px));
}

a {
  color: var(--primary-2);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.65rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 750;
}

h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

p {
  margin: 0;
}

.accent {
  color: var(--primary-2);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero .glow {
  position: absolute;
  inset: -240px -160px auto auto;
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle at 62% 38%,
    rgba(240, 68, 68, 0.32),
    rgba(133, 30, 43, 0.12) 44%,
    transparent 66%
  );
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid rgba(240, 68, 68, 0.45);
  border-radius: 999px;
  background: rgba(240, 68, 68, 0.09);
  color: #ffd6d4;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(240, 68, 68, 0.18);
}

.hero h1 {
  max-width: 15ch;
}

.lede {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--deep) 100%);
  color: #fff;
  box-shadow: 0 14px 32px -14px rgba(240, 68, 68, 0.85);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -14px rgba(240, 68, 68, 0.95);
}

.btn-ghost {
  background: #fff;
  color: #171719;
  border-color: #fff;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: #f4f2f1;
}

.btn.wide {
  width: 100%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  max-width: 430px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats strong {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
}

.stats span {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---------- Phone mock-up ---------- */

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.glow-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(240, 68, 68, 0.4),
    rgba(198, 40, 54, 0.12) 48%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

.phone {
  position: relative;
  width: 316px;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(160deg, #35353b, #17171a 55%);
  box-shadow:
    0 40px 70px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 90px -20px rgba(240, 68, 68, 0.55);
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 9px;
  border-radius: 999px;
  background: #0c0c0e;
  z-index: 2;
}

.phone-screen {
  border-radius: 36px;
  background: var(--bg);
  padding: 34px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 11px;
  line-height: 1.4;
}

.ph-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text);
}

.ph-sub {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.ph-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(240, 68, 68, 0.1);
  border: 1px solid rgba(240, 68, 68, 0.32);
}

.ph-led {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(240, 68, 68, 0.16);
}

.ph-status-main {
  font-weight: 650;
  font-size: 10.5px;
  color: #ffd6d4;
}

.ph-status-sub {
  font-size: 9.5px;
  color: var(--muted);
}

.ph-meter {
  position: relative;
  padding: 11px 13px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.ph-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ph-meter-head b {
  color: var(--primary-2);
  font-weight: 700;
}

.ph-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 52px;
}

.ph-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px;
  background: linear-gradient(180deg, #56565c, #3a3a40);
}

.ph-bars i.hot {
  background: linear-gradient(180deg, var(--primary-2), var(--deep));
}

.ph-threshold {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 30px;
  border-top: 1px dashed rgba(240, 68, 68, 0.75);
}

.ph-controls {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 13px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.ph-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  color: #cfcbcb;
}

.ph-row b {
  color: var(--text);
  font-weight: 650;
  font-size: 10.5px;
}

.ph-slider {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 999px;
  background: #34343a;
  overflow: hidden;
}

.ph-slider span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--deep), var(--primary-2));
}

.ph-chips {
  grid-column: 1 / -1;
  display: flex;
  gap: 5px;
}

.ph-chips span {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 9px;
}

.ph-chips span.on {
  border-color: rgba(240, 68, 68, 0.6);
  background: rgba(240, 68, 68, 0.14);
  color: #ffd6d4;
}

.ph-presets {
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #cfcbcb;
}

.ph-presets .ph-chips {
  margin-top: 7px;
}

.ph-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 14px;
  background: linear-gradient(
    120deg,
    rgba(240, 68, 68, 0.16),
    rgba(133, 30, 43, 0.12)
  );
  border: 1px solid rgba(240, 68, 68, 0.3);
  font-size: 10px;
  font-weight: 650;
  color: #ffd6d4;
}

.ph-premium span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
  border-top: 1px solid rgba(58, 48, 50, 0.55);
}

.section.alt {
  background: linear-gradient(180deg, #141416, #171719);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin-bottom: 14px;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: 12px;
}

.section-lede {
  color: var(--muted);
}

.section-link {
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 68, 68, 0.42);
  background: #26262b;
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: rgba(240, 68, 68, 0.14);
  color: var(--primary-2);
  font-size: 0.95rem;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.steps h3 {
  margin-bottom: 10px;
}

.steps p {
  color: var(--muted);
  font-size: 0.97rem;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--wine));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  padding: 32px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.panel-head h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.panel-head p {
  color: var(--muted);
  font-size: 0.97rem;
}

.settings {
  margin: 0;
  display: grid;
  gap: 2px;
}

.settings > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(58, 48, 50, 0.6);
}

.settings > div:last-child {
  border-bottom: 0;
}

.settings dt {
  font-weight: 600;
}

.settings dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  color: var(--primary-2);
  font-variant-numeric: tabular-nums;
}

.settings dd.hint {
  grid-column: 1 / -1;
  text-align: left;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
}

.band {
  background:
    radial-gradient(circle at 18% 0%, rgba(240, 68, 68, 0.16), transparent 55%),
    #141416;
}

.band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.band-grid h2 {
  margin-bottom: 14px;
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.checks li {
  position: relative;
  padding-left: 32px;
  color: #d8d4d3;
  font-size: 0.98rem;
}

.checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(240, 68, 68, 0.16);
  color: var(--primary-2);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Plans ---------- */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.plan-featured {
  border-color: rgba(240, 68, 68, 0.55);
  background: linear-gradient(
    170deg,
    rgba(240, 68, 68, 0.12),
    var(--surface) 42%
  );
  box-shadow: 0 30px 60px -40px rgba(240, 68, 68, 0.9);
}

.plan h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.tag {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 5px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--deep));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 22px;
}

.amount {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.per {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #d8d4d3;
  font-size: 0.97rem;
}

.plan li {
  position: relative;
  padding-left: 26px;
}

.plan li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-2);
  font-weight: 700;
}

.plan-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(58, 48, 50, 0.7);
  color: var(--muted);
  font-size: 0.9rem;
}

.fineprint {
  margin-top: 22px;
  color: #8d8989;
  font-size: 0.86rem;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 20px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.faq details[open] {
  border-color: rgba(240, 68, 68, 0.4);
  background: #202024;
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  cursor: pointer;
  font-weight: 650;
  font-size: 1rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--primary-2);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details p {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Contact ---------- */

.section.contact {
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(240, 68, 68, 0.18),
      transparent 55%
    ),
    #141416;
  padding-bottom: 104px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.contact-grid h2 {
  margin-bottom: 14px;
}

.contact-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 14px;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-card .muted {
  color: #8d8989;
  font-size: 0.86rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid,
  .band-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .hero-art {
    order: 2;
    margin-top: 12px;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .wrap.narrow {
    width: calc(100% - 36px);
  }

  .section {
    padding: 64px 0;
  }

  .cards,
  .steps,
  .plans {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 20px 28px;
  }

  .stats strong {
    font-size: 1.05rem;
  }

  .cta-row .btn {
    flex: 1 1 auto;
  }

  .phone {
    width: min(316px, 88vw);
  }

  .plan-featured {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
