/* Launch Day Apps website. One stylesheet; fonts are self-hosted, nothing loads from other sites.
   Brand: docs/brand.md (Live Toggle, Harbor Navy and Signal Emerald, Outfit and DM Sans).
   Green always means action or live: buttons, links, Approved and Live. Nothing else is green. */

/* ---------- Fonts (SIL Open Font License; texts in assets/fonts/) ---------- */
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin-variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0F1D2E;          /* Harbor Navy */
  --ink-soft: #475569;     /* Stone Slate */
  --paper: #F7F6F2;        /* Warm Canvas */
  --card: #FFFFFF;
  --line: #E2E0D8;
  --action: #107C54;       /* Signal Emerald */
  --action-hover: #0D6E49;
  --on-action: #FFFFFF;
  --ok: #0D6E49;           /* Live Forest */
  --ok-soft: #ECFDF5;
  --wait: #B45309;         /* Review Amber */
  --wait-soft: #FFFBEB;
  --tint: #EFEDE6;         /* quiet fills on canvas */
  --night: #0F1D2E;        /* dark bands: header, hero, studio app, footer */
  --night-2: #132235;
  --night-ink: #F8FAFC;
  --night-soft: #94A3B8;
  --night-line: rgb(255 255 255 / 0.12);
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(15 29 46 / 0.05), 0 8px 24px rgb(15 29 46 / 0.06);
  --font-head: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F8FAFC;        /* Mist White */
    --ink-soft: #94A3B8;   /* Cool Silver */
    --paper: #0B1420;      /* Deep Midnight */
    --card: #132235;       /* Elevated Slate */
    --line: #23354D;
    --action: #34D399;     /* Bright Mint */
    --action-hover: #4ADE80;
    --on-action: #0B1420;
    --ok: #4ADE80;         /* Mint Glow */
    --ok-soft: #10301F;
    --wait: #FBBF24;       /* Warm Gold */
    --wait-soft: #33280E;
    --tint: #0F1B2B;
    --night: #0F1D2E;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

/* Dark bands use the dark-mode action color in both themes. */
.site-header, .hero, .section.dark, .site-footer {
  --action: #34D399;
  --action-hover: #4ADE80;
  --on-action: #0B1420;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--action); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.5rem + 2.4vw, 2.75rem); line-height: 1.15; }
h2 { font-size: clamp(1.625rem, 1.35rem + 1.1vw, 2rem); line-height: 1.2; }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem); line-height: 1.25; font-weight: 500; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 20;
  background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700;
}
.skip:focus { left: 8px; }

