/* Magzy's landing page. Set like a magazine, not like an app: square corners, no shadows, big type, pictures that
   run to an edge. Light: tinted colour fields with panes of tinted glass over them (translucent, a light edge, what
   lies behind shows through), hairlines instead of heavy rules; dark only where it carries something (the header
   bar, the reader). */

@font-face { font-family: "Fraunces"; src: url(fonts/fraunces.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Karla"; src: url(fonts/karla.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Alfa Slab One"; src: url(fonts/alfa-slab.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(fonts/caveat.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #1b1a1f;
  --ink-2: #4a4740;
  --grey: #6b665d;
  --paper: #ffffff;
  --base: #f7f2ea;
  --cream: #f6eee0;
  --sky: #e2edf8;
  --peach: #fbe7dc;
  --mint: #e2f0e5;
  --lilac: #ebe7f7;
  --sand: #efe8dc;
  --yellow: #ffd400;
  --yellow-pale: #fff4c4;
  --line: rgba(27, 26, 31, .14);
  --line-2: rgba(27, 26, 31, .24);
  --glass: linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .46));
  --glass-edge: rgba(255, 255, 255, .85);
  --blur: blur(18px) saturate(150%);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --slab: "Alfa Slab One", Rockwell, Georgia, serif;
  --text: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --max: 1380px;
  --gut: clamp(20px, 4vw, 60px);
  --top: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/1.55 var(--text); color: var(--ink); background: var(--base); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }                     /* a hidden part stays hidden, whatever its own display is */
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.top :focus-visible, .reader :focus-visible { outline-color: var(--yellow); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--yellow); padding: 12px 18px; font-weight: 800; }
.skip:focus { left: 12px; top: 12px; }
.small { font-size: 15px; color: var(--grey); }
.big { font-size: clamp(20px, 1.55vw, 24px); line-height: 1.45; }
.tag { position: absolute; right: 10px; bottom: 10px; font: 700 10px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.5); writing-mode: vertical-rl; transform: rotate(180deg); opacity: .85; }

/* a pane of tinted glass: translucent, a light edge, what lies behind it shows through softened */
.glass { background: var(--glass); border: 1px solid var(--glass-edge); outline: 1px solid rgba(27, 26, 31, .06); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }

/* headings: Fraunces large, with its soft optical shapes */
h1, h2 { font-family: var(--display); font-weight: 640; letter-spacing: -.018em; font-optical-sizing: auto; }
h2 { font-size: clamp(40px, 5.2vw, 84px); line-height: .98; }
h1 em, h2 em { font-style: italic; font-weight: 520; }
h3 { font-family: var(--text); font-weight: 800; font-size: 21px; line-height: 1.2; }
.mark, h1 em { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 90%, transparent 90%); padding: 0 .06em; margin: 0 -.06em; }

.kicker { font: 800 13px/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 12px; height: 12px; background: var(--yellow); flex: none; }

/* the head of every section: a hairline, what the section is, and its page number, as a magazine's running head */
.sechead { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line-2); padding-top: 12px; margin-bottom: clamp(26px, 3vw, 44px);
           font: 800 13px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.sechead span:last-child { font: 400 22px/1 var(--slab); letter-spacing: 0; color: var(--ink); }

/* buttons: flat blocks of colour, or glass */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: 15px 24px; font: 800 17px/1.1 var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: none; }
.btn-main { background: var(--yellow); color: var(--ink); }
.btn-main:hover { background: var(--ink); color: var(--yellow); }
.btn-glass { background: var(--glass); border-color: var(--glass-edge); outline: 1px solid var(--line); color: var(--ink); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn-glass:hover { background: #fff; }
.btn-big { font-size: 20px; padding: 18px 30px; }
.link-btn { background: none; border: 0; padding: 6px 0; font-weight: 800; font-size: 17px; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); text-underline-offset: .28em; cursor: pointer; }
.link-btn:hover { text-decoration-thickness: 6px; }
.sq { width: 46px; height: 46px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .6); border: 1px solid var(--line-2); font-size: 20px; font-weight: 800; cursor: pointer; padding: 0; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.sq:hover { background: var(--yellow); border-color: var(--yellow); }
.sq:disabled { opacity: .35; cursor: default; background: rgba(255, 255, 255, .6); border-color: var(--line-2); }
.sq-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .4); }
.sq-light:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.sq-light:disabled { background: transparent; border-color: rgba(255, 255, 255, .25); }

