/* Mornma website. Colours match the app (app/Mornma/Theme.swift):
   purple background, yellow for what matters, white cards on top. */

:root {
  --purple: #3c3489;
  --purple-deep: #2b2566;
  --yellow: #fac775;
  --brown: #412402;
  --card: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.18);
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--purple);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--yellow); }

.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  border-bottom: 1px solid var(--line);
  background: var(--purple-deep);
}
.bar {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }
nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--yellow); }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero h1 { font-size: 46px; line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 21px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }

.panel {
  background: var(--yellow); color: var(--brown);
  border-radius: var(--radius); padding: 20px 24px; margin: 28px 0;
}
.panel h2, .panel h3 { margin-top: 0; color: var(--brown); }
.panel p, .panel li { color: var(--brown); }
.panel a { color: var(--brown); }

/* Content */
main { padding-bottom: 56px; }
h2 { font-size: 27px; margin: 44px 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 20px; margin: 28px 0 8px; }
p, li { color: var(--ink); }
.muted { color: var(--muted); }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 24px 0; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 20px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

dl.facts { margin: 20px 0; }
dl.facts dt { font-weight: 700; margin-top: 14px; }
dl.facts dd { margin: 2px 0 0; color: var(--muted); }

table { border-collapse: collapse; width: 100%; margin: 20px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--yellow); font-size: 15px; }
td { color: var(--muted); font-size: 16px; }

.pill {
  display: inline-block; background: #fff; color: var(--purple);
  font-weight: 600; text-decoration: none;
  padding: 12px 20px; border-radius: 12px; min-height: 48px; line-height: 24px;
}
.pill.outline { background: transparent; color: var(--yellow); border: 1.5px solid var(--yellow); }

/* Footer */
footer {
  border-top: 1px solid var(--line); background: var(--purple-deep);
  padding: 28px 0 40px; font-size: 15px; color: var(--muted);
}
footer a { color: var(--muted); text-decoration: underline; }
footer .legal { margin-top: 10px; }
footer nav { margin: 0 0 12px; gap: 16px; }

@media (max-width: 600px) {
  .hero { padding: 44px 0 32px; }
  .hero h1 { font-size: 36px; }
  .hero p.lead { font-size: 19px; }
}

/* Home page (founder-approved mockup, 2026-10-14): a phone beside each
   benefit, the App Store badge, the status in the footer. The phones are
   drawn in CSS until real screenshots replace them. */
.wrap.wide { max-width: 1040px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px; padding: 6px 14px; font-size: 13px; line-height: 1.1; text-decoration: none;
}
.badge b { display: block; font-size: 17px; }
.badge.soon { opacity: 0.55; cursor: default; }
.soonnote { font-size: 14px; color: var(--muted); margin-top: 8px; }

.hero.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 64px 0 40px; }
.hero.split h1 { font-size: 52px; line-height: 1.05; }
.hero.split p.lead { max-width: 30em; }
.phonewrap { display: flex; justify-content: center; }

.phone {
  width: 280px; max-width: 100%; aspect-ratio: 9 / 19;
  background: var(--purple); color: #fff;
  border: 9px solid #111; border-radius: 42px; padding: 48px 18px 20px;
  display: flex; flex-direction: column; gap: 10px; position: relative;
  font-size: 14px; line-height: 1.35; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.phone::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #111; border-radius: 13px;
}
.phone.lock { background: linear-gradient(180deg, var(--purple-deep), var(--purple)); }
.phone p { margin: 0; }
.lk-time { font-size: 56px; font-weight: 200; text-align: center; letter-spacing: -0.02em; line-height: 1; margin-top: 14px; }
.lk-date { text-align: center; font-size: 13px; opacity: 0.8; }
.lk-card { background: var(--yellow); color: var(--brown); border-radius: 18px; padding: 12px 14px; margin-top: auto; }
.lk-card small { font-size: 11px; opacity: 0.8; display: block; color: var(--brown); }
.lk-card b { font-size: 16px; display: block; }
.lk-btn { background: #fff; color: var(--purple); border-radius: 12px; padding: 11px; text-align: center; font-weight: 700; margin-top: 8px; }
.ph-h { font-size: 22px; font-weight: 800; margin-top: 4px; }
.q { background: var(--yellow); color: var(--brown); border-radius: 18px; padding: 12px 14px; font-weight: 700; font-size: 16px; }
.opt { background: var(--card); border-radius: 12px; padding: 10px 12px; }
.phone ul.steps { list-style: none; margin: 6px 0 0; padding: 0; }
.phone ul.steps li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); color: #fff; }
.phone ul.steps li span:last-child { font-variant-numeric: tabular-nums; opacity: 0.85; }
.upby { background: var(--yellow); color: var(--brown); border-radius: 18px; padding: 12px 14px; }
.upby b { font-size: 20px; display: block; }
.upby small { font-size: 11px; display: block; margin-top: 2px; color: var(--brown); }

.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feat:nth-of-type(even) .txt { order: 2; }
.feat h2 { font-size: 34px; line-height: 1.1; margin: 0 0 12px; }
.feat p { color: var(--muted); margin: 0; max-width: 28em; font-size: 18px; }
.feat .phone { width: 240px; }

.quiet { padding: 48px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quiet h3 { margin: 0 0 6px; font-size: 18px; }
.quiet p { margin: 0; color: var(--muted); font-size: 16px; }

.cta { padding: 56px 0; text-align: center; border-top: 1px solid var(--line); }
.cta h2 { font-size: 34px; margin: 0 0 16px; }
.cta p { color: var(--muted); margin: 0 0 20px; }

footer .status { margin-top: 10px; }

@media (max-width: 760px) {
  .hero.split, .feat, .quiet { grid-template-columns: 1fr; }
  .feat:nth-of-type(even) .txt { order: 0; }
  .hero.split h1 { font-size: 40px; }
  .feat h2 { font-size: 28px; }
}
