/* PAES S.O.S hub — product-first, light marketing */

:root {
  --cream: #F7F3EC;
  --cream-2: #EFE9DF;
  --paper: #FFFFFF;
  --ink: #142033;
  --ink-soft: #3D4D63;
  --muted: #5C6B7E;
  --faint: #8B97A8;
  --navy: #0F2A4A;
  --navy-deep: #0A1B3A;
  --orange: #F59E0B;
  --orange-hot: #EA580C;
  --red: #E11D2E;
  --green: #15803D;
  --line: rgba(20, 32, 51, 0.1);
  --line-strong: rgba(20, 32, 51, 0.16);
  --shadow: 0 18px 48px rgba(20, 32, 51, 0.1);
  --radius: 18px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Syne", "Inter", system-ui, sans-serif;
  --wrap: 1120px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--orange); color: #111; padding: 0.5rem 1rem;
}
.skip:focus { left: 0; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(20, 32, 51, 0.04);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: min(100% - 2rem, var(--wrap)); margin-inline: auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 800; font-size: 1.02rem;
}
.brand img { border-radius: 9px; }
.sos { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 0.1rem; }
.nav-links a {
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  padding: 0.45rem 0.7rem; border-radius: 999px;
}
.nav-links a:hover { color: var(--ink); background: rgba(20,32,51,0.05); }
.nav-cta {
  margin-left: 0.3rem !important;
  background: linear-gradient(135deg, var(--orange), var(--orange-hot)) !important;
  color: #fff !important; font-weight: 800 !important;
}
.nav-burger {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-burger span { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.85rem 1.3rem; font-weight: 800; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  color: #fff; box-shadow: 0 10px 26px rgba(234, 88, 12, 0.28);
}
.btn-secondary {
  background: var(--paper); border-color: var(--line-strong); color: var(--ink);
}
.btn-lg { padding: 1rem 1.55rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* HERO */
.hero { padding: 2.75rem 0 2.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.pill {
  font-size: 0.76rem; font-weight: 700;
  border-radius: 999px; padding: 0.35rem 0.75rem;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
}
.pill-hot {
  background: #fff7ed; border-color: rgba(234, 88, 12, 0.25); color: #c2410c;
}
.pill-ok {
  color: var(--green); border-color: rgba(21, 128, 61, 0.22); background: #f0fdf4;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.pill-ok i {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
}
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.06; letter-spacing: -0.03em;
  margin: 0 0 1rem; color: var(--navy-deep);
}
.grad {
  background: linear-gradient(100deg, var(--orange-hot), var(--orange) 50%, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  font-size: 1.05rem; color: var(--ink-soft); max-width: 34rem; margin: 0 0 1.35rem;
}
.lede strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1.35rem; }
.trust-row {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem;
  padding: 0; margin: 0; color: var(--muted); font-size: 0.9rem;
}
.trust-row strong { color: var(--navy); }

/* Phone product shots */
.hero-product { position: relative; display: grid; justify-items: center; }
.phone-stack {
  position: relative;
  width: min(100%, 340px);
  height: 480px;
}
.phone-shot {
  position: absolute;
  width: 58%;
  border-radius: 22px;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  background: #fff;
  object-fit: cover;
  object-position: top;
}
.phone-main {
  width: 62%;
  left: 0; bottom: 0; z-index: 2;
  aspect-ratio: 9/19;
  height: auto; max-height: 100%;
}
.phone-back {
  right: 0; top: 0; z-index: 1;
  opacity: 0.95;
  transform: rotate(4deg);
  aspect-ratio: 9/19;
}
.hero-cap {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* LIFE STRIP */
.strip-life {
  padding: 0 0 2.5rem;
}
.strip-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1.2fr 0.7fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.strip-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #fff;
  box-shadow: 0 8px 24px rgba(20,32,51,0.08);
}
.strip-grid img:nth-child(2),
.strip-grid img:nth-child(4) {
  height: 140px;
  object-position: top;
}
.strip-line {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--muted);
}

/* SECTIONS */
.section { padding: 4rem 0; }
.section-cream { background: var(--cream-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 36rem; margin-bottom: 2rem; }
.eyebrow {
  margin: 0 0 0.5rem; font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-hot);
}
.sec-head h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 0.5rem; color: var(--navy-deep);
}
.sec-sub { margin: 0; color: var(--muted); font-size: 1rem; }

/* PRODUCT BENTO */
.product-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.pb-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(20,32,51,0.05);
  display: flex;
  flex-direction: column;
}
.pb-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  background: #e8e4dc;
}
.pb-feat img { height: 280px; }
.pb-card > div { padding: 1.1rem 1.15rem 1.25rem; }
.pb-card h3 {
  font-family: var(--display); font-size: 1.1rem; margin: 0 0 0.4rem; letter-spacing: -0.02em;
}
.pb-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.feature-pills {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem;
  padding: 0; margin: 0;
}
.feature-pills li {
  font-size: 0.82rem; font-weight: 650; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.4rem 0.8rem;
}

