/* cadleygolf.com, design B "the caddie's voice": full-width bands, no boxes. Tokens from Cadley's DESIGN.md. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow_medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow_semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow_bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --page: #F6F6F3; --band: #ECECE6; --ink: #191B19; --ink2: #585B56; --hairline: #DCDCD6;
  --act: #4E6E58; --on-act: #FFFFFF; --pen: #3B5644; --err: #A3322A;
  --night: #191B19; --night-ink: #EEF0EC; --night-ink2: #A9AEA7; --night-line: #353935; --night-pen: #A9C9B1; --night-act: #9DBFA6; --night-on-act: #0E1A12;
  --glass: rgba(255,255,255,.72); --glass-edge: rgba(255,255,255,.9);
  --shadow: 0 2px 6px rgba(25,27,25,.06), 0 30px 60px -10px rgba(25,27,25,.18), 0 60px 120px -30px rgba(25,27,25,.16);
  --f-words: "Bricolage Grotesque", system-ui, sans-serif;
  --f-fig: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-pen: "Caveat", cursive;
  --gut: clamp(20px, 5vw, 96px);
  --max: clamp(1240px, 80vw, 1720px);
  --pad: clamp(96px, 10vw, 200px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #161C18; --band: #1B221D; --ink: #E8ECE7; --ink2: #A4ACA4; --hairline: #323A34;
    --act: #9DBFA6; --on-act: #0E1A12; --pen: #A9C9B1; --err: #F0A49C;
    --night: #0F1411; --night-line: #2A312C;
    --glass: rgba(42,50,44,.82); --glass-edge: rgba(255,255,255,.08);
    --shadow: 0 2px 6px rgba(0,0,0,.4), 0 30px 60px -10px rgba(0,0,0,.5), 0 60px 120px -30px rgba(0,0,0,.5);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--page); color: var(--ink); font: 500 18px/1.55 var(--f-words); overflow-x: clip; }
main { flex: 1; display: flex; flex-direction: column; }
main > section:last-child { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 max(var(--gut), env(safe-area-inset-right)) 0 max(var(--gut), env(safe-area-inset-left)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--page); padding: 12px 16px; z-index: 9; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section { position: relative; }
p { max-width: 60ch; }

/* Slim header, the same colour as the page */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.logo { display: flex; align-items: center; min-height: 48px; }
.logo img { height: 40px; width: auto; }
.top nav { display: flex; gap: 14px; margin-right: -9px; font-weight: 600; font-size: 17px; }
.top nav a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; justify-content: center; padding: 0 9px; text-decoration: none; }
.top nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Type */
.kicker { font: 600 clamp(24px, 2vw, 30px)/1.1 var(--f-pen); color: var(--pen); margin: 0 0 14px; text-wrap: balance; }
h1, h2 { font-family: var(--f-fig); font-weight: 700; letter-spacing: -0.01em; line-height: .92; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(56px, 7.4vw, 128px); }
h2 { font-size: clamp(44px, 5vw, 84px); }
h3 { font: 700 clamp(28px, 2.2vw, 36px)/1 var(--f-fig); margin: 0; }
h1 em, h2 em { font-style: normal; color: var(--act); }
.lede { font-size: clamp(19px, 1.45vw, 23px); line-height: 1.5; color: var(--ink2); max-width: 40ch; margin: 24px 0 0; }
.sub { color: var(--ink2); font-size: clamp(18px, 1.3vw, 21px); line-height: 1.55; max-width: 44ch; margin: 22px 0 0; }
.pen { font: 600 clamp(32px, 2.6vw, 44px)/1.1 var(--f-pen); color: var(--pen); }
.note { font-size: 16px; color: var(--ink2); margin: 20px 0 0; }

