/* PomodoroFocus Support — modern styles */
/* Base and theme tokens */
:root {
  --bg: #fbfbfc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-contrast: #ffffff;
  --accent: #ef4444;
  --accent-2: #f97316;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 6px 18px rgba(2, 6, 23, 0.07);
  --shadow-md: 0 12px 32px rgba(2, 6, 23, 0.10);
  --space: 20px;
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #121a2a;
  --text: #e5e7eb;
  --muted: #9aa6b2;
  --border: #243041;
  --primary: #60a5fa;
  --primary-contrast: #0b1220;
  --accent: #f43f5e;
  --accent-2: #fb923c;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.45);
}

/* Reset + base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at -10% -10%, rgba(37, 99, 235, 0.10), transparent 45%),
    radial-gradient(900px 600px at 110% -20%, rgba(244, 63, 94, 0.10), transparent 46%),
    var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 8px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px 22px; }

/* Layout */
.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px 36px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(8px);
  background-color: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; opacity: 0.95; }
.app-icon {
  width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; box-shadow: var(--shadow-sm);
}
.site-title { font-size: 18px; font-weight: 700; }
.site-subtle { color: var(--muted); font-size: 13px; }

.nav { display: flex; align-items: center; gap: 12px; }
.nav a { color: inherit; text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav a[aria-current="page"], .nav a:hover { background: color-mix(in oklab, var(--surface) 80%, transparent); }

.theme-toggle { border: 1px solid var(--border); background: var(--surface); color: inherit; border-radius: 10px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: var(--shadow-sm); }
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle svg { width: 16px; height: 16px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: center; margin: 22px 0 12px; }
.hero h1 { font-size: clamp(26px, 3.2vw, 40px); }
.hero p { color: var(--muted); font-size: 16px; }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-md); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); color: inherit; background: var(--surface); border-radius: 12px; padding: 10px 14px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm); }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--primary-contrast); border-color: color-mix(in oklab, var(--primary) 50%, #0000); }
.btn-soft { background: color-mix(in oklab, var(--surface) 85%, var(--primary) 15%); color: var(--text); }
.btn svg { width: 18px; height: 18px; }

/* Cards & sections */
.section { margin: 26px 0; }
.section h2 { font-size: 20px; margin-bottom: 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }

/* FAQ */
details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: color-mix(in oklab, var(--surface) 92%, transparent); padding: 10px 12px; }
details + details { margin-top: 10px; }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
.chevron { width: 16px; height: 16px; transition: transform .2s ease; }
details[open] .chevron { transform: rotate(180deg); }
.faq-body { margin: 8px 2px 4px 26px; color: var(--muted); }

code { background: color-mix(in oklab, var(--surface) 88%, transparent); border: 1px solid var(--border); padding: 0 6px; border-radius: 6px; }

/* Footer */
.site-footer { color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); margin-top: 28px; padding-top: 16px; }

/* Responsive */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
}

