:root {
  --bg: #0b0b12;
  --bg-raised: #14141f;
  --card: rgba(255, 255, 255, 0.06);
  --card-edge: rgba(255, 255, 255, 0.12);
  --text: #f4f4f8;
  --muted: #a9a9bb;
  --soft: #7d7d92;
  --rainbow: conic-gradient(from 0deg, #ff9a9a, #ffd59a, #fff59a, #a8ff9a, #9affe8, #9ac4ff, #c49aff, #ff9ae4, #ff9a9a);
  --radius: 26px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #b9d4ff; }
a:hover { color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(11, 11, 18, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 16px; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 88px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background: radial-gradient(closest-side, rgba(154, 196, 255, 0.18), transparent 70%),
              radial-gradient(closest-side at 70% 40%, rgba(255, 154, 228, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-logo { width: 148px; height: 148px; border-radius: 34px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); position: relative; }
.hero h1 { font-size: clamp(44px, 8vw, 76px); line-height: 1.05; margin: 28px 0 8px; letter-spacing: -0.02em; position: relative; }
.dedication { font-family: "New York", "Iowan Old Style", Georgia, serif; font-style: italic; color: var(--muted); font-size: 22px; margin: 0 0 22px; position: relative; }
.tagline { font-size: clamp(20px, 3vw, 26px); color: #dcdcea; max-width: 720px; margin: 0 auto; position: relative; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 0; position: relative; }
.pill { border: 1px solid var(--card-edge); background: var(--card); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: #e8e8f2; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; position: relative; }
.button {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: #fff; color: #0b0b12; font-weight: 700; border-radius: 16px; padding: 14px 22px; font-size: 17px;
}
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--card-edge); }
.soon { display: block; color: var(--soft); font-size: 14px; margin-top: 12px; position: relative; }

/* Rainbow rim, the app's signature edge */
.rim { position: relative; border-radius: var(--radius); background: var(--bg-raised); }
.rim::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--rainbow); opacity: 0.55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* Device mockup of the dashboard */
.device { text-align: left; max-width: 980px; margin: 56px auto 0; padding: 14px; border-radius: 40px; background: #1c1c26; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.screen {
  border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; padding: 2.2%;
  background: radial-gradient(circle at 20% 20%, #5a3a2a, transparent 55%), radial-gradient(circle at 80% 70%, #2a3d5a, transparent 60%), #1a1620;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 2%;
}
.col { display: grid; gap: 3%; min-height: 0; }
.col.left { grid-template-rows: 1.9fr 1fr; }
.col.right { grid-template-rows: 1fr 1fr 1fr; }
.mock { border-radius: 18px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); padding: 6% 7%; min-height: 0; overflow: hidden; color: #fff; font-size: clamp(9px, 1.4vw, 15px); line-height: 1.35; }
.mock h4 { margin: 0 0 6px; font-size: 0.85em; color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.mock.photo { padding: 0; position: relative; background: linear-gradient(135deg, #f6c7a0, #e88f7a 40%, #8a5a9a 75%, #3a4a8a); }
.mock.photo .pair { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mock.photo .pair span:first-child { background: radial-gradient(circle at 50% 38%, #ffe2c4 0 16%, transparent 17%), radial-gradient(ellipse at 50% 85%, #d07a5c 0 38%, transparent 39%), linear-gradient(160deg, #9fd0e8, #6aa0c8); }
.mock.photo .pair span:last-child { background: radial-gradient(circle at 46% 40%, #f3d2b0 0 15%, transparent 16%), radial-gradient(ellipse at 48% 88%, #5a8a5a 0 40%, transparent 41%), linear-gradient(200deg, #f7d58a, #e8a05a); }
.mock.photo .caption { position: absolute; left: 6%; bottom: 7%; font-weight: 700; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.mock.photo .caption small { display: block; font-weight: 500; opacity: 0.9; }
.mock .big { font-size: 2.8em; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.mock .mid { font-size: 1.5em; font-weight: 600; }
.mock .row { display: flex; gap: 4%; margin-top: 6%; }
.mock .chip { flex: 1; text-align: center; background: rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 4% 0; font-weight: 600; font-size: 0.85em; }
.mock .line { display: flex; gap: 8px; align-items: center; margin: 3px 0; white-space: nowrap; }
.dot { width: 0.55em; height: 0.55em; border-radius: 50%; background: #7ab0ff; flex: none; }
.ring { width: 0.8em; height: 0.8em; border-radius: 50%; border: 2px solid #fff; flex: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3%; }

/* Sections */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 20px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { padding: 30px; }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(255, 255, 255, 0.08); margin-bottom: 16px; }
.feature h3 { margin: 0 0 8px; font-size: 22px; }
.feature p { margin: 0; color: var(--muted); font-size: 17px; }

.story { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.story blockquote { margin: 0; font-family: "New York", "Iowan Old Style", Georgia, serif; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.35; }
.story p { color: var(--muted); }

.free { text-align: center; padding: 56px 32px; max-width: 880px; margin: 0 auto; }
.free h2 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 12px; }
.free p { color: var(--muted); margin: 0 auto; max-width: 620px; font-size: 20px; }
.free .tiers { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 10px; }
.check { padding: 18px 22px; display: flex; gap: 12px; align-items: flex-start; }
.check b { display: block; }
.check span { color: var(--muted); font-size: 16px; }

/* Plain pages */
.page { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.page h1 { font-size: clamp(36px, 6vw, 52px); margin: 0 0 8px; }
.page h2 { margin: 40px 0 8px; font-size: 24px; }
.page p, .page li { color: #d6d6e2; }
.page .updated { color: var(--soft); margin-bottom: 32px; }
.faq dt { font-weight: 700; margin-top: 26px; }
.faq dd { margin: 6px 0 0; color: #d6d6e2; }

footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 36px 0 56px; color: var(--soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer a:first-child { margin-left: 0; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .top nav a { margin-left: 14px; font-size: 15px; }
  .top nav a.hide-small { display: none; }
  .hero { padding-top: 56px; }
  /* On a phone the mockup stacks and grows to fit, instead of keeping the iPad's shape. */
  .screen { grid-template-columns: 1fr; aspect-ratio: auto; gap: 10px; padding: 10px; }
  .col { gap: 10px; }
  .col.left { grid-template-rows: 230px auto; }
  .col.right { grid-template-rows: auto auto auto; }
  .split { gap: 10px; }
  .story { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 60px 0; }
  .device { padding: 10px; border-radius: 30px; }
  .screen { border-radius: 22px; }
  .mock { font-size: 12px; }
}