/* Reach pixels: invisible, but laid out so lazy loading fires near each section. */
.reach { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--action); color: var(--on-action); font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.button:hover { background: var(--action-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgb(16 124 84 / 0.28); }
.button:active { transform: none; }
.button.ghost { background: transparent; color: var(--night-ink); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.4); }
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--night-ink); }
.button.small { min-height: 40px; padding: 8px 18px; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(15 29 46 / 0.92);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--night-line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--night-ink); text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.wordmark { font-family: var(--font-head); font-weight: 400; font-size: 1.2rem; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark b { font-weight: 600; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a { color: var(--night-soft); text-decoration: none; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.site-header nav a:hover { color: var(--night-ink); background: rgb(255 255 255 / 0.07); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--night-ink);
  background:
    radial-gradient(900px 500px at 85% 15%, rgb(52 211 153 / 0.12), transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgb(64 110 200 / 0.22), transparent 60%),
    var(--night);
  padding: 88px 0 104px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--night-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.8rem; margin: 0 0 16px; }
.lede { color: var(--night-soft); font-size: 1.2rem; max-width: 33em; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.assurances { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--night-soft); font-size: 0.95rem; }
.assurances li { display: flex; align-items: center; gap: 8px; }
.assurances li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: rgb(52 211 153 / 0.16) url("assets/icons/check-mint.svg") center / 14px no-repeat; }

/* ---------- Phone frames around real studio app screenshots ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 8px 0 32px; }
.device {
  margin: 0; width: 290px; aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2A3B54, #101B2B);
  box-shadow: 0 40px 80px rgb(0 0 0 / 0.5), inset 0 0 0 1.5px rgb(255 255 255 / 0.1);
}
.device.small { width: 240px; border-radius: 40px; padding: 9px; }
.device-screen { height: 100%; border-radius: 36px; overflow: hidden; background: #F7F6F2; }
.device.small .device-screen { border-radius: 31px; }
.device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.toast {
  position: absolute; left: -24px; top: 58%; display: flex; align-items: center; gap: 12px;
  background: rgb(255 255 255 / 0.97); color: #0F1D2E; border-radius: 18px; padding: 12px 16px;
  box-shadow: 0 20px 40px rgb(0 0 0 / 0.35); font-size: 0.85rem; line-height: 1.3; max-width: 260px;
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast strong, .toast small { display: block; }
.toast small { color: #475569; }
.toast-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: #0D6E49; box-shadow: 0 0 0 5px rgb(13 110 73 / 0.18); }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 96px 0; }
.section.alt { background: var(--card); }
.section.dark { background: linear-gradient(180deg, var(--night), var(--night-2)) var(--night); color: var(--night-ink); }
.section.dark .section-lede, .section.dark .fine, .section.dark .kicker { color: var(--night-soft); }
.kicker { color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.8rem; margin: 0 0 12px; }
.section-lede { color: var(--ink-soft); font-size: 1.12rem; max-width: 40em; margin: 0 0 44px; }
.fine { font-size: 0.875rem; color: var(--ink-soft); }

.cards { display: grid; gap: 20px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card p { margin: 0 0 12px; }
.section.alt .card, .section.alt .steps li { background: var(--paper); }

/* Packages */
.cards.packages { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.package .for { color: var(--ink-soft); min-height: 3.2em; }
.price { font-family: var(--font-head); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 2px !important; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.tiers { display: flex; gap: 6px; margin: 10px 0 12px; }
.tiers div { flex: 1; min-width: 0; background: var(--tint); border-radius: 12px; padding: 6px 8px; text-align: center; }
.tiers dt { font-size: 0.72rem; font-weight: 500; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.tiers dd { margin: 0; font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.time { color: var(--ink-soft); font-size: 0.92rem; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px !important; }
.package.featured { border-color: var(--action); box-shadow: 0 0 0 1px var(--action), 0 18px 40px rgb(16 124 84 / 0.12); }
.tag {
  position: absolute; top: -13px; left: 24px; margin: 0 !important;
  background: var(--action); color: var(--on-action); font-size: 0.78rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 16px; height: 16px;
  background: var(--ink);
  -webkit-mask: url("assets/icons/check.svg") center / 16px no-repeat;
  mask: url("assets/icons/check.svg") center / 16px no-repeat;
}
.packages + .fine { margin-top: 28px; }

/* Store path */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li {
  counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 12px; background: var(--ink); color: var(--paper); font-family: var(--font-head); font-weight: 600;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* Work */
.cards.work-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card.work { padding: 0; overflow: hidden; }
.card.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--night); }
.work-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.work-body .more { margin-top: auto; display: grid; gap: 6px; font-weight: 700; }
.work-body .more p { margin: 0; }
.badge {
  align-self: flex-start; font-size: 0.82rem; font-weight: 700;
  background: var(--ok-soft); color: var(--ok); padding: 4px 12px; border-radius: 999px;
}

/* Studio app */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.feature-list li { color: var(--night-soft); padding-left: 18px; border-left: 2px solid rgb(255 255 255 / 0.2); }
.feature-list strong { display: block; color: var(--night-ink); font-weight: 700; }
.studio-visual { display: flex; justify-content: center; gap: 20px; }
.device.offset { margin-top: 64px; }

/* How it works */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow li { padding: 0 4px; }
.flow .n {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%;
  border: 2px solid var(--ink); color: var(--ink); font-family: var(--font-head); font-weight: 600; background: var(--paper);
}
.flow h3 { margin-bottom: 4px; }
.flow p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; padding: 20px 40px 20px 0; position: relative; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--ink-soft); border-bottom: 2.5px solid var(--ink-soft); transform: rotate(45deg);
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { color: var(--ink-soft); margin: 0 0 20px; }

/* Contact and about */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about > p:not(.kicker):not(.fine) { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 24px; }
.contact { display: grid; gap: 6px; }
.contact h3 { margin-bottom: 10px; }
.contact label { font-weight: 700; font-size: 0.95rem; margin-top: 10px; }
.contact .hint { font-weight: 400; color: var(--ink-soft); }
.contact input, .contact textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.contact textarea { resize: vertical; }
.contact input:focus-visible, .contact textarea:focus-visible { outline: 3px solid var(--action); outline-offset: 1px; border-color: var(--action); }
.contact .button { justify-self: start; margin-top: 18px; }
.contact .fine { margin: 10px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-soft); padding: 48px 0 28px; font-size: 0.95rem; }
.site-footer a { color: var(--night-ink); }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-row p { margin: 0 0 4px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--night-ink); font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.copyright { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--night-line); font-size: 0.875rem; }

/* ---------- Inner pages (case studies, privacy, thanks) ---------- */
.case-hero { padding: 72px 0 64px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.case-meta span { border: 1px solid rgb(255 255 255 / 0.22); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; color: var(--night-soft); }
.shots { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.shot { width: 240px; height: auto; border-radius: 28px; box-shadow: 0 18px 40px rgb(15 29 46 / 0.18); }
.shot.device { aspect-ratio: auto; padding: 0; border: 8px solid #1B2A3F; border-radius: 36px; background: #1B2A3F; }
.prose h1 { margin-bottom: 0.2em; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; color: var(--ink-soft); }
.prose li { margin: 6px 0; }
.about.narrow { text-align: left; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .header-row { flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .site-nav {
    order: 3; width: calc(100% + 40px); margin: 0 -20px; padding: 4px 14px 8px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
  html { scroll-padding-top: 116px; }
  .cards.packages { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}

@media (max-width: 860px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { padding-bottom: 0; }
  .toast { left: 50%; transform: translateX(-160px); }
  .cards.work-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .wordmark { font-size: 1.1rem; }
  .hide-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-nav { width: calc(100% + 32px); margin: 0 -16px; padding-left: 10px; padding-right: 10px; }
  .cta-row .button { flex: 1 1 100%; }
  .cards.packages, .steps { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .package .for { min-height: 0; }
  .card { padding: 24px; }
  .device { width: 250px; border-radius: 40px; }
  .device-screen { border-radius: 31px; }
  .toast { left: 0; right: 0; top: auto; bottom: 28px; margin: 0 auto; transform: none; }
  .studio-visual { gap: 12px; }
  .device.small { width: 46%; max-width: 200px; border-radius: 30px; padding: 7px; }
  .device.small .device-screen { border-radius: 24px; }
  .device.offset { margin-top: 40px; }
  .shot { width: 70%; }
}

@media (max-width: 360px) {
  .brand { gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .wordmark { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (forced-colors: active) {
  .button, .card, .steps li { border: 1px solid CanvasText; }
  .ticks li::before { background: CanvasText; }
}
