/* Pie Shop Software: pieshopsoftware.com
   All styling for the site. Every colour is a setting in the theme block below;
   no colour values in the rules under it. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Theme: light (the brand's neutrals, the same as in the apps) ---------- */
:root {
  --bg: #F6F7FA;
  --surface: #FFFFFF;
  --surface-2: #ECEEF3;
  --border: #D9DDE6;
  --text: #1E2740;
  --text-muted: #5B6378;
  --mark-ink: #1E2740;            /* the navy parts of the logo marks */
  --pie-light: #F6F7FA;           /* the appearance button's pie: its light half and its dark half, */
  --pie-dark: #1E2740;            /* the same in both themes */
  --mark-tape-edge: #1E2740;      /* the tape's faint edge: navy in both themes, as in photobook-mark-dark.svg */
  --mark-tape: #CDEFE3;           /* the strip of tape on Photobook's mark (as in photobook-mark.svg) */
  --shadow-sm: 0 1px 2px rgba(30, 39, 64, .08);
  --shadow-md: 0 10px 24px -12px rgba(30, 39, 64, .28);
  --shadow-lg: 0 24px 60px -20px rgba(30, 39, 64, .35);
  --header-bg: rgba(246, 247, 250, .9);
  --stage: #E4E7EE;               /* behind the pages in the web player */
  --stage-bar: rgba(255, 255, 255, .94);
  --spot: rgba(30, 39, 64, .72);  /* dims the rest of the page in Panel by panel */
  --page: #FFFFFF;                /* a comic page is white in both themes */
  --spine-shade: rgba(30, 39, 64, .2);  /* the fold down the middle of an open photobook */
  --page-edge: #F3F1EC;           /* the pages' edges under a closed photobook's cover (as in the app) */
  --page-edge-line: #D9D5CC;

  /* the four brand accents, as given: logos and decoration */
  --cherry: #E2463F;
  --orange: #F08A3C;
  --violet: #6C4FE0;
  --seafoam: #4FBF9F;

  /* each accent as readable text on light (the apps' own --accent-text; cherry deepened the same way) */
  --cherry-text: #C9332D;
  --orange-text: #A85210;
  --violet-text: #5A3DD0;
  --seafoam-text: #1E7A61;

  /* this page's accent: Pie Shop cherry unless the page belongs to an app */
  --accent: #C9332D;              /* cherry deepened so white text on it passes AA */
  --on-accent: #FFFFFF;
  --accent-text: var(--cherry-text);
  --accent-soft: rgba(226, 70, 63, .10);

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --radius: 18px;
  color-scheme: light;
}
.app-comic     { --accent: #F08A3C; --on-accent: #1E2740; --accent-text: var(--orange-text); --accent-soft: rgba(240, 138, 60, .14); }
.app-photobook { --accent: #4FBF9F; --on-accent: #1E2740; --accent-text: var(--seafoam-text); --accent-soft: rgba(79, 191, 159, .16); }
.app-library   { --accent: #6C4FE0; --on-accent: #FFFFFF; --accent-text: var(--violet-text); --accent-soft: rgba(108, 79, 224, .10); }

/* ---------- Theme: dark (the apps' dark settings). Written twice on purpose:
   once for "follow the device", once for the Dark choice of the button. Keep them the same. ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121726;
    --surface: #1A2133;
    --surface-2: #232B40;
    --border: #313A52;
    --text: #EEF0F5;
    --text-muted: #A3AABD;
    --mark-ink: #F6F7FA;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 12px 26px -12px rgba(0, 0, 0, .8);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
    --header-bg: rgba(18, 23, 38, .9);
    --stage: #0B0F1A;
    --stage-bar: rgba(18, 23, 38, .94);
    --spot: rgba(0, 0, 0, .78);
    --cherry-text: #F0807A;
    --orange-text: #F7A866;
    --violet-text: #A996F5;
    --seafoam-text: #7FE0C2;
    --accent: #F0807A;
    --on-accent: #121726;
    --accent-soft: rgba(240, 128, 122, .14);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .app-comic     { --accent: #F59A52; --on-accent: #1E2740; --accent-soft: rgba(245, 154, 82, .14); }
  :root:not([data-theme="light"]) .app-photobook { --accent: #5ED3B0; --on-accent: #121726; --accent-soft: rgba(94, 211, 176, .14); }
  :root:not([data-theme="light"]) .app-library   { --accent: #8B73F0; --on-accent: #121726; --accent-soft: rgba(139, 115, 240, .16); }
}
:root[data-theme="dark"] {
  --bg: #121726;
  --surface: #1A2133;
  --surface-2: #232B40;
  --border: #313A52;
  --text: #EEF0F5;
  --text-muted: #A3AABD;
  --mark-ink: #F6F7FA;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 12px 26px -12px rgba(0, 0, 0, .8);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
  --header-bg: rgba(18, 23, 38, .9);
  --stage: #0B0F1A;
  --stage-bar: rgba(18, 23, 38, .94);
  --spot: rgba(0, 0, 0, .78);
  --cherry-text: #F0807A;
  --orange-text: #F7A866;
  --violet-text: #A996F5;
  --seafoam-text: #7FE0C2;
  --accent: #F0807A;
  --on-accent: #121726;
  --accent-soft: rgba(240, 128, 122, .14);
  color-scheme: dark;
}
:root[data-theme="dark"] .app-comic     { --accent: #F59A52; --on-accent: #1E2740; --accent-soft: rgba(245, 154, 82, .14); }
:root[data-theme="dark"] .app-photobook { --accent: #5ED3B0; --on-accent: #121726; --accent-soft: rgba(94, 211, 176, .14); }
:root[data-theme="dark"] .app-library   { --accent: #8B73F0; --on-accent: #121726; --accent-soft: rgba(139, 115, 240, .16); }

/* ================= Rules (no colour values below this line) ================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
main { scroll-margin-top: 150px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 8px; }

/* logo marks: drawn in the page so the navy parts follow the theme */
.mark { width: 1em; height: 1em; flex: none; }
.mark .ink { fill: var(--mark-ink); }
.mark .slice-cherry { fill: var(--cherry); }
.mark .slice-orange { fill: var(--orange); }
.mark .slice-violet { fill: var(--violet); }
.mark .slice-seafoam { fill: var(--seafoam); }
.mark .tape { fill: var(--mark-tape); fill-opacity: .92; stroke: var(--mark-tape-edge); stroke-opacity: .25; stroke-width: .8; }

/* wordmark: "Pie Shop" with a small spaced word under it, as in the apps */
.brand { display: inline-flex; align-items: center; gap: .32em; color: var(--text); text-decoration: none; font-size: 26px; }
.brand .mark { font-size: 1.5em; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
.brand-word { font-weight: 800; font-size: max(.2em, 8.5px); letter-spacing: .5em; text-transform: uppercase; color: var(--text-muted); margin-top: .35em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-block: 12px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 650; font-size: 15.5px; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { background: var(--surface-2); box-shadow: inset 0 -3px 0 var(--accent); }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 650; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 5px 7px; cursor: pointer; }
.theme-btn:hover { background: var(--surface-2); }
.theme-btn svg { width: 26px; height: 26px; }  /* a whole pie, half light and half dark */
.theme-btn .pie-l { fill: var(--pie-light); }
.theme-btn .pie-r { fill: var(--pie-dark); }
.theme-btn .pie-o { fill: none; stroke: currentColor; stroke-width: 4; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero.split .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero .sub { font-size: clamp(18px, 2.1vw, 21px); color: var(--text-muted); max-width: 54ch; margin-top: 22px; line-height: 1.55; }
.hero .honest { margin-top: 22px; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; max-width: 54ch; font-weight: 550; }
.hero-art { display: grid; place-items: center; aspect-ratio: 1; max-width: 380px; width: 100%; margin-inline: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 32px; box-shadow: var(--shadow-lg); }
.hero-art .mark { font-size: clamp(150px, 24vw, 230px); }
.hero.center { text-align: center; }
.hero.center h1, .hero.center .sub { margin-inline: auto; }

/* ---------- The buy line: price + the Store button ---------- */
.buy { display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; margin-top: 34px; }
.hero.center .buy { justify-content: center; }
.price { font-weight: 800; font-size: 30px; letter-spacing: -0.03em; line-height: 1; }
.price small { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text-muted); margin-top: 6px; }
.lead-in { flex-basis: 100%; color: var(--text-muted); max-width: 54ch; }

/* The placeholder for Microsoft's badge. When the app is on the Store, swap the whole
   .store-badge element for Microsoft's badge code (see CLAUDE.md, "Store badges"). */
.store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 750; font-size: 16.5px; line-height: 1.15; box-shadow: var(--shadow-md); cursor: default; user-select: none; }
.store-badge > span { white-space: nowrap; }
.store-badge svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store-badge small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.btn:hover { background: var(--surface-2); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.tint { background: var(--surface-2); }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(28px, 3.8vw, 40px); }
.section-head p { color: var(--text-muted); margin-top: 12px; font-size: 18px; }

/* app cards (home) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { position: relative; transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--accent); border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow-sm); }
.card .brand { font-size: 23px; margin-bottom: 20px; }
.card h3 { font-size: 23px; }
.card .pitch { color: var(--text-muted); margin-top: 12px; flex: 1; }
.card .buy { margin-top: 24px; gap: 14px; }
.card .price { font-size: 24px; }
/* the whole card opens the app's page: the heading's link is stretched over the card */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.card-link:focus-visible { outline: none; }

/* feature blocks */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; }
.features h3 { font-size: 20px; letter-spacing: -0.02em; }
.features h3::before { content: ""; display: block; width: 28px; height: 5px; border-radius: 3px; background: var(--accent); margin-bottom: 14px; }
.features p { color: var(--text-muted); margin-top: 10px; font-size: 16.5px; }

/* short reasons strip (home) */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding: 0; margin: 0; list-style: none; }
.why h3 { font-size: 19px; letter-spacing: -0.02em; }
.why p { color: var(--text-muted); margin-top: 8px; font-size: 16.5px; }

/* screenshot placeholders: swap each .shot-box for an <img> when the pictures are ready */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.shot { margin: 0; }
.shot-box { aspect-ratio: 16 / 10; display: grid; place-items: center; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text-muted); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.shot img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.shot figcaption { margin-top: 12px; color: var(--text-muted); font-size: 15.5px; }

/* pill lists (what it bakes / what it opens) */
.pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.pills li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 650; font-size: 15.5px; }

