:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #17171a;
  --muted: #5f6066;
  --line: #e6e5df;
  --accent: #1f7a4d;
  --accent-ink: #ffffff;
  --live: #1f7a4d;
  --live-bg: #e3f3ea;
  --soon: #8a5a00;
  --soon-bg: #fbf0d9;
  --radius: 18px;
  --shell: 1040px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121214; --surface: #1b1b1e; --ink: #f2f2f0; --muted: #a2a2a8; --line: #2c2c31;
    --accent: #5cc98f; --accent-ink: #0d1a12; --live: #7bd8a5; --live-bg: #183324; --soon: #f0c36b; --soon-bg: #352a12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121214; --surface: #1b1b1e; --ink: #f2f2f0; --muted: #a2a2a8; --line: #2c2c31;
  --accent: #5cc98f; --accent-ink: #0d1a12; --live: #7bd8a5; --live-bg: #183324; --soon: #f0c36b; --soon-bg: #352a12;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding: 0; list-style: none; }
.pills li { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }

/* Product cards */
.section { padding: 32px 0 56px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.section-title p { color: var(--muted); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.card-top { display: flex; align-items: center; gap: 14px; }
.card-top img { width: 64px; height: 64px; border-radius: 15px; }
.card h3 { margin: 0; }
.card .sub { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.card p { color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; padding-top: 6px; }
.card .links { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 15px; }
.status { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; }
.status.live { color: var(--live); background: var(--live-bg); }
.status.soon { color: var(--soon); background: var(--soon-bg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink); cursor: pointer; font-family: inherit;
}
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* Product page */
.product-hero { display: grid; grid-template-columns: 112px 1fr; gap: 28px; align-items: start; padding: 64px 0 32px; }
.product-hero > img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.product-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 8px 0 20px; scroll-snap-type: x mandatory; }
.shots img { width: 220px; flex: none; border-radius: 16px; border: 1px solid var(--line); scroll-snap-align: start; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 24px; }
.features p { color: var(--muted); font-size: 15px; margin: 0; }

/* Long-form documents */
.doc { max-width: 720px; padding: 56px 0 64px; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc section { padding: 22px 0; border-top: 1px solid var(--line); }
.doc h2 { font-size: 1.25rem; margin-bottom: .6em; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.toc { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 8px; padding: 0; list-style: none; }
.toc a { font-size: 14px; text-decoration: none; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* Feedback form */
.form { display: grid; gap: 18px; max-width: 620px; }
.form label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
.form .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 13px; width: 100%;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; font-size: 15px; margin: 0; }
.form-status.ok { color: var(--live); }
.form-status.err { color: #c0392b; }
.counter { font-weight: 400; color: var(--muted); font-size: 13px; justify-self: end; }

/* App Store badge (official artwork, unmodified) and the pre-release pill sized to match */
.store-badge { display: inline-flex; line-height: 0; border-radius: 9px; }
.store-badge img { height: 48px; width: auto; }
.card .store-badge img { height: 40px; }
.store-soon {
  display: inline-flex; align-items: center; height: 48px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 15px; font-weight: 600;
}
.card .store-soon { height: 40px; font-size: 14px; padding: 0 14px; }
.actions, .card .links { align-items: center; }

/* Icon tiles (principles, privacy at a glance) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tile h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.tile p { color: var(--muted); font-size: 15px; margin: 0; }
.tile-icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--live-bg); color: var(--accent);
}

/* Free / Pro */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.pro { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan h3 { margin-bottom: 12px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; color: var(--muted); font-size: 15px; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: .35em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.plan-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Closing "get the app" panel on product pages */
.get-panel {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px;
}
.get-panel img:first-child { width: 72px; height: 72px; border-radius: 17px; }
.get-panel h2 { font-size: 1.5rem; margin-bottom: 4px; }
.get-panel p { margin: 0; color: var(--muted); }

/* Contact band above the footer */
.contact-band { padding: 8px 0 64px; }
.band {
  display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap;
  background: var(--ink); color: var(--bg); border-radius: 24px; padding: 32px 36px;
}
.band h2 { font-size: 1.5rem; margin-bottom: 4px; }
.band p { margin: 0; opacity: .72; }
.band-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.band .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.band .btn.secondary { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-brand .brand { margin-bottom: 10px; }
.foot-brand .brand img { width: 28px; height: 28px; border-radius: 0; }
.foot-brand p { max-width: 280px; margin: 0; }
.site-foot nav { display: grid; gap: 8px; align-content: start; }
.site-foot h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0 0 4px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot .brand { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .get-panel { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .shell { padding: 0 16px; }
  .hero { padding: 48px 0 24px; }
  .product-hero { grid-template-columns: 1fr; gap: 18px; padding-top: 40px; }
  .product-hero > img { width: 88px; height: 88px; border-radius: 20px; }
  .shots img { width: 180px; }
  .site-nav a { padding: 6px 8px; }
}
a.plain { color: inherit; text-decoration: none; }
.after-status { margin-top: 12px; }
.form-foot { margin: 0; }

@media (max-width: 600px) {
  .band { padding: 26px 22px; border-radius: 20px; }
  .contact-band { padding-bottom: 40px; }
}
