/* Persony landing — Graphite tokens from DESIGN.md */
:root {
  color-scheme: dark;
  --bg: #17171a;
  --surface: #202024;
  --elevated: #29292e;
  --border: #36363c;
  --border-strong: #4a4a52;
  --text: #f3f1ec;
  --text-2: #c2bfb7;
  --muted: #9b988f;
  --accent: #b5d248;
  --cream: #ebe5d8;
  --ink: #161616;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.top, main, .bottom { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
/* Header: sticky band that stays readable over any section; one primary action. */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(23, 23, 26, .86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--border); }
.top { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.top nav { display: flex; gap: 4px; margin-left: auto; font-size: 15px; color: var(--text-2); }
.top nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: color 140ms var(--ease), background 140ms var(--ease); }
.top nav a:hover { color: var(--text); background: var(--elevated); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; cursor: pointer; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--elevated); }
.menu[open] summary { background: var(--elevated); }
.menu nav { position: absolute; right: 0; top: 52px; display: grid; min-width: 220px; padding: 8px; background: var(--elevated); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 48px rgba(0,0,0,.4); }
.menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 15px; }
.menu nav a:hover { background: var(--surface); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: #171c06; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform 140ms var(--ease), background 140ms var(--ease); }
.btn:hover { background: #c4de5c; }
.btn:active { transform: scale(.97); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--border-strong); background: transparent; }

.eyebrow { font-family: 'Noto Sans Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .18em; color: var(--accent); margin: 0 0 16px; }
h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; margin: 0 0 24px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.025em; font-weight: 600; margin: 0 0 16px; max-width: 760px; }
h3 { font-size: 17px; font-weight: 600; margin: 0; }
p { margin: 0; }
.lead { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 540px; }
.sub { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 640px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.6; }
.fine a { color: var(--text-2); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 72px 0 96px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Phone mockup: the product itself is the hero picture */
.phone { justify-self: center; width: min(340px, 100%); margin: 0; border-radius: 40px; border: 1px solid var(--border); background: #111113; padding: 16px 14px 18px; box-shadow: 0 30px 80px rgba(0,0,0,.55); position: relative; }
/* Examples are stacked in one cell, so the phone keeps the height of the tallest and never jumps. */
.phone-scenes { display: grid; }
.scene { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 420ms var(--ease), visibility 0s linear 420ms; }
.scene.on { opacity: 1; visibility: visible; transition: opacity 420ms var(--ease); }
.phone-notice { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; background: rgba(38,38,38,.92); border: 1px solid #363636; border-radius: 18px; padding: 10px 12px; margin-bottom: 18px; }
.scene.on .phone-notice { animation: drop 900ms var(--ease) 200ms both; }
.phone-picks { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.phone-picks button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.phone-picks img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; opacity: .5; box-shadow: 0 0 0 2px transparent; transition: opacity 200ms var(--ease), box-shadow 200ms var(--ease); }
.phone-picks button:hover img { opacity: .85; }
.phone-picks button[aria-current="true"] img { opacity: 1; box-shadow: 0 0 0 2px #111113, 0 0 0 4px var(--accent); }
.phone-notice img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.phone-notice strong { display: block; font-size: 13px; }
.phone-notice span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.phone-notice time { font-size: 11px; color: var(--muted); align-self: start; }
.phone-chat { display: grid; gap: 12px; padding: 0 4px; }
.day { text-align: center; font-size: 11px; color: var(--muted); }
.msg { display: flex; gap: 8px; align-items: flex-start; }
.msg img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.msg p { font-size: 13.5px; line-height: 1.5; }
.msg.out { justify-content: flex-end; }
.msg.out p { background: var(--cream); color: var(--ink); border-radius: 18px 18px 6px 18px; padding: 9px 13px; max-width: 82%; }
.msg.in p { padding-top: 4px; color: var(--text); }
.phone-caption { text-align: center; font-size: 11px; color: var(--muted); margin-top: 16px; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }

.block { padding: 88px 0; border-top: 1px solid var(--border); }
.rituals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.ritual { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; display: grid; gap: 16px; align-content: start; }
.ritual header { display: flex; gap: 12px; align-items: center; }
.ritual header img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ritual header p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.when { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--accent); }
.ritual blockquote { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }

.steps ol { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { display: flex; gap: 16px; }
.steps li > span { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 14px; color: var(--accent); font-family: 'Noto Sans Mono', monospace; }
.steps li p { color: var(--text-2); font-size: 15px; line-height: 1.6; margin-top: 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.ticks li { display: flex; gap: 14px; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.ticks svg { flex: none; color: var(--accent); margin-top: 2px; }
.memory-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; display: grid; gap: 10px; }
.mc-title { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.mc-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; background: var(--elevated); font-size: 14px; }
.mc-row em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.mc-actions { display: flex; gap: 18px; justify-content: flex-end; font-size: 13px; color: var(--text-2); padding-top: 4px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.features article { display: grid; gap: 10px; align-content: start; }
.features svg { color: var(--accent); }
.features p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 16px; margin-top: 40px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; display: grid; gap: 16px; align-content: start; }
.plan.featured { border-color: #5d6f22; }
.price { font-size: 40px; font-weight: 600; letter-spacing: -.03em; }
.price.soon { font-size: 26px; color: var(--text-2); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-2); font-size: 15px; }
.plan li::before { content: '✓'; color: var(--accent); margin-right: 10px; }
.plan .fine { margin-top: 0; }

.trust ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.trust li { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.trust strong { color: var(--text); font-weight: 600; }
.trust a { color: var(--text); }

.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; max-width: 760px; }
.faq summary { cursor: pointer; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--text-2); line-height: 1.65; margin-top: 12px; font-size: 16px; }

.final { text-align: center; display: grid; justify-items: center; gap: 24px; padding-bottom: 120px; }

.bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.bottom p { margin-top: 10px; }
.bottom nav { display: flex; flex-wrap: wrap; gap: 12px 22px; align-content: start; max-width: 560px; }
.bottom nav a { text-decoration: none; }
.bottom nav a:hover { color: var(--text); }

/* Articles, guides and product pages share the landing chrome */
.article { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.article.wide { max-width: 1120px; }
.article h1 { font-size: clamp(36px, 5vw, 56px); }
.article .lead { max-width: 680px; }
.article .actions { margin-top: 28px; }
.article section { margin-top: 48px; }
.article section h2 { font-size: 22px; letter-spacing: -.015em; margin-bottom: 12px; }
.article section p { color: var(--text-2); font-size: 17px; line-height: 1.7; }
.article section a, .article .lead a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); }
.article section a:hover { text-decoration-color: var(--accent); }
.article .faq details { max-width: none; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related li a { color: var(--text-2); text-decoration: none; font-size: 16px; }
.related li a:hover { color: var(--text); }
.cards { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards a { display: grid; gap: 8px; height: 100%; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); text-decoration: none !important; transition: border-color 140ms var(--ease); }
.cards a:hover { border-color: var(--border-strong); }
.cards strong { font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.35; }
.cards span { font-size: 15px; color: var(--text-2); line-height: 1.55; }
.bottom { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr; align-items: start; }
.bottom nav { max-width: none; }

/* Legal pages and the 404 page: a readable text column. */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 44px); margin-bottom: 12px; }
.legal h2 { font-size: 20px; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); }
.legal .table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 14px; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--border); color: var(--text-2); }
.legal th { border-top: 0; background: var(--surface); color: var(--text); font-weight: 600; }
.notfound { padding-top: 96px; padding-bottom: 128px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .bottom { grid-template-columns: 1fr; }
  .hero, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 40px; }
  .rituals, .steps ol, .features { grid-template-columns: 1fr; }
  .trust ul { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .top > nav { display: none; }
  .top .btn.small { margin-left: auto; }
  /* Phone and tablet: Open app, then the menu button at the right edge. */
  .menu { display: block; order: 3; margin-left: 0; }
}
@media (pointer: coarse), (max-width: 900px) {
  .bottom nav a, .related li a, .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .bottom nav { gap: 0 22px; }
  .faq summary { min-height: 48px; align-items: center; }
  .top .btn.small { min-height: 44px; }
}
@media (max-width: 760px) {
  .top { gap: 8px; height: 60px; }
  .top .btn.small { padding: 0 16px; }
}
@media (max-width: 480px) {
  .top, main, .bottom { padding-left: 16px; padding-right: 16px; }
  .block { padding: 64px 0; }
  .lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene.on .phone-notice { animation: none; }
  .scene, .scene.on, .btn { transition: none; }
}
