/* Norwood Studios. Technical base from sites/kit/starter; palette, type and shapes from BRAND.md (brand/tokens.css).
   White page, light only: Ryan, 2026-10-29, "our website background should be white" (orders.json o10). Blue is the main action and nothing else. */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --card: #ffffff;
  --ink: #0f1b2a;
  --head: #032946;
  --muted: #4a5868;
  --line: #dde4ee;
  --accent: #004afc;
  --accent-hover: #003bcc;
  --on-accent: #ffffff;
  --ring: #004afc;
  /* Before reads faded, after reads strong; neither uses the main action's blue (judges, v1: E3) */
  --before: #cfd7e2;
  --on-before: #0f1b2a;
  --after: #032946;
  --on-after: #ffffff;
  --head-font: "Montserrat", system-ui, sans-serif;
  --body-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-display: clamp(2.3rem, 1.5rem + 2.6vw, 3.6rem);
  --t-h2: clamp(1.9rem, 1.5rem + 1.7vw, 2.75rem);
  --t-h3: clamp(1.35rem, 1.2rem + .7vw, 1.75rem);
  --t-h4: 1.0625rem;
  --t-lead: clamp(1.1rem, 1.04rem + .3vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: .875rem;
  --t-label: .75rem;
  --r: 14px;
  --pad: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
  --space: clamp(4rem, 8vw, 7rem);
  --bar: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.6 var(--body-font); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
h1, h2, h3, h4, h5 { font-family: var(--head-font); color: var(--head); margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-display); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: var(--t-h2); font-weight: 800; line-height: 1.1; letter-spacing: -.015em; margin-bottom: 2rem; }
h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.2; }
h4, h5 { font-size: var(--t-h4); font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.skip { position: absolute; left: -999px; top: .5rem; z-index: 20; background: var(--ink); color: var(--paper); padding: .6rem .9rem; border-radius: 8px; }
.skip:focus { left: .5rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Header: logo, menu, the main action; on phones the menu folds behind a button */
.bar { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid transparent; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar-in { max-width: var(--max); margin: 0 auto; min-height: var(--bar); padding: .5rem var(--pad); display: flex; align-items: center; gap: 1.5rem; }
.brand { margin-right: auto; flex: none; display: block; }
.brand img { width: 170px; max-width: none; }
.menu { display: flex; gap: 1.75rem; font-weight: 500; }
.menu a { text-decoration: none; padding: .6rem 0; color: var(--head); }
.menu a:hover { text-decoration: underline; }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); cursor: pointer; flex: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 1.1rem; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
/* Open menu: the icon becomes a close cross (judges v3) */
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 55.99rem) {
  .bar-in { gap: .6rem; }
  .menu-btn { display: block; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: .5rem var(--pad) 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .menu[hidden] { display: none; }
  .menu a { padding: .8rem 0; border-top: 1px solid var(--line); }
  .brand img { width: 118px; }
  /* the label wraps before the row pushes past the screen at big text sizes; the logo keeps its size (learnings #23) */
  .bar .btn-sm { font-size: .875rem; padding: .45rem .9rem; flex: 0 1 auto; min-width: 0; line-height: 1.15; }
}
@media (min-width: 56rem) { .menu[hidden] { display: flex; } }
/* Smallest phones: the bird alone, so the name never squeezes the main action off the bar (learnings #23) */
@media (max-width: 23.5rem) { .brand img { width: 44px; } }

/* Buttons: blue is the main action and nothing else */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer; background: var(--accent); color: var(--on-accent); text-decoration: none; font: 700 1rem/1.2 var(--head-font); text-align: center; }
.btn:hover { background: var(--accent-hover); }
.btn-sm { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: .9375rem; flex: none; }
.quiet { font-weight: 600; color: var(--head); padding: .75rem 0; display: inline-block; }

/* Hero: the words on the left, Forget Me Knot's before and after beside them (Ryan, 2026-10-30: orders.json o13) */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--pad) clamp(2.5rem, 4vw, 3.5rem); display: grid; gap: 1.5rem 3rem; align-items: center; }
.hero h1 { max-width: 18ch; margin-bottom: 1.25rem; }
.lead { font-size: var(--t-lead); color: var(--muted); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: 1.5rem 0 0; }
/* the top ask: bigger than every other button, alone on its line (Ryan, 2026-10-30: "the call to Action is not strong enough at the top of the page", orders.json o18) */
.hero .actions { flex-direction: column; align-items: flex-start; gap: .5rem; }
.hero .actions .btn { min-height: 3.75rem; padding: 1rem 2.25rem; font-size: 1.1875rem; box-shadow: 0 10px 24px -10px rgb(0 74 252 / .6); }
/* The no-obligation line beside each ask (judges v3: the live site had it at the ask, v3 lost it) */
.reassure { color: var(--muted); margin: 1rem 0 0; }
@media (min-width: 62rem) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 29rem); } }
.hero-fmk { color: var(--muted); font-size: var(--t-small); margin: 0 0 1rem; max-width: 29rem; }
.hero-fmk strong { display: block; color: var(--head); font-family: var(--head-font); }
.hero .ba-phones { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .75rem; }
/* phones: the pair stays side by side here as a glance; /work shows it large */
.hero .ba-phones .ba-arrow { transform: none; }
@media (max-width: 40rem) { .hero .ba-phones { gap: .4rem; } .hero .ba-phones .ba-arrow { width: 1.5rem; height: 1.5rem; } }

