/* Plam website. The same palette as the app (Packages/DesignSystem, Theme.swift):
   warm paper and graphite, one volt accent used as a fill, olive for accent text
   on paper. No web fonts: the system font is SF on Apple devices, like the app. */

:root {
  --bg: #F3F1EC;
  --surface: #FFFFFF;
  --raised: #ECE9E2;
  --ink: #141512;
  --muted: #64665F;
  --hairline: #DEDAD1;
  --accent: #C8F031;
  --on-accent: #141512;
  --accent-text: #4A6200;
  --night: #0D0E0B;
  --night-surface: #171915;
  --night-raised: #23261F;
  --night-ink: #F3F2EC;
  --night-muted: #9C9E95;
  --night-hairline: #2B2E27;

  --radius-card: 26px;
  --radius-control: 16px;
  --page: 1120px;
  --gutter: 16px;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0E0B;
    --surface: #171915;
    --raised: #23261F;
    --ink: #F3F2EC;
    --muted: #9C9E95;
    --hairline: #2B2E27;
    --accent-text: #C8F031;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; font-weight: 700;
}
.skip:focus { left: 8px; z-index: 10; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* Type */

.display, h1, h2 {
  font-weight: 850;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 750; font-stretch: 112%; margin: 0 0 6px; line-height: 1.25; }
p { margin: 0 0 1em; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 38em; text-wrap: pretty; }
.num { font-family: var(--font-round); font-weight: 850; font-variant-numeric: tabular-nums; }

/* Header and footer */

.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--hairline); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 850; font-stretch: 125%; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-text); }

.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0 48px; margin-top: 96px; font-size: 0.9rem; color: var(--muted); }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-stretch: 125%; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); }
.site-footer address { font-style: normal; }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 750; font-size: 1rem; text-decoration: none;
  background: var(--accent); color: var(--on-accent); border: 0;
}
.btn:hover { text-decoration: none; filter: brightness(1.04); }
.btn.quiet { background: transparent; color: inherit; border: 1.5px solid currentColor; opacity: 0.9; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px 0 16px;
  border-radius: 14px; background: #000; color: #fff; border: 1px solid #3a3a3a; text-decoration: none; line-height: 1.1;
}
.badge-soon svg { width: 22px; height: 26px; fill: #fff; }
.badge-soon small { display: block; font-size: 0.68rem; opacity: 0.8; letter-spacing: 0.02em; }
.badge-soon strong { font-size: 1.05rem; font-weight: 650; }

/* Hero: graphite, like the app icon */

.hero { background: var(--night); color: var(--night-ink); overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -60% 30%; height: 120%;
  background: radial-gradient(closest-side, rgba(200, 240, 49, 0.18), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; gap: 48px; padding-top: 64px; padding-bottom: 72px; position: relative; }
@media (min-width: 920px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding-top: 88px; padding-bottom: 96px; } }
.hero .eyebrow { color: var(--accent); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { color: var(--night-muted); margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.hero .note { color: var(--night-muted); font-size: 0.9rem; margin-top: 18px; }

/* The phone and the app screens drawn in HTML (light app colours, always) */

.phone {
  --bg: #F3F1EC; --surface: #FFFFFF; --raised: #ECE9E2; --ink: #141512; --muted: #64665F; --hairline: #DEDAD1; --accent-text: #4A6200;
  width: min(340px, 100%); margin: 0 auto; aspect-ratio: 9 / 19.2;
  background: var(--bg); color: var(--ink);
  border-radius: 52px; border: 10px solid #2a2c27; box-shadow: 0 0 0 1px #45483f, 0 40px 80px rgba(0, 0, 0, 0.45);
  padding: 46px 14px 18px; position: relative; overflow: hidden; font-size: 15px; line-height: 1.3;
}
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 96px; height: 28px; border-radius: 20px; background: #000; }
.phone .bar { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 14px; }
.phone .bar b { font-size: 1.05rem; font-stretch: 112%; }
.phone .bar span { color: var(--muted); font-size: 0.78rem; display: block; }
.pill { border: 1px solid var(--hairline); background: var(--surface); color: var(--accent-text); font-weight: 650; border-radius: 999px; padding: 7px 14px; font-size: 0.9rem; }

.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 16px; }
.card + .card { margin-top: 10px; }
.card .title { font-weight: 800; font-stretch: 125%; font-size: 1.02rem; margin: 0; }
.card .sub { color: var(--muted); font-size: 0.8rem; margin: 2px 0 10px; }
.card .hint { color: var(--accent-text); font-size: 0.8rem; margin: 0 0 10px; }
.set { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 5px 0; }
.set .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 0.82rem; }
.set b { font-family: var(--font-round); font-weight: 850; font-size: 1.05rem; display: block; }
.set small { color: var(--muted); font-size: 0.76rem; }
.set .last { color: var(--muted); font-size: 0.74rem; }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.stepper { background: var(--raised); border-radius: var(--radius-control); display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; }
.stepper .num { font-size: 1.7rem; line-height: 1; text-align: center; }
.stepper small { display: block; text-align: center; color: var(--muted); font-size: 0.68rem; }
.stepper i { font-style: normal; font-size: 1.3rem; font-weight: 500; }
.effort { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.effort span { background: var(--raised); border-radius: 13px; text-align: center; padding: 10px 0; font-weight: 650; font-size: 0.86rem; }
.effort span.on { background: var(--accent); color: var(--on-accent); }

.tabbar { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex; justify-content: space-around; background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; padding: 8px; font-size: 0.68rem; font-weight: 650; }
.tabbar span { padding: 6px 12px; border-radius: 999px; }
.tabbar .on { background: var(--raised); color: var(--accent-text); }

/* Sections */

section { scroll-margin-top: 72px; }
.section { padding: 96px 0 0; }
.section-head { max-width: 44em; margin-bottom: 40px; }
.section-head .lede { margin-top: 16px; }

.loop { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .loop { grid-template-columns: repeat(5, 1fr); } }
.loop li { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 18px; position: relative; counter-increment: step; }
.loop li::before { content: counter(step); font-family: var(--font-round); font-weight: 850; font-size: 0.85rem; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--raised); margin-bottom: 12px; }
.loop li.key { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.loop li.key::before { background: var(--on-accent); color: var(--accent); }
.loop li p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.loop li.key p { color: inherit; opacity: 0.85; }
.loop-note { color: var(--muted); font-size: 0.95rem; margin-top: 14px; }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 26px; }
.feature p { color: var(--muted); margin: 0; }
.feature .icon { width: 44px; height: 44px; border-radius: 14px; background: var(--raised); display: grid; place-items: center; margin-bottom: 18px; color: var(--accent-text); }
.feature .icon svg { width: 24px; height: 24px; }

.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.flip > :first-child { order: 2; } }
.split ul.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); rotate: -45deg; }

