/* ACE Innovations site — navy #002854 + red #C8101C, mobile first */
:root {
  --navy: #002854;
  --navy-2: #003A6E;
  --navy-3: #0A4A82;
  --red: #C8101C;
  --red-dark: #9E0C16;
  --red-soft: #F8E8E8;
  --cream: #F3F0E8;
  --paper: #FFFCF8;
  --white: #ffffff;
  --ink: #122033;
  --muted: #5A6A7A;
  --line: #D8D3C8;
  --line-strong: #C4BDB0;
  --green: #1F7A4C;
  --green-soft: #E7F5EE;
  --shadow: 0 10px 30px rgba(0, 40, 84, 0.10);
  --radius: 16px;
  --max: 1080px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Barlow", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}
img, video { max-width: 100%; height: auto; }
a { color: var(--red-dark); }
h1, h2, h3, .price-amt, .kicker, .eyebrow {
  font-family: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 8vw, 3.25rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin: 0 0 12px; }
h3 { font-size: 1.3rem; margin: 0 0 8px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--red);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Header — light so the logo's navy letters stay visible */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 248, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 1 auto;
}
.logo img {
  display: block;
  height: 56px;
  width: auto;
  background: transparent;
  /* Transparent-background mark; house interiors stay white */
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.menu-btn:hover, .menu-btn:focus-visible { background: var(--navy-2); }
nav {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 3px solid var(--red);
  padding: 8px 16px 16px;
  box-shadow: var(--shadow);
}
nav.open { display: flex; }
nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}
nav a:last-child { border-bottom: 0; }
nav a:hover, nav a:focus-visible { color: var(--red); }
nav a[aria-current="page"] { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover, .btn-red:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover, .btn-navy:focus-visible { background: var(--navy-2); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--navy); color: #fff; }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost-light:hover, .btn-ghost-light:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
.hero .fine, .cta-band .fine { color: #C5D0DC; }

.eyebrow, .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

/* Home hero */
.hero-home {
  background: var(--paper);
  padding: 28px 0 48px;
  text-align: center;
}
.hero-logo {
  width: min(420px, 88%);
  margin: 0 auto 22px;
}
.hero-logo img { width: 100%; height: auto; }
.hero-home .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto 24px;
}
.made-in {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
}

/* App cards */
#apps { background: var(--cream); padding: 56px 0; }
.section-intro { max-width: 40em; margin-bottom: 28px; }
.section-intro p, .muted { color: var(--muted); }
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.app-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  box-shadow: 0 4px 14px rgba(0,40,84,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-card.coming {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}
.app-card h3 { margin: 0; }
.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--red-soft);
  color: var(--red-dark);
  border-radius: 999px;
  padding: 4px 10px;
}
.tag.later {
  background: #E6EBF1;
  color: var(--navy);
}
.app-card p { color: var(--muted); flex: 1; }
.app-card .btn { margin-top: 6px; }

/* Generic sections */
section, #apps, #pricing, #addons, #contact, #video, #features, #faq, #trial {
  scroll-margin-top: calc(var(--header-h) + 14px);
}
section { padding: 56px 0; }
#features, #faq, #how { background: var(--paper); }
#pricing, #video { background: var(--cream); }
#addons { background: var(--paper); }

.hero-product {
  background: var(--navy);
  color: #D5DEE8;
  padding: 36px 0 48px;
}
.hero-product h1, .hero-product h2 { color: #fff; }
.hero-product .eyebrow { color: #FF9AA0; }
.hero-product .lead {
  font-size: 1.12rem;
  color: #C5D0DC;
  max-width: 32em;
  margin-bottom: 22px;
}

/* Phone screenshots */
.shot-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 12px;
}
.phone-frame {
  margin: 0 auto;
  width: min(280px, 100%);
  background: #0A1522;
  border-radius: 28px;
  padding: 10px 8px 14px;
  border: 2px solid #2A3D52;
  box-shadow: var(--shadow);
}
.phone-frame img {
  display: block;
  width: 100%;
  border-radius: 18px;
  background: #f6f3ec;
}
.shot-cap {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 8px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 18px 20px;
  border-left: 4px solid var(--red);
}
.feature-list h3 { margin-bottom: 4px; }
.feature-list p { color: var(--muted); font-size: 1rem; }

/* Video */
.tutorial {
  margin: 0 auto;
  max-width: 420px;
}
.tutorial video {
  display: block;
  width: 100%;
  background: #0C1B2E;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.tutorial figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}
.guide-link { margin-top: 20px; text-align: center; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border: 2px solid var(--navy);
  box-shadow: var(--shadow);
  position: relative;
}
.plan-tag {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
}
.price-amt {
  font-size: 2.6rem;
  margin: 6px 0 2px;
  color: var(--navy);
}
.price-amt small {
  font-family: Barlow, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.plan > p { color: var(--muted); }
.plan ul {
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
  flex: 1;
}
.plan li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--cream);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  background: var(--red-soft);
  border-radius: 50%;
}
.plan li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 15px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}
.yearly-note {
  background: var(--red-soft);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 20px;
}
.policy {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
}
.policy h3 { margin-bottom: 8px; }

/* Add-ons */
.addons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.addon {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  gap: 4px;
}
.addon .price {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--red);
}
.addon p { color: var(--muted); font-size: 1rem; }

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 16px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  min-height: 52px;
  display: flex;
  align-items: center;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--red);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  color: var(--muted);
  padding: 0 0 14px;
}

/* CTA band */
.cta-band,
section.cta-band,
#contact.cta-band {
  background: var(--navy);
  color: #D5DEE8;
  padding: 56px 0;
}
.cta-band h2 { color: #fff; }
.cta-band a.plain { color: #fff; }

footer {
  background: #001C3C;
  color: #C5D0DC;
  padding: 28px 0;
  font-size: 0.95rem;
}
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer a { color: #fff; }
.placeholder {
  font-size: 0.85rem;
  color: #8A9AAB;
}

@media (min-width: 720px) {
  .wrap, .header-inner, .footer-inner { width: min(var(--max), calc(100% - 48px)); }
  .menu-btn { display: none; }
  nav {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    align-items: center;
    gap: 22px;
  }
  nav a {
    min-height: 0;
    border: 0;
    padding: 8px 0;
    font-size: 1rem;
  }
  .logo img { height: 64px; }
  .app-grid, .plans, .addons, .feature-list, .shot-row {
    grid-template-columns: 1fr 1fr;
  }
  .feature-list.three, .addons { grid-template-columns: 1fr 1fr; }
  .actions .btn { width: auto; }
  .btn-block-mobile { width: auto; }
  .hero-home { padding: 40px 0 64px; }
  section, #apps, .cta-band { padding: 72px 0; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 960px) {
  .feature-list.three { grid-template-columns: 1fr 1fr 1fr; }
  .shot-row { grid-template-columns: repeat(3, 1fr); }
  .phone-frame { width: 260px; }
}
