:root {
  --bg: #fff6f5;
  --surface: #fffdf8;
  --surface-2: #fff;
  --ink: #2a2228;
  --muted: #6c5f69;
  --brand: #e66a77;
  --brand-strong: #ca4b5f;
  --line: #f0d9d8;
  --ok: #2f7f4f;
  --shadow: 0 16px 36px rgba(128, 65, 90, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 14%, #ffd7de 0%, transparent 28%),
    radial-gradient(circle at 86% 12%, #ffe9c9 0%, transparent 32%),
    linear-gradient(180deg, #fffef9 0%, var(--bg) 45%, #fdeff1 100%);
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: 0.2px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 3rem 0 1.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 1rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-strong);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.subhead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.bot-line {
  margin-top: 0.7rem;
  font-weight: 700;
  color: #7b4a57;
}

.bot-wrap {
  justify-self: center;
  width: 210px;
  height: 210px;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, #fffefb 0%, #ffe8ea 72%);
  border: 1px solid #f1cfd4;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.bot-head {
  width: 110px;
  height: 86px;
  border-radius: 20px;
  background: #fff;
  border: 3px solid #efc7ce;
  position: relative;
}

.eye {
  width: 12px;
  height: 12px;
  background: #634052;
  border-radius: 999px;
  position: absolute;
  top: 30px;
}

.eye-a { left: 30px; }
.eye-b { right: 30px; }

.smile {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 34px;
  height: 16px;
  transform: translateX(-50%);
  border-bottom: 3px solid #e66a77;
  border-radius: 0 0 28px 28px;
}

.bot-body {
  width: 84px;
  height: 56px;
  border-radius: 14px;
  background: #ffd56e;
  border: 3px solid #e8bd54;
  margin-top: 10px;
}

.bot-steam {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border-top: 3px solid #f29bab;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  transform: rotate(22deg);
  opacity: 0.8;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.8fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 2rem;
}

.seo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-bottom: 1.4rem;
}

.seo-copy p,
.seo-faq p {
  color: #3f3a33;
}

.seo-faq h3 {
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.guide-links {
  padding-bottom: 1.4rem;
}

.guide-link-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr 1fr;
}

.guide-link-grid a {
  display: block;
  padding: 0.6rem 0.75rem;
  border: 1px solid #dec8ab;
  border-radius: 10px;
  background: #fffefb;
  color: #76481e;
  text-decoration: none;
  font-weight: 700;
}

.guide-link-grid a:hover {
  background: #fff4e4;
}

.panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.panel h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.field-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.field-group {
  margin-bottom: 1rem;
}

label {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: block;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid #d8ccb8;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
button:focus {
  outline: 2px solid #f2b37a;
  outline-offset: 1px;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.result-box {
  border: 1px dashed #d8c8b1;
  border-radius: 14px;
  padding: 0.85rem;
  background: #fffdf8;
}

.result-box p {
  margin: 0.35rem 0;
}

.timer-display {
  font-size: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
  font-family: "Fraunces", serif;
  margin: 0.6rem 0 1rem;
}

.timer-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  background: linear-gradient(180deg, #f28795, var(--brand));
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

button.ghost {
  background: #fff2f4;
  color: #8d4a5b;
  border: 1px solid #f2c7cf;
}

.preset-card {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.preset-card p {
  margin: 0.45rem 0;
  color: #403b35;
}

.side-rail ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.ad-row,
.ad-card {
  margin: 1rem auto;
}

.ad-card {
  border: 1px dashed #cdb89b;
  border-radius: 14px;
  padding: 0.7rem;
  background: #fffdf9;
}

.ad-label {
  margin: 0 0 0.35rem;
  color: #9c5f6e;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ad-slot {
  min-height: 92px;
  border: 1px solid #e1d3bf;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #917356;
  font-weight: 600;
  background: linear-gradient(180deg, #fff, #fff8ed);
}

.ad-slot.tall {
  min-height: 320px;
}

.sticky-ad {
  position: sticky;
  top: 1rem;
}

footer {
  border-top: 1px solid #ddcdb6;
  padding: 1.3rem 0 2rem;
  color: #5d564d;
  font-size: 0.94rem;
}

footer a {
  color: var(--brand-strong);
  font-weight: 700;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  z-index: -1;
  filter: blur(2px);
  opacity: 0.45;
}

.bg-shape-a {
  width: 280px;
  height: 280px;
  background: #ffc0cb;
  top: 56px;
  left: -70px;
}

.bg-shape-b {
  width: 360px;
  height: 360px;
  background: #ffd8a5;
  right: -100px;
  bottom: 70px;
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}

.fade-up:nth-of-type(2) {
  animation-delay: 0.08s;
}

.fade-up:nth-of-type(3) {
  animation-delay: 0.16s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid-layout {
    grid-template-columns: 1fr;
  }

  .seo-content {
    grid-template-columns: 1fr;
  }

  .guide-link-grid {
    grid-template-columns: 1fr;
  }

  .side-rail {
    order: 3;
  }

  .sticky-ad {
    position: static;
  }

  .ad-slot.tall {
    min-height: 120px;
  }
}

@media (max-width: 640px) {
  .field-grid,
  .timer-controls {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 1rem;
  }
}
