/* Cloud Brewery Assurance · assurance.cloudbrewery.co
   Port of design/Main.dc.html (inline styles moved here; CSP style-src 'self'). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.71ea65b4ca.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.d4c815a9d3.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.a7d4b4ecd5.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-latin-500-normal.9ec4b747a4.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/space-grotesk-latin-600-normal.c710479709.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-latin-700-normal.0127331958.woff2") format("woff2"); }

:root {
  --ink: #121212; --ink-2: #161514; --card: #1A1918; --line: #24211F; --line-2: #2A2724; --line-3: #3A3632;
  --warm: #F7F5F0; --soft: #CFCAC1; --faint: #A8A49C; --pale: #E4DFD6; --ghost: #6B655E;
  --copper: #B5652B; --copper-hi: #C9793E; --link: #E0A06E; --red: #E5484D;
  --display: "Space Grotesk", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--warm); font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, video, svg { max-width: 100%; }
p, h1, h2, h3, figure, ol, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--copper-hi); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--copper-hi); color: var(--ink); font-weight: 600; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 16px; }
main:focus { outline: none; }

.wrap { max-width: 1200px; margin: 0 auto; }
.pad { padding: 96px 24px; }
.band { border-top: 1px solid var(--line); }
.stack-12, .stack-16, .stack-24, .stack-28, .stack-40, .stack-48 { display: flex; flex-direction: column; }
.stack-12 { gap: 12px; } .stack-16 { gap: 16px; } .stack-24 { gap: 24px; } .stack-28 { gap: 28px; } .stack-40 { gap: 40px; } .stack-48 { gap: 48px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split-top { align-items: flex-start; }
.col { min-width: 0; }
.col-400 { flex: 1 1 400px; } .col-460 { flex: 1 1 460px; } .col-520 { flex: 1 1 520px; }
.intro { max-width: 760px; } .intro-720 { max-width: 720px; }
.soft { color: var(--soft); } .faint { color: var(--faint); } .copper { color: var(--copper-hi); }
.muted-15 { font-size: 15px; color: var(--faint); }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-hi); }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; }
.h2-sm { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.h3 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.link { color: var(--link); }

/* Buttons */
.btn { background: var(--copper-hi); color: var(--ink); font-weight: 600; text-decoration: none; border: none; cursor: pointer; display: inline-block; }
.btn-sm { padding: 11px 18px; border-radius: 6px; }
.btn-lg { padding: 15px 24px; border-radius: 8px; font-size: 17px; }
.btn-ghost { color: var(--warm); text-decoration: none; border: 1px solid var(--ghost); display: inline-block; background: transparent; }
.btn-ghost.btn-lg { padding: 15px 20px; }
.btn-md { align-self: flex-start; padding: 12px 18px; border-radius: 8px; font-size: 15px; }
.btn:hover { background: #D68A50; }
.btn-ghost:hover { border-color: var(--faint); }

/* Header */
.site-header { padding: 28px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--warm); text-decoration: none; }
.wordmark { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.05; }
.wm-top { border-bottom: 2px solid var(--copper); padding-bottom: 2px; align-self: flex-start; }
.brand-sub { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); border-left: 1px solid var(--line-3); padding-left: 14px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.nav-link { color: var(--soft); text-decoration: none; padding: 10px 0; }
.nav-link:hover { color: var(--warm); }

/* Hero */
.hero { position: relative; padding: 24px 24px 96px; }
.hero-frame { position: relative; border-radius: 18px; padding: clamp(28px, 5vw, 72px) clamp(20px, 4vw, 64px); }
.hero-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ring-live { position: absolute; top: calc(50% - 6px); right: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 18px var(--red); }
.ring-min { position: absolute; top: calc(50% - 10px); right: 16px; font-family: var(--display); font-size: 14px; color: var(--red); }
.ring-start { position: absolute; top: -9px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--warm); }
.hero-grid { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; color: var(--warm); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--copper-hi); flex: none; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Player */
.player { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.player-box { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-3); aspect-ratio: 16 / 9; background: #000; }
.player-box video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.player-box.playing video { object-fit: contain; }
.play { position: absolute; left: calc(50% - 40px); top: calc(50% - 40px); width: 80px; height: 80px; border-radius: 50%; border: 1px solid var(--warm); background: rgba(18,18,18,0.6); color: var(--warm); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.play:hover { background: rgba(18,18,18,0.8); }
.player-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--faint); }
.hi { color: var(--warm); }

/* What Episode 1 showed */
.numbered { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.numbered li { display: flex; gap: 18px; align-items: baseline; font-size: 19px; }
.num { font-family: var(--display); color: var(--copper-hi); font-size: 15px; }
picture { display: block; }
.shot { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line-3); }
.shot-sm { width: 100%; height: auto; display: block; border-radius: 8px; }
.demo-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.sq { width: 8px; height: 8px; background: var(--copper-hi); border-radius: 2px; flex: none; }

