/* Regenerative Education — regenerative-education.com
   Brand: the blue of the logo and the Starter Package graphic, white, and one warm accent
   (the amber of a vial's flip-off cap) that only ever marks the primary action.
   Type: Barlow Condensed for display (echoes the package graphic), Barlow for everything else. */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  --blue: #185A90;
  --blue-deep: #0F3D66;
  --blue-tint: #E3EEF7;
  --ink: #10243A;
  --paper: #F3F7FB;
  --white: #FFFFFF;
  --line: #C9D8E6;
  --muted: #4E6478;
  --cap: #F4A93A;
  --cap-deep: #E0931F;
  --on-blue: rgba(255, 255, 255, 0.86);
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --t-0: 1.0625rem;
  --t-1: 1.25rem;
  --t-2: 1.5rem;
  --t-3: 2rem;
  --t-4: clamp(2.6rem, 6.5vw, 4.4rem);
  --t-display: clamp(3.4rem, 10vw, 7.2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--t-0); line-height: 1.55; font-weight: 400; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--cap); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: 0; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 14px; }
.top .brand img { width: 232px; height: auto; }
.top-link { font-size: 0.95rem; font-weight: 500; }
.top.on-blue .top-link { color: var(--on-blue); }
.top.on-blue .top-link:hover { color: var(--white); }
@media (max-width: 600px) { .top { padding-top: 18px; } .top .brand img { width: 184px; } .top-link { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: var(--body); font-weight: 600; font-size: 1.05rem; line-height: 1.2; padding: 15px 22px; border-radius: 8px; border: 0; cursor: pointer; text-decoration: none; text-align: center; }
.btn-cap { background: var(--cap); color: var(--ink); }
.btn-cap:hover { background: var(--cap-deep); color: var(--ink); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); color: var(--white); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- the blue hero (opt-in page) ---------- */
.hero { background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%); color: var(--white); padding-bottom: 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-top: clamp(24px, 5vw, 56px); }
.from { color: var(--on-blue); font-size: 1.05rem; margin: 0 0 14px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: var(--t-display); line-height: 0.9; text-transform: uppercase; color: var(--white); margin: 0 0 26px; letter-spacing: 0.005em; }
.hero h1 span { display: block; }
.lede { font-size: 1.25rem; line-height: 1.45; color: var(--white); max-width: 34em; margin: 0 0 1.4em; }
.lede b { font-weight: 600; }