/* ------------------------------------------------------------------ the header: a bar of smoked glass */
.top { position: sticky; top: 0; z-index: 40; background: rgba(20, 19, 24, .9); color: var(--paper); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.top-row { display: flex; align-items: center; height: var(--top); gap: 36px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; font: 800 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--yellow); }
.top-cta { padding: 11px 18px; font-size: 15px; }
.top-cta:hover { background: #fff; color: var(--ink); }

/* ------------------------------------------------------------------ the hero */
.hero { overflow: hidden; background:
  radial-gradient(55% 70% at 88% 18%, rgba(255, 212, 0, .30), transparent 62%),
  radial-gradient(45% 60% at 70% 95%, rgba(140, 190, 240, .32), transparent 62%),
  radial-gradient(40% 50% at 5% 10%, rgba(255, 200, 170, .30), transparent 60%), var(--cream); }
.dateline { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0 12px; border-bottom: 1px solid var(--line-2); font: 800 12px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 56px); align-items: center;
             min-height: min(860px, calc(100vh - var(--top) - 40px)); padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.hero h1 { font-size: clamp(50px, 6.4vw, 108px); line-height: .93; margin: 22px 0 28px; font-weight: 660; }
.lead { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.45; max-width: 31ch; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin: 34px 0 20px; }
.trial-line { max-width: 40ch; }

.stage { --pw: clamp(250px, 25vw, 372px); position: relative; display: flex; flex-direction: column; align-items: center; padding: 34px 0 0; }
/* two panes of tinted glass behind the magazine, overlapping */
.pane { position: absolute; border: 1px solid var(--glass-edge); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.pane-a { top: 0; bottom: 64px; left: 38%; right: calc(-1 * var(--gut) - 200px); background: linear-gradient(140deg, rgba(255, 212, 0, .62), rgba(255, 226, 90, .38)); }
.pane-b { top: 34%; bottom: 20px; left: 14%; width: 44%; background: linear-gradient(140deg, rgba(160, 205, 245, .55), rgba(200, 225, 250, .30)); }
.hand { position: absolute; z-index: 3; left: calc(50% - var(--pw) / 2 - 206px); top: 11%; width: 190px; font: 600 31px/1.02 var(--hand); transform: rotate(-6deg); display: flex; flex-direction: column; color: var(--ink); transition: opacity .4s ease; pointer-events: none; }
.hand svg { margin: 6px 0 0 58px; }
.stage.is-open .hand { opacity: 0; }

/* the magazine: twelve leaves turning round the spine. Closed it shows the cover alone; open, two pages */
.book { position: relative; z-index: 2; width: calc(var(--pw) * 2); height: calc(var(--pw) * 1.41428); perspective: 3000px;
        transform: translateX(calc(var(--pw) * -.5)) rotate(-2.2deg); transition: transform .7s cubic-bezier(.35,.1,.2,1); outline-offset: 10px; }
.book.is-open { transform: none; }
.book.at-end { transform: translateX(calc(var(--pw) * .5)) rotate(1.5deg); }
.leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.35,.1,.2,1); cursor: pointer; }
.leaf.turned { transform: rotateY(-180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; overflow: hidden; }
.face img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.face.back { transform: rotateY(180deg); }
.face.front::after, .face.back::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,.14); }
.face.front::after { left: 0; }
.face.back::after { right: 0; }
.leaf:first-child .face.front::after { display: none; }
.book-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.where { min-width: 130px; text-align: center; font: 800 14px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.read-btn { margin-left: 14px; background: var(--glass); border: 1px solid var(--glass-edge); outline: 1px solid var(--line); height: 46px; padding: 0 18px; font-weight: 800; font-size: 15px; cursor: pointer; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.read-btn:hover { background: var(--yellow); }

/* ------------------------------------------------------------------ the running line of stories: a band of yellow glass */
.ticker { position: relative; overflow: hidden; white-space: nowrap; background: linear-gradient(90deg, rgba(255, 212, 0, .55), rgba(255, 232, 130, .55)); border-top: 1px solid rgba(255, 255, 255, .7); border-bottom: 1px solid var(--line); }
.run { display: inline-flex; padding: 16px 0; animation: run 90s linear infinite; will-change: transform; }
.ticker:hover .run { animation-play-state: paused; }
.run span { display: inline-flex; align-items: baseline; gap: 12px; padding-right: 54px; font: 500 18px/1 var(--display); font-style: italic; }
.run b { font: 800 12px/1 var(--text); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
@keyframes run { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ why */
.why { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); background: var(--paper); }
.why-photo { position: relative; min-height: 640px; }
.why-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.why-text { padding: clamp(48px, 6vw, 110px) var(--gut) clamp(48px, 6vw, 100px) clamp(32px, 5vw, 90px); max-width: 820px; }
.why-text h2 { margin-bottom: 30px; }
.why-text p { max-width: 62ch; }
.why-text p + p { margin-top: 18px; }
.why-text .big { margin-bottom: 26px; padding-left: 22px; border-left: 4px solid var(--yellow); color: var(--ink-2); }

/* ------------------------------------------------------------------ how */
.how { padding: clamp(56px, 7vw, 110px) 0 clamp(56px, 7vw, 110px); overflow: hidden; background:
  radial-gradient(50% 70% at 90% 10%, rgba(255, 212, 0, .20), transparent 60%),
  radial-gradient(55% 70% at 0% 100%, rgba(120, 170, 230, .30), transparent 60%), var(--sky); }
.h-wide { max-width: 15ch; margin-bottom: clamp(36px, 4.5vw, 70px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steps li { position: relative; padding: 26px 26px 34px; display: flex; flex-direction: column; }
.num { display: block; font: 400 clamp(84px, 9vw, 150px)/.8 var(--slab); margin: 4px 0 22px; color: var(--ink); }
.steps li:nth-child(2) .num { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.steps li:nth-child(4) .num { color: var(--yellow); -webkit-text-stroke: 2px var(--ink); }
.steps h3 { margin-bottom: 10px; font-size: 23px; }
.steps p { font-size: 17px; color: var(--ink-2); }
.step-photo { padding-bottom: 0 !important; }
.mail { position: relative; margin: 26px -27px 0; flex: 1; min-height: 240px; }
.mail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }

/* ------------------------------------------------------------------ the four tests */
.tests { padding: clamp(56px, 7vw, 110px) 0 clamp(64px, 8vw, 120px); background:
  radial-gradient(50% 60% at 15% 15%, rgba(190, 170, 240, .40), transparent 60%),
  radial-gradient(45% 60% at 95% 90%, rgba(255, 212, 0, .22), transparent 60%), var(--lilac); }
.tests-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.tests-head .big { color: var(--ink-2); }
.test-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.test { padding: 14px 14px 26px; }
.clip { height: 210px; margin: 0 0 22px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); }
.clip img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.clip-blue { background: #dce9f5; }
.clip-quote { flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 22px 24px; background: #fbf4e7; color: var(--ink); }
.clip-quote blockquote { margin: 0; font: italic 500 clamp(19px, 1.55vw, 23px)/1.25 var(--display); }
.clip-quote figcaption { font: 800 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.test h3 { font: italic 560 clamp(32px, 2.8vw, 44px)/1 var(--display); margin: 0 10px 12px; display: flex; align-items: baseline; gap: 12px; }
.test h3 span { font: 400 18px/1 var(--slab); font-style: normal; }
.test p { margin: 0 10px; color: var(--ink-2); font-size: 17px; }

/* ------------------------------------------------------------------ the gift */
.gift { position: relative; min-height: clamp(520px, 52vw, 820px); display: flex; align-items: center; overflow: hidden; background: #c9b8a6; }
.gift-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.gift-card { position: relative; z-index: 1; width: min(560px, 46vw); margin-left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); padding: clamp(28px, 3.4vw, 52px);
             background: linear-gradient(135deg, rgba(250, 244, 233, .78), rgba(250, 244, 233, .55)); border: 1px solid rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); }
.gift-card h2 { font-size: clamp(38px, 4.2vw, 68px); margin: 16px 0 20px; }
.gift-card p { margin-bottom: 26px; font-size: 19px; color: var(--ink-2); }

/* ------------------------------------------------------------------ for whom */
.who { background: var(--paper); padding: clamp(56px, 7vw, 110px) 0 clamp(40px, 5vw, 70px); }
.who-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.who-item { position: relative; display: flex; flex-direction: column; }
.who-item figure { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.who-item figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.who-item:hover figure img { transform: scale(1.04); }
.label { position: absolute; left: 14px; bottom: 14px; margin: 0; padding: 11px 15px 10px; font: 800 13px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
         background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .55)); border: 1px solid rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); }
.who-item:nth-child(even) .label { background: linear-gradient(135deg, rgba(255, 222, 60, .82), rgba(255, 230, 110, .6)); }
.who-text { position: relative; padding: 20px clamp(16px, 2vw, 30px) 10px; }
.who-text p { font-size: 17px; color: var(--ink-2); }
.who-text strong { display: block; margin-bottom: 4px; color: var(--ink); }
.credit-line { margin-top: 34px; }

/* ------------------------------------------------------------------ Paul's magazine */
.paul { padding: clamp(56px, 7vw, 110px) 0 clamp(56px, 7vw, 100px); overflow: hidden; background:
  radial-gradient(50% 60% at 85% 0%, rgba(255, 180, 150, .38), transparent 60%),
  radial-gradient(45% 55% at 5% 100%, rgba(255, 212, 0, .22), transparent 60%), var(--peach); }
.paul-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: end; }
.paul-head .big { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(36px, 4vw, 60px) 0; }
.stats div { padding: 20px 22px 16px; display: flex; flex-direction: column-reverse; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dd { font: 400 clamp(56px, 6.5vw, 108px)/.9 var(--slab); }
.stats dt { font: 800 13px/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; color: var(--ink-2); }
.gallery-wrap { position: relative; }
.gallery { display: flex; gap: clamp(18px, 2vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))) 20px; scrollbar-width: thin; scrollbar-color: var(--ink-2) transparent; }
.opening { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.pair { display: flex; height: clamp(230px, 24vw, 330px); }
.pair img { height: 100%; width: auto; aspect-ratio: 210 / 297; object-fit: cover; background: #fff; }
.opening:hover .pair img { outline: 2px solid var(--ink); outline-offset: -2px; }
.op-cap { max-width: calc(clamp(230px, 24vw, 330px) * 1.4142); font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.opening.single .op-cap { max-width: calc(clamp(230px, 24vw, 330px) * .7071 + 40px); }
.op-cap b { display: block; font: 800 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; color: var(--ink); }
.gallery-bar { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.gallery-bar .btn { margin-left: auto; }

/* ------------------------------------------------------------------ paper */
.paper { padding: clamp(56px, 7vw, 110px) 0; background:
  radial-gradient(50% 60% at 90% 20%, rgba(120, 200, 150, .35), transparent 60%),
  radial-gradient(40% 50% at 10% 90%, rgba(255, 212, 0, .18), transparent 60%), var(--mint); }
.paper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.paper-grid > div { padding: 30px 34px 34px; }
.paper-grid h3 { font: italic 560 clamp(32px, 3.2vw, 52px)/1.02 var(--display); margin-bottom: 12px; }
.paper-grid .wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: 0 clamp(24px, 4vw, 64px); align-items: start; }
.paper-grid .wide h3 { grid-column: 1; }
.paper-grid .wide .m-lead { grid-column: 1; max-width: 34ch; }
.m-points { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.m-points li { padding: 16px 0 18px; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink-2); }
.m-points b { display: block; margin-bottom: 4px; font-weight: 800; color: var(--ink); }
.paper-grid > div > p { font-size: 19px; max-width: 38ch; color: var(--ink-2); }

/* ------------------------------------------------------------------ trust */
.trust { background: var(--paper); padding: clamp(56px, 7vw, 110px) 0; }
.trust-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.trust-head { position: sticky; top: calc(var(--top) + 30px); }
.trust-head h2 { margin-bottom: 26px; }
.trust-head .big { color: var(--ink-2); }
.rules { counter-reset: r; border-top: 1px solid var(--line-2); }
.rules li { counter-increment: r; display: grid; grid-template-columns: 70px 1fr; column-gap: 8px; padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.rules li::before { content: counter(r); grid-row: span 2; font: 400 44px/1 var(--slab); color: var(--ink); }
.rules h3 { font-size: 24px; margin-bottom: 6px; }
.rules p { color: var(--ink-2); }

/* ------------------------------------------------------------------ the trial */
.trial { padding: clamp(56px, 7vw, 110px) 0; background:
  radial-gradient(55% 70% at 85% 10%, rgba(255, 212, 0, .55), transparent 62%),
  radial-gradient(45% 60% at 0% 100%, rgba(255, 180, 120, .30), transparent 60%), var(--yellow-pale); }
.trial-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.trial h2 { margin-bottom: 28px; font-size: clamp(38px, 4.3vw, 70px); }
.faq h2 { font-size: clamp(38px, 4.2vw, 68px); }
.trial .big { color: var(--ink-2); }
.terms { margin-top: 34px; border-top: 1px solid var(--line-2); }
.terms div { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.terms dt { font: 800 13px/1.5 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.terms dd { color: var(--ink-2); }
.apply { padding: clamp(24px, 3vw, 44px); display: grid; gap: 18px; background: linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .64)); }
.apply fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.apply legend { font: 800 15px/1.3 var(--text); margin-bottom: 10px; width: 100%; padding: 0; }
.for-whom { display: flex; flex-wrap: wrap; gap: 8px; }
/* the three steps of the order: a number on yellow, a hairline between them */
.step { display: grid; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.step:last-child { padding-bottom: 0; border-bottom: 0; }
.step > legend { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font: 800 20px/1.2 var(--text); }
.step-n { flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: var(--yellow); font: 400 17px/1 var(--slab); }
.signin { display: grid; gap: 10px; justify-items: start; }
.g-signin { min-height: 44px; }
.signin .small { margin: 0; }
.signed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-weight: 700; }
/* the price: a pane of glass, the number large */
.price { margin: 30px 0 6px; padding: 24px 28px 22px; }
.price-label { font: 800 13px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 10px 0 16px; }
.price-big { font: 400 clamp(64px, 7vw, 104px)/.9 var(--slab); }
.price-later { font: 600 18px/1.2 var(--text); color: var(--ink-2); }
.price-facts { display: grid; gap: 7px; font-size: 17px; }
.price-facts li { position: relative; padding-left: 22px; }
.price-facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--yellow); }
.price-facts .deadline { font-weight: 800; }
.price-note { margin-top: 14px; font-size: 14px; color: var(--grey); }
.for-whom label { position: relative; cursor: pointer; display: inline-block; padding: 11px 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .7); font-weight: 700; font-size: 16px; }
.for-whom input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.for-whom label:hover { border-color: var(--ink); }
.for-whom label:has(input:checked) { background: var(--yellow); border-color: var(--yellow); }
.for-whom label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; align-content: start; }
.field > span { font: 800 15px/1.3 var(--text); }
.field i { font-style: normal; font-weight: 500; color: var(--grey); }
.field small { font-size: 14px; color: var(--grey); }
.field input, .field textarea { width: 100%; font: 400 17px/1.4 var(--text); padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 0; background: rgba(255, 255, 255, .9); color: var(--ink); -webkit-appearance: none; appearance: none; }
.field textarea { resize: vertical; min-height: 54px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fffdf2; }
.field input::placeholder, .field textarea::placeholder { color: #8f897e; }
.apply .invalid input, .apply .invalid textarea, fieldset.invalid label { border-color: #c4161c; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); border-radius: 0; }
.check.invalid span { color: #c4161c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply .btn-big { justify-self: start; margin-top: 6px; background: var(--ink); color: #fff; }
.apply .btn-big:hover { background: var(--yellow); color: var(--ink); }
.form-note { font-weight: 700; min-height: 1.5em; }
.form-note.ok { background: var(--yellow); color: var(--ink); padding: 16px 18px; }
.form-note.err { color: #c4161c; }
.apply.closed > :not(.form-note) { display: none; }

/* ------------------------------------------------------------------ the terms of sale (a page of its own) */
.terms-main { min-height: calc(100vh - var(--top) - 70px); padding: clamp(40px, 6vw, 90px) 0; background:
  radial-gradient(50% 60% at 90% 10%, rgba(255, 212, 0, .26), transparent 60%),
  radial-gradient(45% 55% at 0% 100%, rgba(140, 190, 240, .24), transparent 60%), var(--cream); }
.terms-body { max-width: 860px; margin: 0 auto; padding: clamp(28px, 4vw, 56px); }
.terms-body h1 { font-size: clamp(44px, 6vw, 80px); line-height: .95; margin: 16px 0 22px; }
.terms-body .big { color: var(--ink-2); }
.terms-body section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.terms-body h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; margin-bottom: 8px; }
.terms-body p { max-width: 66ch; color: var(--ink-2); }
.terms-back { margin-top: 30px; font-weight: 800; }
.terms-page .top-cta { margin-left: auto; }
.foot-thin { padding: 22px 0; }
.foot-thin .foot-small { margin: 0; }

/* ------------------------------------------------------------------ questions */
.faq { background: var(--paper); padding: clamp(56px, 7vw, 110px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 90px); }
.faq-list { border-top: 1px solid var(--line-2); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 clamp(21px, 1.8vw, 27px)/1.2 var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-2); font: 600 24px/1 var(--text); }
summary:hover::after { border-color: var(--ink); }
details[open] summary::after { content: "−"; background: var(--yellow); border-color: var(--yellow); }
details p { padding: 0 60px 24px 0; font-size: 18px; max-width: 60ch; color: var(--ink-2); }

/* ------------------------------------------------------------------ footer: light, the name large */
.foot { padding: clamp(56px, 7vw, 100px) 0 40px; background:
  radial-gradient(45% 60% at 90% 0%, rgba(255, 212, 0, .25), transparent 60%),
  radial-gradient(40% 55% at 0% 100%, rgba(140, 190, 240, .22), transparent 60%), var(--sand); }
.foot-logo { width: min(100%, 760px); height: auto; }
.foot-line { font: italic 500 clamp(26px, 2.6vw, 40px)/1.1 var(--display); margin: 22px 0 54px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 40px; border-top: 1px solid var(--line-2); padding-top: 26px; }
.foot h3 { font: 800 13px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; color: var(--ink); }
.foot-grid a { display: block; text-decoration: none; padding: 4px 0; }
.foot-grid a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.privacy p { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.foot-small { margin-top: 44px; font-size: 13px; color: var(--grey); }

/* ------------------------------------------------------------------ the large reader: smoked glass over the page */
.reader { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 19, 24, .9); color: #fff; overflow: hidden; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.reader::backdrop { background: rgba(20, 19, 24, .5); }
.reader-top { position: absolute; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 18px; z-index: 2; }
.reader-top img { height: 26px; width: auto; }
.reader-where { margin-left: auto; font: 800 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.reader-pages { position: absolute; inset: 64px 76px 24px; display: flex; justify-content: center; align-items: center; touch-action: pan-y; outline: none; }
.reader-pages img { max-height: 100%; max-width: 50%; height: auto; width: auto; object-fit: contain; background: #fff; }
.reader-pages.one img { max-width: 100%; }
.reader-prev, .reader-next { position: absolute; top: 50%; margin-top: -23px; z-index: 2; }
.reader-prev { left: 16px; }
.reader-next { right: 16px; }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1100px) {
  .nav { display: none; }
  .top-cta { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-text { max-width: 720px; }
  .stage { --pw: clamp(220px, 40vw, 360px); padding-top: 40px; }
  .pane-a { left: 30%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tests-head, .paul-head { grid-template-columns: minmax(0, 1fr); }
  .test-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who-item { padding-bottom: 28px; }
  .trust-grid, .trial-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-head { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .privacy { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --top: 56px; }
  body { font-size: 17px; }
  .logo img { height: 26px; }
  .top-cta { padding: 9px 13px; font-size: 14px; }
  .hide-s { display: none; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 64px); }
  .stage { --pw: min(58vw, 300px); }
  .pane-a { left: 22%; bottom: 110px; }
  .pane-b { left: 4%; width: 52%; top: 40%; bottom: 90px; }
  .hand { position: relative; left: auto; top: auto; width: auto; align-self: flex-start; flex-direction: row; flex-wrap: wrap; gap: 0 8px; margin: 0 0 6px; font-size: 25px; transform: rotate(-3deg); }
  .hand svg { width: 52px; height: 36px; margin: 2px 0 0 4px; transform: rotate(18deg); }
  .book.is-open { transform: none; }
  .book-bar [data-prev], .book-bar [data-next], .book-bar .where { display: none; }
  .book-bar .read-btn { margin-left: 0; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .why-photo { min-height: 0; aspect-ratio: 4 / 4.4; }
  .why-text { padding: 44px var(--gut) 56px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .mail { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
  .test-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .clip { height: auto; min-height: 150px; }
  .gift { min-height: 0; flex-direction: column; align-items: stretch; background: var(--cream); padding-bottom: 50px; }
  .gift-photo { position: relative; height: auto; aspect-ratio: 16 / 10; object-position: 75% 50%; }
  .gift .tag { top: 10px; bottom: auto; }
  .gift-card { width: auto; margin: -40px var(--gut) 0; }
  .who-text { padding: 14px 12px 6px; }
  .label { left: 8px; bottom: 8px; font-size: 11px; padding: 9px 11px 8px; }
  .who-text p { font-size: 15px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stats div:nth-child(4) { border-top: 1px solid var(--line); }
  .pair { height: 230px; }
  .op-cap { max-width: calc(230px * 1.4142); }
  .gallery-bar .sq { display: none; }
  .gallery-bar .btn { margin-left: 0; }
  .paper-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .paper-grid > div { padding: 22px 22px 26px; }
  .paper-grid .wide { grid-template-columns: minmax(0, 1fr); }
  .m-points { grid-column: 1; grid-row: auto; grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
  .rules li { grid-template-columns: 52px 1fr; }
  .rules li::before { font-size: 34px; }
  .terms div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  details p { padding-right: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .reader-pages { inset: 64px 0 70px; }
  .reader-prev, .reader-next { top: auto; bottom: 14px; margin-top: 0; }
  .reader-prev { left: calc(50% - 60px); }
  .reader-next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .run { animation: none; }
  .leaf, .book, .btn, .who-item figure img { transition: none; }
}

/* without glass (an old browser): the panes stay light and solid */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .btn-glass, .read-btn, .label, .gift-card { background: rgba(255, 255, 255, .9); }
}
