/* AppMarque production styles — direction 8 floating collage */

@font-face {
  font-family: Outfit;
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1d1d1f;
  --muted: #4b4b50;
  --line: rgba(29, 29, 31, 0.08);
  --bg: #ffffff;
  --link: #3a3f8c;
  --kicker: #5e3f86;
  --focus: #3c4ad8;
  --radius: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Outfit, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 48px)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  min-height: 64px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 32px; width: auto; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle:hover { border-color: rgba(29, 29, 31, 0.2); }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  border-radius: 1px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-links { display: flex; align-items: center; gap: 8px 22px; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { color: #fff; opacity: 0.9; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(29, 29, 31, 0.18);
}
.btn-ghost:hover { color: var(--ink); opacity: 1; border-color: rgba(29, 29, 31, 0.4); }
.nav-links .btn { min-height: 40px; padding: 8px 16px; color: #fff; }
.nav-links .btn:hover { color: #fff; }

/* Type */
.kicker,
.group-h {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kicker);
}
h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-weight: 700;
  color: var(--ink);
}
h1 {
  font-size: clamp(42px, 6.2vw, 84px);
  letter-spacing: -0.055em;
  line-height: 0.94;
  max-width: 15ch;
  margin-inline: auto;
  font-weight: 750;
}
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: 22px; letter-spacing: -0.03em; }
.group-h { margin: 0 0 16px; }
.lede {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  max-width: 34em;
  margin: 18px auto 0;
}

