/* ============================================================
   Ate That — light, food-fresh theme layered over main.css
   Scope: body.ate
   ============================================================ */

body.ate {
  --bg: #fbfaf4;
  --bg-raised: #ffffff;
  --surface: rgba(23, 60, 38, 0.04);
  --surface-strong: rgba(23, 60, 38, 0.07);
  --ink: #131a13;
  --muted: #52614f;
  --faint: #7e8b7a;
  --line: rgba(24, 52, 32, 0.13);
  --line-strong: rgba(24, 52, 32, 0.24);
  --aqua: #14934f;
  --sea: #0ba58f;
  --accent-grad: linear-gradient(115deg, #1db866 10%, #0ba58f 90%);
  --shadow: 0 24px 60px rgba(24, 52, 32, 0.14);
  color-scheme: light;
  background: var(--bg);
  color: var(--ink);
}

body.ate ::selection {
  background: rgba(29, 184, 102, 0.25);
  color: #08240f;
}

body.ate .skip-link {
  background: #14934f;
  color: #fff;
}

/* header */

body.ate .site-header {
  background: rgba(251, 250, 244, 0.82);
  border-bottom-color: var(--line);
}

body.ate .brand,
body.ate .nav-links a:hover,
body.ate .nav-links a:focus-visible {
  color: var(--ink);
}

body.ate .nav-toggle span {
  background: var(--ink);
}

body.ate .nav-links {
  background: transparent;
}

body.ate .button {
  background: var(--accent-grad);
  color: #ffffff;
}

body.ate .button:hover,
body.ate .button:focus-visible {
  box-shadow: 0 14px 36px rgba(20, 147, 79, 0.32);
}

body.ate .button-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

body.ate .button-outline:hover,
body.ate .button-outline:focus-visible {
  border-color: #14934f;
  color: #14934f;
}

body.ate .lead {
  color: #45543f;
}

body.ate .eyebrow {
  color: #12813f;
}

/* app hero — dark stage for the dark screenshots */

.ate-hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(29, 184, 102, 0.2), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(11, 165, 143, 0.16), transparent 60%),
    #0a130c;
  color: #f2f7f0;
  overflow: hidden;
}

.ate-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 7vw, 6rem) 0 0;
}

.ate-hero .eyebrow {
  color: #f3c84b;
}

.ate-hero .eyebrow::before {
  background: #f3c84b;
}

.ate-hero h1 {
  color: #fff;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 0.98;
}

.ate-hero .lead,
.ate-hero p {
  color: rgba(240, 248, 238, 0.78);
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.3rem;
}

.ate-hero .hero-meta span {
  color: rgba(240, 248, 238, 0.85);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.ate-hero-phone {
  align-self: end;
  justify-self: center;
  margin: 0;
  line-height: 0;
  position: relative;
}

.ate-hero-phone img {
  width: min(340px, 78vw);
  height: auto;
  border-radius: 34px 34px 0 0;
  border: 6px solid #1d251d;
  border-bottom: 0;
  box-shadow: 0 -18px 80px rgba(29, 184, 102, 0.22), 0 30px 80px rgba(0, 0, 0, 0.5);
  display: block;
}

/* fact strip */

.fact-strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

.fact-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact-strip-grid > div {
  padding: 1.4rem 1.3rem;
  border-left: 1px solid var(--line);
}

.fact-strip-grid > div:first-child {
  border-left: 0;
}

.fact-strip-grid strong {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.fact-strip-grid span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  counter-reset: step;
}

.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 10px 30px rgba(24, 52, 32, 0.06);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-grad);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.step-card h3 {
  color: var(--ink);
}

/* showcase (dark) */

.ate-showcase {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(243, 200, 75, 0.08), transparent 60%),
    #0f150f;
  color: #f2f7f0;
  overflow: hidden;
}

.ate-showcase h2 {
  color: #fff;
}

.ate-showcase p,
.ate-showcase .lead {
  color: rgba(240, 248, 238, 0.75);
}

.ate-showcase .eyebrow {
  color: #f3c84b;
}

.ate-showcase .eyebrow::before {
  background: #f3c84b;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: start;
}

.phone-shot {
  margin: 0;
  line-height: 0;
}

.phone-shot img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.phone-shot-offset {
  margin-top: 3.5rem;
}

/* detail split */

.detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.detail-phone {
  margin: 0;
  line-height: 0;
}

.detail-phone img {
  width: min(380px, 100%);
  height: auto;
  margin-inline: auto;
  display: block;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.check-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(29, 184, 102, 0.14);
  color: #12813f;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* privacy band */

.privacy-band {
  background: linear-gradient(180deg, #f4f8f0, #ecf4ea);
  border-block: 1px solid var(--line);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.privacy-phone {
  margin: 0;
  line-height: 0;
}

.privacy-phone img {
  width: min(340px, 100%);
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

/* CTA */

.ate-cta {
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(29, 184, 102, 0.25), transparent 60%),
    #0f150f;
  color: #f2f7f0;
  padding: clamp(2rem, 5vw, 3.2rem);
  box-shadow: var(--shadow);
}

.ate-cta h2 {
  color: #fff;
}

.ate-cta p {
  color: rgba(240, 248, 238, 0.78);
  max-width: 62ch;
}

.ate-cta .eyebrow {
  color: #f3c84b;
}

.ate-cta .eyebrow::before {
  background: #f3c84b;
}

/* footer + docs on light theme */

body.ate .site-footer {
  background: #f3f6ee;
  border-top-color: var(--line);
}

body.ate .footer-links a {
  color: var(--muted);
}

body.ate .footer-links a:hover {
  color: var(--ink);
}

body.ate .brand svg rect {
  fill: #10241a;
}

body.ate .doc-body section {
  border-top-color: var(--line);
}

body.ate .field input,
body.ate .field textarea {
  background: #fff;
  color: var(--ink);
}

/* mobile nav panel on light bg */

@media (max-width: 820px) {
  body.ate .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--line-strong);
  }
}

/* responsive */

@media (max-width: 980px) {
  .ate-hero-inner,
  .showcase-grid,
  .detail-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .ate-hero-phone {
    order: 2;
  }

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

  .fact-strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fact-strip-grid > div:nth-child(3) {
    border-left: 0;
  }

  .fact-strip-grid > div {
    border-top: 1px solid var(--line);
  }

  .fact-strip-grid > div:nth-child(-n + 2) {
    border-top: 0;
  }

  .phone-gallery {
    max-width: 640px;
  }
}

@media (max-width: 520px) {
  .fact-strip-grid {
    grid-template-columns: 1fr;
  }

  .fact-strip-grid > div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .fact-strip-grid > div:first-child {
    border-top: 0;
  }

  .phone-gallery {
    grid-template-columns: 1fr;
  }

  .phone-shot-offset {
    margin-top: 0;
  }
}