/* Buttons: press in on touch-down, transform and opacity only */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border-radius: 28px; background: var(--act); color: var(--on-act); font: 700 19px var(--f-words); text-decoration: none; transition: transform .2s ease-out, opacity .2s ease-out; }
@media (hover: hover) { .btn:hover { opacity: .88; } .top nav a:hover, .foot nav a:hover, .toc a:hover { text-decoration: underline; } .link:hover { text-decoration-thickness: 3px; } }
.btn:active { transform: scale(.97); opacity: .9; transition-duration: .1s; }
.link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; padding: 0 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }
.c { text-align: center; }
.c .actions { justify-content: center; }
.c h1, .c h2, .c p { margin-left: auto; margin-right: auto; }

/* Bands: sections follow by changing the background, never by boxing content */
.band { background: var(--band); }
.night { background: var(--night); color: var(--night-ink); --ink: var(--night-ink); --ink2: var(--night-ink2); --hairline: var(--night-line); --pen: var(--night-pen); --act: var(--night-act); --on-act: var(--night-on-act); }
.pad { padding: var(--pad) 0; }

/* Ticked lines with hairlines */
.ticks { list-style: none; padding: 0; margin: 28px 0 0; }
.ticks li { position: relative; padding: 14px 0 14px 40px; border-top: 1px solid var(--hairline); font-weight: 600; }
.ticks li:last-child { border-bottom: 1px solid var(--hairline); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 16px; height: 9px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }
.ticks li.at::before { border: 0; width: 10px; height: 10px; left: 6px; border-radius: 50%; background: var(--ink2); transform: none; }
.ticks li.no::before { border: 0; width: 18px; height: 3px; top: 27px; background: var(--ink2); transform: none; }

/* Bare figures with hairlines between */

/* The phone: a current 19.5:9 handset, straight on and whole. A thin brushed-metal edge, an even black bezel,
   corners that follow the screen's, a small centred camera hole above the app screen, no side buttons.
   --pw sets the width; everything scales from it. */
