/* shiftaway.app: one stylesheet, no outside sources (docs/SECURITY.md). Colours are the app's tokens
   (docs/DESIGN.md, Phase S; the white restyle, MKT-SITE and MKT-SITEPAST), light and dark.
   No inline styles: the CSP has style-src 'self'. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("/fonts/plus-jakarta-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500 700; font-display: swap; src: url("/fonts/plus-jakarta-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-800.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --card: #ecf0f4;
  --line: #d6dde6;      /* hairlines and tile edges, decoration only */
  --field: #887d6e;     /* control borders (app: fieldLine), 3:1 */
  --accent: #3f72ba;    /* FILLS only: day tiles, ticks, swatch */
  --on-accent: #ffffff;
  --link: #335f9e;      /* all blue TEXT */
  --text: #1f1c19;
  --body: #4a4238;
  --muted: #6a6259;
  --past: #92acd0;      /* past working day (app: pastAccent) */
  --on-past: #1f1c19;
  --chip: #e9f1fb;
  --chip-fg: #1d3e6e;
  --night: #241f45;     /* the drawn widgets (DESIGN.md tokens) */
  --on-night: #cfc7f7;
  --past-night: #9c92cc;
  --errand: #3f72ba;
  --errand-row: #cfe0f5;
  --box: #ffffff;
  --habit-green: #3a663d;
  --habit-green-row: #c9e5cb;
  --bezel: #1f1c19;
  --second: #a33f29;    /* notices */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1714;
    --card: #322c26;
    --line: #4a433b;
    --field: #8f8478;
    --link: #82a8e8;
    --text: #f3ede4;
    --body: #d9d0c5;
    --muted: #b5aba0;
    --past: #34567f;
    --on-past: #f3ede4;
    --chip: #2a3b54;
    --chip-fg: #d6e5fb;
    --night: #4a3f9e;
    --on-night: #d9d2fb;
    --past-night: #403880;
    --errand: #8db4f2;
    --errand-row: #2a3a4c;
    --box: #322c26;
    --habit-green: #76bb7b;
    --habit-green-row: #273928;
    --bezel: #4a433b;
    --second: #ec8b70;
  }
  /* favicon.svg's dark tile matches the dark page; a hairline keeps its edge (until the new icon lands) */
  .brand img, .closer img { outline: 1px solid var(--line); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.solo { display: inline-flex; align-items: center; min-height: 44px; } /* a link on its own line: 44 tall */
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; color: var(--text); }
p { margin: 0 0 14px; }
img { max-width: 100%; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 23px; letter-spacing: -0.03em; min-height: 44px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.navlinks { display: flex; align-items: center; gap: 4px; }
.navlinks a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 12px; }
.navlinks a[aria-current] { color: var(--link); }
.status { display: inline-flex; align-items: center; gap: 8px; background: var(--chip); color: var(--chip-fg); font-weight: 600; font-size: 14px; border-radius: 999px; padding: 0 14px; min-height: 36px; margin-left: 10px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 48px; font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h2 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot a { color: var(--text); text-decoration: none; display: flex; align-items: center; min-height: 44px; }
.foot .tag { margin: 6px 0 0; color: var(--muted); }
.foot .fine { grid-column: 1 / -1; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 20px; margin: 8px 0 0; }

/* Device frame: flat, no shadow (brand rule) */
.dev { --w: 290px; width: var(--w); flex: none; background: var(--bezel); border-radius: calc(var(--w) * .165); padding: calc(var(--w) * .032); }
.dev img { display: block; width: 100%; height: auto; aspect-ratio: 402 / 874; border-radius: calc(var(--w) * .135); }
.panel { background: var(--card); border-radius: 24px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding: 56px 24px 0; height: 540px; }

/* Landing */
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--text); color: var(--bg); border-radius: 14px; padding: 0 20px; min-height: 56px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.store img { width: 30px; height: 30px; border-radius: 7px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px; text-decoration: none; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; padding-top: 48px; }
.hero h1 { font-size: 52px; margin-bottom: 22px; }
.hero .lede { font-size: 21px; color: var(--body); margin-bottom: 32px; max-width: 30ch; }
.hero .cta { margin-bottom: 18px; }
.hero .price { font-size: 15px; color: var(--muted); margin: 0; }
.hero .panel { height: 580px; }
.hero .dev:first-child { margin-top: 72px; --w: 210px; margin-right: -48px; }
.hero .dev + .dev { --w: 246px; position: relative; z-index: 1; outline: 6px solid var(--card); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 26px 24px 26px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.facts span { color: var(--muted); font-size: 15px; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 112px; }
.feat.flip .ftext { order: 2; }
.chipic { width: 48px; height: 48px; border-radius: 14px; background: var(--chip); color: var(--link); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.feat h2 { font-size: 44px; margin-bottom: 18px; }
.feat p { font-size: 19px; color: var(--body); max-width: 34ch; }
.feat .note { font-size: 15px; color: var(--muted); }
/* More ways to plan: one grey card behind 3 phones, the words under it in 3 columns (UI/UX section B) */
.more { margin-top: 112px; text-align: center; }
.more h2 { font-size: 44px; margin-bottom: 32px; }
.trio { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.trio::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 460px; background: var(--card); border-radius: 24px; }
.trio .panel { position: relative; background: none; border-radius: 0; height: 460px; padding: 56px 0 0; }
.trio .dev { --w: 220px; }
.item h3 { font-size: 22px; margin: 24px 0 8px; }
.item p { color: var(--body); max-width: 30ch; margin: 0 auto; }
/* Two widgets drawn as the app draws them (targets/widget, uiux-web-widgets-render.md A): every size is app points x --s,
   so the widgets are as wide as the phones. No em sizes: a minimum font setting must not change the layout. */
.wg { --s: .65; display: flex; flex-direction: column; gap: calc(var(--s) * 16px); text-align: left; line-height: 1.26; }
.wg .w { width: calc(var(--s) * 338px); background: var(--bg); border-radius: calc(var(--s) * 22px); padding: calc(var(--s) * 16px); }
.wg .med { height: calc(var(--s) * 158px); display: flex; gap: calc(var(--s) * 12px); }
.wg .sb { width: calc(var(--s) * 124px); flex: none; display: flex; flex-direction: column; }
.wg .sd { display: flex; align-items: center; gap: calc(var(--s) * 6px); font-size: calc(var(--s) * 12px); font-weight: 700; color: var(--muted); }
.wg .mk { width: calc(var(--s) * 14px); height: calc(var(--s) * 14px); border: calc(var(--s) * 1.5px) solid var(--field); border-radius: calc(var(--s) * 4px); }
.wg .st { margin-top: calc(var(--s) * 8px); font-size: calc(var(--s) * 22px); font-weight: 800; color: var(--text); }
.wg .nx { margin-top: auto; font-size: calc(var(--s) * 13px); font-weight: 500; color: var(--body); }
.wg .rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--s) * 3px); }
.wg .r { height: calc(var(--s) * 36px); flex: none; display: flex; align-items: center; background: var(--errand-row); border-radius: calc(var(--s) * 4px); font-size: calc(var(--s) * 14px); font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; }
.wg .r:first-child { border-top-left-radius: calc(var(--s) * 10px); border-top-right-radius: calc(var(--s) * 10px); }
.wg .r:nth-last-child(2) { border-bottom-left-radius: calc(var(--s) * 10px); border-bottom-right-radius: calc(var(--s) * 10px); } /* the last row, before "+2 more" */
.wg .bx { width: calc(var(--s) * 16px); height: calc(var(--s) * 16px); flex: none; margin: 0 calc(var(--s) * 7px); background: var(--box); border: calc(var(--s) * 1.5px) solid var(--errand); border-radius: calc(var(--s) * 5px); }
.wg .h { background: var(--habit-green-row); font-weight: 600; }
.wg .h .bx { border-color: var(--habit-green); border-radius: 50%; }
.wg .mr { padding-left: calc(var(--s) * 8px); font-size: calc(var(--s) * 11px); font-weight: 700; color: var(--muted); }
.wg .lg { height: calc(var(--s) * 354px); display: flex; flex-direction: column; }
.wg .mh { height: calc(var(--s) * 26px); margin-bottom: calc(var(--s) * 8px); display: flex; flex-wrap: wrap; align-content: center; align-items: baseline; gap: calc(var(--s) * 4px); font-size: calc(var(--s) * 13px); font-weight: 600; color: var(--muted); }
.wg .mh b { font-size: calc(var(--s) * 17px); font-weight: 700; color: var(--text); }
.wg .ch { margin-left: auto; padding: calc(var(--s) * 4px) calc(var(--s) * 8px); border-radius: calc(var(--s) * 8px); background: var(--chip); color: var(--chip-fg); font-size: calc(var(--s) * 12px); font-weight: 700; }
.wg .wk, .wg .mg { display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(var(--s) * 4px); }
.wg .wk { height: calc(var(--s) * 14px); text-align: center; font-size: calc(var(--s) * 11px); font-weight: 700; line-height: calc(var(--s) * 14px); color: var(--muted); }
.wg .mg { flex: 1; min-height: 0; grid-template-rows: repeat(5, 1fr); margin-top: calc(var(--s) * 4px); }
.wg .mg span { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: calc(var(--s) * 10px); font-size: calc(var(--s) * 14px); font-weight: 800; }
.wg .mg span::before { content: ""; height: calc(var(--s) * 9px); margin-bottom: calc(var(--s) * 1px); } /* the moon's place, so every day number sits level */
.wg .mg .n::before { display: none; }
.wg .mn { width: calc(var(--s) * 8px); height: calc(var(--s) * 9px); margin-bottom: calc(var(--s) * 1px); fill: currentColor; }
.wg .o { background: var(--card); color: var(--text); }
.wg .o.p { color: var(--muted); }
.wg .d { background: var(--accent); color: var(--on-accent); }
.wg .d.p { background: var(--past); color: var(--on-past); }
.wg .n { background: var(--night); color: var(--on-night); }
.wg .n.p { background: var(--past-night); color: var(--on-past); }
.wg .td::after { content: ""; position: absolute; inset: calc(var(--s) * -3.5px); border: calc(var(--s) * 2px) solid var(--text); border-radius: calc(var(--s) * 12px); } /* today's ring, 3.5 outside the tile */
.price-card { background: var(--card); border-radius: 24px; padding: 56px; margin-top: 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.price-card h2 { font-size: 44px; margin-bottom: 14px; }
.price-card .muted { margin: 14px 0 0; }
.big { font-size: 88px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.big small { font-size: 22px; letter-spacing: 0; color: var(--muted); font-weight: 600; margin-left: 8px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
.tk { display: inline-flex; width: 22px; height: 22px; border-radius: 7px; background: var(--accent); color: var(--on-accent); align-items: center; justify-content: center; flex: none; margin-top: 2px; }
.tk .ic { width: 15px; height: 15px; stroke-width: 3; }
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 112px; align-items: start; }
.privacy h2 { font-size: 36px; margin-bottom: 16px; }
.privacy p { font-size: 19px; color: var(--body); }
.leaves { background: var(--card); border-radius: 16px; padding: 6px 0; }
.leaves h3 { padding: 14px 20px 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.leaves ul { list-style: none; margin: 0; padding: 0; }
.leaves li { display: flex; gap: 14px; align-items: center; padding: 0 20px; }
.leaves .t { flex: 1; min-height: 64px; padding: 12px 0; display: flex; flex-direction: column; justify-content: center; }
.leaves li + li .t { border-top: 1px solid var(--line); }
.tile { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); color: var(--link); display: flex; align-items: center; justify-content: center; flex: none; }
.leaves .t b { display: block; font-size: 16px; font-weight: 600; }
.leaves .t span { font-size: 14px; color: var(--muted); }
.closer { text-align: center; margin-top: 120px; }
.closer img { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 22px; }
.closer h2 { font-size: 44px; margin-bottom: 12px; }

/* Inner pages: one reading column */
.doc { max-width: 760px; margin: 0 auto; }
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: 48px; margin-bottom: 10px; }
.page-head p { margin: 0; color: var(--muted); font-size: 15px; }
.doc h2 { font-size: 24px; letter-spacing: -0.015em; margin: 44px 0 12px; scroll-margin-top: 16px; }
.doc p, .doc li { color: var(--body); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }
.card { background: var(--card); border-radius: 16px; padding: 24px; margin: 28px 0; }
.card h2, .doc .card h2 { margin: 0 0 10px; font-size: 20px; }
.card p { color: var(--text); }
.card > :last-child { margin-bottom: 0; }
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 56px; align-items: start; justify-content: center; }
.with-toc .doc { margin: 0; }
.toc { position: sticky; top: 24px; padding-top: 64px; font-size: 15px; }
.toc b { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { display: flex; align-items: center; min-height: 44px; color: var(--body); text-decoration: none; border-left: 2px solid var(--line); padding-left: 14px; }
.toc a:hover { color: var(--link); border-left-color: var(--link); }
.toc-m { display: none; background: var(--card); border-radius: 16px; margin-top: 20px; }
.toc-m summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 700; cursor: pointer; list-style: none; }
.toc-m summary::-webkit-details-marker { display: none; } /* Safari draws its triangle here */
.toc-m summary::after { content: "+"; font-size: 22px; color: var(--link); }
.toc-m[open] summary::after { content: "–"; }
.toc-m div { padding: 0 18px 12px; }
.toc-m a { display: flex; align-items: center; min-height: 44px; color: var(--body); text-decoration: none; }
.toc-m a + a { border-top: 1px solid var(--line); }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.contact .tile { width: 44px; height: 44px; border-radius: 12px; }
.contact a { font-weight: 700; }
.contact > :last-child { flex: 1 1 8em; min-width: 0; } /* at the largest zoom the words go under the icon */
a[href^="mailto:"], .doc a, .licences { overflow-wrap: anywhere; } /* an address, a web address or a package name may break at zoomed text instead of pushing the page wide */
.contact p { margin: 0; }
.contact p + p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.qa { background: var(--card); border-radius: 16px; padding: 4px 24px; }
.qa div { padding: 20px 0; }
.qa div + div { border-top: 1px solid var(--line); }
.qa h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.qa p { margin: 0; }
.after-qa { margin-top: 20px; }
.doc ol.steps { list-style: none; padding: 6px 24px; margin: 0 0 18px; background: var(--card); border-radius: 16px; }
.steps li { display: flex; gap: 16px; align-items: center; min-height: 64px; margin: 0; color: var(--text); font-weight: 600; }
.steps li + li { border-top: 1px solid var(--line); }
.steps .n { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--chip-fg); font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.two-cards .card { margin: 0; }