/* Pastel blobs */
.blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.9;
}
.b1 { width: 520px; height: 520px; background: #FFD4C8; top: -80px; left: -80px; }
.b2 { width: 460px; height: 460px; background: #D9C8FF; top: 40px; right: -120px; }
.b3 { width: 380px; height: 380px; background: #FFE89A; bottom: 10%; left: 22%; }
.b4 { width: 300px; height: 300px; background: #C8E4FF; bottom: -40px; right: 18%; }

/* Hero + collage */
.hero {
  position: relative;
  padding: 56px 0 20px;
  text-align: center;
  background: #fff;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; }

.collage {
  position: relative;
  z-index: 2;
  height: 680px;
  margin: 28px auto 10px;
  width: min(1240px, calc(100% - 24px));
}
.collage .laptop {
  position: absolute;
  left: 6%;
  top: 40px;
  width: min(760px, 68%);
  transform: rotate(-5.5deg);
}
.collage .laptop figcaption { display: none; }
.collage .phone.a {
  position: absolute;
  right: 5%;
  top: 20px;
  transform: rotate(9deg);
  z-index: 3;
  width: 240px;
}
.collage .phone.b {
  position: absolute;
  right: 20%;
  top: 300px;
  transform: rotate(-7deg);
  z-index: 4;
  width: 220px;
}
.collage .polaroid {
  position: absolute;
  left: 3%;
  bottom: 10px;
  width: 240px;
  background: #fff;
  padding: 10px 10px 28px;
  border-radius: 6px;
  box-shadow: 0 18px 40px -16px rgba(40, 30, 60, 0.3);
  transform: rotate(-8deg);
  z-index: 3;
}
.collage .polaroid img { width: 100%; border-radius: 2px; }
.collage .polaroid span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  text-align: center;
}
.collage .polaroid.p2 {
  left: auto;
  right: 42%;
  bottom: -10px;
  width: 210px;
  transform: rotate(6deg);
  z-index: 2;
}

/* Device frames */
.laptop {
  width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 28px 50px rgba(20, 28, 60, 0.16));
}
.laptop .lid {
  background: linear-gradient(180deg, #2a2b31, #1b1c21);
  border-radius: 14px 14px 8px 8px;
  padding: 10px 10px 0;
}
.laptop .cam {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3b42;
  margin: 0 auto 7px;
}
.laptop .browser { background: #fff; border-radius: 7px 7px 3px 3px; overflow: hidden; }
.laptop .bbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  background: #eceef3;
  border-bottom: 1px solid rgba(20, 28, 60, 0.08);
}
.laptop .dots { display: flex; gap: 5px; }
.laptop .dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5c7d0;
  display: block;
}
.laptop .url {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  background: #fff;
  border: 1px solid rgba(20, 28, 60, 0.08);
  border-radius: 999px;
  padding: 3px 10px;
}
.laptop .browser img { width: 100%; display: block; background: #f6f3ee; }
.laptop .base { height: 10px; background: linear-gradient(180deg, #cfd1d6, #b4b6bd); }
.laptop .stand {
  height: 7px;
  width: 108%;
  margin: 0 -4%;
  background: linear-gradient(180deg, #d8d9de, #b8bac0);
  border-radius: 0 0 16px 16px;
  position: relative;
}
.laptop figcaption,
.phone figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.phone { width: 230px; position: relative; }
.phone .shell {
  background: #16161a;
  border-radius: 36px;
  padding: 9px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 44px -16px rgba(20, 28, 60, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone .island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 20px;
  background: #0b0b0e;
  border-radius: 14px;
  z-index: 3;
}
.phone img { width: 100%; display: block; border-radius: 26px; background: #f6f3ee; }
.phone .homebar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  z-index: 3;
}
.phone.lg { width: 250px; }

/* First band + sections */
.first {
  position: relative;
  z-index: 2;
  padding: 120px 0 40px;
}
.band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.band article,
.card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 32px -20px rgba(40, 30, 60, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.95);
}
.band h3,
.card h3 { margin: 8px 0 6px; }
.band p,
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.text-link { display: inline-block; margin-top: 12px; font-weight: 650; font-size: 14px; }

.section {
  position: relative;
  padding: 88px 0;
  overflow: hidden;
}
.section .wrap,
.section .narrow { position: relative; z-index: 2; }

.group { margin-top: 48px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-one { grid-template-columns: 1fr; max-width: 560px; }
.card { padding: 24px; }
.card.tilt-a { transform: rotate(-1.1deg); }
.card.tilt-b { transform: rotate(1.15deg); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.chip {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid rgba(29, 29, 31, 0.12);
  color: var(--muted);
  white-space: nowrap;
}
.chip.live { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
.chip.soon {
  background: #f8f1de;
  border-color: #e4d4a8;
  color: #5c4a24;
}

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-top: 28px;
}
.showcase.reverse { direction: rtl; }
.showcase.reverse > * { direction: ltr; }
.showcase-title {
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 10px 0 12px;
}
.showcase .copy h2 { margin: 10px 0 12px; }
.showcase .copy .lede { margin-left: 0; }
.showcase .laptop { transform: rotate(-3deg); }

.phones-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  position: relative;
}
.phones-row .phone { width: 236px; flex: 0 0 236px; }
.phones-row .phone:first-child { transform: rotate(-7deg); z-index: 2; margin-right: -36px; }
.phones-row .phone:last-child { transform: rotate(8deg); z-index: 3; margin-bottom: 36px; }

.polaroid-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.polaroid-row .polaroid {
  width: min(340px, 100%);
  background: #fff;
  padding: 12px 12px 32px;
  border-radius: 6px;
  box-shadow: 0 18px 40px -16px rgba(40, 30, 60, 0.28);
}
.polaroid-row .polaroid img { width: 100%; border-radius: 2px; }
.polaroid-row .polaroid span {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  text-align: center;
}
.polaroid-row .polaroid.t1 { transform: rotate(-3.5deg); }
.polaroid-row .polaroid.t2 { transform: rotate(3.2deg); }

.approach-card { padding: 40px 36px; }
.contact-box { text-align: center; }
.contact-box .lede { margin-left: auto; margin-right: auto; }

.tbd {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c4a24;
  background: #f8f1de;
  border-radius: 6px;
  padding: 2px 7px;
  margin-right: 6px;
}
.placeholder-line { margin-top: 22px; color: var(--muted); font-size: 18px; }
.placeholder-line a { word-break: break-all; }

.page-hero {
  position: relative;
  padding: 72px 0 24px;
  text-align: left;
  overflow: hidden;
}
.page-hero h1 { margin: 0; max-width: none; font-size: clamp(36px, 6vw, 64px); text-align: left; }
.page-hero .lede { margin-left: 0; }
.page-hero .narrow { position: relative; z-index: 2; }
.prose { padding: 0 0 96px; position: relative; }
.prose h2 { font-size: 1.4rem; margin: 2.2em 0 0.6em; letter-spacing: -0.03em; }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.prose ul { padding-left: 1.2em; }
.prose p { margin: 0 0 1em; }
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 13px;
  background: var(--bg);
  position: relative;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
.card.tilt-a.reveal.is-in { transform: rotate(-1.1deg); }
.card.tilt-b.reveal.is-in { transform: rotate(1.15deg); }

html.pending-off [data-pending-review] { display: none !important; }

@media (max-width: 900px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .phone, .phone.lg, .phones-row .phone { width: 200px; }
  .laptop .bbar { height: 26px; }
  .laptop .url { font-size: 10px; }

  .collage {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 10px 0 30px;
  }
  .collage .laptop,
  .collage .phone.a,
  .collage .phone.b,
  .collage .polaroid {
    position: static;
    transform: none;
    width: min(100%, 420px);
    filter: none;
  }
  .collage .phone.a,
  .collage .phone.b { width: 200px; }
  .collage .polaroid,
  .collage .polaroid.p2 { width: min(240px, 90%); }

  .band, .grid, .showcase, .showcase.reverse { grid-template-columns: 1fr; }
  .blob { opacity: 0.7; }
  .card.tilt-a,
  .card.tilt-b,
  .phones-row .phone:first-child,
  .phones-row .phone:last-child,
  .polaroid-row .polaroid.t1,
  .polaroid-row .polaroid.t2 { transform: none; }
  .card.tilt-a.reveal.is-in,
  .card.tilt-b.reveal.is-in { transform: none; }
  .section { padding: 64px 0; }
  .first { padding: 64px 0 24px; }
  /* Hero already shows the devices; don't repeat them on small screens. */
  .showcase .laptop,
  .showcase .phones-row { display: none; }
  .showcase, .showcase.reverse { gap: 8px; }

  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 20px;
    gap: 4px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 8px; min-height: 44px; display: flex; align-items: center; }
  .nav-links .btn { align-self: flex-start; margin: 8px 8px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .card.tilt-a, .card.tilt-a.reveal.is-in { transform: rotate(-1.1deg); }
  .card.tilt-b, .card.tilt-b.reveal.is-in { transform: rotate(1.15deg); }
}

@media print {
  .site-header, .nav-toggle { break-inside: avoid; }
  .collage .laptop, .collage .phone { position: static; transform: none; }
}
