/* ==========================================================================
   Ulix — shared warm-dark editorial design system
   --------------------------------------------------------------------------
   Scoped to `.home-page`. Loaded AFTER ulix.css so these rules win within the
   wrapper. Used by the home page (index.html) and the apps page (apps.html).
   Self-hosted Geist + Newsreader (loaded via <link> in each page's <head>).
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Home page — scoped to .home-page
   --------------------------------------------------------------------------
   Loaded after ulix.css so these rules win on specificity within the wrapper.
   Same warm-dark editorial system as the app landing pages (see /guten/),
   with a blue "information" accent. Gold is reserved for utilities / "soon".
   ========================================================================== */

.home-page {
  --bg: #0F0E0C;
  --fg: #F4EFE6;
  --muted: rgba(244,239,230,0.65);
  --subtle: rgba(244,239,230,0.45);
  --card-bg: #181614;
  --rule: rgba(244,239,230,0.12);
  --accent: #5BA3F5;   /* blue — the "information" accent (italics, numbers) */
  --gold: #E5B83A;     /* gold — utilities, "soon", coming-this-year */
  --serif: 'Newsreader', Georgia, serif;
  --sans: Geist, system-ui, sans-serif;

  /* Override site tokens so the shared header / footer / drawer pick up the
     warm-dark palette inside this page only. */
  --ulix-primary: #0F0E0C;
  --ulix-primary-dark: #0F0E0C;
  --ulix-accent: #5BA3F5;
  --ulix-bg: #0F0E0C;
  --ulix-ink: #F4EFE6;

  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Shared chrome tweaks for the warm-dark palette ---------- */
.home-page .site-header { border-bottom-color: rgba(244,239,230,0.1); }
.home-page .btn--primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.home-page .btn--primary:hover { background: #fff; }
.home-page .btn--secondary,
.home-page .btn--header {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule);
  box-shadow: none;
}
.home-page .btn--secondary:hover,
.home-page .btn--header:hover { border-color: rgba(244,239,230,0.4); }
.home-page .site-footer { border-top-color: rgba(244,239,230,0.12); color: rgba(244,239,230,0.7); }
.home-page .site-footer__tag,
.home-page .site-footer__copyright,
.home-page .site-footer__links a { color: rgba(244,239,230,0.7); }
.home-page .site-footer__brand-name,
.home-page .site-footer__links a:hover { color: var(--fg); }
.home-page .newsletter__label { color: rgba(244,239,230,0.8); }
.home-page .footer-wordmark { height: 108px; width: auto; opacity: 0.92; }
.home-page .footer-credo {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.home-page .footer-credo b { color: var(--fg); font-weight: 400; }
.home-page .footer-credo .sep { color: var(--accent); padding: 0 4px; }

.home-page a { color: inherit; text-decoration: none; }
.home-page img { display: block; user-select: none; -webkit-user-drag: none; }
.home-page h1, .home-page h2, .home-page h3, .home-page h4 { margin: 0; color: var(--fg); }
.home-page p, .home-page ul { margin: 0; }
.home-page ul { list-style: none; padding: 0; }
.home-page .page { max-width: 1280px; margin: 0 auto; }

/* ---------- Phone frame (shared with the app pages) ---------- */
.home-page .phone {
  width: calc(280px * var(--s, 1));
  height: calc(580px * var(--s, 1));
  border-radius: calc(38px * var(--s, 1));
  padding: calc(8px * var(--s, 1));
  background: linear-gradient(180deg, #1a1a1a 0%, #050505 100%);
  box-shadow:
    0 calc(30px * var(--s, 1)) calc(80px * var(--s, 1)) rgba(0,0,0,0.35),
    0 calc(4px * var(--s, 1)) calc(12px * var(--s, 1)) rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  transform: rotate(var(--r, 0deg));
  flex-shrink: 0;
  position: relative;
}
.home-page .phone-screen {
  width: 100%;
  height: 100%;
  border-radius: calc(30px * var(--s, 1));
  overflow: hidden;
  background: #000;
}
.home-page .phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
/* "Coming soon" placeholder screen for unreleased apps */
.home-page .phone-screen--soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(91,163,245,0.10), transparent 60%),
    #0c0b0a;
}
.home-page .phone-screen--soon img { width: 30%; max-width: 72px; height: auto; border-radius: 16px; }
.home-page .soon-screen__name { font-family: var(--serif); font-size: 19px; color: var(--fg); }
.home-page .soon-screen__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.home-page .soon-screen__label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

/* ---------- Eyebrow (numbered section label) ---------- */
.home-page .sec-eyebrow { display: flex; flex-direction: column; gap: 10px; }
.home-page .sec-eyebrow__num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.home-page .sec-eyebrow__label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--subtle);
  font-weight: 500;
}

/* ---------- Section divider ---------- */
.home-page .divider { height: 1px; background: var(--rule); margin: 0 80px; }

