Files
deepstock/src/styles.css
Dorian de9a0f1bc8 fix: hero wordmark fills mobile/tablet width per language
The /7 divisor was calibrated for the wider "Kammergut" wordmark and
left ~25-45px of unused space each side of the narrower "Deepstock".
Switch to language-aware divisors that match each wordmark's actual
rendered-width-to-font-size ratio in DM Serif Display at 0.05em
tracking:

- DE / Kammergut (default): /6 — fills with ~16px gutter at viewport
  widths from 320 to 768.
- EN / Deepstock: /5.2 — narrower wordmark, smaller divisor needed
  to fill the same content area without clipping at 320px.

Desktop (>=900px) uses clamp() with separate ranges per language.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 15:18:56 +01:00

1214 lines
41 KiB
CSS

:root {
--black: #FAFAFA;
--deep: #F2F2F0;
--panel: #FAFAFA;
--card: #FAFAFA;
--border: #E4E4E0;
--muted: #C8C8C4;
--text-dim: #8A8A84;
--text: #5A5A54;
--bright: #3A3A34;
--white: #1A1A18;
--red: #5A9A78;
--red-dim: #E8F2EC;
--orange: #4A8A68;
--orange-dim: #E8F2EC;
--yellow: #5A9A78;
--green: #5A9A78;
--green-dim: #E8F2EC;
--green-bright: #4A8A68;
--teal: #5A9090;
--accent: #5A9A78;
--accent-dim: #E8F2EC;
--font-display: 'DM Serif Display', serif;
--font-body: 'Barlow', sans-serif;
--font-mono: 'Space Mono', monospace;
--radius: 10px;
--radius-lg: 16px;
--trans: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent;
-webkit-overflow-scrolling: touch; }
body { background: #FAFAFA; color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; height: 100vh; overflow: hidden; }
/* Vue mount point — match the body's full viewport so .app inside can
reach 100vh the way it did pre-Vue. The original <main class="app">
was a direct child of <body>; the new wrapper div has to forward those
dimensions or the hero stops short. */
#app {
height: 100vh;
display: flex;
flex-direction: column;
}
/* ── HEADER ── */
.site-header {
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
background: rgba(250,250,250,0.92);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
padding: 0 24px;
height: 60px;
display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 768px) {
.site-header { padding: 0 28px; }
}
.logo {
font-family: var(--font-display);
font-weight: 400;
font-size: 20px;
letter-spacing: 0.02em;
color: var(--white);
}
.logo .b { color: var(--red); }
.header-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
display: flex;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 0;
overflow: hidden;
}
.lang-btn {
padding: 5px 12px;
border: none;
background: none;
font-family: var(--font-mono);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.1em;
color: var(--text-dim);
cursor: pointer;
transition: var(--trans);
}
.lang-btn.active { background: var(--red); color: #FFFFFF; }
/* ── APP ── */
.app { padding-top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
/* ── HERO ── */
.hero {
position: relative;
/* asymmetric vertical padding shifts the centered content past the fixed header
and compensates for the scenario-strip below — net effect: visually centered on the viewport */
padding: 100px 16px 24px;
text-align: center;
background: url('/images/bg-1.jpg') center/cover no-repeat;
overflow: hidden;
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.hero-eyebrow {
position: relative; z-index: 1;
font-family: var(--font-body);
font-size: 11px;
letter-spacing: 0.3em;
text-transform: uppercase;
color: #0a0a0a;
margin-bottom: 12px;
animation: fadeUp 1s ease both;
font-weight: 400;
}
.hero h1 {
position: relative; z-index: 1;
font-family: var(--font-display);
font-weight: 400;
/* Default (DE / "Kammergut") — divisor ≈ rendered-text-to-font-size
ratio of the wider wordmark in DM Serif Display at 0.05em tracking.
EN ("Deepstock") gets a smaller divisor below to fill at its own
ratio. -32px matches the hero's 16px padding each side. */
font-size: calc((100vw - 32px) / 6);
line-height: 1;
letter-spacing: 0.05em;
color: #1A1A18;
margin-bottom: 40px;
animation: fadeUp 1s 0.15s ease both;
}
/* Mobile — soften the bg image to 50% by overlaying the body fill */
@media (max-width: 767px) {
.hero {
background: linear-gradient(rgba(250,250,250,0.5), rgba(250,250,250,0.5)), url('/images/bg-1.jpg') center/cover no-repeat;
}
}
/* Tablet — same fill behaviour as mobile (hero padding stays 16px
each side). */
@media (min-width: 768px) {
.hero h1 { font-size: calc((100vw - 32px) / 6); }
}
@media (min-width: 900px) {
.hero h1 { font-size: clamp(120px, 14vw, 176px); }
}
/* English brand ("Deepstock") — narrower wordmark needs a smaller
divisor (≈ ratio measured at 0.05em tracking) to fill the same
16px-padded width as the wider Kammergut. */
html[lang="en"] .hero h1 { font-size: calc((100vw - 32px) / 5.2); }
@media (min-width: 768px) {
html[lang="en"] .hero h1 { font-size: calc((100vw - 32px) / 5.2); }
}
@media (min-width: 900px) {
html[lang="en"] .hero h1 { font-size: clamp(120px, 17vw, 220px); }
}
.hero h1 .b { color: #5A9A78; }
/* Trademark mark — only auto-attached to the small header logo. The
hero H1 uses an explicit sibling .brand-tm span instead, since CSS
filters on the H1 (paint-3d) would otherwise pull ™ into the gloss. */
.logo[data-i18n="brand"]::after {
content: "™";
font-size: 0.4em;
vertical-align: super;
letter-spacing: 0;
}
/* Hero brand line — flex wrapper so ™ can sit next to the painted H1
without being inside the H1's filter scope. The wrapper takes over
the H1's bottom margin and entrance animation so the line moves
together. */
.hero .brand-line {
display: inline-block;
white-space: nowrap;
position: relative; z-index: 1;
margin: 0 auto 40px;
animation: fadeUp 1s 0.15s ease both;
}
.hero .brand-line h1.paint-3d {
display: inline-block;
vertical-align: top;
margin-bottom: 0;
animation: none;
}
.brand-tm {
display: inline-block;
vertical-align: super;
font-family: var(--font-display);
font-weight: 400;
/* 1/5 of H1 size to match the small superscript scale used elsewhere */
font-size: calc((100vw - 32px) / 25);
line-height: 1;
color: #1A1A18;
letter-spacing: 0;
margin-left: 0.05em;
}
@media (min-width: 768px) {
.brand-tm { font-size: calc((100vw - 64px) / 25); }
}
@media (min-width: 900px) {
.brand-tm { font-size: clamp(24px, 2.8vw, 35px); }
}
/* Glossy 3D paint effect on the brand title */
.hero h1.paint-3d {
filter: url(#paintGloss);
-webkit-filter: url(#paintGloss);
/* subtle vertical sheen — top catches light, bottom sinks back into the paint */
background: linear-gradient(180deg, #2a2a26 0%, #1A1A18 45%, #060604 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
padding: 0.12em 0.08em 0.2em;
transition: filter 0.6s ease;
}
.hero h1.paint-3d:hover {
filter: url(#paintGlossHover);
-webkit-filter: url(#paintGlossHover);
}
@media (prefers-reduced-motion: reduce) {
.hero h1.paint-3d { transition: none; }
}
.hero-sub {
position: relative; z-index: 1;
font-family: var(--font-body);
font-size: 13px;
letter-spacing: 0.3em;
text-transform: uppercase;
font-weight: 400;
color: #0a0a0a;
max-width: 520px;
margin: 0 auto 40px;
line-height: 1.6;
animation: fadeUp 1s 0.3s ease both;
}
.cta-btn {
display: inline-flex;
align-items: center;
gap: 10px;
font-family: var(--font-body);
font-weight: 400;
font-size: 13px;
letter-spacing: 0.2em;
text-transform: uppercase;
padding: 18px 48px;
border-radius: 0;
cursor: pointer;
transition: color 0.3s ease, var(--trans);
animation: fadeUp 1s 0.45s ease both;
/* Lift above .hero::after radial fade so the button isn't washed out */
z-index: 2;
}
.cta-btn span { position: relative; }
/* ── EMAIL CAPTURE ── */
.email-section {
background: var(--panel);
border-bottom: 1px solid var(--border);
padding: 28px 24px;
}
.email-inner {
max-width: 540px;
margin: 0 auto;
}
.email-label {
font-family: var(--font-mono);
font-size: 10px;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--red);
margin-bottom: 8px;
}
.email-title {
font-family: var(--font-display);
font-weight: 800;
font-size: 20px;
color: var(--white);
margin-bottom: 6px;
}
.email-sub {
font-size: 13px;
color: var(--text-dim);
margin-bottom: 16px;
line-height: 1.6;
}
.email-form {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.email-input {
flex: 1;
min-width: 200px;
padding: 13px 16px;
background: var(--card);
border: 1.5px solid var(--border);
border-radius: var(--radius);
color: var(--white);
font-family: var(--font-body);
font-size: 15px;
outline: none;
transition: var(--trans);
}
.email-input:focus { border-color: var(--red); }
.email-input::placeholder { color: var(--muted); }
.email-submit {
padding: 13px 24px;
background: var(--red);
border: none;
border-radius: var(--radius);
color: #0C0C0E;
font-family: var(--font-body);
font-weight: 600;
font-size: 14px;
letter-spacing: 0.1em;
text-transform: uppercase;
cursor: pointer;
transition: var(--trans);
white-space: nowrap;
}
.email-submit:hover { background: #7AB498; }
.email-success {
display: none;
padding: 14px 20px;
background: var(--green-dim);
border: 1px solid var(--green);
border-radius: var(--radius);
color: var(--green-bright);
font-size: 14px;
font-weight: 600;
margin-top: 10px;
}
.email-success.show { display: block; }
.email-note {
font-size: 11px;
color: var(--muted);
margin-top: 10px;
}
/* ── SCENARIO STRIP ── */
.scenario-strip {
display: flex;
overflow-x: auto;
gap: 12px;
padding: 20px 24px;
background: var(--panel);
border-bottom: 1px solid var(--border);
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.scenario-strip::-webkit-scrollbar { display: none; }
.scenario-pill {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 8px;
padding: 10px 18px;
border-radius: 40px;
border: 1px solid rgba(255,255,255,0.06);
font-family: var(--font-body);
font-weight: 500;
font-size: 13px;
letter-spacing: 0.03em;
white-space: nowrap;
color: var(--text-dim);
background: rgba(255,255,255,0.02);
}
.pill-1 { border-color: rgba(90,154,120,0.2); color: var(--red); }
.pill-2 { border-color: rgba(90,154,120,0.15); color: var(--text); }
.pill-3 { border-color: rgba(90,154,120,0.15); color: var(--text); }
.pill-4 { border-color: rgba(106,170,138,0.2); color: var(--green); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
/* ── QUESTIONNAIRE ── */
.quiz-section {
width: 100%;
min-height: 100vh;
display: flex;
flex-direction: column;
}
.quiz-section.hidden { display: none !important; }
.quiz-progress-bar {
position: fixed;
top: 0;
left: 0; right: 0;
background: rgba(250,250,250,0.92);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
/* Match .site-header dimensions: 60px tall, 24px mobile / 28px desktop padding */
height: 60px;
padding: 0 24px;
z-index: 110;
}
@media (min-width: 768px) {
.quiz-progress-bar { padding: 0 28px; }
}
body.quiz-active .site-header { display: none; }
.quiz-progress-bar .progress-wrap { max-width: 540px; margin: 0 auto; }
.quiz-progress-bar .progress-header { margin-bottom: 6px; }
.quiz-content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
padding: 80px 24px 110px;
width: 100%;
}
.quiz-content #question-container {
width: 100%;
max-width: 540px;
margin: 0 auto;
}
.quiz-footer {
position: fixed;
bottom: 0;
left: 0; right: 0;
background: rgba(250,250,250,0.92);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-top: 1px solid var(--border);
padding: 14px 24px max(14px, env(safe-area-inset-bottom));
z-index: 90;
}
.quiz-footer .q-nav { max-width: 540px; margin: 0 auto; }
.quiz-footer:empty { display: none; }
.progress-wrap { margin-bottom: 0; }
.progress-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.progress-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.progress-count { font-family: var(--font-mono); font-size: 13px; color: var(--bright); }
.progress-bar { height: 3px; background: var(--muted); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--red); border-radius: 99px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
.question-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 28px 24px;
animation: fadeUp 0.35s ease both;
}
.q-step { font-family: var(--font-mono); font-size: 10px; color: var(--red); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px; }
.q-text { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--white); line-height: 1.3; margin-bottom: 8px; }
.q-sub { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 24px; }
.q-options { display: flex; flex-direction: column; gap: 10px; }
.q-opt {
display: flex; align-items: center; gap: 14px;
padding: 14px 16px;
background: var(--panel);
border: 1.5px solid var(--border);
border-radius: var(--radius);
cursor: pointer;
transition: var(--trans);
-webkit-tap-highlight-color: transparent;
-webkit-overflow-scrolling: touch;
}
.q-opt:hover { border-color: rgba(255,255,255,0.08); background: var(--deep); }
.q-opt.selected { border-color: var(--red); background: rgba(90,154,120,0.06); }
.q-opt.selected .opt-radio { border-color: var(--red); }
.q-opt.selected .opt-radio::after { display: block; }
.opt-radio {
width: 18px; height: 18px; border-radius: 50%;
border: 1.5px solid var(--muted);
flex-shrink: 0; position: relative; transition: var(--trans);
}
.opt-radio::after {
content: ''; display: none;
position: absolute; top: 50%; left: 50%;
transform: translate(-50%,-50%);
width: 8px; height: 8px;
background: var(--red); border-radius: 50%;
}
.opt-label { font-size: 15px; color: var(--bright); line-height: 1.4; }
.opt-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.q-opt.multi .opt-radio { border-radius: 4px; }
.q-opt.multi.selected .opt-radio { border-color: var(--red); background: var(--red); border-radius: 4px; }
.q-opt.multi.selected .opt-radio::after {
display: block; content: '✓'; color: white; font-size: 11px; font-weight: bold;
background: none; width: auto; height: auto; top: 50%; left: 50%;
transform: translate(-50%,-55%); border-radius: 0;
}
.slider-wrap { padding: 8px 0; }
.slider-labels { display: flex; justify-content: space-between; margin-bottom: 12px; }
.slider-labels span { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }
input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; background: var(--muted); border-radius: 99px; outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--red); cursor: pointer; box-shadow: 0 2px 16px rgba(90,154,120,0.3); }
.slider-val { text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 32px; color: var(--white); margin-top: 16px; }
.slider-val span { font-size: 18px; color: var(--text-dim); margin-left: 4px; }
.q-nav { display: flex; gap: 12px; }
.btn-back { flex: 1; height: 52px; background: var(--panel); border: 1px solid var(--border); border-radius: 0; color: var(--text-dim); font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: var(--trans); display: flex; align-items: center; justify-content: center; }
.btn-back:hover { border-color: var(--muted); color: var(--text); }
.btn-next { flex: 1; height: 52px; background: var(--red); border: none; border-radius: 0; color: #FFFFFF; font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: var(--trans); box-shadow: 0 2px 20px rgba(90,154,120,0.15); }
.btn-next:hover { background: #C8A870; }
.btn-next:disabled { background: var(--muted); box-shadow: none; cursor: not-allowed; color: var(--deep); }
/* ── RESULTS ── */
.results-section { padding: 24px 20px 80px; max-width: 600px; margin: 0 auto; width: 100%; display: none; }
.results-section.active { display: block; }
.risk-banner { padding: 24px; border-radius: var(--radius-lg); margin-bottom: 24px; text-align: center; animation: fadeUp 0.4s ease both; }
.risk-level { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 8px; opacity: 0.8; }
.risk-title { font-family: var(--font-display); font-weight: 900; font-size: 36px; letter-spacing: -0.01em; line-height: 1; margin-bottom: 8px; }
.risk-desc { font-size: 14px; opacity: 0.85; line-height: 1.6; }
.risk-critical { background: var(--red-dim); border: 1px solid rgba(90,154,120,0.35); color: var(--white); }
.risk-high { background: var(--orange-dim); border: 1px solid rgba(74,138,104,0.35); color: var(--white); }
.risk-medium { background: var(--accent-dim); border: 1px solid rgba(90,154,120,0.25); color: var(--white); }
.risk-low { background: var(--green-dim); border: 1px solid rgba(90,154,120,0.35); color: var(--white); }
.scenario-tabs { display: flex; gap: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 0; padding: 4px; margin-bottom: 24px; overflow: hidden; animation: fadeUp 0.4s 0.1s ease both; }
.s-tab { flex: 1; padding: 10px 6px; border: none; background: none; border-radius: 0; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; color: var(--text-dim); cursor: pointer; transition: var(--trans); text-align: center; line-height: 1.3; }
.s-tab.active-s1 { background: rgba(90,154,120,0.1); color: var(--red); }
.s-tab.active-s2 { background: rgba(184,152,106,0.1); color: var(--orange); }
.s-tab.active-s3 { background: rgba(90,154,120,0.08); color: var(--yellow); }
.s-tab.active-s4 { background: rgba(106,170,138,0.1); color: var(--green-bright); }
.rec-cards { animation: fadeUp 0.4s 0.15s ease both; }
.rec-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 16px; overflow: hidden; }
.rec-header { padding: 16px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.rec-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.rec-cat { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.rec-title { font-family: var(--font-display); font-weight: 400; font-size: 18px; color: var(--white); line-height: 1.2; }
.priority-badge { margin-left: auto; padding: 4px 10px; border-radius: 99px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; font-weight: 700; flex-shrink: 0; }
.p-critical { background: rgba(90,154,120,0.08); color: var(--red); border: 1px solid rgba(90,154,120,0.2); }
.p-high { background: rgba(184,152,106,0.08); color: var(--orange); border: 1px solid rgba(184,152,106,0.2); }
.p-medium { background: rgba(90,154,120,0.06); color: var(--yellow); border: 1px solid rgba(90,154,120,0.15); }
.rec-body { padding: 16px 20px; }
.rec-items { display: flex; flex-direction: column; gap: 12px; }
.rec-item { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.rec-item:last-child { border-bottom: none; padding-bottom: 0; }
.item-name { font-weight: 600; font-size: 15px; color: var(--bright); }
.item-why { font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.item-cost { font-family: var(--font-mono); font-size: 13px; color: var(--green-bright); }
.affiliate-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--accent-dim); border: 1px solid var(--accent); border-radius: 0; color: #88BBFF; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; transition: var(--trans); width: fit-content; }
.affiliate-btn:hover { background: rgba(74,143,224,0.2); }
.budget-meter { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; animation: fadeUp 0.4s 0.2s ease both; }
.bm-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--white); margin-bottom: 16px; }
.budget-cats { display: flex; flex-direction: column; gap: 10px; }
.bcat { display: flex; align-items: center; gap: 10px; }
.bcat-label { font-size: 13px; color: var(--text-dim); width: 100px; flex-shrink: 0; }
.bcat-bar-wrap { flex: 1; height: 6px; background: var(--muted); border-radius: 99px; overflow: hidden; }
.bcat-bar { height: 100%; border-radius: 99px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.bcat-cost { font-family: var(--font-mono); font-size: 12px; color: var(--bright); width: 60px; text-align: right; flex-shrink: 0; }
.timeline { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; animation: fadeUp 0.4s 0.25s ease both; }
.tl-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--white); margin-bottom: 16px; }
.tl-items { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 16px; padding-bottom: 16px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--border); }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--panel); border: 2px solid; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; position: relative; z-index: 1; }
.tl-when { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.tl-action { font-size: 14px; color: var(--bright); line-height: 1.5; }
.tl-cost { font-family: var(--font-mono); font-size: 12px; color: var(--green-bright); margin-top: 4px; }
/* Results email capture */
.results-email {
background: linear-gradient(135deg, var(--red-dim), #141210);
border: 1px solid rgba(90,154,120,0.2);
border-radius: var(--radius-lg);
padding: 24px;
margin-bottom: 20px;
animation: fadeUp 0.4s 0.3s ease both;
}
.results-email .email-label { color: var(--red); }
.results-email .email-title { font-size: 18px; }
.restart-btn { width: 100%; padding: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 0; color: var(--text-dim); font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: var(--trans); margin-top: 8px; }
.restart-btn:hover { border-color: var(--muted); color: var(--text); }
/* ── ABOUT ── */
.about-section { background: var(--deep); border-top: 1px solid rgba(255,255,255,0.04); padding: 56px 24px; text-align: center; }
.about-section h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--white); margin-bottom: 14px; }
.about-section p { font-size: 14px; color: var(--text-dim); max-width: 380px; margin: 0 auto 20px; line-height: 1.8; font-weight: 300; }
.affiliate-note { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.08em; line-height: 1.8; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hidden { display: none !important; }
/* ── SINGLE FOLD: hide non-essential sections on load ──
(header stays visible with a transparent background on the homepage) */
.site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: none; }
.scenario-strip,
.email-section,
.about-section { display: none !important; }
/* Language switcher — wears the white-paint look (#F0F0F0 fill, soft
light-grey ambient shadow + faint top highlight to match the H1
white paint). Inner buttons stay transparent so the fill reads as
one unit. */
.lang-toggle {
background: #F0F0F0 !important;
border: 1px solid rgba(0,0,0,0.06) !important;
border-radius: 4px;
box-shadow: 0 3px 5px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.6);
overflow: hidden;
}
.lang-btn { background: transparent !important; color: var(--text-dim); }
.lang-btn.active { background: transparent !important; color: var(--red); }
/* ── CAPTURE FORM ── */
/* Capture form container — wears the same white-paint look as the inner
selectors, but a touch whiter (#FAFAFA vs #F0F0F0) so it reads as the
outer container while keeping the H1's dy=7 / blur≈10 / 0.12 alpha drop
and faint inset top highlight for the gloss feel. */
.capture-form-wrap{background:#FAFAFA;border:1px solid rgba(0,0,0,0.06);border-radius:var(--radius-lg);padding:28px 24px;margin-bottom:20px;animation:fadeUp 0.4s 0.3s ease both;box-shadow:0 7px 10.6px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.7);}
/* Country/region indicator hidden — not needed in this build. */
#region-indicator { display: none !important; }
/* ── Paint variants (ported from paint.html for in-page experimentation) ── */
body.paint-green .hero h1.paint-3d {
background: #2a3010;
-webkit-background-clip: text;
background-clip: text;
}
body.paint-green .cta-btn::before {
background: #2a3010;
}
body.paint-white .hero h1.paint-3d {
filter: url(#paintGlossWhite);
-webkit-filter: url(#paintGlossWhite);
background: #F0F0F0;
-webkit-background-clip: text;
background-clip: text;
}
body.paint-white .hero h1.paint-3d:hover {
filter: url(#paintGlossWhiteHover);
-webkit-filter: url(#paintGlossWhiteHover);
}
body.paint-white .cta-btn { color: #1A1A18; }
body.paint-white .cta-btn:hover { color: #060604; }
body.paint-white .cta-btn::before {
background: #F0F0F0;
filter: url(#paintGlossWhiteBtn);
-webkit-filter: url(#paintGlossWhiteBtn);
}
/* Paint picker UI — top-right swatches */
.paint-picker { display: flex; gap: 8px; align-items: center; }
.paint-swatch {
width: 28px; height: 28px;
border-radius: 50%;
border: 1px solid var(--border);
cursor: pointer;
padding: 0;
transition: transform 0.15s ease;
}
.paint-swatch:hover { transform: scale(1.08); }
.paint-swatch.swatch-dark { background: linear-gradient(180deg, #2a2a26, #060604); }
.paint-swatch.swatch-green { background: #2a3010; }
.paint-swatch.swatch-white { background: linear-gradient(180deg, #FFFFFF, #DDDDDD); }
.paint-swatch.active {
outline: 2px solid var(--red);
outline-offset: 2px;
}
/* Modifier toggle ⚙ — wears the same white-paint look as the lang-toggle */
.mod-open-btn {
background: #F0F0F0;
border: 1px solid rgba(0,0,0,0.06);
border-radius: 4px;
box-shadow: 0 7px 10.6px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
width: 28px; height: 28px;
cursor: pointer;
font-size: 14px;
line-height: 1;
padding: 0;
color: var(--text-dim);
transition: var(--trans);
}
.mod-open-btn:hover { color: var(--text); }
/* Quiz progress bar — flex row with logo (left), progress (center), lang (right).
Logo matches the site-header .logo: same 20px DM Serif Display. */
.quiz-progress-bar { display: flex; align-items: center; gap: 16px; }
@media (min-width: 768px) {
.quiz-progress-bar { gap: 32px; }
}
.quiz-progress-bar .qpb-logo {
font-family: var(--font-display);
font-weight: 400;
font-size: 20px;
letter-spacing: 0.02em;
color: var(--white);
white-space: nowrap;
text-decoration: none;
}
.quiz-progress-bar .progress-wrap { flex: 1; max-width: none; margin: 0; }
.quiz-progress-bar .lang-toggle { flex-shrink: 0; }
@media (max-width: 767px) {
.quiz-progress-bar .lang-toggle { display: none; }
}
/* Active language button — bolded red so the current selection stands
out against the white-paint container fill. */
.lang-btn.active { font-weight: 800 !important; color: var(--red) !important; }
/* Outer question-card wears the glossy white-paint look at #FAFAFA —
a touch whiter than the inner .q-opt (#F0F0F0) so it reads as the
surrounding container while keeping the same drop-shadow + inset
top highlight as .capture-form-wrap. */
.question-card {
background: #FAFAFA !important;
border: 1px solid rgba(0,0,0,0.06) !important;
box-shadow: 0 7px 10.6px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
}
/* Inner selection options wear the white-paint look: #F0F0F0 fill,
soft light-grey ambient shadow + faint inset top highlight.
Shadow kept lighter than the outer .question-card so the depth
reads as outer-elevated > inner-resting. */
.q-opt {
background: #F0F0F0 !important;
border: 1px solid rgba(0,0,0,0.06) !important;
box-shadow: 0 3px 6px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
}
.q-opt:hover { border-color: rgba(0,0,0,0.12) !important; background: #F4F4F4 !important; }
.q-opt.selected { border-color: var(--red) !important; }
/* Modifier panel — hidden by default, opens when body has .mod-open */
.mod-panel {
position: fixed;
top: 72px;
right: 12px;
width: 280px;
max-height: calc(100vh - 84px);
overflow-y: auto;
background: rgba(255,255,255,0.96);
border: 1px solid var(--border);
border-radius: 6px;
box-shadow: 0 8px 32px rgba(0,0,0,0.08);
z-index: 200;
font-family: var(--font-mono);
font-size: 11px;
padding: 8px;
display: none;
}
body.mod-open .mod-panel { display: block; }
.mod-header {
display: flex; align-items: center; justify-content: space-between;
padding: 4px 8px;
border-bottom: 1px solid var(--border);
margin-bottom: 8px;
}
.mod-header h3 {
font-family: var(--font-display);
font-size: 14px; font-weight: 400; margin: 0;
}
.mod-paint-label {
font-family: var(--font-mono); font-size: 10px;
color: var(--red); letter-spacing: 0.1em;
text-transform: uppercase; margin-left: 8px;
}
.mod-toggle {
background: none; border: 1px solid var(--border); border-radius: 3px;
width: 22px; height: 22px; cursor: pointer; font-size: 14px; line-height: 1;
padding: 0;
}
.mod-fieldset {
border: 1px solid var(--border); border-radius: 4px;
padding: 6px 8px; margin: 0 0 8px;
}
.mod-fieldset legend {
padding: 0 4px;
font-weight: 600; font-size: 10px;
letter-spacing: 0.05em; text-transform: uppercase;
color: var(--text-dim);
}
.mod-row {
display: grid;
grid-template-columns: 56px 1fr 38px;
gap: 6px; align-items: center; margin: 4px 0;
}
.mod-row > span:first-child {
font-size: 10px; color: var(--text-dim);
}
.mod-row input[type="range"] { width: 100%; }
.mod-row input[type="color"] {
width: 100%; height: 22px; padding: 0;
border: 1px solid var(--border); border-radius: 3px;
grid-column: 2 / span 2;
}
.mod-row output {
font-size: 10px; text-align: right;
font-variant-numeric: tabular-nums;
}
.mod-actions {
display: flex; align-items: center; gap: 8px;
padding-top: 8px; border-top: 1px solid var(--border);
}
.mod-actions button {
flex: 1; padding: 6px 12px;
background: var(--red); color: #fff;
border: none; border-radius: 3px; cursor: pointer;
font-family: var(--font-mono); font-size: 11px;
font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
}
.mod-copy-status {
font-size: 10px; color: var(--green); white-space: nowrap;
}
.mod-fieldset[data-hide] { display: none; }
.capture-label{font-family:var(--font-mono);font-size:10px;color:var(--red);letter-spacing:0.15em;text-transform:uppercase;margin-bottom:12px;display:block;}
.capture-title{font-family:var(--font-display);font-weight:900;font-size:24px;color:var(--white);margin-bottom:6px;}
.capture-sub{font-size:13px;color:var(--text-dim);line-height:1.6;margin-bottom:20px;}
.form-grid{display:flex;flex-direction:column;gap:12px;}
.form-row{display:flex;gap:10px;flex-wrap:wrap;}
.form-field{display:flex;flex-direction:column;gap:5px;flex:1;min-width:140px;}
.field-label{font-size:11px;color:var(--text-dim);font-family:var(--font-mono);letter-spacing:0.06em;text-transform:uppercase;}
.form-input,.form-select{width:100%;padding:12px 14px;background:var(--card);border:1.5px solid var(--border);border-radius:var(--radius);color:var(--white);font-family:var(--font-body);font-size:14px;outline:none;transition:var(--trans);}
.form-input:focus,.form-select:focus{border-color:rgba(90,154,120,0.4);}
.form-input::placeholder{color:var(--muted);}
.form-select{cursor:pointer;-webkit-appearance:none;appearance:none;}
.form-select option{background:var(--card);color:var(--white);}
.form-input[rows]{resize:vertical;min-height:80px;line-height:1.5;}
.capture-submit{width:100%;padding:16px;background:var(--red);border:none;border-radius:0;color:#0C0C0E;font-family:var(--font-body);font-weight:600;font-size:14px;letter-spacing:0.1em;text-transform:uppercase;cursor:pointer;transition:var(--trans);margin-top:4px;box-shadow:0 4px 24px rgba(90,154,120,0.2);}
.capture-submit:hover{background:#7AB498;transform:translateY(-1px);}
/* ── NARRATIVE SECTION ── */
.narrative-section {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
margin-bottom: 24px;
overflow: hidden;
animation: fadeUp 0.4s ease both;
}
.narrative-header {
padding: 16px 20px;
background: rgba(90,154,120,0.03);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 10px;
}
.narrative-title {
font-family: var(--font-display);
font-weight: 800;
font-size: 17px;
color: var(--white);
}
.narrative-tag {
margin-left: auto;
font-family: var(--font-mono);
font-size: 10px;
color: var(--red);
letter-spacing: 0.12em;
text-transform: uppercase;
border: 1px solid var(--red-dim);
padding: 3px 8px;
border-radius: 4px;
}
.narrative-body {
padding: 20px 24px;
font-size: 14px;
line-height: 1.75;
color: var(--text);
}
.narrative-body h4 {
font-family: var(--font-display);
font-weight: 800;
font-size: 16px;
color: var(--white);
margin: 20px 0 8px;
letter-spacing: 0.02em;
}
.narrative-body h4:first-child { margin-top: 0; }
.narrative-body p { margin: 0 0 12px; }
.narrative-body ul { margin: 8px 0 12px; padding-left: 20px; }
.narrative-body li { margin-bottom: 6px; }
.narrative-body strong { color: var(--bright); }
.narrative-loading {
padding: 32px 24px;
text-align: center;
}
.loading-dots {
display: inline-flex;
gap: 6px;
margin-bottom: 12px;
}
.loading-dots span {
width: 6px; height: 6px;
background: var(--red);
border-radius: 50%;
animation: bounce 1.4s infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
40% { transform: scale(1); opacity: 1; }
}
.loading-text {
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-dim);
letter-spacing: 0.1em;
text-transform: uppercase;
}
.scroll-hint {
text-align: center;
padding: 12px;
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-dim);
letter-spacing: 0.1em;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
/* ── REQUIRED BADGE ── */
.capture-required-badge {
background: rgba(90,154,120,0.06);
border: 1px solid rgba(90,154,120,0.15);
border-radius: var(--radius);
padding: 10px 14px;
font-family: var(--font-mono);
font-size: 10px;
color: var(--red);
letter-spacing: 0.1em;
text-transform: uppercase;
margin-bottom: 20px;
text-align: center;
}
/* ── NEWSLETTER CHECKBOX ── */
.newsletter-check {
display: flex;
align-items: flex-start;
gap: 12px;
cursor: pointer;
padding: 12px 14px;
background: var(--panel);
border: 1.5px solid var(--border);
border-radius: var(--radius);
transition: var(--trans);
margin-top: 4px;
}
.newsletter-check:hover { border-color: var(--muted); }
.newsletter-check input[type=checkbox] { display: none; }
.check-box {
width: 20px; height: 20px;
border: 2px solid var(--muted);
border-radius: 4px;
flex-shrink: 0;
margin-top: 1px;
position: relative;
transition: var(--trans);
background: transparent;
}
.newsletter-check input:checked ~ .check-box {
background: rgba(90,154,120,0.9);
border-color: var(--red);
}
.newsletter-check input:checked ~ .check-box::after {
content: '✓';
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -55%);
color: white;
font-size: 12px;
font-weight: 700;
}
.check-label {
font-size: 13px;
color: var(--text);
line-height: 1.5;
}
/* ── NARRATIVE PROGRESS BAR ── */
.narrative-progress {
height: 3px;
background: var(--muted);
margin: 0 24px 0;
border-radius: 99px;
overflow: hidden;
}
.narrative-progress-fill {
height: 100%;
width: 0%;
background: var(--red);
border-radius: 99px;
transition: width 0.5s linear;
}
/* ── STAGED REVEAL ── */
.reveal-section {
display: none;
}
.reveal-section.revealed {
display: block;
animation: fadeUp 0.5s ease both;
}
/* ── NARRATIVE CTA ── */
.narrative-cta {
padding: 16px 20px;
border-top: 1px solid var(--border);
text-align: center;
}
.narrative-cta-btn {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--red);
color: #0C0C0E;
border: none;
border-radius: 0;
padding: 14px 24px;
font-family: var(--font-body);
font-weight: 600;
font-size: 14px;
letter-spacing: 0.1em;
text-transform: uppercase;
cursor: pointer;
transition: var(--trans);
width: 100%;
justify-content: center;
line-height: 1.4;
text-align: center;
}
.narrative-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(90,154,120,0.25); background: #7AB498; }
/* ── CAPTURE FORM HEADER ── */
.capture-form-header {
font-family: var(--font-display);
font-weight: 400;
font-size: 22px;
color: var(--white);
letter-spacing: 0.01em;
padding-bottom: 16px;
border-bottom: 1px solid rgba(90,154,120,0.2);
margin-bottom: 20px;
}
/* ── PROPRIETARY PROTEIN OFFER ── */
.protein-offer {
background: var(--green-dim);
border: 1px solid rgba(90,154,120,0.45);
border-radius: var(--radius-lg);
padding: 24px;
margin-bottom: 20px;
animation: fadeUp 0.5s ease both;
display: none;
}
.protein-offer.show { display: block; }
.protein-offer-badge {
display: inline-flex;
align-items: center;
gap: 6px;
background: rgba(40,160,96,0.15);
border: 1px solid rgba(40,160,96,0.4);
border-radius: 4px;
padding: 4px 10px;
font-family: var(--font-mono);
font-size: 10px;
color: var(--green-bright);
letter-spacing: 0.12em;
text-transform: uppercase;
margin-bottom: 12px;
}
.protein-offer-title {
font-family: var(--font-display);
font-weight: 900;
font-size: 22px;
color: var(--white);
margin-bottom: 8px;
line-height: 1.2;
}
.protein-offer-body {
font-size: 14px;
color: var(--text-dim);
line-height: 1.7;
margin-bottom: 16px;
}
.protein-offer-btn {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--green);
color: white;
border: none;
border-radius: 0;
padding: 14px 24px;
font-family: var(--font-display);
font-weight: 800;
font-size: 16px;
letter-spacing: 0.04em;
text-transform: uppercase;
cursor: pointer;
text-decoration: none;
transition: var(--trans);
width: 100%;
justify-content: center;
}
.protein-offer-btn:hover { background: #32C070; transform: translateY(-1px); }
.scenario-strip{
overflow:hidden;
padding:16px 0;
background:var(--panel);
border-bottom:1px solid var(--border);
cursor:grab;
position:relative;
}
.scenario-strip:active{cursor:grabbing;}
.scenario-strip-track{
display:flex;
gap:12px;
padding:4px 24px;
width:max-content;
animation:scroll-pills 28s linear infinite;
-webkit-overflow-scrolling:touch;
}
.scenario-strip:hover .scenario-strip-track,
.scenario-strip:focus-within .scenario-strip-track {
animation-play-state:paused;
}
@keyframes scroll-pills {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}
/* ── Painted button system ──────────────────────────────────────────
Shared embossed-paint fill for primary CTAs (.cta-btn, .btn-next,
.narrative-cta-btn, .capture-submit). Secondary actions
(.btn-back, .restart-btn) keep their original flat panel style. */
.cta-btn,
.btn-next,
.narrative-cta-btn,
.capture-submit {
position: relative;
isolation: isolate;
background: transparent;
border: none;
box-shadow: none;
}
.cta-btn::before,
.btn-next::before,
.narrative-cta-btn::before,
.capture-submit::before {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
z-index: -1;
transition: filter 0.6s ease;
}
/* Primary — dark fill */
.cta-btn,
.btn-next,
.narrative-cta-btn,
.capture-submit {
color: #f4ecd8;
}
.cta-btn::before,
.btn-next::before,
.narrative-cta-btn::before,
.capture-submit::before {
background: linear-gradient(180deg, #2a2a26 0%, #1A1A18 45%, #060604 100%);
filter: url(#paintGlossBtn);
-webkit-filter: url(#paintGlossBtn);
}
.cta-btn:hover::before,
.btn-next:hover::before,
.narrative-cta-btn:hover::before,
.capture-submit:hover::before {
filter: url(#paintGlossBtnHover);
-webkit-filter: url(#paintGlossBtnHover);
}
.cta-btn:hover,
.btn-next:hover,
.narrative-cta-btn:hover,
.capture-submit:hover {
background: transparent;
color: #fff8e8;
transform: none;
box-shadow: none;
}
.cta-btn:active,
.btn-next:active,
.narrative-cta-btn:active,
.capture-submit:active { opacity: 0.9; }
.btn-next:disabled,
.btn-next:disabled:hover {
opacity: 0.4;
cursor: not-allowed;
background: transparent;
color: #f4ecd8;
box-shadow: none;
}
.btn-next:disabled::before,
.btn-next:disabled:hover::before {
filter: url(#paintGlossBtn);
-webkit-filter: url(#paintGlossBtn);
}