/* Axis AI landing page — VAM-1418.
   Tokens transcribed from the AXIS-AI Figma file, node 5115:37838.
   Deliberately separate from styles.css: that file carries the Vamos iris
   palette and is shared by the four live Vamos pages. Nothing here touches it. */
:root {
  --bg-background: #fdfdfd;
  --color-background-normal: #ffffff;
  --color-surface-default: #ffffff;
  --color-surface-alternative: #f7f7f9;
  --color-border-subtle: #e6e6eb;
  --color-text-default: #1c1d22;
  --color-text-secondary: #5c5f69;
  --color-text-tertiary: #666973; /* 5.12:1 on --color-surface-alternative (#f7f7f9), AA for small text */
  --color-primary-tint: #def2ff;
  --color-primary-tint-text: #0070c2;
  --color-button-primary-background: #06a3f5;
  --color-button-primary-text: #eff9ff;
  --hero-gradient-start: #ebf7ff;

  --radius-full: 9999px;
  --gutter: 80px;
  --gutter-wide: 160px;
  --gutter-support: 120px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-default);
  background: var(--bg-background);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary-tint-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--color-button-primary-background);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-text-default);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.stack-16 { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--gutter);
  background: var(--color-background-normal);
  border-bottom: 1px solid var(--color-border-subtle);
}
.wordmark { display: block; }
.wordmark:hover { text-decoration: none; }

/* WARNING: #eff9ff on #06a3f5 is 2.60:1 — below WCAG AA's 4.5:1 for this size.
   These are the Figma tokens, so fixing it is a design decision, not a code one.
   It is not visible today only because the disabled override above replaces both
   colours. Resolve the contrast BEFORE enabling these buttons. */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 16px 24px;
  border-radius: var(--radius-full);
  background: var(--color-button-primary-background);
  color: var(--color-button-primary-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.btn-primary:hover { text-decoration: none; opacity: .92; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: var(--gutter);
  padding: 100px var(--gutter);
  background: linear-gradient(to bottom, var(--hero-gradient-start) 20%, var(--bg-background));
}
.hero-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero h1 {
  font-size: 46px;
  line-height: 46px;
  font-weight: 700;
  color: var(--color-text-default);
}
.hero .lede {
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  color: var(--color-text-secondary);
}
.hero-art { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }

/* ---------- Store badges ---------- */
.store-badges { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
/* The badges are fixed 120x40 lockups. The design positions the glyph and the
   label absolutely (glyph 7,7; label at x=35) rather than flowing them, because
   an 18px "App Store" measures ~81px in Inter and must not be shrunk by a flex
   row. It fits only because .store-badge is 120px with overflow:hidden
   (35 + 81 = 116 inside a 118px content box) — about 2px of slack. */
.store-badge {
  position: relative;
  display: block;
  width: 120px;
  height: 40px;
  border: 1px solid #a6a6a6;
  border-radius: 6px;
  background: #000;
  color: #fff;
  overflow: hidden;
  flex: none;
}
.store-badge:hover { text-decoration: none; }
.badge-glyph { position: absolute; left: 7px; top: 7px; }
.badge-text {
  position: absolute;
  left: 35px;
  top: 50%;
  transform: translateY(-50%);
  width: 78px;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.badge-text small { font-size: 9px; line-height: 9px; }
.badge-text strong { font-size: 18px; line-height: 1; font-weight: 500; letter-spacing: -0.47px; white-space: nowrap; }
.badge-text small.badge-eyebrow { font-size: 10px; text-transform: uppercase; margin-bottom: 3px; }

/* ---------- Disabled download CTAs ----------
   Matches the house pattern in styles.css: keyed off [aria-disabled="true"],
   not an invented class. These <a>s also carry no href, so they are inert and
   out of the tab order — which means aria-label reaches nobody (an <a> without
   href has the generic role, not link). The visible "Coming soon" label in the
   markup is what actually communicates the state; do not remove it.
   grayscale() is the one departure from styles.css, needed because these badges
   are full-colour images rather than currentColor SVGs. */
[aria-disabled="true"] { pointer-events: none; cursor: not-allowed; }
.btn-primary[aria-disabled="true"] {
  background: var(--color-border-subtle);
  color: var(--color-text-secondary);
}
.store-badge[aria-disabled="true"] { filter: grayscale(1); opacity: .55; }
.coming-soon {
  align-self: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* ---------- Phone mock ---------- */
.phone {
  position: relative;
  width: 313.542px;
  height: 640.646px;
  flex: none;
}
.phone-screen {
  position: absolute;
  left: 11.62px;
  top: 11.62px;
  width: 288.678px;
  height: 627.407px;
  object-fit: cover;
  border-radius: 42.301px;
}
.phone-frame {
  position: absolute;
  inset: 0;
  width: 313.542px;
  height: 640.646px;
  pointer-events: none;
}

/* ---------- Section heading ---------- */
.section-head { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.section-head h2 {
  font-size: 40px;
  line-height: 52px;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--color-text-default);
}
.section-head p {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-secondary);
}

/* ---------- Key features ---------- */
.features {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
  padding: 100px var(--gutter);
}
.cards { display: flex; gap: 20px; align-items: stretch; width: 100%; }
.card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--color-surface-default);
  border: 1px solid var(--color-border-subtle);
  border-radius: 20px;
}
.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-primary-tint);
  flex: none;
  /* The design puts a 4px spacer between the tile and the title, on top of the 10px gap. */
  margin-bottom: 4px;
}
.card h3 { font-size: 20px; line-height: 26px; font-weight: 600; color: var(--color-text-default); }
.card p { font-size: 16px; line-height: 24px; color: var(--color-text-secondary); }