/* ---------- Play badge (shared with the app pages) ---------- */
.home-page .play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0F0E0C;
  color: var(--fg);
  padding: 13px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  border: 1px solid #2a2724;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  transition: transform 0.15s;
}
.home-page .play-badge:hover { transform: translateY(-1px); }
.home-page .play-badge__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.home-page .play-badge__sub { font-size: 10px; opacity: 0.65; letter-spacing: 0.08em; text-transform: uppercase; }
.home-page .play-badge__main { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Inline "more" links ---------- */
.home-page .more-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--fg); white-space: nowrap;
}
.home-page .more-link:hover { gap: 10px; }
.home-page .more-link--gold { color: var(--gold); }
.home-page .secondary-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(244,239,230,0.75); font-family: var(--sans);
  font-size: 15px; font-weight: 500; padding: 12px 4px;
  border-bottom: 1px solid rgba(244,239,230,0.25);
}
.home-page .secondary-link:hover { color: var(--fg); }

/* =========================== HERO =========================== */
.home-page .home-hero {
  padding: 64px 80px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-page .home-hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 7.6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 24ch;
  margin: 0 auto;
}
.home-page .home-hero__title em { font-style: italic; color: var(--accent); }
.home-page .home-hero__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 760px;
  margin: 28px auto 0;
}
.home-page .home-hero__ctas {
  margin-top: 36px;
  display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.home-page .home-hero__pills {
  margin-top: 40px;
  display: flex; gap: 12px 28px; justify-content: center; flex-wrap: wrap;
}
.home-page .hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); letter-spacing: 0.01em;
}
.home-page .hero-pill::before {
  content: ""; width: 5px; height: 5px; background: var(--accent);
  transform: rotate(45deg); flex-shrink: 0;
}
.home-page .hero-phones {
  position: relative;
  margin-top: 72px;
  min-height: 460px;
  display: flex; align-items: center; justify-content: center;
}
.home-page .hero-phones__glow {
  position: absolute; inset: 0;
  background: radial-gradient(46% 60% at 50% 45%, rgba(91,163,245,0.16), transparent 70%);
  filter: blur(50px); pointer-events: none;
}
.home-page .hero-phones__row {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.home-page .hero-phones__row .phone { margin: 0 -16px; }

/* =========================== NUMBERED SECTIONS =========================== */
.home-page .sec { padding: 92px 80px; }
.home-page .sec__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: end; margin-bottom: 60px;
}
.home-page .sec__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 20px;
  max-width: 600px;
  text-wrap: balance;
}
.home-page .sec__title em { font-style: italic; color: var(--accent); }
.home-page .sec__support {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 430px;
  justify-self: end;
}

/* ---------- App cards ---------- */
.home-page .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.home-page .cards--utility { gap: 24px; }
.home-page .app-card {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 55%);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.home-page .app-card:hover { border-color: rgba(244,239,230,0.22); }
.home-page .app-card__head { display: flex; align-items: center; gap: 14px; }
.home-page .app-card__icon { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; }
.home-page .app-card__name { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1; }
.home-page .app-card__tags { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.home-page .app-tag {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--subtle); font-weight: 500;
}
.home-page .soon-badge {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(229,184,58,0.4); border-radius: 999px; padding: 2px 8px; font-weight: 500;
}
.home-page .app-card__headline {
  font-family: var(--serif); font-weight: 500; font-size: 25px;
  letter-spacing: -0.015em; line-height: 1.12; color: var(--fg);
}
.home-page .app-card__body { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.home-page .app-card__art {
  background: var(--card-bg);
  border: 1px solid rgba(244,239,230,0.05);
  border-radius: 12px;
  height: 300px;
  display: flex; justify-content: center; align-items: flex-end;
  padding-top: 30px;
  overflow: hidden;
}
.home-page .app-card__art--sm { height: 250px; }
.home-page .tag-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.home-page .tag-pills li {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; color: var(--muted);
}
.home-page .tag-pills li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
}
.home-page .app-card__foot {
  margin-top: auto; padding-top: 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.home-page .coming-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--muted);
  border: 1px dashed var(--rule); border-radius: 999px; padding: 9px 14px;
}
.home-page .coming-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0;
}

/* ---------- Utility feature list (per-card brand accent) ---------- */
.home-page .app-card--util { --util-accent: var(--accent); }
.home-page .util-feature-list { display: flex; flex-direction: column; gap: 11px; margin-top: 4px; }
.home-page .util-feature-list li {
  display: flex; align-items: flex-start; gap: 11px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.11em; line-height: 1.5; text-transform: uppercase; color: var(--muted);
}
.home-page .util-feature-list li::before {
  content: ""; width: 7px; height: 7px; margin-top: 4px; flex-shrink: 0; background: var(--util-accent);
}

