/* See /MASTER_PROMPT.md */
* { box-sizing: border-box; }
:root {
  --ink: #241417;
  --muted: #78656a;
  --paper: #fff8f3;
  --card: rgba(255,255,255,0.74);
  --line: rgba(97,45,49,0.14);
  --tomato: #ee3f46;
  --tomato-dark: #b8202b;
  --cream: #fff0df;
  --mint: #2fae82;
  --blue: #4568f0;
  --shadow: 0 24px 80px rgba(111,38,44,0.18);
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 196, 112, 0.36), transparent 32rem),
    radial-gradient(circle at 88% 4%, rgba(238, 63, 70, 0.2), transparent 30rem),
    linear-gradient(135deg, #fffaf3 0%, #fff1eb 46%, #fdf8ff 100%);
  min-height: 100vh;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.noscript { margin: 0; padding: 0.75rem 1rem; text-align: center; background: #fff; }
.hero, main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 28px 0 18px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 44px; }
.brand { font-weight: 900; letter-spacing: -0.04em; text-decoration: none; font-size: 1.15rem; }
.brand span, .eyebrow { color: var(--tomato); }
.nav-link {
  text-decoration: none;
  font-weight: 800;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }
.eyebrow { margin: 0 0 0.7rem; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 1rem; font-size: clamp(2.4rem, 7vw, 5.9rem); line-height: 0.92; letter-spacing: -0.08em; }
.lead { max-width: 650px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.7; }
.trust-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.35rem; }
.trust-tags span {
  padding: 0.55rem 0.78rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.62);
  border-radius: 999px;
  font-weight: 800;
  color: #63363b;
}
.hero-orbit {
  min-height: 340px;
  display: grid;
  place-items: center;
  border-radius: 42px;
  background: linear-gradient(160deg, rgba(255,255,255,0.7), rgba(255,255,255,0.24));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-orbit:before, .hero-orbit:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(238,63,70,0.18);
}
.hero-orbit:before { width: 300px; height: 300px; }
.hero-orbit:after { width: 220px; height: 220px; transform: rotate(35deg); }
.tomato {
  z-index: 1;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 46% 54% 48% 52%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at 35% 25%, #ff8a70, var(--tomato) 48%, var(--tomato-dark));
  box-shadow: inset -22px -24px 34px rgba(103,0,12,0.2), 0 22px 50px rgba(238,63,70,0.35);
}
.tomato span { display: block; font-size: 4rem; font-weight: 900; letter-spacing: -0.08em; }
.tomato small { display: block; margin-top: -18px; font-weight: 800; }
.app-shell { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 18px; align-items: stretch; margin: 20px 0 34px; }
.timer-card, .side-card, .seo-block {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.76);
  border-radius: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.timer-card { padding: clamp(18px, 4vw, 34px); }
.mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px; background: rgba(255,255,255,0.7); border: 1px solid var(--line); border-radius: 999px; }
.mode-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 0.7rem;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}
.mode-tabs button.active { color: #fff; background: linear-gradient(135deg, var(--tomato), var(--tomato-dark)); box-shadow: 0 12px 30px rgba(238,63,70,0.3); }
.mode-tabs span { font-size: 0.76em; opacity: 0.82; }
.timer-face { position: relative; width: min(430px, 100%); margin: 26px auto 18px; display: grid; place-items: center; }
.timer-face svg { width: 100%; transform: rotate(-90deg); filter: drop-shadow(0 16px 35px rgba(238,63,70,0.14)); }
.ring-bg, .ring-fg { fill: none; stroke-width: 12; }
.ring-bg { stroke: rgba(111,38,44,0.1); }
.ring-fg { stroke: url(#missing); stroke: var(--tomato); stroke-linecap: round; stroke-dasharray: 603.19; stroke-dashoffset: 0; transition: stroke-dashoffset 0.35s ease; }
.time-stack { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.time-stack p { margin-bottom: 0.25rem; color: var(--tomato-dark); font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
.time-stack strong { font-size: clamp(4rem, 13vw, 7.5rem); line-height: 0.9; letter-spacing: -0.08em; }
.time-stack span { margin-top: 0.6rem; color: var(--muted); font-weight: 700; }
.timer-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.timer-actions button, .task-form button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 0.95rem 1.25rem;
  font-weight: 900;
  color: var(--ink);
}
.timer-actions .primary, .task-form button { color: #fff; background: linear-gradient(135deg, var(--tomato), var(--tomato-dark)); border-color: transparent; min-width: 150px; }
.quick-settings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.quick-settings label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}
.quick-settings input, .task-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  color: var(--ink);
  background: rgba(255,255,255,0.84);
  outline: none;
}
.quick-settings input:focus, .task-form input:focus { border-color: rgba(238,63,70,0.55); box-shadow: 0 0 0 4px rgba(238,63,70,0.12); }
.toggles { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 18px; color: var(--muted); font-weight: 800; }
.toggles label { display: inline-flex; gap: 0.45rem; align-items: center; }
#saveStatus { color: var(--mint); font-size: 0.85rem; }
.side-card { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.stats { display: grid; gap: 10px; }
.stats div { padding: 1rem; border-radius: 22px; background: rgba(255,255,255,0.68); border: 1px solid var(--line); }
.stats strong { display: block; font-size: 1.9rem; letter-spacing: -0.07em; }
.stats span { color: var(--muted); font-size: 0.86rem; font-weight: 800; }
.task-form label { display: block; margin-bottom: 0.55rem; font-weight: 900; }
.task-form div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.task-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line);
}
.task-list label { display: flex; gap: 0.55rem; align-items: center; font-weight: 800; }
.task-list li.done label { color: var(--muted); text-decoration: line-through; }
.task-list button { width: 30px; height: 30px; border: 0; border-radius: 10px; background: rgba(36,20,23,0.08); color: var(--muted); font-weight: 900; }
.seo-block { padding: clamp(22px, 4vw, 36px); margin: 18px 0; }
.seo-block h2 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.06em; margin-bottom: 1rem; }
.feature-grid, .tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature-grid article, .tool-card, .callout {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.62);
  border-radius: 22px;
}
.feature-grid h3 { margin-bottom: 0.45rem; }
.feature-grid p, .split p, .tool-card p, .faq p, .callout p { color: var(--muted); line-height: 1.65; }
.guide-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
.guide-list li {
  counter-increment: step;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.62);
  border-radius: 22px;
  color: var(--muted);
  line-height: 1.65;
}
.guide-list li:before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.8rem;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--tomato), var(--tomato-dark));
  font-weight: 900;
}
.guide-list strong { display: block; color: var(--ink); margin-bottom: 0.25rem; }
.split { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: center; }
.callout strong { display: block; font-size: 1.4rem; letter-spacing: -0.04em; }
.tool-grid { grid-template-columns: repeat(2, 1fr); }
.tool-card { text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: rgba(238,63,70,0.34); }
.tool-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 0.8rem; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--tomato), var(--blue)); }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 900; font-size: 1.02rem; }
.faq p { margin: 0.7rem 0 0; }
.legal-note {
  margin-top: 1.4rem;
  padding: 1rem;
  color: #6b5156;
  background: rgba(255,255,255,0.64);
  border: 1px solid var(--line);
  border-radius: 18px;
  line-height: 1.6;
}
.lang-nav { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.lang-nav__label { display: block; margin-bottom: 0.7rem; color: var(--muted); font-weight: 900; }
.lang-nav__links { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }
.lang-nav__links a {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.56);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}
.lang-nav__links a.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--tomato), var(--tomato-dark)); }
.app-footer { text-align: center; margin-top: 1.2rem; color: var(--muted); font-weight: 800; }
.app-footer a { color: var(--tomato-dark); }
@media (max-width: 900px) {
  .hero-grid, .app-shell, .split { grid-template-columns: 1fr; }
  .hero-orbit { min-height: 240px; }
  .quick-settings, .feature-grid, .guide-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .topbar { margin-bottom: 28px; }
  .mode-tabs { grid-template-columns: 1fr; border-radius: 24px; }
  .timer-actions button { flex: 1 1 100%; }
  .quick-settings, .tool-grid, .feature-grid, .guide-list { grid-template-columns: 1fr; }
  .task-form div { grid-template-columns: 1fr; }
  .time-stack strong { font-size: 4rem; }
}