.signup { max-width: 560px; }
.signup .row { display: flex; gap: 10px; }
.signup input[type="email"] { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 1.1rem; padding: 14px 16px; border-radius: 8px; border: 2px solid transparent; background: var(--white); color: var(--ink); }
.signup input[type="email"]::placeholder { color: #7A8A99; }
.signup input[type="email"]:focus { border-color: var(--cap); outline: 0; }
.signup .btn { flex: 0 0 auto; white-space: nowrap; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.fine { color: var(--on-blue); font-size: 0.95rem; margin: 12px 0 0; }
.form-msg { margin: 10px 0 0; font-weight: 500; min-height: 1.4em; color: #FFE1A8; }
.form-msg a { color: var(--white); }
@media (max-width: 520px) { .signup .row { flex-direction: column; } .signup .btn { width: 100%; } }

/* ---------- the vial label ---------- */
.label { position: relative; margin-top: 24px; }
.cap { width: 46%; margin: 0 auto; height: 30px; background: var(--blue-deep); border: 2px solid rgba(255, 255, 255, 0.55); border-bottom: 0; border-radius: 8px 8px 0 0; display: flex; align-items: center; justify-content: center; }
.cap span { width: 18px; height: 18px; border-radius: 50%; background: var(--cap); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.neck { width: 36%; margin: 0 auto; height: 16px; background: var(--white); opacity: 0.92; }
.label-body { background: var(--white); color: var(--ink); border-radius: 12px; padding: 24px 24px 20px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset; }
.label-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 1; color: var(--blue); margin: 0; letter-spacing: 0.01em; }
.label-sub { color: var(--muted); font-size: 0.95rem; margin: 4px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--blue); }
.contents { list-style: none; margin: 0; padding: 0; }
.contents li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.contents li:last-child { border-bottom: 0; }
.contents li::before { content: ""; grid-row: 1 / span 2; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; border: 2.5px solid var(--blue); background: radial-gradient(circle, var(--blue) 0 3.5px, transparent 4px); }
.contents b { grid-column: 2; display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.contents span { grid-column: 2; display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
.label-foot { color: var(--muted); font-size: 0.85rem; margin: 14px 0 0; padding-top: 12px; border-top: 2px solid var(--blue); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .label { max-width: 480px; }
}

/* ---------- the author and the hello video ---------- */
.hello { padding: clamp(40px, 7vw, 80px) 0; }
.hello-grid { display: grid; grid-template-columns: 232px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.phone { margin: 0; position: relative; width: 232px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--line); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone .play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: linear-gradient(180deg, rgba(16, 36, 58, 0) 55%, rgba(16, 36, 58, 0.75) 100%); color: var(--white); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 16px; gap: 10px; font-family: var(--body); font-weight: 500; font-size: 0.95rem; }
.phone .play::before { content: ""; width: 58px; height: 58px; border-radius: 50%; background: var(--cap); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2310243A' d='M8 5v14l11-7z'/%3E%3C/svg%3E"); background-size: 30px; background-position: 55% 50%; background-repeat: no-repeat; }
.phone .play:hover::before { background-color: var(--cap-deep); }
.phone.playing .play { display: none; }
.author h2 { font-size: var(--t-3); color: var(--blue); margin-bottom: 12px; }
.author p { max-width: 58ch; }
.author .covers { display: flex; gap: 12px; margin: 18px 0 0; }
.author .covers img { width: 78px; border-radius: 3px; box-shadow: 0 2px 8px rgba(16, 36, 58, 0.18); }
.author .covers a { display: block; }
@media (max-width: 700px) {
  .hello-grid { grid-template-columns: 1fr; }
  .phone { width: 200px; }
}

/* ---------- plain pages (masterclass, privacy) ---------- */
.page-head { padding: clamp(20px, 4vw, 44px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: var(--t-4); font-weight: 800; color: var(--blue); line-height: 0.95; margin-bottom: 14px; }
.page-head .lede { color: var(--ink); max-width: 38em; }
.notice { background: var(--blue-tint); border-left: 4px solid var(--blue); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 0 0 24px; font-size: 1rem; }
.notice p { margin: 0; }
.notice.hidden { display: none; }

.part { padding: 8px 0 clamp(28px, 5vw, 48px); }
.part h2 { font-size: var(--t-3); color: var(--blue); margin-bottom: 6px; }
.part .meta { color: var(--muted); margin: 0 0 16px; }
.player { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1112 / 720; box-shadow: 0 10px 30px rgba(15, 61, 102, 0.18); }
.player video { width: 100%; height: 100%; }
.player .play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(16, 36, 58, 0.12); cursor: pointer; display: grid; place-items: center; }
.player .play::before { content: ""; width: 84px; height: 84px; border-radius: 50%; background: var(--cap); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2310243A' d='M8 5v14l11-7z'/%3E%3C/svg%3E"); background-size: 44px; background-position: 56% 50%; background-repeat: no-repeat; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.player .play:hover::before { background-color: var(--cap-deep); }
.player.playing .play { display: none; }
.player .play span { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--white); font-weight: 500; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }

.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* the files, on the same label */
.files .label-body { padding: 22px 22px 16px; }
.files .label { margin-top: 0; }
.files .label-title { font-size: 1.5rem; }
.filelist { list-style: none; margin: 0; padding: 0; }
.filelist li { border-bottom: 1px solid var(--line); }
.filelist li:last-child { border-bottom: 0; }
.filelist a { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; text-decoration: none; color: var(--ink); }
.filelist a:hover b { color: var(--blue); text-decoration: underline; }
.filelist a::before { content: ""; grid-row: 1 / span 2; width: 22px; height: 26px; margin-top: 2px; border: 2px solid var(--blue); border-radius: 3px; background: linear-gradient(var(--blue), var(--blue)) 5px 9px / 8px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) 5px 14px / 8px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) 5px 19px / 5px 2px no-repeat; }
.filelist a.tool::before { border-radius: 50%; width: 24px; height: 24px; background: radial-gradient(circle, var(--blue) 0 3.5px, transparent 4px); }
.filelist b { grid-column: 2; display: block; font-weight: 600; line-height: 1.3; }
.filelist span { grid-column: 2; display: block; color: var(--muted); font-size: 0.93rem; line-height: 1.4; }

/* keep going */
.next { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(36px, 6vw, 64px) 0; }
.next h2 { font-size: var(--t-3); color: var(--blue); margin-bottom: 8px; }
.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.next p { max-width: 52ch; }
.next .covers { display: flex; gap: 12px; margin: 0 0 18px; }
.next .covers img { width: 86px; border-radius: 3px; box-shadow: 0 2px 8px rgba(16, 36, 58, 0.18); }
@media (max-width: 760px) { .next-grid { grid-template-columns: 1fr; } }

/* prose (privacy & terms) */
.prose { padding-bottom: clamp(36px, 6vw, 64px); }
.prose > *, .prose .terms > * { max-width: 68ch; }
.prose h2 { font-size: var(--t-2); color: var(--blue); margin: 2em 0 0.5em; }
.prose h3 { font-size: 1.15rem; font-family: var(--body); font-weight: 600; margin: 1.6em 0 0.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .terms p, .prose .terms li { color: #2B4258; font-size: 1rem; }

/* ---------- footer ---------- */
.foot { padding: clamp(28px, 5vw, 48px) 0 36px; color: var(--muted); font-size: 0.93rem; }
.foot .foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.foot p { max-width: 68ch; margin-bottom: 0.6em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--blue); }
.foot .legal { margin-top: 18px; font-size: 0.86rem; }
@media (max-width: 700px) { .foot .foot-grid { grid-template-columns: 1fr; } }