/* Packages */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.pkg { background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.rule { width: 28px; height: 2px; background: var(--copper); }
.pkg h3 { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.25; }
.pkg-desc { font-size: 15px; color: var(--soft); }
.pkg-eps { margin-top: auto; font-size: 13px; color: var(--faint); }

/* How it works */
.steps { display: flex; flex-wrap: wrap; gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; }
.step { flex: 1 1 320px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.step-n { font-family: var(--display); font-size: 15px; color: var(--copper-hi); }
.push { margin-top: auto; }
.inject { border: 1px solid var(--line-3); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--ink); }
.inject-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--faint); }
.inject-title { font-family: var(--display); font-size: 18px; }
.inject-body { font-size: 15px; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; border: 1px solid var(--ghost); border-radius: 6px; padding: 8px 12px; }
.inject-note { font-size: 12px; color: var(--faint); }

/* Series */
.series-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.now { flex: 2 1 520px; min-width: 0; border: 1px solid var(--copper); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 18px; background: var(--card); }
.now-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.now-tag { color: var(--copper-hi); font-weight: 600; }
.now-title { font-family: var(--display); font-weight: 600; font-size: 32px; }
.now-cols { display: flex; flex-wrap: wrap; gap: 16px; }
.now-col { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.label-red, .label-copper { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.label-red { color: var(--red); } .label-copper { color: var(--copper-hi); }
.eps { flex: 1 1 320px; min-width: 0; list-style: none; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.ep { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.ep:last-child { border-bottom: none; }
.ep-l { display: flex; gap: 14px; align-items: baseline; min-width: 0; }
.ep-n { font-family: var(--display); font-size: 14px; color: var(--faint); width: 22px; flex: none; }
.ep-t { display: flex; flex-direction: column; min-width: 0; }
.ep-title { color: var(--pale); }
.ep-tag { font-size: 12px; color: var(--faint); }
.ep-when { font-size: 13px; color: var(--faint); white-space: nowrap; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; }
.person { display: flex; flex-direction: column; gap: 14px; }
.portrait { width: 148px; height: 148px; border-radius: 50%; padding: 6px; border: 2px solid var(--copper); }
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; filter: grayscale(1); }
.person-name { font-family: var(--display); font-weight: 600; font-size: 22px; }
.role { color: var(--copper-hi); font-weight: 500; }
.certs { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.certs li { font-size: 14px; border: 1px solid var(--line-3); border-radius: 999px; padding: 6px 14px; }

/* Request */
.band-req { background: var(--ink-2); }
.pad-req { padding: 104px 24px; }
.req-q { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; }
.req-h { font-size: 20px; font-weight: 600; }
.req-steps { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--soft); font-size: 16px; white-space: pre-wrap; }
.req-n { color: var(--copper-hi); font-family: var(--display); }
.form-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: clamp(22px, 3vw, 36px); }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row > .field { flex: 1 1 200px; }
.field-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field label { font-size: 15px; font-weight: 500; }
.opt { color: var(--faint); font-weight: 400; }
.field input { font: inherit; color: var(--warm); background: var(--ink); border: 1px solid var(--ghost); border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field input:focus-visible { outline-offset: 1px; border-color: var(--copper-hi); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--copper-hi); flex: none; }
.consent label { font-size: 14px; color: var(--soft); }
.btn-submit { font: inherit; font-weight: 600; font-size: 17px; border-radius: 8px; padding: 15px 22px; min-height: 52px; }
.btn-submit[disabled] { opacity: 0.7; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #FF8A8E; font-size: 15px; }

/* Confirmation and error states: work without JS through :target (/#request-received, /#request-error) */
.received, .nojs-error { display: none; }
.received:target, .received.show { display: flex; }
.nojs-error:target { display: block; margin-top: 18px; }
.form-card:has(.received:target) .form, .form-card.sent .form { display: none; }
.received { flex-direction: column; gap: 18px; padding: 12px 0; }
.received:focus { outline: none; }
.received-k { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 16px; color: var(--copper-hi); }
.received-h { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.2; }
.btn-again { align-self: flex-start; font-size: 15px; border-radius: 8px; padding: 11px 16px; min-height: 44px; }

/* Footer */
.foot { padding: 56px 24px 64px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.foot-l { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.foot-small { font-size: 14px; color: var(--faint); }
.foot-r { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--faint); }
.foot-h { color: var(--pale); font-weight: 600; }

/* 404 */
.nf { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 48px 24px 96px; }

/* Narrow screens (360 px): keep flex-basis from forcing overflow */
@media (max-width: 520px) {
  .hero-copy, .player, .col-400, .col-460, .col-520, .step, .now, .eps, .now-col, .field-row > .field { flex-basis: 100%; }
  .pad { padding: 72px 20px; } .pad-req { padding: 80px 20px; } .site-header { padding: 22px 20px; } .hero { padding: 16px 20px 72px; } .foot { padding: 48px 20px 56px; }
  .ep { padding: 14px 16px; }
}
