/* ============================================================
   Magnum Appus LLC — magnumappus.com
   Design: dark atelier. Warm ivory on near-black, gold accents.
   No frameworks, no webfonts — system stacks only.
   ============================================================ */

:root {
  --bg: #0E0D14;
  --bg-raise: #16141F;
  --bg-raise-2: #1D1A29;
  --ink: #F2EDE3;
  --ink-dim: #B5AEA0;
  --ink-faint: #7E7A8A;
  --gold: #E4B54A;
  --gold-soft: #C9A24E;
  --hairline: rgba(242, 237, 227, 0.10);
  --hairline-gold: rgba(228, 181, 74, 0.28);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --phone-radius: 34px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 13, 20, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink); font-family: var(--serif);
  font-size: 20px; letter-spacing: 0.04em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand .llc { color: var(--ink-faint); font-size: 13px; letter-spacing: 0.12em; margin-left: 2px; }
.site-nav { display: flex; gap: 28px; font-size: 15px; }
.site-nav a { color: var(--ink-dim); }
.site-nav a:hover { color: var(--gold); text-decoration: none; }
@media (max-width: 640px) {
  .site-header .wrap { height: 56px; padding: 0 16px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .brand .llc { display: none; }
  .site-nav { gap: 14px; font-size: 13.5px; }
}

/* device-appropriate hint text: hover copy by default, tap copy on touch */
.tap-hint { display: none; }
@media (hover: none) {
  .tap-hint { display: inline; }
  .hover-hint { display: none; }
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 96px 0 72px; }
.hero .mark { width: 88px; height: 88px; margin-bottom: 28px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 7vw, 68px);
  letter-spacing: 0.06em;
}
.hero h1 .appus { color: var(--gold); }
.hero .motto {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(19px, 3vw, 24px);
  color: var(--ink-dim); margin-top: 14px;
}
.hero .rule {
  width: 72px; height: 1px; background: var(--hairline-gold);
  margin: 36px auto;
}
.hero .summary {
  max-width: 640px; margin: 0 auto;
  color: var(--ink-dim); font-size: 18px;
}

/* ---------- Section scaffolding ---------- */
section { padding: 72px 0; }
.section-kicker {
  color: var(--gold-soft); font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-align: center; margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  text-align: center; margin-bottom: 12px;
}
.section-sub {
  text-align: center; color: var(--ink-dim);
  max-width: 560px; margin: 0 auto 52px;
}

/* ---------- App grid / phone tiles ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .app-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; } }

.tile { display: block; color: var(--ink); }
.tile:hover { text-decoration: none; }

.phone {
  position: relative;
  aspect-ratio: 10 / 19;
  border-radius: var(--phone-radius);
  border: 1px solid var(--hairline);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.tile:hover .phone, .tile.open .phone {
  transform: translateY(-6px);
  border-color: var(--hairline-gold);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.6);
}
/* notch */
.phone::before {
  content: ""; position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 9px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.28); z-index: 3;
}

.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center;
}
.screen img.loadmark { width: 62%; height: auto; }
.screen .wordmark { font-family: var(--serif); font-size: 24px; letter-spacing: 0.03em; }
.screen .tagline { font-size: 12.5px; opacity: 0.75; line-height: 1.45; }

