/* =========================================================================
   caniworkoutyet.com — styles.css
   Warm, light, practical kitchen/gym utility. Mobile-first.
   Type: Hanken Grotesk (UI + the hero number) · Source Serif 4 (headlines)
   The authoritative copy of the above-the-fold rules is mirrored inline in
   index.html <head> (see build.md → critical-CSS inlining). Update both.
   ========================================================================= */

:root {
  --paper:      #f4f7f5;
  --paper-2:    #eef3f0;
  --card:       #ffffff;
  --ink:        #16201b;
  --ink-soft:   #56635c;
  --ink-faint:  #8a958e;
  --accent:     #138a5a;   /* "go" green */
  --accent-700: #0e6a45;
  --accent-050: #e7f3ec;
  --warm:       #d9742f;   /* clay — the timer / energy accent */
  --warm-050:   #fbeee2;
  --line:       #e2e9e4;
  --line-soft:  #edf1ee;
  --danger:     #b4452f;

  --shadow-sm: 0 1px 2px rgba(22,32,27,.05), 0 1px 1px rgba(22,32,27,.04);
  --shadow-md: 0 6px 22px -8px rgba(22,32,27,.16), 0 2px 6px rgba(22,32,27,.05);
  --shadow-lg: 0 24px 60px -22px rgba(22,32,27,.30), 0 6px 18px -10px rgba(22,32,27,.16);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --maxw: 1140px;
  --content: 680px;

  --font-ui: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent-700); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
strong { font-weight: 700; }

.tnum { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.layout { display: block; }
.col-main { min-width: 0; }
.col-side { display: none; }

section { scroll-margin-top: 76px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; display: block; box-shadow: var(--shadow-sm); }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.brand__tld { color: var(--accent); font-weight: 600; }
.site-nav { display: none; gap: 22px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 30px 0 8px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-700); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(28px, 7.4vw, 46px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: clamp(16px, 4vw, 19px); color: var(--ink-soft); max-width: 40ch; margin-top: 14px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13.5px; color: var(--ink-faint); }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .6; }

/* ---------- ad slots ---------- */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 22px auto; width: 100%;
}
.ad-slot--top      { min-height: 100px; }
.ad-slot--pre      { min-height: 250px; }
.ad-slot--mid      { min-height: 250px; }
.ad-slot-label {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 6px; align-self: center;
}
/* production: label hidden until AdSense reports a fill (ad_slots.md). Slots
   reserve their dimensions (min-height above) but render nothing until filled. */
.ad-slot-label { display: none; }
.ad-slot:has(ins[data-ad-status="filled"]) .ad-slot-label { display: block; }
.ad-slot ins[data-ad-status="unfilled"] { display: none; }
.ad-slot ins.adsbygoogle { max-width: 100%; }

/* ---------- calculator ---------- */
.calc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 20px; margin-top: 10px;
}
.calc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.calc__head h2 { font-size: 19px; }
.calc__head .hint { font-size: 13px; color: var(--ink-faint); }

.field-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 8px; }
.field-label .tag { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--accent-700); background: var(--accent-050); border-radius: 999px; padding: 2px 9px; font-size: 11px; margin-left: 8px; vertical-align: middle; }

/* quick picks */
.picks { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 8px; margin: 0 -2px; }
@media (max-width: 560px) {
  .picks { flex-wrap: nowrap; overflow-x: auto; scroll-padding-right: 16px; padding-right: 16px; scrollbar-width: none; }
  .picks::-webkit-scrollbar { display: none; }
}
.pick {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, transform .05s;
}
.pick:hover { border-color: var(--accent); }
.pick:active { transform: scale(.97); }
.pick.is-active { background: var(--accent-050); border-color: var(--accent); color: var(--accent-700); }
.pick__emoji { font-size: 15px; line-height: 1; }

/* sliders */
.slider-row { margin-top: 6px; }
.slider-row__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.slider-row__val { font-family: var(--font-ui); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.02em; }
.slider-row__val .u { font-size: 13px; font-weight: 600; color: var(--ink-faint); margin-left: 3px; }
.slider-row__name { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.slider-row__name .tag { display: inline-block; background: var(--warm-050); color: #9a531f; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 600; margin-left: 6px; white-space: nowrap; vertical-align: middle; }
.slider-row input[type="range"] { width: 100%; margin: 12px 0 2px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px;
  background: var(--paper-2); outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--accent); box-shadow: var(--shadow-sm); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: var(--card);
  border: 2px solid var(--accent); box-shadow: var(--shadow-sm); cursor: grab;
}
input[type="range"].is-fat::-webkit-slider-thumb { border-color: var(--warm); }
input[type="range"].is-fat::-moz-range-thumb { border-color: var(--warm); }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent-050); }