/* the two lists side by side: what goes in the oven, what comes out */
.oven { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; align-items: start; }
.oven h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 22px; }
.list-note { margin-top: 18px; }
.oven + .note { margin-top: 40px; }
.note { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 24px; max-width: 70ch; }
.note h2 { font-size: 21px; margin-bottom: 8px; }
.note p { color: var(--text-muted); }

/* closing call to action */
.closer { text-align: center; padding: 72px 0; }
.closer h2 { font-size: clamp(28px, 4vw, 42px); max-width: 20ch; margin-inline: auto; }
.closer .wrap > p { color: var(--text-muted); margin: 16px auto 0; max-width: 52ch; font-size: 18px; }
.closer .buy { justify-content: center; }
.closer .wrap > p.pointer { margin-top: 28px; font-size: 16px; }

/* ---------- Play: the drop box ---------- */
.play-drop { margin: 36px auto 0; max-width: 620px; padding: 34px 26px 26px; border: 2px dashed var(--border); border-radius: 24px; background: var(--surface); transition: border-color .15s ease, background .15s ease; }
.play-drop.over { border-color: var(--accent-text); background: var(--accent-soft); }
.play-drop.busy .play-choose { opacity: .7; }
.play-drop-title { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.play-drop-or { color: var(--text-muted); margin: 8px 0 12px; font-size: 15px; }
.play-choose { display: inline-flex; align-items: center; padding: 13px 26px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 750; font-size: 16.5px; line-height: 1.15; box-shadow: var(--shadow-md); cursor: pointer; }
.play-choose:hover { filter: brightness(1.06); }
.play-drop-small { color: var(--text-muted); font-size: 14.5px; margin: 20px auto 0; max-width: 46ch; }
.play-msg { font-weight: 650; margin-top: 16px; min-height: 1.6em; color: var(--accent-text); }

/* ---------- Play: the reader (ported from Pie Shop Comic's web player) ---------- */
body.reading { overflow: hidden; background: var(--stage); }
body.reading.rd-scroll { overflow-y: auto; }
body.reading > .site-header, body.reading > main, body.reading > .site-footer, body.reading > .skip { display: none; }
.reader { font-size: 14px; line-height: 1.3; }
.reader:focus { outline: none; }
.reader-stage { position: fixed; inset: var(--barh, 0px) 0 0 0; display: flex; align-items: center; justify-content: center; overflow: hidden; user-select: none; }
body.rd-scroll .reader-stage { position: static; display: block; overflow: visible; padding: var(--barh, 0px) 0 0; }
.rd-slot { position: relative; flex: none; overflow: hidden; }
body.rd-scroll .rd-slot { margin: 0 auto; }
.rd-page { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: var(--page); }
.rd-page img.rd-pg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.rd-vbox { position: absolute; overflow: hidden; background: var(--page); }
.rd-vbox video { position: absolute; object-fit: fill; max-width: none; pointer-events: none; }
.rd-glide { transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.rd-spot { position: absolute; pointer-events: none; box-shadow: 0 0 0 100000px var(--spot); }
.rd-spot.rd-glide { transition: all .45s cubic-bezier(.4, 0, .2, 1); }
.reader-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 14px; background: var(--stage-bar); border-bottom: 1px solid var(--border); transition: opacity .4s; }
.reader-bar.away { opacity: 0; pointer-events: none; }
.reader-title { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.reader-seg[hidden] { display: none; }
.reader-seg { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.reader-bar button { font: inherit; color: var(--text); background: transparent; border: 0; padding: 6px 11px; cursor: pointer; }
.reader-seg button + button { border-left: 1px solid var(--border); }
.reader-bar button:hover { background: var(--surface-2); }
.reader-bar button.on { background: var(--accent); color: var(--on-accent); font-weight: 650; }
.reader-bar .reader-btn { border: 1px solid var(--border); border-radius: 8px; }
.reader-seg button:focus-visible { outline-offset: -3px; }
.reader-seg button.on:focus-visible { outline-color: var(--on-accent); }
.reader-where { color: var(--text-muted); min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }
/* the photobook reader (ported from Pie Shop Photobook's page-flip reader) */
body.bk .reader-stage { perspective: 2600px; cursor: pointer; touch-action: pan-y; }
.bk-book { position: relative; flex: none; transform-style: preserve-3d; }
.bk-slot { position: absolute; top: 0; }
.bk-page { position: relative; overflow: hidden; background: var(--page); box-shadow: var(--shadow-lg); }
.bk-page > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; display: block; pointer-events: none; }
.bk-vbox { position: absolute; overflow: hidden; }
.bk-vbox video { position: absolute; max-width: none; object-fit: fill; pointer-events: none; }
.bk-spine { position: absolute; top: 0; bottom: 0; left: calc(50% - 28px); width: 56px; pointer-events: none; z-index: 2; background: linear-gradient(to right, transparent, var(--spine-shade) 50%, transparent); }
.bk-leaf { position: absolute; top: 0; transform-style: preserve-3d; z-index: 3; }
.bk-leaf.from-right { transform-origin: left center; }
.bk-leaf.from-left { transform-origin: right center; }
.bk-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bk-face.back { transform: rotateY(180deg); }
.bk-leaf .bk-page { box-shadow: var(--shadow-md); }
/* the closed book: the pages' edges peek out under the cover; the book slides to the middle */
.bk-book.sliding { transition: transform .6s cubic-bezier(.45, .05, .25, 1); }
.bk-book.closed .bk-spine { display: none; }
.bk-book.single .bk-spine { display: none; }
.bk-edges { position: absolute; width: 100%; height: 100%; background: var(--page-edge); border: 1px solid var(--page-edge-line); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) { .bk-book.sliding { transition: none; } }
@media (max-width: 720px) {
  .reader-bar { gap: 8px; }
  .reader-bar button { padding: 6px 8px; }
  .reader-seg { order: 3; max-width: 100%; overflow-x: auto; }
  .reader-seg button { white-space: nowrap; flex: none; }
}
@media (prefers-reduced-motion: reduce) { .rd-glide, .rd-spot.rd-glide { transition: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--text-muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; }
.site-footer .brand { font-size: 21px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer nav a { color: var(--text); text-decoration: none; font-weight: 650; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .signoff { margin-top: 12px; max-width: 40ch; }
.site-footer .legal { flex-basis: 100%; font-size: 13.5px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .oven { grid-template-columns: 1fr; }
  .hero.split .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 240px; order: -1; margin-inline: 0; border-radius: 24px; }
  .hero-art .mark { font-size: 140px; }
  .hero { padding: 44px 0 40px; }
}
/* the header's phone shape: brand and the appearance button on one row, the links under them */
@media (max-width: 700px) {
  html { scroll-padding-top: 128px; }
  .site-header .wrap { padding-block: 10px; }
  .site-header .brand { font-size: 22px; }
  .site-nav { margin-left: 0; width: 100%; gap: 2px; order: 3; }
  .site-nav a { padding: 7px 9px; font-size: 15px; }
  .theme-btn { margin-left: auto; padding: 5px 7px; order: 2; }
  .theme-btn span { display: none; }
}
@media (max-width: 350px) {
  .site-nav { gap: 0; }
  .site-nav a { padding: 7px 6px; font-size: 14.5px; }
  .store-badge { padding: 11px 14px 11px 12px; gap: 10px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .section { padding: 40px 0; }
  .features, .shots { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } .card:hover { transform: none; } }