/* per-app screens */
.screen.storyloom { background: linear-gradient(170deg, #23224E 0%, #3B2483 100%); }
.screen.storyloom .wordmark { color: #E4B54A; }
.screen.storyloom .tagline { color: #CFC8EE; }

.screen.lovespeak { background: linear-gradient(170deg, #FBF8F0 0%, #F0EEE6 100%); }
.screen.lovespeak .wordmark { color: #26215C; }
.screen.lovespeak .tagline { color: #6A659A; }

.screen.inspection { background: linear-gradient(170deg, #0F333B 0%, #16505B 100%); }
.screen.inspection .wordmark { color: #F2EDE3; font-size: 20px; }
.screen.inspection .tagline { color: #9FC4C6; }

.screen.yourapp {
  background: transparent;
  border-radius: var(--phone-radius);
}
.tile.yourapp-tile .phone { border-style: dashed; border-color: var(--hairline-gold); box-shadow: none; }
.screen.yourapp .wordmark { color: var(--gold); }
.screen.yourapp .tagline { color: var(--ink-faint); }

/* hover veil */
.veil {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px 20px 24px;
  background: linear-gradient(to top, rgba(10, 9, 16, 0.96) 0%, rgba(10, 9, 16, 0.88) 55%, rgba(10, 9, 16, 0.25) 85%, transparent 100%);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: left;
}
.tile:hover .veil, .tile.open .veil { opacity: 1; transform: translateY(0); }
.veil h3 { font-family: var(--serif); font-size: 19px; color: var(--gold); margin-bottom: 6px; }
.veil p { font-size: 13.5px; line-height: 1.5; color: var(--ink-dim); }
.veil .more { margin-top: 12px; font-size: 13px; color: var(--gold); font-weight: 600; }

.tile-caption { text-align: center; margin-top: 16px; }
.tile-caption .name { font-family: var(--serif); font-size: 19px; }
.tile-caption .status {
  display: inline-block; margin-top: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid var(--hairline-gold); border-radius: 100px;
  padding: 3px 12px;
}

.btn {
  display: inline-block; margin-top: 26px;
  background: var(--gold); color: #171307;
  font-weight: 700; font-size: 15.5px;
  padding: 14px 32px; border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(228, 181, 74, 0.25); }
.btn.ghost {
  background: transparent; color: var(--gold);
  border: 1px solid var(--hairline-gold);
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-bubbles {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-content: center; align-items: center;
}
.bubble {
  display: inline-flex; flex-wrap: wrap; align-items: baseline;
  justify-content: center; gap: 8px 10px;
  background: var(--bg-raise);
  border: 1px solid var(--hairline-gold);
  border-radius: 100px;
  padding: 16px 32px;
  color: var(--ink-dim); font-size: 15.5px;
}
.bubble a { font-family: var(--serif); font-size: 18.5px; }
.bubble .or { color: var(--ink-faint); font-style: italic; }
.bubble .label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-soft);
}
@media (max-width: 640px) {
  .bubble { border-radius: 28px; padding: 14px 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 36px 0 48px;
  color: var(--ink-faint); font-size: 14px;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between;
}
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--ink-faint); }
.site-footer a:hover { color: var(--gold); }

/* ============================================================
   App detail pages
   ============================================================ */
.app-hero { padding: 80px 0 56px; }
.app-hero .wrap {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 64px; align-items: center;
}
@media (max-width: 820px) {
  .app-hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .app-hero .hero-phone { margin: 0 auto; }
}
.app-hero .hero-phone { width: 100%; max-width: 300px; }
.app-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 52px); }
.app-hero .app-tagline {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-dim); font-size: 20px; margin: 10px 0 22px;
}
.app-hero .lede { color: var(--ink-dim); max-width: 520px; }
@media (max-width: 820px) { .app-hero .lede { margin: 0 auto; } }
.app-hero .status { margin-bottom: 18px; }
.status-chip {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid var(--hairline-gold); border-radius: 100px;
  padding: 4px 14px;
}

/* workflow step cards with sketch screens */
.flow-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 980px) { .flow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .flow-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; } }

.flow-card { text-align: center; }
.flow-card .mini {
  aspect-ratio: 10 / 17;
  border-radius: 24px;
  border: 1px solid var(--hairline);
  background: var(--bg-raise);
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.flow-card .step-num {
  font-family: var(--serif); color: var(--gold);
  font-size: 15px; margin: 16px 0 6px;
}
.flow-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.flow-card p { font-size: 14px; color: var(--ink-dim); line-height: 1.5; }

/* sketch primitives (stand-ins until real screenshots) */
.sk { border-radius: 6px; background: var(--bg-raise-2); }
.sk.bar { height: 12px; }
.sk.bar.short { width: 55%; }
.sk.bar.gold { background: rgba(228, 181, 74, 0.35); }
.sk.block { flex: 1; }
.sk.pill { height: 30px; border-radius: 100px; }
.sk.pill.gold { background: rgba(228, 181, 74, 0.35); }
.sk.row { height: 22px; }
.sketch-note {
  text-align: center; font-size: 13px; color: var(--ink-faint);
  margin-top: 28px; font-style: italic;
}

/* prose sections on detail pages */
.prose { max-width: 680px; margin: 0 auto; color: var(--ink-dim); }
.prose h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 28px; margin-bottom: 14px; text-align: center; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 0 22px; }
.prose li + li { margin-top: 8px; }

.center-cta { text-align: center; }

/* ---------- /get page ---------- */
.get-hero { text-align: center; padding: 88px 0 64px; }
.get-hero img.loadmark { width: 140px; margin-bottom: 8px; }
.get-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5vw, 46px); }
.get-hero .app-tagline { font-family: var(--serif); font-style: italic; color: var(--ink-dim); font-size: 19px; margin: 10px 0 30px; }
.badges { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 34px 0 10px; }
.badge {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--hairline); border-radius: 12px;
  padding: 12px 22px; min-width: 190px;
  color: var(--ink-dim); text-align: left;
  opacity: 0.55; cursor: default;
}
.badge .store-ic { font-size: 26px; }
.badge .lines .small { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.badge .lines .big { font-size: 17px; font-weight: 600; color: var(--ink); }
.badge-note { font-size: 13px; color: var(--ink-faint); }

/* ---------- legal shells ---------- */
.legal { max-width: 680px; margin: 0 auto; padding: 72px 24px; color: var(--ink-dim); }
.legal h1 { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 36px; margin-bottom: 8px; }
.legal .updated { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 32px; }
.legal h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 22px; margin: 32px 0 10px; }
.legal p + p { margin-top: 12px; }
