/* Bobbincat: cream linen, plum thread, orange cat. Running-stitch lines and a wooden hoop are the motifs. */

@font-face {
  font-family: "Nunito";
  src: url("Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

/* Dark by default, like the app's dark mode: near-black with plum surfaces and bands, orange for actions. */
:root {
  --bg: #120B16;
  --paper: #2A1A33;
  --linen: #1A1020;
  --text: #F8F1EC;
  --deep: #2A1A33;
  --muted: #BBADC2;
  --line: #43314F;
  --accent: #EC7F3F;
  --accent-strong: #F2935A;
  --accent-soft: #5A3A4A;
  --on-accent: #2A1A33;
  --plum-soft: #352341;
  --good: #62BC92;
  --wood: #A67E57;
  --wood-dark: #84603E;
  --shadow: 0 18px 44px rgba(0, 0, 0, .45);
  --radius: 18px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Nunito", "Segoe UI", sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.7rem); font-weight: 850; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 820; }
h3 { font-size: 1.2rem; font-weight: 760; }
h4 { font-size: .95rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
p { margin: 0 0 1em; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
code { font: .9em/1 ui-monospace, Consolas, monospace; background: var(--plum-soft); padding: .15em .4em; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.small { font-size: .9rem; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.eyebrow { font: 800 .8rem/1 "Nunito", sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-strong); margin-bottom: 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px dashed var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 14px; border: 0;
  background: var(--accent); color: var(--on-accent);
  font: 800 1.02rem/1.2 "Nunito", sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(236, 127, 63, .28);
  position: relative; transition: transform .15s ease, background .15s ease;
}
.button::after { /* a running stitch round the button, as if it were sewn on */
  content: ""; position: absolute; inset: 4px; border-radius: 11px;
  border: 1.5px dashed rgba(248, 241, 236, .3); pointer-events: none;
}
.button:hover { background: var(--accent-strong); color: var(--on-accent); transform: translateY(-1px); }
.button.quiet { background: var(--paper); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.button.quiet::after { border-color: var(--line); }
.button.small { padding: 9px 16px; font-size: .92rem; border-radius: 11px; }
.button.small::after { inset: 3px; border-radius: 8px; }
.button[disabled] { opacity: .6; cursor: progress; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.4em 0 .6em; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 850 1.35rem "Nunito", sans-serif; }
.brand img { border-radius: 10px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.site-nav a:not(.button) { color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 0; border-bottom: 2px dashed transparent; }
.site-nav a:not(.button):hover, .site-nav a[aria-current] { border-bottom-color: var(--accent); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--text); margin: 0 auto; position: relative; border-radius: 2px; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }

/* ---------------------------------------------------------------- stitch details */
.stitch-line { height: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 22px); border-radius: 2px; opacity: .8; }
.stitched { border: 2px dashed var(--accent); border-radius: var(--radius); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-title .lead { margin: 0 auto; }
.section-title h2::after { content: ""; display: block; width: 90px; height: 3px; margin: 18px auto 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 19px); }
section { padding: 84px 0; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 48px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent-strong); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 4px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 22px); }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 1.2em 0 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero .facts li::before { content: "✓"; color: var(--good); font-weight: 800; margin-right: 6px; }

/* the hoop: a wooden ring with its screw, round the picture of the cat */
.hoop { position: relative; width: min(470px, 86vw); aspect-ratio: 1; margin: 0 auto; }
.hoop .fabric { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--linen);
  box-shadow: inset 0 0 0 14px var(--wood), inset 0 0 0 17px var(--wood-dark), inset 0 0 0 22px var(--wood), var(--shadow); }
.hoop .fabric img { width: 100%; height: 100%; object-fit: cover; padding: 22px; border-radius: 50%; }
.hoop::before { /* the screw at the top */
  content: ""; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 34px; height: 30px;
  background: linear-gradient(var(--wood-dark), var(--wood)); border-radius: 8px 8px 4px 4px; z-index: 2;
  box-shadow: 0 -10px 0 -4px #9d9aa3, 0 -16px 0 -6px #c9c6cf;
}
.hoop .thread { position: absolute; right: -6%; bottom: 6%; width: 34%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)); }
.spool { width: 110px; height: 130px; position: absolute; right: -2%; bottom: 2%; }

/* ---------------------------------------------------------------- cards and features */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.card::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed var(--line); border-radius: 13px; pointer-events: none; }
.card h3 { margin-top: 12px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.card .icon svg { width: 26px; height: 26px; }
.card .new { position: absolute; top: 16px; right: 16px; font: 800 .7rem "Nunito"; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-strong); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { text-align: center; padding: 8px 12px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; border: 2.5px dashed var(--accent); font: 850 1.4rem "Nunito"; color: var(--accent-strong); background: var(--paper); }
.step p { color: var(--muted); }

.band { background: var(--deep); color: #F8F1EC; }
.band .lead, .band p { color: #D9CFDD; }
.band a { color: #F6A877; }
.band a.button { color: var(--on-accent); }  /* a Buy button on a band keeps its dark text on orange */
.band a.button.quiet { color: var(--text); }
.band .card { background: #352341; border-color: #54405F; }
.band .card::before { border-color: #54405F; }
.band .card p { color: #D9CFDD; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.shot { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--paper); }
.shot-frame { padding: 10px; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.shot-frame img { border-radius: 12px; }
/* the home pictures and films: a stitched edge round the frame, as on the cat tile (cream dashes on plum) */
.media.shot-frame { position: relative; padding: 16px; }
.media.shot-frame::after { content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(248, 241, 236, .55);
  border-radius: 15px; pointer-events: none; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { padding-left: 1.7em; position: relative; margin: .45em 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 1em; height: .55em; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg); }

.story { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; max-width: 860px; margin: 0 auto; }
.story img { width: 140px; height: 140px; border-radius: 34px; box-shadow: var(--shadow); }
.story blockquote { margin: 0; font: 700 1.45rem/1.45 "Nunito", sans-serif; }
.story cite { display: block; margin-top: 14px; font: 600 .95rem "Segoe UI", sans-serif; color: var(--muted); font-style: normal; }

.honest { background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px 32px; }
.honest h3 { display: flex; align-items: center; gap: 10px; }

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 26px; justify-content: center; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 34px 32px 30px; position: relative; display: flex; flex-direction: column; }
.plan::before { content: ""; position: absolute; inset: 9px; border: 1.5px dashed var(--line); border-radius: 17px; pointer-events: none; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan.featured::before { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.plan .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--on-accent);
  font: 800 .78rem "Nunito"; text-transform: uppercase; letter-spacing: .08em; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.plan-sub { color: var(--muted); margin-top: -.3em; }
.price { font: 900 3.2rem/1 "Nunito", sans-serif; margin: .3em 0 .5em; display: flex; align-items: baseline; gap: 4px; }
.price .currency { font-size: 1.6rem; align-self: flex-start; margin-top: .25em; }
.price .once { font-size: 1rem; font-weight: 700; color: var(--muted); margin-left: 8px; }
.offer { margin: -.2em 0 .4em; font-weight: 700; color: var(--accent); }
.vat { margin: 0 0 1em; font-size: .9rem; color: var(--muted); }
[hidden] { display: none !important; }
.plan .button { margin-top: auto; width: 100%; }
.plan .soon { text-align: center; margin: 10px 0 0; }
.compare { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 16px; overflow: hidden; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 24%; }
.yes { color: var(--good); font-weight: 800; }

/* ---------------------------------------------------------------- download */
.download-box { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; background: var(--paper);
  border-radius: 24px; padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.download-box img { width: 84px; height: 84px; border-radius: 20px; }
.download-box h2 { margin: 0 0 .2em; }
.direct-title { margin: 40px 0 .3em; }
.store-box ~ .download-box .button { background: var(--paper); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.store-box ~ .download-box .button::after { border-color: var(--line); }
.store-link { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 18px; padding: 16px 22px; border: 1px dashed var(--line); border-radius: 16px; }
.store-link p { margin: 0; flex: 1 1 320px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; margin: 0; }
.sha { word-break: break-all; font: .8rem ui-monospace, Consolas, monospace; color: var(--muted); }
.release { border-left: 3px dashed var(--accent); padding: 4px 0 4px 22px; margin: 0 0 26px; }
.release h3 .small { font-weight: 600; margin-left: 8px; }
.release ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.steps-list { counter-reset: s; list-style: none; padding: 0; }
.steps-list li { counter-increment: s; position: relative; padding-left: 46px; margin: 0 0 16px; min-height: 32px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; border: 2px dashed var(--accent); font: 800 .95rem "Nunito"; color: var(--accent-strong); }

/* ---------------------------------------------------------------- FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin: 0 0 12px; }
.faq summary { cursor: pointer; padding: 18px 0; font: 750 1.05rem "Nunito", sans-serif; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-strong); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { color: var(--muted); }

/* ---------------------------------------------------------------- help centre */
.help-hero { background: var(--deep); color: #F8F1EC; padding: 64px 0 56px; text-align: center; }
.help-hero .lead { color: #D9CFDD; margin: 0 auto 26px; }
.help-hero .eyebrow { color: #F6A877; }
.help-search { position: relative; max-width: 640px; margin: 0 auto; }
.help-search input { width: 100%; font-size: 1.05rem; padding: 16px 20px 16px 50px; border-radius: 16px; border: 2px solid var(--line);
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23EC7F3F' stroke-width='2.2' stroke-linecap='round'><circle cx='10.5' cy='10.5' r='6.5'/><path d='M15.5 15.5 20.5 20.5'/></svg>") no-repeat 16px center;
  color: var(--text); }
.help-search input:focus { outline: none; border-color: var(--accent); }
.help-search .results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); z-index: 30; max-height: 70vh; overflow: auto; text-align: left; padding: 6px; }
.help-search .results a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text); }
.help-search .results a:hover, .help-search .results a.active { background: var(--accent-soft); }
.help-search .results strong { display: block; font-family: "Nunito", sans-serif; }
.help-search .results span { display: block; font-size: .88rem; color: var(--muted); }
.help-search .results mark { background: none; color: var(--accent-strong); font-weight: 700; }
.help-search .results .none { padding: 14px; color: var(--muted); }
.help-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 56px var(--gutter); }
.help-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.help-section h2 { font-size: 1.2rem; }
.help-section ul { list-style: none; padding: 0; margin: 0; }
.help-section li { margin: 0 0 12px; }
.help-section li a { font-weight: 700; text-decoration: none; font-family: "Nunito", sans-serif; font-size: 1.02rem; }
.help-section li a:hover { text-decoration: underline; }
.help-section li span { display: block; font-size: .88rem; color: var(--muted); }
.help-faq { padding: 10px 0 70px; }
.help-layout { display: grid; grid-template-columns: 290px 1fr; gap: 48px; padding-top: 36px; padding-bottom: 80px; }
.help-side { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.help-side .help-search { margin-bottom: 20px; }
.help-side .help-search input { padding: 11px 14px 11px 42px; font-size: .95rem; background-position: 12px center; border-radius: 12px; }
.help-nav h4 { margin: 18px 0 6px; font-size: .78rem; }
.help-nav ul { list-style: none; margin: 0; padding: 0; }
.help-nav a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .94rem; }
.help-nav a:hover { background: var(--plum-soft); }
.help-nav a[aria-current] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
.help-article { max-width: 760px; min-width: 0; }
.help-article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.help-article h3 { margin-top: 1.4em; }
.help-article li { margin: .3em 0; }
.help-article .help-shot { margin: 1.2em 0 1.6em; }
.help-article .help-shot img { display: block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #FBF6F1; }
.crumbs { color: var(--muted); font-size: .9rem; }
.crumbs a { color: var(--muted); }
.callout { border-radius: 14px; padding: 14px 18px; margin: 1.2em 0; background: var(--plum-soft); border-left: 4px solid var(--muted); }
.callout p { margin: 0; }
.callout.tip { background: var(--accent-soft); border-left-color: var(--accent); }
.callout.careful { background: #4A2427; border-left-color: #EA8171; }
.table { overflow-x: auto; margin: 1em 0 1.4em; }
.table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.table th { font-family: "Nunito", sans-serif; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0 28px; }
.pager a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); font-weight: 700; }
.pager a span { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.pager .next { text-align: right; grid-column: 2; }
.still-stuck { display: flex; gap: 16px; align-items: center; background: var(--paper); border: 2px dashed var(--line); border-radius: 16px; padding: 18px 20px; }
.still-stuck img { border-radius: 12px; flex: none; }
.ask-ai { background: var(--plum-soft); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 28px 0 16px; }
.ask-ai-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 10px; }
.ask-ai .small { margin: 0; color: var(--muted); }
.ask-ai .done { color: var(--good); }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 16px; background: var(--paper); padding: 28px; border-radius: 20px; border: 1px solid var(--line); }
.form label { font-weight: 650; display: grid; gap: 6px; }
.form input, .form textarea, .form select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 160px; resize: vertical; }
.form .trap { position: absolute; left: -5000px; }
.form .status { margin: 0; font-weight: 600; }
.form .status.ok { color: var(--good); }
.form .status.bad { color: #EA8171; }
.key-box { font: 800 1.35rem ui-monospace, Consolas, monospace; letter-spacing: .04em; padding: 18px 20px; border-radius: 16px; background: var(--accent-soft);
  border: 2px dashed var(--accent); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; word-break: break-all; }

/* ---------------------------------------------------------------- legal pages */
.legal { padding: 56px 0 84px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal .draft { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; font-size: .92rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: 30px 0 40px; background: var(--linen); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 34px 0 20px; }
.footer-grid div > a { display: block; color: var(--text); text-decoration: none; margin: 6px 0; font-size: .95rem; }
.footer-grid div > a:hover { color: var(--accent-strong); }
.motto { font: 800 1.15rem "Nunito", sans-serif; margin: 12px 0 4px; }
.fine { border-top: 1px solid var(--line); padding-top: 18px; margin: 0; }

/* ---------------------------------------------------------------- 404 */
.lost { text-align: center; padding: 90px 0; }
.lost img { width: 140px; margin: 0 auto 26px; border-radius: 32px; transform: rotate(-8deg); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .help-index { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --gutter: 16px; }
  section { padding: 60px 0; }
  .hero-grid, .split, .steps, .story { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .story { text-align: center; } .story img { margin: 0 auto; }
  .plans { grid-template-columns: 1fr; }
  .help-layout { grid-template-columns: 1fr; gap: 24px; }
  .help-side { position: static; max-height: none; }
  .help-side .help-nav { display: none; }
  .download-box { grid-template-columns: 1fr; text-align: center; }
  .download-box img { margin: 0 auto; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.button) { padding: 12px 0; border-bottom: 1px dashed var(--line); }
  .site-nav .button { margin-top: 12px; }
  .compare td:not(:first-child), .compare th:not(:first-child) { width: auto; }
}
@media (max-width: 560px) {
  .cards, .help-index, .footer-grid { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; }
  .plan { padding: 30px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.note-box { background: var(--paper); border: 1px solid var(--plum-soft); border-radius: 14px; padding: 22px 24px; margin: 0 0 40px; }
.note-box h2 { margin-top: 0; }

[id] { scroll-margin-top: 84px; }  /* a link to a heading lands below the sticky header */
.pay-once { font-weight: 800; color: var(--accent); margin: .2em 0 1.1em; font-size: 1.08rem; }
.no-sub h2 { margin-bottom: .4em; }
.free-files { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }

/* ---------------------------------------------------------------- one licence, the fit block, the guides */
.plans.single { grid-template-columns: minmax(0, 440px); }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fit > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.fit h3 { margin-bottom: .6em; }
.fit .ticks { margin: 0; }
.limits { list-style: none; padding: 0; margin: 0; }
.limits li { padding-left: 1.7em; position: relative; margin: .45em 0; }
.limits li::before { content: "–"; position: absolute; left: .2em; color: var(--muted); font-weight: 800; }
.guide { padding-top: 36px; padding-bottom: 80px; }
.guide .help-article { max-width: none; }
.try-it { margin: 44px 0 10px; }
.try-it h2 { font-size: 1.4rem; margin-top: 0; }
.try-it .button { margin-top: 4px; }
.more-guides { margin-top: 36px; }
.more-guides h2 { font-size: 1.2rem; }
.more-guides ul { padding-left: 1.1em; }
.more-guides li { margin: .3em 0; }
@media (max-width: 820px) { .fit { grid-template-columns: 1fr; } }

/* pictures: a WebP first, the PNG for older browsers; <picture> takes no room of its own */
picture { display: contents; }
.guide-picture { margin: 1.6em 0; }
.guide-picture img { border-radius: 12px; box-shadow: var(--shadow); }
.guide-picture figcaption { font-size: .9rem; color: var(--muted); margin-top: .6em; }
/* ---------------------------------------------------------------- the home page: what she can make
   Each picture is a slot that can take a short video later (config.json home_media). */
.media { margin: 0; }
.media img, .media video { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--linen); }
.media video::cue { font-family: "Nunito", "Segoe UI", sans-serif; font-weight: 700; color: #F8F1EC;
  background: rgba(42, 26, 51, .88); }  /* cream on plum, as the page (only if the script below doesn't run) */
/* The films' captions, drawn by site.js in the page's own look: a plum pill with cream Nunito, larger than the
   browser's, in the lower third, growing with the video. The player's CC menu still turns them off or changes
   the language. */
.media.has-captions { position: relative; }
.film-caption { position: absolute; left: 50%; bottom: 19%; transform: translateX(-50%); width: max-content; max-width: 94%;
  padding: .3em .85em .38em; border-radius: 18px; background: rgba(42, 26, 51, .92); color: var(--text);
  font: 800 clamp(17px, 4.4cqw, 34px)/1.25 "Nunito", "Segoe UI", sans-serif; text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28); pointer-events: none; white-space: pre-line; }
.film-caption[hidden] { display: none; }
.media.has-captions { container-type: inline-size; }
.media.has-captions video::cue { color: transparent; background: transparent; text-shadow: none; }
/* the film, large, in a window over the page */
.film-box { width: min(92vw, calc(86vh * 16 / 9)); max-width: none; padding: 0; border: 0; border-radius: 16px;
  background: #000; overflow: visible; }
.film-box::backdrop { background: rgba(18, 11, 22, .86); }
.film-stage { position: relative; margin: 0; }
.film-stage video { display: block; width: 100%; height: auto; border-radius: 16px; }
.film-close { position: absolute; top: -18px; right: -18px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--accent, #EC7F3F); color: #2A1A33; font: 900 26px/1 "Nunito", sans-serif; cursor: pointer; }
.film-stage .film-caption { font-size: clamp(18px, 2.6cqw, 34px); }
/* the picture is the play button: a big orange play mark, the length in a corner, a little zoom on hover */
.film-frame { position: relative; border-radius: 12px; overflow: hidden; container-type: inline-size; }
.film-frame video { transition: transform .45s ease; }
.film-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0;
  border-radius: 12px; cursor: pointer; background: linear-gradient(to top, rgba(42, 26, 51, .55), rgba(42, 26, 51, .08) 55%);
  transition: background .3s ease; }
.film-play[hidden] { display: none; }
.film-play-mark { display: grid; place-items: center; width: clamp(58px, 17cqw, 96px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent, #EC7F3F); box-shadow: 0 8px 26px rgba(0, 0, 0, .35), 0 0 0 7px rgba(236, 127, 63, .28);
  transition: transform .25s ease, box-shadow .25s ease; }
.film-play-mark svg { width: 46%; margin-left: 7%; fill: #2A1A33; }
.film-play-time { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: .3em;
  padding: .25em .75em .25em .55em; border-radius: 999px; background: rgba(42, 26, 51, .88); color: #F8F1EC;
  font: 800 .9rem/1.2 "Nunito", "Segoe UI", sans-serif; }
.film-play-time svg { width: .9em; fill: #EC7F3F; }
.film-frame:hover video { transform: scale(1.035); }
.film-play:hover, .film-play:focus-visible { background: linear-gradient(to top, rgba(42, 26, 51, .65), rgba(42, 26, 51, .18) 60%); }
.film-play:hover .film-play-mark, .film-play:focus-visible .film-play-mark { transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 0 0 11px rgba(236, 127, 63, .3); }
.film-play:focus-visible { outline: 3px solid #EC7F3F; outline-offset: 3px; }
.film-ready .media-length { display: none; }
@media (prefers-reduced-motion: reduce) { .film-frame video, .film-play-mark { transition: none; } }
.media-length { font-size: .9rem; color: var(--muted); margin: .6em 4px 0; }
.hero .media { max-width: 520px; justify-self: center; }
.hero-note { color: var(--muted); font-size: 1rem; margin: .2em 0 0; }
.feature-list .feature + .feature { margin-top: 88px; }
.feature h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 820; }
.feature p { color: var(--muted); font-size: 1.08rem; }
.feature p a { font-weight: 600; }
.feature.flip > div:first-child { order: 2; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.formats span { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; font-size: .95rem; color: var(--text); }
@media (max-width: 820px) {
  .feature.flip > div:first-child { order: 0; }
  .feature-list .feature + .feature { margin-top: 56px; }
  .feature { gap: 22px; }
}

/* six menu items: a little closer together before the menu folds away at 820 px */
@media (min-width: 821px) and (max-width: 1040px) { .site-nav { gap: 14px; } .site-nav a:not(.button) { font-size: .93rem; } }

/* ---------------------------------------------------------------- language menu (plain links, no JavaScript needed) */
.lang-menu { position: relative; order: 3; }
.site-nav { order: 2; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.lang-menu .lang-code { font-size: .72rem; letter-spacing: .08em; color: var(--muted); }
.lang-menu summary:focus-visible, .lang-menu a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none; min-width: 170px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lang-menu li a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.lang-menu li a:hover, .lang-menu li a[aria-current] { background: var(--linen); }
.lang-menu li a[aria-current]::after { content: " ✓"; }
@media (max-width: 820px) {
  .lang-menu { order: 1; margin-left: auto; }
  .menu-toggle { order: 2; margin-left: 0; }
  .lang-menu summary { padding: 0 10px; }
}
@media (max-width: 400px) { .brand span { font-size: 1.15rem; } .bar { gap: 8px; } }

/* ---------------------------------------------------------------- the tester page (testers.html) */
.testers-link { margin: 18px 0 0; font-weight: 700; }
.testers-strip { background: var(--band, #f6f1ea); border-block: 1px solid rgba(0,0,0,.08); text-align: center; }
.testers-strip a { display: block; padding: 14px 0; font-weight: 700; }
.test-formats td:last-child { text-align: right; white-space: nowrap; }
.test-formats th[scope="row"] { font-family: "Nunito", sans-serif; font-size: 1.05rem; }
.test-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
@media (min-width: 760px) { .test-photos { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.test-photo-link { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.test-photo-link img { display: block; width: 100%; height: auto; }
.test-photo-link:focus-visible { outline: 3px solid var(--accent, currentColor); outline-offset: 2px; }
.photo-box { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.photo-box::backdrop { background: rgba(0, 0, 0, .82); }
.photo-box img { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 10px; }
.photo-box button { position: absolute; top: 8px; right: 8px; font: inherit; padding: 6px 14px; border-radius: 999px; border: 0; cursor: pointer; }
.test-photo { margin: 0; }
.test-photo figcaption { margin-top: 8px; color: var(--muted); }
.mail-text { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 1em 0; }
.mail-text p { margin: 0 0 8px; }
.mail-text pre { margin: 0; white-space: pre-wrap; font: .95rem/1.5 "Segoe UI", sans-serif; color: var(--text); }
.get-list li { margin-bottom: 8px; }
.test-formats .button { white-space: nowrap; }
@media (max-width: 560px) { .test-formats th, .test-formats td { padding: 10px 6px; } }
.tested-list { margin: 0; padding-left: 18px; }

.method-box { margin: 0 0 26px; }
.method-box h3 { margin-top: 0; }
.method-box ol { margin: 0; padding-left: 1.3em; }
.method-box li { margin-bottom: 4px; }

.tests-fold { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px 1px; }
.tests-fold summary { cursor: pointer; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tests-fold summary::-webkit-details-marker { display: none; }
.tests-fold summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--accent-strong); border-bottom: 2.5px solid var(--accent-strong); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.tests-fold[open] summary::after { transform: rotate(-135deg); }
.tests-fold summary:focus-visible { outline: 3px solid var(--accent, currentColor); outline-offset: 2px; border-radius: 10px; }
.tests-fold summary .eyebrow { display: block; margin: 0 0 2px; }
.tests-fold summary h2 { margin: 0; font-size: 1.15rem; }
.tests-fold[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tests-fold .test-photos { margin-bottom: 22px; }

/* "What's coming" in the top menu: a teaser, a stitched orange pill with a small spark */
.site-header a.nav-teaser { border: 1.5px dashed var(--accent, #EC7F3F); border-radius: 999px; padding: .25em .8em;
  color: var(--accent, #EC7F3F); font-weight: 800; white-space: nowrap; }
.site-header a.nav-teaser::before { content: "\2726"; margin-right: .35em; font-size: .85em; }
.site-header a.nav-teaser:hover, .site-header a.nav-teaser[aria-current] { background: rgba(236, 127, 63, .14); }

/* Share under a film (right): the phone's share menu, or the link copied; the film's STEP badge stays clear */
.film-share { display: flex; align-items: center; gap: .4em; margin: 10px 2px 0 auto; padding: .35em .9em; border: 0;
  border-radius: 999px; background: rgba(236, 127, 63, .16); color: #F8F1EC; font: 800 .9rem/1.2 "Nunito", sans-serif;
  cursor: pointer; }
.film-share svg { width: 1em; fill: #EC7F3F; }
.film-share:hover, .film-share:focus-visible { background: rgba(236, 127, 63, .3); }
.film-share[hidden] { display: none; }
.film-share-big { position: absolute; right: 0; bottom: -46px; margin: 0; }

/* ---------------------------------------------------------------- What's coming, in detail (pages/coming.html) */
.coming { padding: 44px 0; }
.coming h2 { margin-top: 0; }
.coming h3 { margin-top: 1.6em; }
.coming .states { font-weight: 600; }
.state { display: inline-block; font: 800 .78rem/1 "Nunito", sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: .38em .7em; border-radius: 999px;
  border: 2px solid currentColor; margin-right: .5em; vertical-align: .12em; white-space: nowrap; }
h3 .state { margin-left: .5em; font-size: .7rem; }
.state-testing { color: #62BC92; }              /* a solid line round the words */
.state-designed { color: #F2935A; border-style: dashed; }
.state-idea { color: #BBADC2; border-style: dotted; }
.coming-key { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 6px; }
.coming-key ul { list-style: none; padding: 0; margin: 0 0 1em; }
.coming-key li { margin-bottom: .7em; }
.coming-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; font-weight: 700; }
.coming figure { margin: 24px 0; }
.coming figure img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #FBF6F1; }
.coming figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.coming figure.mockup img { border: 2px dashed var(--accent); }
.coming .photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; align-items: start; margin: 18px 0 26px; }
.coming .photo-row figure { margin: 0; }
.coming .photo-row img { width: 100%; height: auto; }
.coming .callout { border-left: 4px solid var(--accent); background: var(--plum-soft); border-radius: 0 12px 12px 0; padding: 4px 20px 2px; margin: 26px 0; }
.coming .callout h3 { margin-top: .6em; }
.coming.band .state-idea { color: #D9CFDD; }
.detail-link { margin: 18px 0 10px; }
html[lang="en"] .english-note { display: none; }
@media (max-width: 560px) { .coming { padding: 34px 0; } .coming .photo-row { grid-template-columns: 1fr 1fr; } }
