/*
Theme Name:        Do Pomo Now
Theme URI:         https://dopomonow.com/
Author:            DoPomoNow
Description:       Free Pomodoro Timer theme — mobile-first, dual light/dark mode, lofi music, task tracking, focus streaks, SEO/AEO optimized.
Version:           6.1
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      7.4
License:           GNU General Public License v2 or later
Text Domain:       dopomonow
Tags:              one-page, custom-menu, full-width-template, dark-mode, accessibility-ready
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --fd: 'Bebas Neue', sans-serif;
  --fm: 'JetBrains Mono', monospace;
  --fb: 'DM Sans', sans-serif;
  --r:  10px;
  --hh: 64px;
  --ease: .2s cubic-bezier(.4,0,.2,1);
}

[data-theme="light"] {
  --bg:          #FAFAF7;
  --bg2:         #F3F2EE;
  --surface:     #FFFFFF;
  --raise:       #F3F2EE;
  --raise2:      #E8E7E1;
  --border:      rgba(0,0,0,.09);
  --border2:     rgba(0,0,0,.16);
  --text:        #1A1A18;
  --text2:       #3A3A36;
  --text3:       #5E5E58;
  --text4:       #8A8A84;
  --heading:     #0E0E0C;
  --accent:      #D93D00;
  --accent2:     #FF4500;
  --accent-dim:  rgba(217,61,0,.10);
  --accent-glow: rgba(217,61,0,.25);
  --green:       #16A34A;
  --blue:        #2563EB;
  --amber:       #D97706;
  --shadow:      0 4px 24px rgba(0,0,0,.10);
  --shadow2:     0 12px 40px rgba(0,0,0,.14);
}

[data-theme="dark"] {
  --bg:          #0A0A0A;
  --bg2:         #111111;
  --surface:     #161616;
  --raise:       #202020;
  --raise2:      #2A2A2A;
  --border:      rgba(255,255,255,.10);
  --border2:     rgba(255,255,255,.18);
  --text:        #E8E8E2;
  --text2:       #C4C4BC;
  --text3:       #9A9A92;
  --text4:       #6E6E68;
  --heading:     #F2F2EC;
  --accent:      #FF4500;
  --accent2:     #FF6830;
  --accent-dim:  rgba(255,69,0,.14);
  --accent-glow: rgba(255,69,0,.35);
  --green:       #22C55E;
  --blue:        #60A5FA;
  --amber:       #FBBF24;
  --shadow:      0 4px 32px rgba(0,0,0,.6);
  --shadow2:     0 12px 48px rgba(0,0,0,.7);
}

/* ═══════════════════════════════════════════
   RESET — Mobile First
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--fb); font-size: 15px; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--hh);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; gap: 10px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 30px; height: 30px; background: var(--accent); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fm); font-weight: 700; font-size: 14px; color: #fff;
}
.logo-text { font-family: var(--fd); font-size: 20px; letter-spacing: .06em; color: var(--heading); line-height: 1; }
.logo-text em { color: var(--accent); font-style: normal; }

/* Nav menu — WordPress outputs this */
.nav-menu {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu li a {
  text-decoration: none; color: var(--text3);
  font-family: var(--fm); font-size: 12px; font-weight: 500;
  letter-spacing: .04em; padding: 7px 11px; border-radius: 7px;
  transition: color var(--ease), background var(--ease); display: block;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a { color: var(--text); background: var(--raise); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; gap: 5px;
  background: var(--raise); border: 1px solid var(--border2);
  border-radius: 20px; padding: 5px 11px;
  cursor: pointer; font-family: var(--fm); font-size: 10px;
  font-weight: 700; letter-spacing: .08em; color: var(--text3);
  transition: border-color var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); }
#theme-icon { font-size: 13px; }

/* CTA button — hidden on mobile */
.nav-cta {
  display: none; /* hidden by default (mobile first) */
  background: var(--accent); color: #fff !important; border: none;
  border-radius: 7px; padding: 8px 14px; cursor: pointer;
  font-family: var(--fm); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; align-items: center; white-space: nowrap;
  transition: background var(--ease);
}
.nav-cta:hover { background: var(--accent2); }

/* Hamburger */
.ham {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none;
  padding: 8px; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.ham span {
  display: block; width: 20px; height: 2px;
  background: var(--text3); border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
@media (max-width: 680px) {
  .nav-menu {
    display: none;
    position: absolute; top: var(--hh); left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 10px;
    z-index: 999; gap: 2px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a { padding: 12px 14px; }
  .nav-cta { display: none !important; } /* Always hidden on mobile */
}

/* Desktop: show CTA, hide hamburger */
@media (min-width: 681px) {
  .ham { display: none; }
  .nav-cta { display: inline-flex; }
}

/* ═══════════════════════════════════════════
   MAIN
═══════════════════════════════════════════ */
#main { min-height: calc(100vh - var(--hh) - 200px); }
.wrap    { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap-sm { max-width: 780px;  margin: 0 auto; padding: 0 16px; }

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - var(--hh));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 48px 16px 40px;
  background: var(--bg); position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: -60px; left: 50%;
  transform: translateX(-50%); width: 600px; height: 280px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,69,0,.3); background: var(--accent-dim);
  color: var(--accent); font-family: var(--fm); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; position: relative; z-index: 1;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.3;transform:scale(.7);} }

/* H1 — HORIZONTAL single line */
.hero-command { position: relative; z-index: 1; margin-bottom: 14px; }
.hero-command h1 {
  font-family: var(--fd);
  font-size: clamp(40px, 11vw, 110px);
  letter-spacing: .06em; line-height: 1;
  color: var(--heading); white-space: nowrap;
}
.word-pomo { color: var(--accent); text-shadow: 0 0 60px var(--accent-glow); }
[data-theme="dark"]  .word-now { -webkit-text-stroke: 1.5px rgba(255,255,255,.28); color: transparent; }
[data-theme="light"] .word-now { -webkit-text-stroke: 2px rgba(0,0,0,.22);      color: transparent; }

/* Wrap on very small screens */
@media (max-width: 420px) {
  .hero-command h1 { white-space: normal; font-size: clamp(38px, 14vw, 64px); }
}

.hero-sub {
  position: relative; z-index: 1;
  color: var(--text3); font-family: var(--fm); font-size: 12px;
  letter-spacing: .04em; max-width: 400px; margin: 0 auto 32px; line-height: 1.8;
}

/* ═══════════════════════════════════════════
   TIMER CARD
═══════════════════════════════════════════ */
.timer-wrap { position: relative; z-index: 1; width: 100%; max-width: 480px; }
.timer-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 16px; padding: 24px 20px;
  box-shadow: var(--shadow2); position: relative; overflow: hidden;
}
.timer-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Mode tabs */
.mode-tabs {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 3px;
  background: var(--raise); border-radius: var(--r); padding: 3px; margin-bottom: 20px;
}
.mode-tab {
  padding: 8px 4px; border: none; background: none; border-radius: 7px;
  color: var(--text3); font-family: var(--fm); font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background var(--ease), color var(--ease); min-height: 40px;
}
.mode-tab.active { background: var(--accent); color: #fff; }
.mode-tab:hover:not(.active) { color: var(--text); background: var(--border); }

/* Ring */
.ring-wrap { position: relative; width: 175px; height: 175px; margin: 0 auto 14px; }
.ring-wrap svg { width: 175px; height: 175px; transform: rotate(-90deg); }
.ring-bg   { fill: none; stroke: var(--raise2); stroke-width: 5; }
[data-theme="dark"]  .ring-bg { stroke: rgba(255,255,255,.06); }
.ring-prog {
  fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 527; stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 7px var(--accent-glow));
}
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.time-display { font-family: var(--fd); font-size: 52px; letter-spacing: .06em; color: var(--heading); line-height: 1; }
.time-mode    { font-family: var(--fm); font-size: 10px; color: var(--text3); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

/* Pomo dots */
.pomo-dots { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border2); transition: background var(--ease); }
.dot.done { background: var(--accent); }
.dot.cur  { background: var(--accent); box-shadow: 0 0 9px var(--accent); }