/* segmented controls */
.seg { display: grid; gap: 8px; }
.seg--2 { grid-template-columns: 1fr 1fr; }
.seg--4 { grid-template-columns: repeat(2, 1fr); }
.seg button {
  font: inherit; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: var(--r-sm); padding: 11px 13px; transition: border-color .15s, background .15s;
}
.seg button:hover { border-color: var(--accent); }
.seg button.is-active { background: var(--accent-050); border-color: var(--accent); }
.seg button b { display: block; font-size: 15px; font-weight: 700; }
.seg button span { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 1px; }
.seg button.is-active span { color: var(--accent-700); }

/* ---------- result ---------- */
.result {
  margin-top: 22px; background: linear-gradient(180deg, #11231a 0%, #0c1813 100%);
  color: #eaf2ec; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 26px 22px 22px; text-align: center; position: relative; overflow: hidden;
}
.result::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -20%, rgba(19,138,90,.35), transparent 60%);
}
.result__inner { position: relative; }
.result__lead { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #8fb6a3; margin-bottom: 6px; }
.result__num {
  font-family: var(--font-ui); font-weight: 800; letter-spacing: -.03em; line-height: .9;
  font-size: clamp(72px, 24vw, 132px); font-variant-numeric: tabular-nums;
}
.result__num .u { font-size: .26em; font-weight: 700; letter-spacing: 0; color: #9cc3b1; margin-left: .12em; }
.result__before { font-family: var(--font-head); font-size: clamp(18px, 5vw, 24px); margin-top: 4px; color: #fff; }
.result__before b { color: #6fd6a0; font-weight: 600; }
.result__range {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 7px 14px; font-size: 14px; color: #cfe2d7;
}
.result__range b { color: #fff; font-weight: 700; }

.btn-timer {
  -webkit-appearance: none; appearance: none; cursor: pointer; font: inherit;
  margin-top: 18px; width: 100%; border: 0; border-radius: 14px; padding: 16px 20px;
  background: var(--warm); color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 24px -10px rgba(217,116,47,.7); transition: transform .06s, filter .15s;
}
.btn-timer:hover { filter: brightness(1.05); }
.btn-timer:active { transform: scale(.985); }
.btn-timer svg { width: 20px; height: 20px; }

.result__why { font-size: 14.5px; color: #b8cdc0; margin-top: 16px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.result__why b { color: #eaf2ec; font-weight: 600; }

.disclaimer-inline {
  margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: #9fb6a8;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; max-width: 52ch; margin-left: auto; margin-right: auto;
}
.disclaimer-inline a { color: #9fd6b6; }

/* timer running state */
.result.is-timing .result__num,
.result.is-timing .result__before,
.result.is-timing .result__range,
.result.is-timing .result__why { display: none; }
.timer { display: none; position: relative; }
.result.is-timing .timer { display: block; }
.timer__count {
  font-family: var(--font-ui); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: clamp(64px, 22vw, 120px); letter-spacing: -.02em; line-height: 1;
}
.timer__label { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #8fb6a3; margin-bottom: 8px; }
.timer__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); margin: 18px auto 0; max-width: 320px; overflow: hidden; }
.timer__bar i { display: block; height: 100%; width: 0; background: var(--warm); transition: width 1s linear; }
.timer__ctrls { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.timer__ctrls button {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 12px; padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #eaf2ec;
}
.timer__ctrls button:hover { background: rgba(255,255,255,.12); }
.timer__ctrls .is-primary { background: var(--accent); border-color: var(--accent); }
.timer__done { color: #6fd6a0; font-weight: 700; font-size: 22px; }

/* ---------- editorial sections ---------- */
.prose { max-width: var(--content); margin: 0 auto; }
.section { padding: 40px 0 6px; }
.section__kicker { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 10px; }
.section h2 { font-size: clamp(24px, 6vw, 33px); margin-bottom: 12px; }
.section h3 { font-size: 20px; margin: 26px 0 8px; }
.section p, .section li { color: var(--ink-soft); font-size: 16.5px; }
.section p strong, .section li strong { color: var(--ink); }

/* preset answer cards */
.presets { display: grid; gap: 14px; margin-top: 8px; }
.preset {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 18px 16px; box-shadow: var(--shadow-sm);
}
.preset h3 { font-family: var(--font-head); font-size: 18px; margin: 0 0 4px; }
.preset p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.preset .lede { color: var(--ink); font-weight: 600; }
.preset__try {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  color: var(--accent-700); background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
.preset__try:hover { color: var(--accent); }
.preset__try::after { content: "→"; }

/* callout / disclaimer block */
.callout {
  border-left: 3px solid var(--warm); background: var(--warm-050);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 16px 18px; margin: 22px 0;
}
.callout p { margin: 0; font-size: 15px; color: #6b4a2c; }
.callout strong { color: #4e3315; }

/* FAQ */
.faq { max-width: var(--content); margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 36px 16px 2px; position: relative;
  font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-ui); font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 2px 16px; margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 50px; border-top: 1px solid var(--line); background: var(--paper-2); }
.site-footer__cols { display: grid; gap: 28px; padding: 36px 0 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .site-footer__cols { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 44px 0 12px; }
}
.foot-brand__row { display: flex; align-items: center; gap: 10px; }
.foot-brand .brand__mark { width: 34px; height: 34px; }
.foot-tag { color: var(--ink-soft); font-size: 14.5px; margin-top: 12px; max-width: 34ch; }
.foot-col h4 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; font-family: var(--font-ui); font-weight: 700; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.foot-col a:hover { color: var(--ink); }
.foot-divider { height: 1px; background: var(--line); margin: 8px 0 22px; }
.foot-legal { font-size: 13px; line-height: 1.65; color: var(--ink-faint); max-width: 75ch; }
.foot-legal strong { color: var(--ink-soft); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 0 30px; }
.foot-bottom small { color: var(--ink-faint); font-size: 13px; }
.foot-bottom button {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  background: none; border: 0; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px;
}
.foot-bottom button:hover { color: var(--ink); }

/* ---------- mobile sticky ad ---------- */
.sticky-ad {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px -10px rgba(22,32,27,.3);
  display: none; align-items: center; justify-content: center; padding: 6px 40px 6px 12px; min-height: 56px;
}
.sticky-ad.is-on { display: flex; }
.sticky-ad__label { position: absolute; left: 12px; top: 4px; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.sticky-ad__close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; font-size: 16px; line-height: 1; color: var(--ink-soft); display: flex; align-items: center; justify-content: center;
}
.sticky-ad__close:hover { color: var(--ink); }

/* ---------- privacy modal ---------- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 120; background: rgba(16,24,20,.5);
  align-items: flex-end; justify-content: center; padding: 0;
}
.modal-scrim[hidden] { display: none; }
.modal-scrim:not([hidden]) { display: flex; }
.modal {
  background: var(--card); width: 100%; max-width: 620px; max-height: 88vh;
  border-radius: 20px 20px 0 0; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); transform: translateY(14px); transition: transform .25s ease;
}
.modal-scrim.open .modal { transform: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 20px; }
.modal__close { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.modal__close:hover { background: var(--paper-2); color: var(--ink); }
.modal__body { padding: 20px 22px; overflow-y: auto; }
.modal__body h3 { font-family: var(--font-ui); font-size: 15.5px; font-weight: 700; margin: 18px 0 6px; color: var(--ink); }
.modal__body p, .modal__body li { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.modal__body .lead { background: var(--accent-050); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; color: var(--ink); }
.modal__body ul { padding-left: 18px; margin: 0 0 1em; }
.modal__body li { margin-bottom: 6px; }
.modal__foot { padding: 14px 22px 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.btn { font: inherit; font-weight: 600; font-size: 14.5px; border-radius: var(--r-md); padding: 11px 18px; cursor: pointer; border: 1.5px solid transparent; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-700); }
.btn--ghost { background: var(--card); color: var(--ink-soft); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-2); }
.linklike { font: inherit; font-weight: 600; color: var(--accent-700); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linklike:hover { color: var(--accent); }
body.modal-open { overflow: hidden; }

/* ---------- CookieConsent v3 theming (green accent to match palette) ---------- */
#cc-main {
  --cc-font-family: var(--font-ui);
  --cc-btn-primary-bg: var(--accent);
  --cc-btn-primary-border-color: var(--accent);
  --cc-btn-primary-hover-bg: var(--accent-700);
  --cc-btn-primary-hover-border-color: var(--accent-700);
  --cc-link-color: var(--accent-700);
  --cc-toggle-on-bg: var(--accent);
  --cc-modal-border-radius: 16px;
  --cc-btn-border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   DESKTOP / TABLET
   ========================================================================= */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .wrap { padding: 0 28px; }
  .site-nav { display: flex; }
  .hero { padding: 48px 0 8px; }
  .calc { padding: 30px; }
  .seg--4 { grid-template-columns: repeat(4, 1fr); }
  .presets { grid-template-columns: 1fr 1fr; }
  .result { padding: 38px 32px 28px; }
  .btn-timer { width: auto; min-width: 280px; }
  .modal-scrim { align-items: center; padding: 24px; }
  .modal { border-radius: var(--r-lg); }
  .sticky-ad { display: none !important; } /* mobile-only slot */
}

@media (min-width: 1000px) {
  .layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 40px; align-items: start; }
  .col-side { display: block; position: sticky; top: 76px; }
  .ad-slot--side { min-height: 600px; }
  .hero h1 { font-size: clamp(40px, 4.2vw, 52px); }
}
