/* The simple product template's look (42pixels design skill), copied into every template app as /p/<app>/style.css. */
:root {
  --bg: #fdfcfc; --surface: #ffffff; --stone: #f5f3f1;
  --text: #0f0f10; --text-2: rgba(0,0,0,.56); --rule: rgba(0,0,0,.06);
  --shadow-card: 0 0 0 1px rgba(0,0,0,.06), 0 1px 1px -0.5px rgba(0,0,0,.06), 0 3px 3px -1.5px rgba(0,0,0,.06);
  --r-card: 14px; --r-pill: 9999px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f10; --surface: #17171a; --stone: #1b1a19;
    --text: #f4f4f5; --text-2: rgba(255,255,255,.6); --rule: rgba(255,255,255,.08);
    --shadow-card: 0 0 0 1px rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 400 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
header { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 600; letter-spacing: -0.01em; text-decoration: none; font-size: 17px; }
nav a { font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; margin-left: 20px; }
nav a:hover { color: var(--text); }
.hero { padding: 96px 0 56px; text-align: center; }
.hero h1 { font-size: 48px; line-height: 52px; font-weight: 300; letter-spacing: -0.03em; margin: 0 0 16px; }
.hero p { color: var(--text-2); margin: 0 auto; max-width: 520px; }
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 64px; }
.app { display: block; background: var(--surface); box-shadow: var(--shadow-card); border-radius: var(--r-card); padding: 20px; text-decoration: none; }
.app strong { display: block; font-weight: 500; }
.app span { color: var(--text-2); font-size: 14px; }
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: 32px; line-height: 40px; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 8px; }
.doc h2 { font-size: 20px; line-height: 28px; font-weight: 500; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text); }
.muted { color: var(--text-2); font-size: 14px; }
footer { border-top: 1px solid var(--rule); padding: 24px 0 40px; font-size: 14px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--text-2); text-decoration: none; }
/* Product pages (/products/<slug>, built by site/products/build.mjs): icon, name, subtitle, a few lines, the badge. */
.product { padding: 64px 0 72px; text-align: center; max-width: 560px; margin: 0 auto; }
.product .app-icon { display: block; width: 128px; height: 128px; margin: 0 auto 24px; border-radius: 22.5%; box-shadow: var(--shadow-card); }
.product h1 { font-size: 40px; line-height: 46px; font-weight: 400; letter-spacing: -0.02em; margin: 0 0 6px; }
.product .subtitle { color: var(--text-2); font-size: 18px; margin: 0 0 28px; }
.product p { margin: 0 0 14px; }
.product .store-badge { display: inline-block; margin: 20px 0 8px; }
.product .store-badge img { display: block; height: 50px; width: auto; }
.product .links { margin-top: 28px; }
@media (max-width: 600px) { .product { padding: 40px 0 56px; } .product h1 { font-size: 32px; line-height: 38px; } }

/* App legal and support pages (/products/<app>/...), like Memo's legal layout: a kicker, the title, the date. */
nav a[aria-current="page"] { color: var(--text); }
.legal .kicker { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.legal .lead { color: var(--text-2); margin: 0 0 32px; }
.doc h3 { font-size: 16px; line-height: 24px; font-weight: 500; margin: 24px 0 4px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc a { text-underline-offset: 2px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--r-card); box-shadow: var(--shadow-card); background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; line-height: 1.5; }
.table-wrap th { text-align: left; font-weight: 500; color: var(--text-2); font-size: 13px; }
.table-wrap th, .table-wrap td { padding: 10px 14px; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table-wrap tr:last-child td { border-bottom: 0; }
.card { background: var(--stone); border-radius: var(--r-card); padding: 20px; margin: 0 0 8px; }
.card h2 { margin-top: 0; }
.card p { color: var(--text-2); margin: 0 0 14px; }
.pill { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--text); color: var(--bg); font-size: 14px; text-decoration: none; }
.links { margin-top: 40px; }
/* On a phone each table row becomes a small card: the first cell as its title, the others under their labels. */
@media (max-width: 600px) {
  .table-wrap { overflow: visible; box-shadow: none; background: none; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-wrap tr { display: block; margin: 0 0 10px; padding: 12px 14px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); }
  .table-wrap td { display: block; padding: 2px 0; border: 0; }
  .table-wrap td:first-child { font-weight: 500; padding-bottom: 6px; }
  .table-wrap td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-top: 6px; }
}
@media (max-width: 600px) { .wrap { padding: 0 16px; } .hero { padding: 56px 0 40px; } .hero h1 { font-size: 36px; line-height: 42px; } }