/* Controls */
.timer-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.ctrl-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border2); background: none;
  color: var(--text3); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--ease), color var(--ease);
}
.ctrl-btn:hover { border-color: var(--accent); color: var(--accent); }
.play-btn {
  height: 46px; padding: 0 28px; background: var(--accent); border: none;
  border-radius: 10px; color: #fff; font-family: var(--fm); font-size: 12px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 4px 18px var(--accent-glow); min-width: 130px;
  transition: background var(--ease), transform var(--ease);
}
.play-btn:hover { background: var(--accent2); transform: translateY(-1px); }

/* Music row */
.music-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--raise); border-radius: var(--r); padding: 9px 12px;
}
.music-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: none; animation: pulse 1.2s infinite; }
.music-row.playing .music-dot { display: block; }
.music-icon { color: var(--text3); font-size: 14px; }
.music-lbl  { font-family: var(--fm); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text4); }
.music-sel  { flex: 1; background: none; border: none; color: var(--text2); font-family: var(--fm); font-size: 11px; cursor: pointer; outline: none; text-align: right; }
.music-sel option { background: var(--surface); color: var(--text); }

/* ═══════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════ */
.stats-bar {
  background: var(--accent); padding: 20px 16px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
}
.stat { text-align: center; }
.stat-num { font-family: var(--fd); font-size: 32px; color: #fff; display: block; line-height: 1; }
.stat-lbl { font-family: var(--fm); font-size: 10px; color: rgba(255,255,255,.75); letter-spacing: .1em; text-transform: uppercase; }

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.section     { padding: 60px 16px; background: var(--bg); }
.section-alt { background: var(--surface); }
.sec-label { font-family: var(--fm); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.sec-title { font-family: var(--fd); font-size: clamp(30px,5vw,52px); letter-spacing: .04em; color: var(--heading); line-height: 1.05; margin-bottom: 10px; }
.sec-sub   { color: var(--text3); font-family: var(--fm); font-size: 12px; letter-spacing: .03em; line-height: 1.75; margin-bottom: 0; }

/* ═══════════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════════ */
.feats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; margin-top: 32px;
}
.feat { background: var(--bg); padding: 24px 20px; transition: background var(--ease); }
.feat:hover { background: var(--raise); }
.feat-num { font-family: var(--fd); font-size: 40px; letter-spacing: .04em; color: rgba(217,61,0,.30); line-height: 1; margin-bottom: 10px; }
[data-theme="dark"] .feat-num { color: rgba(255,69,0,.18); }
.feat h3 { font-family: var(--fm); font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 6px; letter-spacing: .04em; text-transform: uppercase; }
.feat p  { font-size: 13px; color: var(--text3); line-height: 1.7; }

/* ═══════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════ */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.how-step { padding: 4px 0; }
.step-num  { font-family: var(--fd); font-size: 64px; letter-spacing: .04em; color: rgba(217,61,0,.28); line-height: 1; margin-bottom: 4px; }
[data-theme="dark"] .step-num { color: rgba(255,69,0,.16); }
.how-step h3 { font-family: var(--fm); font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.how-step p  { font-size: 13px; color: var(--text3); line-height: 1.7; }

/* ═══════════════════════════════════════════
   TASK MANAGER
═══════════════════════════════════════════ */
.task-wrap { max-width: 560px; margin: 0 auto; }
.task-row  { display: flex; gap: 8px; margin-bottom: 10px; }
.task-inp  { flex: 1; background: var(--raise); border: 1px solid var(--border2); border-radius: var(--r); padding: 11px 14px; font-family: var(--fm); font-size: 13px; color: var(--text); outline: none; min-height: 48px; transition: border-color var(--ease); }
.task-inp:focus { border-color: var(--accent); }
.task-inp::placeholder { color: var(--text4); }
.task-add  { background: var(--accent); color: #fff; border: none; border-radius: var(--r); padding: 0 18px; font-family: var(--fm); font-size: 11px; font-weight: 700; letter-spacing: .06em; cursor: pointer; min-height: 48px; white-space: nowrap; transition: background var(--ease); }
.task-add:hover { background: var(--accent2); }
.task-list { list-style: none; }
.task-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--raise); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 5px; }
.task-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--text4); cursor: pointer; flex-shrink: 0; transition: all var(--ease); }
.task-check.done { background: var(--green); border-color: var(--green); }
.task-nm { flex: 1; font-family: var(--fm); font-size: 13px; color: var(--text); }
.task-nm.struck { text-decoration: line-through; color: var(--text4); }
.task-rm { background: none; border: none; color: var(--text4); cursor: pointer; font-size: 18px; padding: 4px; border-radius: 4px; min-width: 32px; min-height: 32px; transition: color var(--ease); }
.task-rm:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   BLOG CARDS
═══════════════════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: all var(--ease); display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow2); }
.blog-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.blog-card-img-placeholder { width: 100%; height: 180px; background: var(--raise); display: flex; align-items: center; justify-content: center; font-size: 32px; text-decoration: none; }
.blog-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat  { font-family: var(--fm); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.blog-card-title { font-family: var(--fd); font-size: 20px; letter-spacing: .03em; color: var(--heading); line-height: 1.15; margin-bottom: 8px; text-decoration: none; display: block; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover, h2.blog-card-title a:hover { color: var(--accent); }
.blog-card-excerpt { font-size: 13px; color: var(--text3); line-height: 1.65; flex: 1; margin-bottom: 14px; }
.blog-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.blog-card-meta time { font-family: var(--fm); font-size: 11px; color: var(--text4); }
.blog-card-read { font-family: var(--fm); font-size: 11px; font-weight: 700; color: var(--accent); text-decoration: none; }
.blog-card-read:hover { text-decoration: underline; }
.blog-pagination { display: flex; gap: 8px; justify-content: center; padding: 32px 16px; }
.no-posts { text-align: center; padding: 60px 16px; color: var(--text3); font-family: var(--fm); font-size: 13px; }
.btn-outline { display: inline-flex; align-items: center; gap: 6px; background: var(--raise); border: 1px solid var(--border2); border-radius: var(--r); padding: 10px 22px; font-family: var(--fm); font-size: 12px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: .05em; text-transform: uppercase; transition: all var(--ease); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 16px 0; font-family: var(--fm); font-size: 13px; font-weight: 700;
  color: var(--text); cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; min-height: 48px; transition: color var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-icon { font-size: 18px; flex-shrink: 0; color: var(--accent); transition: transform var(--ease); }
/* Icon shows × (rotated) by default since answers are open; + when collapsed */
.faq-item .faq-icon { transform: rotate(45deg); }
.faq-item.closed .faq-icon { transform: rotate(0deg); }
/* Answers visible by default — collapse on .closed */
.faq-a { font-size: 13px; color: var(--text3); font-family: var(--fm); line-height: 1.8; padding-bottom: 16px; max-height: 800px; overflow: hidden; transition: max-height .4s ease, padding .3s; }
.faq-item.closed .faq-a { max-height: 0; padding-bottom: 0; overflow: hidden; }

/* ═══════════════════════════════════════════
   INNER PAGES (page.php) & BLOG (single.php)
═══════════════════════════════════════════ */
.inner-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 48px 16px 40px; text-align: center; }
.inner-hero .sec-label { display: block; margin-bottom: 8px; }
.inner-hero h1 { font-family: var(--fd); font-size: clamp(28px,5vw,52px); letter-spacing: .04em; color: var(--heading); margin-bottom: 8px; }
.inner-hero p  { font-family: var(--fm); font-size: 12px; color: var(--text3); }
.inner-body { max-width: 780px; margin: 0 auto; padding: 48px 16px 64px; }
.inner-body h2 { font-family: var(--fd); font-size: 26px; letter-spacing: .04em; color: var(--heading); margin: 32px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.inner-body h2:first-child { margin-top: 0; }
.inner-body p  { font-size: 14px; color: var(--text2); line-height: 1.85; margin-bottom: 14px; }
.inner-body ul, .inner-body ol { padding-left: 20px; margin-bottom: 14px; }
.inner-body li { font-size: 14px; color: var(--text2); line-height: 1.75; margin-bottom: 6px; }
.inner-body a  { color: var(--accent); text-decoration: underline; }
.inner-body strong { color: var(--heading); }
/* WordPress block editor default styles */
.inner-body .wp-block-image img { border-radius: var(--r); }
.inner-body figure { margin: 24px 0; }
.inner-body blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; margin: 20px 0; background: var(--accent-dim); border-radius: 0 var(--r) var(--r) 0; }
.inner-body blockquote p { color: var(--text2); font-style: italic; margin: 0; }

/* Blog post */
.post-hero { max-width: 780px; margin: 0 auto; padding: 40px 16px 0; text-align: center; }
.post-cat  { display: inline-block; font-family: var(--fm); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.post-hero h1 { font-family: var(--fd); font-size: clamp(26px,4.5vw,50px); letter-spacing: .04em; color: var(--heading); line-height: 1.05; margin-bottom: 14px; }
.post-meta { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--fm); font-size: 11px; color: var(--text4); flex-wrap: wrap; }
.post-body { max-width: 780px; margin: 0 auto; padding: 32px 16px 56px; }
.post-body h2 { font-family: var(--fd); font-size: 26px; letter-spacing: .04em; color: var(--heading); margin: 36px 0 12px; }
.post-body h3 { font-family: var(--fm); font-size: 14px; font-weight: 700; color: var(--heading); margin: 24px 0 8px; }
.post-body p  { font-size: 15px; color: var(--text2); line-height: 1.85; margin-bottom: 16px; }
.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: 16px; }
.post-body li { font-size: 15px; color: var(--text2); line-height: 1.75; margin-bottom: 6px; }
.post-body a  { color: var(--accent); }
.post-body strong { color: var(--heading); }
.post-body blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; margin: 20px 0; background: var(--accent-dim); border-radius: 0 var(--r) var(--r) 0; }
.post-body figure { margin: 24px 0; }
.post-thumb { width: 100%; border-radius: var(--r); margin-bottom: 32px; }
.post-nav { display: flex; justify-content: space-between; gap: 12px; padding: 28px 0; border-top: 1px solid var(--border); margin-top: 32px; flex-wrap: wrap; }
.post-nav-prev, .post-nav-next { font-family: var(--fm); font-size: 12px; font-weight: 700; color: var(--text3); text-decoration: none; max-width: 48%; transition: color var(--ease); }
.post-nav-prev:hover, .post-nav-next:hover { color: var(--accent); }
.post-nav-next { text-align: right; margin-left: auto; }
.archive-grid { max-width: 1200px; margin: 0 auto; }