.stage { background: var(--raised); border-radius: 32px; padding: 28px 20px; }
@media (min-width: 720px) { .stage { padding: 40px; } }
.stage .card { max-width: 400px; margin-left: auto; margin-right: auto; }
.proposal .label { font-size: 0.7rem; letter-spacing: 0.14em; font-weight: 700; font-stretch: 125%; color: var(--muted); text-transform: uppercase; margin: 0 0 10px; }
.proposal .change { font-weight: 750; margin: 0 0 8px; }
.proposal .why { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; }
.proposal .row { display: flex; justify-content: space-between; gap: 8px; }
.proposal .row span { border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 0.95rem; background: var(--raised); }
.proposal .row span.go { background: var(--accent); color: var(--on-accent); }
.bubble { background: var(--accent); color: var(--on-accent); border-radius: 22px 22px 6px 22px; padding: 12px 16px; max-width: 86%; margin: 0 0 10px auto; font-size: 0.95rem; }
.reply { background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px 22px 22px 6px; padding: 12px 16px; max-width: 90%; margin: 0 0 10px; font-size: 0.95rem; }

.volume .row { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.volume .row:last-of-type { border-bottom: 0; }
.volume .top { display: flex; justify-content: space-between; gap: 8px; font-size: 0.95rem; }
.volume .top span { color: var(--muted); font-size: 0.85rem; }
.meter { height: 10px; border-radius: 99px; background: var(--raised); margin-top: 8px; position: relative; overflow: hidden; }
.meter::before { content: ""; position: absolute; inset: 0 25% 0 40%; background: var(--hairline); }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--accent); }

