/* Atlas marketing site. Mirrors the app: canvas page, white cards on a lip, chunky buttons,
   teal leads, mint supports, orange for warmth. */
:root {
  --teal: #0A8F9C;
  --teal-lip: #075B69;
  --mint: #9EE9DA;
  --orange: #FF8A3D;
  --orange-lip: #D9661F;
  --navy: #12303A;
  --canvas: #FBF8F1;
  --surface: #FFFFFF;
  --line: #E7E1D4;
  --text: #12303A;
  --muted: #55707A;
  --radius: 20px;
  --lip: 4px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 600 18px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 24px; }
p { margin: 0 0 16px; text-wrap: pretty; }
.eyebrow { color: var(--teal); font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; margin-bottom: 12px; }

/* Buttons sit on a darker lip and press down onto it, like the app's. */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: #fff; text-decoration: none;
  font-weight: 900; font-size: 18px; letter-spacing: 0.02em;
  padding: 16px 26px; border-radius: 16px;
  box-shadow: 0 var(--lip) 0 var(--teal-lip);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.button:hover { filter: brightness(1.05); }
.button:active { transform: translateY(var(--lip)); box-shadow: 0 0 0 var(--teal-lip); }
.button:focus-visible, .text-link:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.button-small { padding: 10px 18px; font-size: 16px; }
.button-light { background: #fff; color: var(--teal-lip); box-shadow: 0 var(--lip) 0 var(--mint); }
.button-light:active { box-shadow: 0 0 0 var(--mint); }
.text-link { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(16px, calc((100% - 1160px) / 2));
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 24px; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 800; font-size: 16px; }
.nav-links a:hover { color: var(--teal); }

/* Hero */
.hero {
  max-width: 1160px; margin: 0 auto; padding: 64px 16px 48px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.lede { font-size: 21px; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin: 28px 0 14px; }
.microcopy { font-size: 15px; color: var(--muted); }
.hero-art { position: relative; justify-self: center; }
.trunk-hero { position: absolute; width: 190px; left: -110px; bottom: 30px; filter: drop-shadow(0 12px 18px rgba(18, 48, 58, 0.18)); }

/* Screenshots in a simple phone frame */
.phone {
  width: min(320px, 78vw);
  padding: 10px; border-radius: 52px;
  background: #16191C;
  box-shadow: 0 0 0 2px #3A4046 inset, 0 30px 60px rgba(18, 48, 58, 0.22);
}
.phone img { border-radius: 42px; }
.phone-small { width: min(260px, 70vw); border-radius: 44px; padding: 8px; }
.phone-small img { border-radius: 36px; }

/* Facts */
.facts {
  max-width: 1160px; margin: 0 auto 72px; padding: 0 16px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.facts div {
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 var(--lip) 0 var(--line); padding: 20px 22px;
}
.facts strong { display: block; font-size: 40px; font-weight: 900; color: var(--teal); line-height: 1; margin-bottom: 8px; }
.facts span { display: block; font-size: 16px; line-height: 1.35; color: var(--muted); }

/* Split sections */
.split, .devices {
  max-width: 1160px; margin: 0 auto; padding: 48px 16px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split-art { justify-self: center; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 8px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Full-width colored band */
.band { padding: 72px 16px; }
.band-orange { background: var(--orange); color: #fff; }
.band-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.band-inner p { font-size: 20px; color: rgba(255, 255, 255, 0.92); }

/* Features */
.section-title { text-align: center; margin-bottom: 48px; }
.features { max-width: 1000px; margin: 0 auto; padding: 88px 16px 40px; }
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center;
  background: var(--surface); border: 2px solid var(--line); border-radius: 28px;
  box-shadow: 0 var(--lip) 0 var(--line); padding: 36px 44px; margin-bottom: 28px;
}
.feature:nth-of-type(even) { grid-template-columns: 1fr auto; }
.feature:nth-of-type(even) .phone { order: 2; }
.feature p { color: var(--muted); }
.aside { font-size: 16px; border-left: 4px solid var(--mint); padding-left: 14px; }
.stamps { display: flex; gap: 12px; margin-top: 8px; }
.stamps img { width: 88px; }

/* Steps */
.steps { max-width: 1160px; margin: 0 auto; padding: 72px 16px; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li {
  background: var(--teal); color: #fff; border-radius: var(--radius);
  box-shadow: 0 var(--lip) 0 var(--teal-lip); padding: 28px;
}
.steps li span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--mint); color: var(--teal-lip); font-weight: 900; font-size: 22px; margin-bottom: 18px;
}
.steps li p { color: rgba(255, 255, 255, 0.9); margin: 0; }

/* Devices */
.mac-shot { border-radius: 14px; border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: 0 30px 60px rgba(18, 48, 58, 0.2); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; padding: 40px 16px 88px; }
details {
  background: var(--surface); border: 2px solid var(--line); border-radius: 18px;
  box-shadow: 0 var(--lip) 0 var(--line); margin-bottom: 14px; padding: 4px 24px;
}
summary { cursor: pointer; font-weight: 900; font-size: 20px; padding: 16px 0; list-style: none; position: relative; padding-right: 36px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 28px; color: var(--teal); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

/* Final call to action */
.final { background: var(--teal); color: #fff; text-align: center; padding: 72px 16px 88px; }
.final .trunk { width: 180px; margin: 0 auto 8px; }
.final p { font-size: 20px; color: rgba(255, 255, 255, 0.9); }
.final .button { margin-top: 12px; }

/* Footer */
.footer { max-width: 1160px; margin: 0 auto; padding: 32px 16px 48px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; color: var(--muted); font-size: 14px; }
.footer .brand { font-size: 18px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { font-weight: 800; }
.footer p { margin: 0; flex-basis: 100%; }

/* Privacy page */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 16px 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 26px; margin-top: 36px; }
.doc p, .doc li { color: var(--muted); }

/* Phones and tablets */
@media (max-width: 900px) {
  .hero, .split, .devices { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; text-align: left; }
  .trunk-hero { width: 130px; left: -40px; bottom: 10px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; justify-items: center; }
  .feature:nth-of-type(even) .phone { order: 0; }
  .steps ol { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav .button-small { margin-left: auto; }
}
@media (max-width: 420px) {
  body { font-size: 17px; }
  .facts { gap: 12px; }
  .facts div { padding: 16px; }
  .facts strong { font-size: 32px; }
  .facts span { font-size: 14px; }
  .button { width: 100%; justify-content: center; }
  .cta-row { flex-direction: column; align-items: stretch; text-align: center; }
  .nav .button-small { width: auto; }
}