/* ═══════════════════════════════════════════
   FOOTER — Centered Design
═══════════════════════════════════════════ */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 16px 28px; transition: background .3s; }
.footer-wrap { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }

.footer-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-logo-mark { width: 28px; height: 28px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.footer-logo-text  { font-family: var(--fd); font-size: 18px; letter-spacing: .06em; color: var(--heading); }

.footer-tagline { font-family: var(--fm); font-size: 11px; color: var(--text4); line-height: 1.6; }

/* Footer nav — wp_nav_menu output */
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; }
.footer-menu li a { font-family: var(--fm); font-size: 11px; font-weight: 500; color: var(--text3); text-decoration: none; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border); display: inline-block; transition: color var(--ease), border-color var(--ease), background var(--ease); }
.footer-menu li a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.footer-menu li.current-menu-item > a, .footer-menu li.current_page_item > a { color: var(--accent); border-color: var(--accent); }

.footer-copy { font-family: var(--fm); font-size: 11px; color: var(--text4); border-top: 1px solid var(--border); padding-top: 18px; width: 100%; }
.footer-copy a { color: var(--accent); text-decoration: none; }

/* ═══════════════════════════════════════════
   GO TOP BUTTON + TOAST
═══════════════════════════════════════════ */
.go-top { position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; background: var(--accent); color: #fff; border: none; border-radius: 50%; font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity var(--ease), transform var(--ease); box-shadow: var(--shadow); z-index: 800; display: flex; align-items: center; justify-content: center; }
.go-top.vis { opacity: 1; pointer-events: auto; }
.go-top:hover { transform: translateY(-3px); }
.toast { position: fixed; bottom: 72px; right: 16px; background: var(--surface); border: 1px solid var(--border2); color: var(--text); padding: 10px 14px; border-radius: var(--r); font-family: var(--fm); font-size: 12px; box-shadow: var(--shadow2); z-index: 1100; transform: translateY(12px); opacity: 0; transition: all .25s; pointer-events: none; max-width: 240px; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet+
═══════════════════════════════════════════ */
@media (min-width: 600px) {
  .feats      { grid-template-columns: repeat(2, 1fr); }
  .blog-grid  { grid-template-columns: repeat(2, 1fr); }
  .how-grid   { grid-template-columns: repeat(4, 1fr); }
  .section    { padding: 72px 24px; }
  .timer-card { padding: 28px 24px 20px; }
  .wrap       { padding: 0 24px; }
  .inner-body, .post-body { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 900px) {
  .feats     { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-inner { padding: 0 32px; }
}

/* ═══════════════════════════════════════════
   WORDPRESS PAGINATION
═══════════════════════════════════════════ */
.blog-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.blog-pagination .page-numbers { font-family: var(--fm); font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: var(--r); border: 1px solid var(--border2); color: var(--text3); text-decoration: none; transition: all var(--ease); }
.blog-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.blog-pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ═══════════════════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════════════════ */
.lang-wrap { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border2); border-radius: 20px; padding: 5px 10px; font-family: var(--fm); font-size: 11px; font-weight: 700; color: var(--text); cursor: pointer; transition: border-color var(--ease), color var(--ease); white-space: nowrap; }
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-flag { font-size: 15px; line-height: 1; }
.lang-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: var(--surface); border: 1px solid var(--border2); border-radius: var(--r); box-shadow: var(--shadow2); min-width: 160px; z-index: 500; overflow: hidden; }
.lang-dropdown.open { display: block; }
.lang-opt { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; font-family: var(--fm); font-size: 12px; font-weight: 500; color: var(--text); transition: background var(--ease); }
.lang-opt:hover { background: var(--bg2); }
.lang-opt.active { color: var(--accent); }
.lang-opt .flag { font-size: 16px; }
.lang-opt .lname { flex: 1; }
.lang-opt .check { opacity: 0; color: var(--accent); font-size: 13px; }
.lang-opt.active .check { opacity: 1; }

/* ═══════════════════════════════════════════
   SKIP LINK
═══════════════════════════════════════════ */
.skip { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip:focus { position: static; width: auto; height: auto; padding: 8px 16px; background: var(--accent); color: #fff; font-family: var(--fm); font-size: 12px; font-weight: 700; text-decoration: none; z-index: 9999; }

/* ═══════════════════════════════════════════
   TICKER
═══════════════════════════════════════════ */
.ticker { background: var(--accent); color: #fff; overflow: hidden; padding: 10px 0; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 0; animation: ticker-scroll 30s linear infinite; }
.ticker-item { font-family: var(--fm); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 0 28px; }
.ticker-item em { font-style: normal; opacity: .7; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════
   SCIENCE SECTION
═══════════════════════════════════════════ */
.science-grid { display: grid; gap: 40px; margin-top: 40px; }
.science-text h3 { font-family: var(--fd); font-size: clamp(18px,2.5vw,24px); color: var(--heading); margin-bottom: 16px; line-height: 1.3; }
.science-text p { font-family: var(--fm); font-size: 14px; line-height: 1.75; color: var(--text2); margin-bottom: 14px; }
.science-text a { font-family: var(--fm); font-size: 11px; color: var(--text4); text-decoration: underline; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; }
.stat-card-num { font-family: var(--fd); font-size: 32px; color: var(--accent); display: block; margin-bottom: 6px; }
.stat-card-lbl { font-family: var(--fm); font-size: 12px; color: var(--text2); line-height: 1.5; display: block; margin-bottom: 8px; }
.stat-card-src { font-family: var(--fm); font-size: 10px; color: var(--text4); font-style: italic; }
@media (min-width: 768px) { .science-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ═══════════════════════════════════════════
   WHO IT'S FOR (AUDIENCE GRID)
═══════════════════════════════════════════ */
.audience-grid { display: grid; gap: 16px; margin-top: 40px; }
.aud-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.aud-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.aud-card h3 { font-family: var(--fd); font-size: 18px; color: var(--heading); margin-bottom: 10px; }
.aud-card p { font-family: var(--fm); font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 12px; }
.aud-tip { font-family: var(--fm); font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-dim); padding: 4px 10px; border-radius: 20px; display: inline-block; }
@media (min-width: 600px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.testimonials { display: grid; gap: 20px; margin-top: 40px; }
.testi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-text { font-family: var(--fm); font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 36px; height: 36px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-size: 16px; color: #fff; flex-shrink: 0; }
.testi-name { font-family: var(--fm); font-size: 13px; font-weight: 700; color: var(--heading); }
.testi-role { font-family: var(--fm); font-size: 11px; color: var(--text4); }
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

/* ═══════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════ */
.cta-banner { background: var(--accent); color: #fff; text-align: center; padding: 64px 24px; }
.cta-banner h2 { font-family: var(--fd); font-size: clamp(32px,6vw,64px); line-height: 1.05; margin-bottom: 16px; }
.cta-banner p { font-family: var(--fm); font-size: 15px; line-height: 1.7; margin-bottom: 28px; max-width: 540px; margin-left: auto; margin-right: auto; opacity: .9; }
.cta-main-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--accent); font-family: var(--fd); font-size: 16px; letter-spacing: .04em; padding: 14px 28px; border-radius: var(--r); text-decoration: none; transition: transform var(--ease), box-shadow var(--ease); }
.cta-main-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ═══════════════════════════════════════════
   POMO DOTS — alias for old .dot class
═══════════════════════════════════════════ */
.pomo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border2); display: inline-block; }
.pomo-dot.done { background: var(--accent); }
.pomo-dot.cur  { background: var(--accent); opacity: .4; }