.watch { width: 220px; margin: 0 auto; aspect-ratio: 0.84; background: #000; border-radius: 52px; border: 9px solid #2a2c27; box-shadow: 0 0 0 1px #45483f, 0 30px 60px rgba(0, 0, 0, 0.35); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
.watch .ex { font-size: 0.8rem; color: #9C9E95; }
.watch .big { font-family: var(--font-round); font-weight: 850; font-size: 2.6rem; line-height: 1; color: var(--accent); }
.watch .big small { font-size: 0.9rem; color: #fff; }
.watch .eff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; font-size: 0.62rem; font-weight: 700; }
.watch .eff span { background: #23261F; border-radius: 10px; padding: 6px 0; }
.watch .eff span.on { background: var(--accent); color: #141512; }

.privacy-band { background: var(--night); color: var(--night-ink); border-radius: 32px; padding: 40px 24px; }
@media (min-width: 720px) { .privacy-band { padding: 56px; } }
.privacy-band .eyebrow { color: var(--accent); }
.privacy-band .lede { color: var(--night-muted); }
.privacy-band .grid { display: grid; gap: 24px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .privacy-band .grid { grid-template-columns: repeat(3, 1fr); } }
.privacy-band h3 { color: var(--night-ink); }
.privacy-band p { color: var(--night-muted); margin: 0; }
.privacy-band a { color: var(--accent); }

.plans { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 30px; }
.plan.pro { border: 2px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.plan .price { font-family: var(--font-round); font-weight: 850; font-size: 2.4rem; line-height: 1.1; margin: 10px 0 4px; }
.plan .price small { font-family: var(--font); font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .terms { color: var(--muted); font-size: 0.92rem; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 5px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); rotate: -45deg; }
.plans-note { color: var(--muted); font-size: 0.88rem; margin-top: 16px; max-width: 52em; }

.faq { max-width: 52em; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 36px 16px 0; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { color: var(--muted); padding: 0 0 16px; }
.faq details > div p:last-child { margin-bottom: 0; }

.cta { text-align: center; padding: 72px 24px; background: var(--accent); color: var(--on-accent); border-radius: 32px; }
.cta .lede { color: inherit; opacity: 0.8; margin: 16px auto 28px; }
.cta .btn { background: var(--on-accent); color: var(--accent); }

/* Long-form pages: privacy, terms, support */

.doc { max-width: 46em; padding-top: 56px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.doc .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 32px; }
.doc h2 { font-size: 1.5rem; font-stretch: 112%; margin: 48px 0 14px; letter-spacing: -0.01em; }
.doc h3 { margin-top: 28px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.95rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
.doc th { font-weight: 700; white-space: nowrap; }
.summary { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 22px 24px; margin-bottom: 8px; }
.summary ul { margin: 0; }
.notice { background: var(--raised); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 18px; font-size: 0.95rem; margin-bottom: 28px; }
.toc { columns: 2 220px; font-size: 0.95rem; padding-left: 1.2em; }

.contact-card { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 28px; margin: 8px 0 24px; }
.contact-card a.mail { font-size: 1.35rem; font-weight: 800; font-stretch: 112%; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.contact-card p { margin: 0; color: var(--muted); }

.notfound { text-align: center; padding: 120px 0 40px; }
.notfound .lede { margin: 16px auto 28px; }

.meter i.w24 { width: 24%; } .meter i.w40 { width: 40%; } .meter i.w48 { width: 48%; } .meter i.w56 { width: 56%; }
.watch b { color: #fff; }
.site-footer .tagline { margin: 12px 0 0; }
.site-footer .copyright { margin: 32px 0 0; }

/* In dark mode the graphite blocks would vanish into the page; lift them a step. */
@media (prefers-color-scheme: dark) {
  .privacy-band { background: var(--surface); border: 1px solid var(--hairline); }
  .hero { border-bottom: 1px solid var(--hairline); }
}

.card.rest { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.card.rest small { display: block; color: var(--muted); font-size: 0.72rem; }
.card.rest .num { font-size: 1.9rem; line-height: 1; color: var(--accent-text); }
.card.rest b { display: block; font-size: 0.92rem; }

/* On a phone the header wraps to two rows; let it scroll away instead of covering the page. */
@media (max-width: 719px) { .site-header { position: static; } }

.doc .summary h2 { font-size: 0.75rem; letter-spacing: 0.14em; margin: 0 0 12px; color: var(--muted); }