/* =========================== CLOSING CTA =========================== */
.home-page .home-cta { padding: 116px 80px; text-align: center; }
.home-page .home-cta__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6.6vw, 88px);
  line-height: 0.99;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 18ch;
  margin: 18px auto 0;
}
.home-page .home-cta__title em { font-style: italic; color: var(--accent); }
.home-page .home-cta__body {
  font-family: var(--serif); font-weight: 300; font-size: 19px;
  color: var(--muted); max-width: 560px; margin: 28px auto 0; line-height: 1.5;
}
.home-page .home-cta__ctas {
  margin-top: 40px; display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.home-page .home-cta__icons {
  margin-top: 64px; display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.home-page .home-cta__icons a { display: block; transition: transform 0.15s; }
.home-page .home-cta__icons a:hover { transform: translateY(-3px); }
.home-page .home-cta__icons img { width: 54px; height: 54px; border-radius: 13px; border: 1px solid var(--rule); }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1024px) {
  .home-page .cards { grid-template-columns: 1fr 1fr; }
  .home-page .hero-phones__row .phone:nth-child(1),
  .home-page .hero-phones__row .phone:nth-child(5) { display: none; }
}
@media (max-width: 760px) {
  .home-page .divider { margin: 0 24px; }
  .home-page .home-hero { padding: 40px 24px 56px; }
  .home-page .home-hero__pills { gap: 10px 20px; }
  .home-page .hero-phones { margin-top: 44px; min-height: 0; }
  /* Mobile: swipeable carousel of all five screens (instead of one) */
  .home-page .hero-phones__row {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px calc(50% - 105px);
  }
  .home-page .hero-phones__row::-webkit-scrollbar { display: none; }
  .home-page .hero-phones__row .phone {
    margin: 0;
    transform: none;
    scroll-snap-align: center;
    --s: 0.75 !important;
  }
  .home-page .hero-phones__row .phone:nth-child(1),
  .home-page .hero-phones__row .phone:nth-child(2),
  .home-page .hero-phones__row .phone:nth-child(4),
  .home-page .hero-phones__row .phone:nth-child(5) { display: block; }
  .home-page .hero-phones__row .phone:nth-child(3) { order: -1; }

  .home-page .sec { padding: 60px 24px; }
  .home-page .sec__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .home-page .sec__support { justify-self: start; }
  .home-page .cards { grid-template-columns: 1fr; gap: 20px; }
  .home-page .app-card__art { height: 280px; }

  .home-page .home-cta { padding: 72px 24px; }
  .home-page .home-cta__icons { gap: 14px; }
  .home-page .home-cta__icons img { width: 46px; height: 46px; }
}

/* ==========================================================================
   Long-form document pages (privacy, policies) — the "prose card"
   --------------------------------------------------------------------------
   The light theme's nice shadowed .card, re-imagined for the warm-dark palette:
   a lifted, bordered surface that wraps long-form copy. Used by the privacy
   pages; reusable by terms / support / any document page.
   ========================================================================== */
.home-page .doc { max-width: 860px; margin: 0 auto; padding: 64px 24px 96px; }

.home-page .doc-hero { text-align: center; margin-bottom: 36px; }
.home-page .doc-hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--fg);
}
.home-page .doc-hero__title em { font-style: italic; color: var(--accent); }
.home-page .doc-hero__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 680px;
  margin: 20px auto 0;
}
.home-page .doc-hero__meta {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--subtle);
}

.home-page .prose-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent 55%), var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(24px, 4.2vw, 44px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.38), 0 2px 6px rgba(0,0,0,0.22);
}
.home-page .prose-card > :first-child { margin-top: 0; }

.home-page .prose-card p {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--muted);
  margin-top: 16px;
}
.home-page .prose-card p.lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--fg);
}
.home-page .prose-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: var(--fg);
  margin-top: 34px;
}
.home-page .prose-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 11px; }
.home-page .prose-card li {
  position: relative;
  padding-left: 22px;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--muted);
}
.home-page .prose-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.home-page .prose-card a:not(.btn) {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(91,163,245,0.45);
}
.home-page .prose-card a:not(.btn):hover { border-bottom-color: var(--accent); }

@media (max-width: 760px) {
  .home-page .doc { padding: 40px 18px 64px; }
}

/* ---------- Forms inside the prose card (contact / support) ---------- */
.home-page .form { display: grid; gap: 18px; }
.home-page .form-field { display: grid; gap: 8px; }
.home-page .form-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.home-page .form-input,
.home-page .form-textarea,
.home-page .form-select {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--fg);
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 14px;
}
.home-page .form-input::placeholder,
.home-page .form-textarea::placeholder { color: var(--subtle); }
.home-page .form-input:focus,
.home-page .form-textarea:focus,
.home-page .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,163,245,0.18);
}
.home-page .form-textarea { min-height: 150px; resize: vertical; }
.home-page .form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23F4EFE6' stroke-opacity='0.5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.home-page .form-note { font-size: 12.5px; line-height: 1.55; color: var(--subtle); }
.home-page .form-footer-note { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- Stacked prose cards (about page values) ---------- */
.home-page .prose-card + .prose-card { margin-top: 22px; }

/* ---------- Reveal list (terms contact section) ---------- */
.home-page .prose-card .reveal-list {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- Centered status pages (thanks / 404) ---------- */
.home-page .doc--narrow { max-width: 560px; }
.home-page .prose-card--center { text-align: center; }
.home-page .prose-card--center .status-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.home-page .status-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