/* Sections: white throughout (o10), set apart by space and a rule */
.band, #how { padding: var(--space) 0; }
main > section + section { border-top: 1px solid var(--line); }

/* Before and after */
.example + .example { margin-top: clamp(4rem, 8vw, 6rem); padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.example h2 { font-size: var(--t-h3); margin-bottom: .75rem; }
.work-page h1 { margin-bottom: 1rem; }
.work-page .lead { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
/* Forget Me Knot: its name and one line beside the two phone screens */
.fmk { display: grid; gap: 1.5rem 4rem; align-items: start; }
@media (min-width: 62rem) { .fmk { grid-template-columns: 1fr 2fr; } }
.ex-head p, .ex-lead, .panel-text { color: var(--muted); font-size: var(--t-lead); max-width: 40rem; }
.ba { display: grid; justify-content: center; align-items: center; gap: 1.25rem; }
.ba-phones { grid-template-columns: minmax(0, 19.5rem) auto minmax(0, 19.5rem); }
#work { padding-top: clamp(3rem, 6vw, 4.5rem); }
.ba-wide { grid-template-columns: 1fr; margin: 2rem 0; }
.ba-wide .ba-arrow { justify-self: center; transform: rotate(90deg); }
.shot { margin: 0; --frame: var(--before); --on-frame: var(--on-before); }
.shot-after { --frame: var(--after); --on-frame: var(--on-after); }
.shot figcaption { background: var(--frame); color: var(--on-frame); text-align: center; padding: .55rem; border-radius: var(--r) var(--r) 0 0; font: 800 1.05rem/1.2 var(--head-font); letter-spacing: .16em; text-transform: uppercase; }
.shot img { width: 100%; border: 4px solid var(--frame); border-top: 0; border-radius: 0 0 var(--r) var(--r); background: var(--card); }
.ba-arrow { width: 2.75rem; height: 2.75rem; fill: none; stroke: var(--after); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Ronin's page buttons (site.js); without JavaScript every pair shows under its own heading */
.switch { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.switch[hidden] { display: none; }
.switch button { min-height: 2.75rem; padding: .55rem 1.2rem; border-radius: 8px; cursor: pointer; font: 700 .9375rem/1.2 var(--head-font); color: var(--head); background: var(--card); border: 2px solid var(--line); }
.switch button:hover { border-color: var(--head); }
.switch button[aria-pressed="true"] { color: var(--head); border-color: var(--head); box-shadow: inset 0 -3px 0 var(--head); }
.panel-title { margin-top: 2.5rem; font-size: 1.15rem; }
.panel-text { margin: 1.75rem 0 0; }
.scope { color: var(--ink); font-weight: 600; margin: -.25rem 0 1.25rem; }
.switching .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The main ask again right after the proof */
.work-ask { margin: clamp(3rem, 6vw, 4.5rem) 0 0; text-align: center; }

/* How it works: the free sample, then the paid site only if they go ahead */
/* One number sequence across both groups, no boxes (judges v4) */
.how-groups { display: grid; gap: 2.5rem; counter-reset: step; }
.how-group h3 { margin-bottom: 1rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 3rem; }
@media (min-width: 48rem) { .how-free .steps { grid-template-columns: 1fr 1fr; } .how-group:not(.how-free) .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 1.1rem; }
.steps li::before { content: counter(step); display: block; font: 800 var(--t-small)/1 var(--head-font); color: var(--muted); margin-bottom: .75rem; }
.steps h4 { margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--muted); }

/* What you keep: the heading beside three lines */
#keep { padding: var(--space) 0; }
.keep-in { display: grid; gap: 1rem 4rem; align-items: start; }
@media (min-width: 62rem) { .keep-in { grid-template-columns: 5fr 7fr; } .keep-in h2 { margin: 0; } }
.keep { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; font-size: var(--t-lead); }
.keep li { padding-left: 2rem; position: relative; }
.keep li::before { content: ""; position: absolute; left: .1rem; top: .4em; width: .9rem; height: .5rem; border-left: 2.5px solid var(--head); border-bottom: 2.5px solid var(--head); transform: rotate(-45deg); }

/* Closing ask */
/* Closing ask: its own framed block; the filled button, then the address as text (judges v3, v4) */
.closing { padding: var(--space) 0; text-align: center; }
.closing-box { max-width: 52rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem); border: 2px solid var(--head); border-radius: var(--r); }
.closing h2 { margin-bottom: 1rem; }
.closing p { color: var(--muted); font-size: var(--t-lead); max-width: 38rem; margin: 0 auto; }
.closing-address { margin-top: .75rem !important; }
.closing-address a { display: inline-block; padding: .4rem 0; font-weight: 600; color: var(--head); overflow-wrap: anywhere; }
.closing .reassure { font-size: var(--t-body); margin-top: 1rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); padding: 2.5rem 0 3rem; font-size: var(--t-small); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; }
.foot-in img { width: 150px; margin-right: auto; }
.foot p { margin: 0; }
.foot a { color: var(--head); }
@media (max-width: 40rem) { .foot-in { flex-direction: column; align-items: flex-start; } }

/* Phones: the two phone screens stack, large enough to read (judges v3: side by side they were ~159 px wide) */
@media (max-width: 40rem) {
  .ba-phones { grid-template-columns: minmax(0, 17rem); gap: .75rem; }
  .ba-phones .ba-arrow { justify-self: center; transform: rotate(90deg); }
  .shot figcaption { font-size: .85rem; letter-spacing: .1em; padding: .45rem; }
  .shot img { border-width: 3px; }
  .actions .btn { width: 100%; }
  /* the top ask stays on one line on a 360 px phone */
  .hero .actions .btn { padding: 1rem 1.25rem; font-size: 1.0625rem; text-wrap: balance; }
}

/* Privacy, accessibility and 404 pages */
.page main { max-width: 44rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--pad) var(--space); }
.page h1 { font-size: var(--t-h2); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.page main a { color: var(--accent); }
.page ul { padding-left: 1.2em; }
.date { color: var(--muted); font-size: var(--t-small); }

/* The ask box (app.js): address, Copy, Gmail, the email app */
.ask { width: min(32rem, calc(100% - 2rem)); padding: clamp(1.5rem, 4vw, 2.25rem); border: 0; border-radius: var(--r); background: var(--paper); color: var(--ink); box-shadow: 0 24px 64px rgb(3 41 70 / .25); }
.ask::backdrop { background: rgb(3 41 70 / .45); }
.ask > form[method="dialog"] { position: absolute; top: .5rem; right: .5rem; margin: 0; } /* the close button only, not the sample form */
.ask-x { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.ask-x:hover { background: var(--line); }
.ask-x svg { width: 1.25rem; }
.ask-x path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ask h2 { font-size: var(--t-h3); margin: 0 2.5rem .75rem 0; }
.ask p { color: var(--muted); }
.ask-addr { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px; }
.ask-addr span { font: 700 1.125rem/1.3 var(--head-font); color: var(--head); overflow-wrap: anywhere; margin-right: auto; }
.ask-copy { min-height: 2.75rem; padding: .5rem 1rem; border: 2px solid var(--head); border-radius: 8px; background: var(--paper); color: var(--head); font: 700 .9375rem/1.2 var(--head-font); cursor: pointer; }
.ask-copy:hover { background: var(--line); }
.ask-open { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: 1.25rem 0 0; }
.ask-app { font-weight: 600; color: var(--head); padding: .6rem 0; }
/* one blue button per box: Send; Gmail is the second way, in outline */
.ask .ask-gmail { background: var(--paper); color: var(--head); box-shadow: inset 0 0 0 2px var(--head); }
.ask .ask-gmail:hover { background: var(--line); }

/* The sample request form (in the ask box and the closing; Ryan, 2026-10-30: orders.json o19) */
.sample-form { display: grid; gap: 1rem; margin: 1.25rem 0 0; text-align: left; }
.sample-form p { margin: 0; }
.field { display: grid; gap: .35rem; }
.field label { font: 700 .9375rem/1.3 var(--head-font); color: var(--head); }
.field .opt { font: 500 var(--t-label)/1 var(--body-font); color: var(--muted); margin-left: .35rem; }
.field input, .field textarea { width: 100%; min-height: 2.875rem; padding: .65rem .8rem; border: 1px solid #a9b6c6; border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--body-font); }
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; border-color: var(--ring); }
.field .hint { color: var(--muted); font-size: var(--t-small); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-send .btn { width: 100%; }
.form-note { color: var(--muted); font-size: var(--t-small); }
.form-note a { color: var(--head); }
.ask-or { font-size: var(--t-h4); margin: 1.75rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.closing .sample-form { max-width: 34rem; margin: 1.5rem auto 0; }
.closing .closing-address { margin-top: 1.25rem !important; font-size: var(--t-body); }


/* Services: a list of rows, a name and one sentence each, not a row of icon cards (STANDARD hard line; Ryan's
   reference codedvisiondesign.co.uk, orders.json o20); then what every site includes */
#services { padding: var(--space) 0; }
.services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.services li { display: grid; gap: .35rem 3rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .services li { grid-template-columns: 16rem 1fr; align-items: baseline; } }
.services h3 { font-size: var(--t-h4); }
.services p { margin: 0; color: var(--muted); }
.included { margin-top: clamp(2rem, 4vw, 3rem); }
.included h3 { font-size: var(--t-h4); margin-bottom: 1rem; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem 3rem; }
@media (min-width: 48rem) { .included ul { grid-template-columns: 1fr 1fr; } }
.included li { padding-left: 2rem; position: relative; }
.included li::before { content: ""; position: absolute; left: .1rem; top: .4em; width: .9rem; height: .5rem; border-left: 2.5px solid var(--head); border-bottom: 2.5px solid var(--head); transform: rotate(-45deg); }

/* FAQ: questions that open in place (native <details>, no script; orders.json o21) */
#faq { padding: var(--space) 0; }
.faq-in { max-width: 48rem; margin: 0 auto; }
.faq-in > p { color: var(--muted); font-size: var(--t-lead); margin-bottom: 2rem; }
.faq-list { display: grid; gap: .75rem; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.faq-list details[open] { border-color: var(--head); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding: .9rem 1.25rem; cursor: pointer; list-style: none; font: 700 1.0625rem/1.35 var(--head-font); color: var(--head); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: .6rem; height: .6rem; border-right: 2.5px solid var(--head); border-bottom: 2.5px solid var(--head); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
@media (prefers-reduced-motion: reduce) { .faq-list summary::after { transition: none; } }
.faq-list details > p { margin: 0; padding: 0 1.25rem 1.1rem; color: var(--ink); }