/* Share page: share.js writes the days; its class names (day work off unknown past today) are unchanged. */
.share { max-width: 600px; margin: 0 auto; padding: 0 24px; }
.share .page-head { padding-top: 36px; }
.share .page-head h1 { font-size: 40px; }
.share .page-head p { font-size: 17px; }
#status { margin-top: 24px; }
.notice { color: var(--second); font-weight: 600; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 28px 0 12px; }
.pager h2 { font-size: 22px; flex: 1 1 0; } /* the buttons drop below the month name only when "November" and both buttons don't fit */
.pager div { display: flex; gap: 8px; }
.pager button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--field); background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .ic { width: 20px; height: 20px; }
table.month { width: calc(100% + 12px); margin: 0 -6px; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
table.month th { font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 0 0; }
table.month abbr { text-decoration: none; }
table.month td { padding: 0; }
.day { height: 56px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; border: 1px solid transparent; }
.day small { font-weight: 600; font-size: 10px; line-height: 1.1; }
.day.work { background: var(--accent); color: var(--on-accent); }
.day.off { background: var(--card); border-color: var(--line); } /* the app: a day-off tile is card on the page */
.day.unknown { color: var(--muted); border: 1.5px dashed var(--field); }
.day.work.past { background: var(--past); color: var(--on-past); }
.day.off.past { color: var(--muted); }
.day.today { outline: 2px solid var(--text); outline-offset: 2px; }
.legend { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 14px; margin: 16px 0 4px; color: var(--body); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }
.swatch.work { background: var(--accent); }
.swatch.off { background: var(--card); border: 1.5px solid var(--line); }
.swatch.unknown { border: 1.5px dashed var(--field); }
.share .card { margin-top: 32px; }
.share .foot { margin-top: 40px; padding: 0 0 24px; border: 0; }
.share .foot p { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; }
.share .foot a { color: var(--muted); }

/* 404 */
.nf { text-align: center; padding: 96px 0 24px; }
.mini { display: inline-grid; grid-template-columns: repeat(7, 40px); gap: 6px; margin-bottom: 36px; }
.mini i { height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: 15px; }
.mini .w { background: var(--accent); color: var(--on-accent); }
.mini .o { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.mini .q { border: 1.5px dashed var(--field); color: var(--muted); font-size: 18px; }
.nf h1 { font-size: 48px; margin-bottom: 24px; }

/* Tablet and small laptop: one hero phone; headline 2 lines from about 810, 3 lines below (40 px floor, UX-FB4-1) */
@media (max-width: 1099px) {
  .hero { grid-template-columns: 1fr auto; gap: 40px; }
  .hero h1 { font-size: clamp(2.5rem, 9.6vw - 2.5rem, 3.25rem); }
  .hero .dev:first-child { display: none; }
  .hero .dev + .dev { outline: 0; }
  /* Fact strip 2 x 2, so no fact title breaks inside a word (UX-FB5-1) */
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div, .facts div + div { padding: 22px 24px 22px 0; border-left: 0; }
  .facts div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trio::before, .trio .panel { height: 400px; }
  .trio .dev { --w: 180px; }
  .wg { --s: .53; }
}

/* Phone width */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav { min-height: 64px; }
  .navlinks { display: none; }
  .brand { font-size: 21px; }
  .brand img { width: 30px; height: 30px; }
  h1 { letter-spacing: -0.03em; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 20px; }
  .hero h1 { font-size: 44px; margin-bottom: 16px; }
  .hero .lede { font-size: 18px; margin-bottom: 24px; }
  .panel, .hero .panel { height: 440px; padding-top: 36px; }
  .hero .dev:first-child { display: none; }
  .hero .dev + .dev { outline: 0; }
  .panel .dev { --w: 250px; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .facts div, .facts div + div { padding: 18px 0; border-left: 0; }
  .facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts b { font-size: 19px; }
  .feat { grid-template-columns: 1fr; gap: 28px; margin-top: 72px; }
  .feat.flip .ftext { order: 0; }
  .feat h2 { font-size: 32px; }
  .feat p, .privacy p { font-size: 17px; }
  /* More ways to plan: one column; each item is title, line, then its own panel */
  .more { margin-top: 72px; text-align: left; }
  .more h2 { font-size: 32px; margin-bottom: 28px; }
  .trio { grid-template-columns: 1fr; gap: 40px; }
  .trio::before { display: none; }
  .item { display: flex; flex-direction: column; }
  .item h3 { margin: 0 0 8px; }
  .item p { margin: 0 0 16px; max-width: none; }
  .trio .panel { order: 1; background: var(--card); border-radius: 24px; height: 440px; padding: 36px 24px 0; }
  .trio .dev { --w: 220px; }
  .wg { --s: .65; }
  .price-card { grid-template-columns: 1fr; padding: 32px 22px; gap: 28px; margin-top: 72px; }
  .price-card h2, .privacy h2, .closer h2 { font-size: 32px; }
  .big { font-size: 64px; }
  .privacy { grid-template-columns: 1fr; gap: 28px; margin-top: 72px; }
  .closer, .foot { margin-top: 72px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot .wrap > div:first-child { grid-column: 1 / -1; }
  .page-head { padding-top: 28px; }
  .page-head h1 { font-size: 36px; }
  .with-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .toc-m { display: block; }
  .doc h2 { font-size: 21px; margin-top: 36px; }
  .two-cards { grid-template-columns: 1fr; }
  .share { padding: 0 16px; }
  .share .page-head h1 { font-size: 32px; }
  table.month { border-spacing: 5px; width: calc(100% + 10px); margin: 0 -5px; }
  .day { height: 50px; font-size: 15px; }
  .nf { padding-top: 56px; }
  .mini { gap: 5px; }
  .nf h1 { font-size: 34px; }
}
@media (max-width: 380px) {
  .mini { grid-template-columns: repeat(7, minmax(0, 36px)); }
}
@media (max-width: 320px) {
  .hero h1 { font-size: 40px; }
  .price-card { padding: 24px 12px; }
  .price-card h2 { font-size: 24px; }
  .big { font-size: 30px; } /* "US$4.99" fits the card at the largest text */
  .big small { display: inline-block; } /* "once" may go under the price */
  .ticks li { gap: 8px; }
}
@media (max-height: 680px) {
  .toc { position: static; } /* in a short window the list scrolls with the page */
}