/* ---------- How it works ---------- */
.how {
  display: flex;
  flex-direction: column;
  gap: 100px;
  padding: 100px var(--gutter-wide);
  background: var(--color-surface-alternative);
}
.how-rows { display: flex; flex-direction: column; gap: 80px; }
.how-row { display: flex; gap: var(--gutter); align-items: center; }
.how-row--reverse { flex-direction: row-reverse; }
.how-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.how-copy h3 { font-size: 26px; line-height: 34px; font-weight: 600; color: var(--color-text-default); }
.how-copy p { font-size: 16px; line-height: 24px; color: var(--color-text-secondary); }
.how-art { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 40px; }

/* ---------- Support ---------- */
.support {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  padding: 110px var(--gutter-support);
  background: var(--color-surface-default);
}
.support h2 { font-size: 40px; line-height: 52px; font-weight: 600; letter-spacing: -1px; }
.support-body { max-width: 560px; font-size: 16px; line-height: 24px; color: var(--color-text-secondary); }
.support-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-top: 16px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  color: var(--color-primary-tint-text);
}
.support-link span { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 72px var(--gutter-support) 48px;
  background: var(--color-surface-alternative);
}
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { max-width: 360px; font-size: 14px; line-height: 20px; color: var(--color-text-secondary); }
.footer-links-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--color-text-default); }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 13px;
  line-height: 20px;
  color: var(--color-text-tertiary);
}
.footer-legal p:first-child { max-width: 960px; }

/* ---------- Responsive ----------
   The Figma board is a single 1440px desktop frame; the breakpoints below are
   the implementation's own, chosen so nothing overflows at 375px. */
@media (max-width: 1100px) {
  :root { --gutter: 40px; --gutter-wide: 40px; --gutter-support: 40px; }
  .hero, .how-row, .how-row--reverse { flex-direction: column; }
  .hero { text-align: left; }
  .cards { flex-wrap: wrap; }
  /* flex-grow must go too, or the odd third card grows to fill row 2. */
  .card { flex: 0 1 calc(50% - 10px); }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --gutter-wide: 20px; --gutter-support: 20px; }
  .hero { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  /* Keep the designed line break: display:none on the <br> would run
     "market" and "in" together, since it removes the break without a space. */
  .hero h1 { font-size: 34px; line-height: 40px; }
  .hero .lede { font-size: 17px; line-height: 27px; }
  .features, .how, .support { padding-top: 64px; padding-bottom: 64px; }
  .how { gap: 56px; }
  .how-rows { gap: 56px; }
  .how-art { padding: 0; }
  .card { flex-basis: 100%; }
  .section-head h2, .support h2 { font-size: 28px; line-height: 36px; letter-spacing: -0.5px; }
  .section-head p { font-size: 16px; line-height: 26px; }
  .footer-top { flex-direction: column; gap: 32px; }

  /* The phone mock is a fixed-size overlay pair, so scale it as one unit
     rather than restyling both layers. */
  .phone { transform: scale(.82); transform-origin: top center;
           margin: 0 -28.25px -115px; }
}

@media (max-width: 400px) {
  .phone { transform: scale(.72); margin: 0 -43.9px -180px; }
}

/* The exported Google Play wordmark is stored vertically flipped; the design
   wraps it in a -scale-y-100, so flip it back rather than editing the asset. */
.badge-text .play-wordmark { transform: scaleY(-1); }