/* STEPS */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem;
}
.steps li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.05rem;
}
.steps span {
  display: block; font-family: var(--display); font-weight: 800;
  color: var(--red); font-size: 0.82rem; letter-spacing: 0.06em; margin-bottom: 0.5rem;
}
.steps h3 { margin: 0 0 0.3rem; font-family: var(--display); font-size: 1.02rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* DEMO — iPhone mock */
.sec-head-center { text-align: center; margin-inline: auto; }
.phone-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.iphone {
  position: relative;
  width: min(280px, 72vw);
  /* classic phone ratio ~19.5:9 outer */
  aspect-ratio: 9 / 18.8;
  max-height: min(560px, 72vh);
}
.iphone-bezel {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #2a2a2e 0%, #111114 40%, #1c1c1f 100%);
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 0 2px #0a0a0c,
    0 24px 50px rgba(20, 32, 51, 0.28),
    0 8px 16px rgba(20, 32, 51, 0.12);
}
.iphone-dynamic {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 22px;
  background: #0a0a0c;
  border-radius: 20px;
  z-index: 5;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #F4F2ED;
}
.iphone-home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  z-index: 5;
}
/* side buttons */
.iphone-btn {
  position: absolute;
  background: #1a1a1e;
  border-radius: 2px;
  z-index: 0;
}
.iphone-btn-silent {
  left: -3px; top: 18%;
  width: 3px; height: 22px;
}
.iphone-btn-vol-up {
  left: -3px; top: 28%;
  width: 3px; height: 40px;
}
.iphone-btn-vol-down {
  left: -3px; top: 40%;
  width: 3px; height: 40px;
}
.iphone-btn-power {
  right: -3px; top: 30%;
  width: 3px; height: 56px;
}
.demo-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #F4F2ED;
}
.demo-loader {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center;
  gap: 0.65rem; background: #F4F2ED; color: var(--muted); z-index: 2;
  font-size: 0.85rem;
  transition: opacity 0.4s, visibility 0.4s;
}
.demo-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--orange);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.phone-demo-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.25rem;
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.text-btn {
  background: none; border: 0; color: var(--orange-hot); font-weight: 700;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0;
  font-size: 0.85rem;
}

/* APPS */
.apps-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 0.9rem; }
.app-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.2rem; display: flex; flex-direction: column; gap: 0.65rem;
}
.app-live {
  border-color: rgba(234, 88, 12, 0.35);
  background: linear-gradient(180deg, #fffbeb, #fff);
}
.badge-live, .badge-soon {
  align-self: flex-start; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 999px; padding: 0.28rem 0.6rem;
}
.badge-live { background: #ffedd5; color: #c2410c; }
.badge-soon { background: var(--cream-2); color: var(--faint); }
.app-logo { border-radius: 12px; }
.app-glyph {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.25rem; font-weight: 800;
  background: var(--cream-2); color: var(--navy);
}
.app-card h3 { font-family: var(--display); margin: 0; font-size: 1.12rem; }
.app-card p { margin: 0; color: var(--muted); flex: 1; font-size: 0.92rem; }

/* QUOTES */
.quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem;
}
.quote-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.1rem; display: flex; flex-direction: column; gap: 0.75rem;
}
.quote-photo {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 4px 12px rgba(20,32,51,0.12);
}
.quote-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800;
}
.quote-card blockquote {
  margin: 0; font-size: 0.95rem; color: var(--ink-soft); flex: 1;
}
.quote-card blockquote em { color: var(--navy); font-style: normal; font-weight: 700; }
.quote-card cite {
  font-style: normal; font-size: 0.8rem; color: var(--faint);
}
.quote-card cite strong { color: var(--ink); }
.quote-parent { background: linear-gradient(180deg, #fff, #fff7ed); }
.fine { font-size: 0.8rem; color: var(--faint); }
.fine.center { text-align: center; margin-top: 1.1rem; }

/* ALEX MINI */
.section-alex-mini { padding: 2.25rem 0; }
.alex-mini {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.alex-mini img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 4px 12px rgba(20,32,51,0.12);
}
.alex-mini h3 {
  font-family: var(--display); margin: 0 0 0.2rem; font-size: 1.05rem;
}
.alex-mini p { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 36rem; }
.alex-socials { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-left: auto; }
.chip {
  font-size: 0.72rem; font-weight: 700; color: var(--faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.6rem;
  background: var(--cream);
}

/* FINAL */
.final-cta {
  text-align: center; padding: 2.75rem 1.4rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow);
}
.final-cta img {
  margin: 0 auto 0.9rem; border-radius: 16px;
  box-shadow: 0 10px 28px rgba(20,32,51,0.12);
}
.final-kicker {
  margin: 0 0 0.4rem; font-weight: 800; color: var(--orange-hot);
  letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem;
}
.final-cta h2 {
  font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em; margin: 0 0 1.15rem; color: var(--navy-deep);
}

/* FOOTER */
.footer {
  padding: 1.75rem 0 2.25rem; border-top: 1px solid var(--line); background: #EFE9DF;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.footer p { margin: 0; max-width: 32rem; font-size: 0.78rem; color: var(--faint); line-height: 1.5; }

/* REVEAL */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.06s; }
.delay-2 { transition-delay: 0.12s; }
.delay-3 { transition-delay: 0.18s; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-stack { height: 420px; }
  .product-bento, .apps-row, .steps, .quotes { grid-template-columns: 1fr 1fr; }
  .pb-feat { grid-column: 1 / -1; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid img { height: 120px; }
}
@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    padding: 0.7rem 1rem 1rem; background: rgba(247,243,236,0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-cta { margin: 0.35rem 0 0 !important; text-align: center; justify-content: center; }
  .product-bento, .apps-row, .steps, .quotes, .strip-grid { grid-template-columns: 1fr; }
  .phone-back { display: none; }
  .phone-main { width: 70%; left: 50%; transform: translateX(-50%); }
  .phone-stack { height: 400px; }
  .iphone {
    width: min(260px, 78vw);
    max-height: min(520px, 68vh);
  }
  .alex-socials { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .loader-ring { animation: none; }
}