.phone { --m: calc(var(--pw, 380px) * .009); --b: calc(var(--pw, 380px) * .019); --r: calc(var(--pw, 380px) * .14); position: relative; width: var(--pw, 380px); padding: var(--m); border-radius: var(--r); background: linear-gradient(150deg, #9AA09B, #4A4F4B 22%, #2E322F 50%, #4A4F4B 78%, #8E948F); box-shadow: 0 1px 2px rgba(25,27,25,.12), 0 24px 48px -12px rgba(25,27,25,.22), 0 50px 100px -30px rgba(25,27,25,.2); }
.phone picture { display: block; padding-top: calc(var(--pw, 380px) * .05); background: #7C817B; border: var(--b) solid #050605; border-radius: calc(var(--r) - var(--m)); overflow: hidden; }
.phone img { width: 100%; height: auto; aspect-ratio: 720 / 1518; }
.phone::after { content: ""; position: absolute; top: calc(var(--m) + var(--b) + var(--pw, 380px) * .011); left: 50%; width: calc(var(--pw, 380px) * .028); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2A2F3A, #050605 60%); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
@media (prefers-color-scheme: dark) { .phone { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 48px -12px rgba(0,0,0,.55), 0 50px 100px -30px rgba(0,0,0,.5); } }

/* The watch, drawn like a product shot. The big one in the watch band is a bare round face with a ring and a crown.
   The small ones use the same face and ring, with short strap pieces top and bottom that taper and end within the picture. */
.watch { position: absolute; width: var(--ww, 160px); aspect-ratio: 1; border-radius: 50%; }
.watch img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.watch.giant { background: #111; padding: calc(var(--ww) * .055); box-shadow: 0 0 0 calc(var(--ww) * .035) #2C302D, var(--shadow); }
.watch.giant .crown { position: absolute; right: -7%; top: 40%; width: 7%; height: 20%; border-radius: 4px; background: #3A3F3B; }
.watch:not(.giant) { z-index: 2; }
.watch:not(.giant) img { position: relative; z-index: 1; box-sizing: border-box; border: calc(var(--ww, 160px) * .055) solid #111; box-shadow: 0 0 0 calc(var(--ww, 160px) * .035) #2C302D, 0 0 0 calc(var(--ww, 160px) * .042) #1A1D1B, var(--shadow); }
.watch:not(.giant)::before, .watch:not(.giant)::after { content: ""; position: absolute; left: 25%; right: 25%; height: 46%; background: linear-gradient(to right, #1C1F1D, #33383A 50%, #1C1F1D); }
.watch:not(.giant)::before { top: -32%; border-radius: 18% 18% 6% 6% / 22% 22% 6% 6%; clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); }
.watch:not(.giant)::after { bottom: -32%; border-radius: 6% 6% 18% 18% / 6% 6% 22% 22%; clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%); }

/* Frosted bubbles: the caddie's conversation, drawn like the app */
.bubble { background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(22px) saturate(1.1); -webkit-backdrop-filter: blur(22px) saturate(1.1); border-radius: 26px; padding: 18px 22px; box-shadow: 0 1px 2px rgba(25,27,25,.05), 0 14px 36px -8px rgba(25,27,25,.18); max-width: 380px; }
.bubble .who { font: 600 15px/1 var(--f-fig); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin: 0 0 8px; }
.bubble p { margin: 0; font-size: 18px; line-height: 1.45; }
.bubble.caddie p:last-child { font: 600 clamp(28px, 2.2vw, 36px)/1.2 var(--f-pen); color: var(--pen); }
@media (prefers-reduced-transparency: reduce) { .bubble { background: var(--page); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Home: the hero, the conversation spoken round the phone */
.hero { text-align: center; padding: clamp(48px, 5vw, 96px) 0 0; overflow: hidden; background: radial-gradient(120% 70% at 50% 100%, var(--band), var(--page) 70%); }
.hero h1 { font-size: clamp(60px, 8.6vw, 156px); max-width: 12ch; margin: 0 auto; }
.hero .kicker, .hero .lede, .hero .note { margin-left: auto; margin-right: auto; }
.hero .actions { justify-content: center; }
.scene { position: relative; padding-bottom: clamp(56px, 5vw, 96px); margin: clamp(56px, 5vw, 96px) 0 0; display: flex; justify-content: center; --pw: clamp(330px, 22vw, 420px); --ww: clamp(170px, 12vw, 230px); }
.scene .device { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* The watch sits on the phone's left edge, above its bottom buttons, so the map credits stay clear */
.scene .watch { left: calc(50% - var(--pw) / 2 - var(--ww) * .7); bottom: calc(clamp(56px, 5vw, 96px) + var(--pw) * .5); }
.scene .bubble { position: absolute; text-align: left; z-index: 3; }
.scene .you { right: calc(50% + clamp(220px, 15vw, 280px)); top: clamp(30px, 3vw, 60px); }
.scene .caddie { left: calc(50% + clamp(220px, 15vw, 280px)); top: clamp(140px, 11vw, 220px); max-width: 400px; }
.scene figcaption { position: absolute; right: calc(50% + clamp(220px, 15vw, 280px)); top: clamp(200px, 15vw, 260px); width: min(380px, 26vw); text-align: left; font-size: 16px; color: var(--ink2); }

.quote .big { font: 600 clamp(44px, 5.2vw, 92px)/1.08 var(--f-pen); color: var(--pen); max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.quote .sub { margin: 36px auto 0; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 120px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: clamp(64px, 5vw, 96px) 1fr; gap: 0 24px; padding: 26px 0; border-top: 1px solid var(--hairline); }
.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.steps span { font: 700 clamp(56px, 4.6vw, 84px)/.85 var(--f-fig); }
.steps h3 { margin: 4px 0 8px; }
.steps p { margin: 0; color: var(--ink2); max-width: 46ch; }
.stage { display: flex; justify-content: center; }

.watchband { overflow: hidden; min-height: clamp(560px, 42vw, 760px); }
.watchband .copy { position: relative; z-index: 2; max-width: 600px; }
.watch.giant { --ww: clamp(520px, 38vw, 720px); right: calc(-1 * clamp(80px, 6vw, 160px)); top: 50%; transform: translateY(-50%); }
.watch.giant::before, .watch.giant::after { display: none; }

/* The plans, as one plain table */
.plan { width: 100%; max-width: 1100px; margin: clamp(48px, 4vw, 72px) auto 0; border-collapse: collapse; text-align: left; font-size: clamp(17px, 1.2vw, 20px); }
.plan thead th { vertical-align: bottom; padding: 0 0 22px 24px; font: 600 16px/1.1 var(--f-fig); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); width: 30%; }
.plan thead b { display: block; white-space: nowrap; font: 700 clamp(64px, 6vw, 108px)/.95 var(--f-fig); letter-spacing: -0.01em; text-transform: none; color: var(--ink); margin-top: 10px; }
.plan thead b small { font-size: .3em; color: var(--ink2); font-weight: 600; }
.plan thead span { display: block; font: 500 16px/1.4 var(--f-words); letter-spacing: 0; text-transform: none; margin-top: 8px; }
.plan tbody th, .plan tbody td { padding: 18px 0 18px 24px; border-top: 1px solid var(--hairline); vertical-align: top; }
.plan tbody th { padding-left: 0; font-weight: 600; }
.plan tbody td { color: var(--ink2); font-weight: 600; }
.plan tbody td:last-child { color: var(--ink); }
.plan tbody tr:last-child > * { border-bottom: 1px solid var(--hairline); }

.end h2 { font-size: clamp(56px, 7vw, 124px); max-width: 13ch; }
.end { display: flex; align-items: center; }
.head { padding-top: clamp(48px, 5vw, 96px); }

/* Free and paid */
.ads .split { grid-template-columns: 1fr 1fr; }
.ads .stage { flex-direction: column; align-items: center; gap: 48px; }
.watch.solo { position: relative; --ww: clamp(200px, 15vw, 300px); margin: calc(var(--ww) * .4) 0; }
.pay .big { font-size: clamp(20px, 1.7vw, 27px); line-height: 1.5; max-width: 40ch; margin: 28px auto 0; color: var(--ink2); }
.pay .big:first-of-type { color: var(--ink); margin-top: 40px; }

/* Question and answer rows: the question on the left, the answer on the right */
.qa { margin: 0; }
.qa > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px clamp(32px, 5vw, 96px); padding: clamp(28px, 2.4vw, 40px) 0; border-top: 1px solid var(--hairline); }
.qa > div:last-child { border-bottom: 1px solid var(--hairline); }
.qa dt { font: 700 clamp(28px, 2.2vw, 36px)/1.05 var(--f-fig); }
.qa dd { margin: 0; color: var(--ink2); font-size: clamp(18px, 1.3vw, 21px); }
.qa dd p { margin: 0; max-width: 52ch; }
.group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px clamp(40px, 6vw, 120px); }
.group h2 { font-size: clamp(40px, 3.6vw, 64px); }

/* Privacy */
.toc { position: sticky; top: 32px; align-self: start; }
.toc ol { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: s; }
.toc li { counter-increment: s; border-top: 1px solid var(--hairline); }
.toc li:last-child { border-bottom: 1px solid var(--hairline); }
.toc a { display: flex; gap: 14px; align-items: center; min-height: 48px; padding: 6px 0; text-decoration: none; font-weight: 600; }
.toc a::before { content: counter(s); font: 700 20px var(--f-fig); color: var(--ink2); min-width: 1.4em; }
.policy section { padding: clamp(28px, 2.4vw, 40px) 0; border-top: 1px solid var(--hairline); scroll-margin-top: 24px; }
.policy section:last-child { border-bottom: 1px solid var(--hairline); }
.policy h2 { font-size: clamp(32px, 2.8vw, 48px); }
.policy p { color: var(--ink2); margin: 10px 0 0; }
.policy h3 { font-size: clamp(24px, 1.8vw, 30px); margin: 28px 0 0; }
.policy ul { color: var(--ink2); margin: 12px 0 0; padding-left: 1.2em; max-width: 64ch; }
.policy li { margin: 8px 0 0; }
.policy li::marker { color: var(--act); }
.policy strong { color: var(--ink); }
.soon { display: inline-block; font: 700 14px/1.3 var(--f-words); color: var(--pen); border: 1px solid currentColor; border-radius: 6px; padding: 1px 7px; vertical-align: 1px; }
.draft { font-size: 17px; color: var(--ink2); max-width: 56ch; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--hairline); }
.draft strong { color: var(--ink); }

/* Contact */

/* Footer */
.foot { padding: 56px 0 64px; border-top: 1px solid var(--hairline); font-size: 16px; color: var(--ink2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 10px; margin-left: -9px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; justify-content: center; padding: 0 9px; text-decoration: none; font-weight: 600; color: var(--ink); }
.foot p { margin: 0; }
.foot .lines { display: flex; flex-direction: column; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:active { transform: none; transition: opacity .2s; }
}

@media (max-width: 900px) {
  .split, .ads .split, .group { grid-template-columns: 1fr; }
  .scene { height: auto; flex-direction: column; align-items: center; gap: 14px; margin-top: 48px; --pw: 270px; --ww: 132px; }
  .scene .bubble, .scene figcaption { position: static; max-width: 340px; width: auto; }
  .scene figcaption { order: -1; align-self: flex-start; margin: 0 0 4px; }
  .scene .you { align-self: flex-start; }
  .scene .caddie { align-self: flex-end; margin-bottom: 32px; }
  .scene .caddie p:last-child { font-size: 26px; }
  .scene .device { order: 3; }
  .scene .watch { top: auto; bottom: calc(56px + var(--pw) * .62); left: calc(50% - var(--pw) / 2 - var(--ww) * .25); }
  .watchband { min-height: 0; padding-bottom: 0; }
  .watch.giant { position: relative; right: auto; top: auto; transform: none; --ww: 330px; margin: 56px auto -90px; left: 18%; }
  .watch.solo { --ww: 200px; }
  .plan thead th { vertical-align: top; width: auto; padding-left: 14px; }
  .plan thead b { font-size: 52px; }
  .plan thead b small { display: block; font-size: 16px; margin-top: 4px; }
  .plan thead span { font-size: 14px; }
  .plan tbody th, .plan tbody td { padding: 14px 0 14px 14px; font-size: 15px; }
  .plan tbody th { padding-left: 0; }
  .qa > div { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .top .wrap { height: 68px; }
  .logo img { height: 34px; }
  .top nav { gap: 2px; font-size: 15px; }
  .actions { flex-direction: column; align-items: stretch; text-align: center; }
  .link { justify-content: center; }
}
.watchband .wrap { position: relative; }
/* Ultra-wide monitors: scale the whole page up rather than leave wide empty margins */
@media (min-width: 2400px) { body { zoom: 1.25; } }
@media (min-width: 3000px) { body { zoom: 1.5; } }
.how .group { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
@media (max-width: 900px) { .how .group { grid-template-columns: 1fr; } }
.plans .ticks { max-width: 640px; margin: clamp(32px, 3vw, 48px) auto 0; text-align: left; }
.say .sub { font-size: clamp(21px, 1.9vw, 32px); line-height: 1.45; max-width: 34ch; color: var(--ink); }
.say .sub + .sub { color: var(--ink2); }

/* Contact form: open fields on the band, a firm line under each, big targets, errors right under the field */
.form { display: grid; gap: 28px; max-width: 760px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; font-size: 19px; margin-bottom: 8px; padding: 0; }
.field label span { font-weight: 500; color: var(--ink2); }
.field input:not([type=radio]):not([type=file]), .field textarea { display: block; width: 100%; min-height: 56px; padding: 12px 2px; font: 500 19px/1.4 var(--f-words); color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink2); border-radius: 0; }
.field textarea { resize: vertical; min-height: 168px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.field [aria-invalid="true"], .field[aria-invalid="true"] .choice:first-of-type { border-bottom-color: var(--err); }
.choice { display: flex !important; align-items: center; gap: 14px; min-height: 56px; font-weight: 600 !important; font-size: 18px !important; margin: 0 !important; border-top: 1px solid var(--hairline); cursor: pointer; }
.choice:last-of-type { border-bottom: 1px solid var(--hairline); }
.choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--act); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pair[hidden] { display: none; }
.files { display: block; width: 100%; min-height: 56px; font: 600 17px var(--f-words); color: var(--ink2); }
.files::file-selector-button { min-height: 48px; margin-right: 16px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 24px; background: transparent; color: var(--ink); font: 700 17px var(--f-words); cursor: pointer; }
.hint { margin: 0 0 8px; font-size: 16px; color: var(--ink2); }
.err { margin: 8px 0 0; font-weight: 700; font-size: 16px; color: var(--err); }
.err:empty { display: none; }
.summary { margin: 0; padding: 14px 0; border-top: 3px solid var(--err); border-bottom: 1px solid var(--hairline); font-weight: 700; color: var(--err); }
.chosen { list-style: none; margin: 10px 0 0; padding: 0; font-size: 16px; color: var(--ink2); }
.chosen:empty { display: none; }
.form .actions { margin-top: 8px; }
.btn:disabled { opacity: .6; cursor: progress; }
button.link { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.thanks h3 { font-size: clamp(36px, 3.4vw, 56px); }
.thanks p { font-size: clamp(19px, 1.45vw, 23px); margin: 16px 0 0; }
.thanks:focus { outline: none; }
.formnote { font-weight: 600; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
button.btn { border: 0; cursor: pointer; }
.head.short { padding-bottom: clamp(32px, 3vw, 56px); }
.prefer .lede { margin-top: 0; font-weight: 600; color: var(--ink); }
.prefer .actions { margin-top: 12px; }
.form[hidden] { display: none; }
.prefer { padding: clamp(56px, 6vw, 112px) 0; }
/* A phone screenshot that already fills the whole screen: no drawn status strip above it */
.phone.full::after { top: calc(var(--m) + var(--b) + var(--pw, 380px) * .022); }
.phone.full img { aspect-ratio: 1080 / 2216; }
.phone.full picture { padding-top: 0; }
.credit { margin: 0; max-width: var(--pw); font-size: 14px; line-height: 1.35; color: var(--ink2); text-align: center; }
/* Phones beside a band's words: the hero's frame at a slightly smaller size */
.phone.side { --pw: clamp(300px, 20vw, 380px); }
.split.flip .stage { order: -1; }
@media (max-width: 900px) { .phone.side { --pw: 270px; } .split.flip .stage { order: 0; } .say .stage { margin-top: 40px; } }
/* The top menu stays on one line on small phones */
.top nav a { white-space: nowrap; }
@media (max-width: 760px) { .top nav a { padding: 0 6px; } }
@media (max-width: 360px) { .top nav { font-size: 14px; margin-right: -4px; } .top nav a { padding: 0 4px; } .logo img { height: 28px; } }
/* The later price sits right under the first-year price, in the same size */
.plan thead .offer { display: block; margin-top: 10px; font: 600 clamp(22px, 1.8vw, 28px)/1.1 var(--f-pen); color: var(--pen); letter-spacing: 0; text-transform: none; }
.plan thead .offer + b { margin-top: 2px; }
.plan-note { margin: 28px auto 0; max-width: 60ch; }
.plan-note + .note { margin-top: 20px; }
/* Phones: each plan row's name across the full width, the free and paid values side by side under it */
@media (max-width: 760px) {
  .plan, .plan thead, .plan tbody { display: block; }
  .plan tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .plan thead td { display: none; }
  .plan thead th { padding: 0 0 20px; }
  .plan tbody th { grid-column: 1 / -1; padding: 16px 0 4px; border-top: 1px solid var(--hairline); }
  .plan tbody td { padding: 0 0 16px; border-top: 0; }
  .plan tbody tr:last-child > * { border-bottom: 0; }
  .plan tbody tr:last-child { border-bottom: 1px solid var(--hairline); }
  .plan tbody th, .plan tbody td { font-size: 16px; }
}
.logo { flex-shrink: 0; min-width: 48px; }
@media (max-width: 360px) { .top .wrap { padding-left: 12px; padding-right: 12px; gap: 8px; } .top nav { gap: 0; } .top nav a { padding: 0 3px; } .logo { min-width: 44px; } }
/* The one-word header logo and all four menu links on small phones */
@media (max-width: 440px) { .top .wrap { gap: 8px; } .top nav { font-size: 14px; gap: 0; } .top nav a { padding: 0 4px; } .logo img { height: 30px; } }
/* Below 360 px the logo is the way home, so the Home link gives way */
@media (max-width: 359px) { .top nav a[href="/"] { display: none; } }
/* Phones: equal clear gaps between the menu links. Each link's tap area reaches
   half-way into the gaps on either side, so short words stay easy to tap. */
@media (max-width: 440px) {
  .top nav { gap: 16px; margin-right: 0; }
  .top nav a { position: relative; min-width: 0; padding: 0; }
  .top nav a::before { content: ""; position: absolute; inset: 0 -8px; }
}
@media (max-width: 380px) { .top nav { gap: 13px; } .top nav a::before { inset: 0 -6.5px; } .logo img { height: 28px; } }
@media (max-width: 440px) { .top nav a::before { inset: 0 auto; left: 50%; width: max(calc(100% + 16px), 44px); translate: -50% 0; } }
@media (max-width: 380px) { .top nav a::before { width: max(calc(100% + 13px), 44px); } }
/* Prices: the first-year price and the price after it, together and at one size */
.plans .prices { font: 700 clamp(26px, 2.4vw, 40px)/1.25 var(--f-fig); color: var(--ink); max-width: 30ch; margin: 20px auto 0; text-wrap: balance; }
.plan thead span.prices { font: 700 clamp(20px, 1.7vw, 26px)/1.2 var(--f-fig); color: var(--ink); letter-spacing: 0; text-transform: none; margin-top: 10px; white-space: normal; }
.plan thead b.one { font-size: clamp(40px, 3.4vw, 56px); }
.plans .prices { max-width: 44ch; text-wrap: initial; }
.plans .prices span { display: block; }
/* One moderate heading carries both monthly prices; the yearly prices sit under it at body size */
.plans .price-head { font-size: clamp(32px, 3.2vw, 52px); max-width: 30ch; line-height: 1.05; }
.plans .price-year { margin-top: 16px; color: var(--ink); font-weight: 600; }
.plan thead span.prices { font-size: clamp(22px, 1.9vw, 30px); }
/* Legal pages: the solicitor's check marks stay small and quiet until they come off before go-live */
.check { font: 500 14px/1.3 var(--f-words); color: var(--ink2); }
.policy p, .policy ul { max-width: 68ch; }
.policy h2 { scroll-margin-top: 24px; }
.policy .lede, .hero .draft { max-width: 60ch; }
.keep { width: 100%; max-width: 68ch; margin: 16px 0 0; border-collapse: collapse; font-size: 17px; color: var(--ink2); }
.keep th, .keep td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--hairline); }
.keep thead th { font: 600 15px/1.2 var(--f-fig); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); border-top: 0; }
.keep tbody th { color: var(--ink); font-weight: 600; width: 50%; }
.keep tbody tr:last-child > * { border-bottom: 1px solid var(--hairline); }
.legal .lede, .legal .draft { text-align: left; }
.legal .lede, .legal .draft { max-width: 720px; }
