:root {
  color-scheme: light;
  --bg: #e6ebe49f;
  --surface: #e3e4e2;
  --surface-alt: #edf2ec8e;
  --text: #0d1a15;
  --muted: #37584b;
  --border: #c8d4ca;
  --accent: #1b7a52b7;
  --accent-strong: #0e4e33;
  --tag-bg: #d8e8dc;
  --shadow: 0 14px 32px rgba(16, 34, 27, 0.1);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top, rgba(168, 196, 178, 0.55), transparent 30%),
    linear-gradient(180deg, #eef3ee 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.5;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.hero {
  padding: 1.5rem 0 1rem;
}

.hero-card,
.tool-card,
.guide-card,
.ad-slot,
.footer-card {
  background: var(--surface);
  border: 1px solid rgba(200, 212, 202, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  background: var(--tag-bg);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.guide-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  background:
    radial-gradient(circle at top left, rgba(72, 153, 114, 0.14), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(255, 205, 140, 0.18), transparent 18%),
    linear-gradient(145deg, rgba(248, 251, 247, 0.98) 0%, rgba(234, 241, 234, 0.96) 100%);
}

.guide-card::before,
.guide-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(6px);
}

.guide-card::before {
  width: 180px;
  height: 180px;
  top: -54px;
  right: -28px;
  background: radial-gradient(circle, rgba(39, 136, 98, 0.18) 0%, rgba(39, 136, 98, 0) 70%);
  animation: floatGlow 8s ease-in-out infinite;
}

.guide-card::after {
  width: 130px;
  height: 130px;
  bottom: -44px;
  left: -16px;
  background: radial-gradient(circle, rgba(255, 198, 120, 0.18) 0%, rgba(255, 198, 120, 0) 72%);
  animation: floatGlow 10s ease-in-out infinite reverse;
}

.guide-header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-kicker {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  font-weight: 700;
}

.guide-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.guide-intro {
  margin-bottom: 0;
  color: var(--muted);
  max-width: 42rem;
}

.guide-spotlight {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.guide-stat {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(200, 212, 202, 0.85);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 24px rgba(16, 34, 27, 0.06);
  backdrop-filter: blur(6px);
}

.guide-stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-strong);
  margin-bottom: 0.18rem;
}

.guide-stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.guide-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.guide-tab {
  border: 1px solid var(--border);
  background: rgba(248, 251, 247, 0.9);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(16, 34, 27, 0.04);
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.guide-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 122, 82, 0.35);
  box-shadow: 0 12px 22px rgba(16, 34, 27, 0.08);
}

.guide-tab.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, #278862 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(24, 102, 69, 0.24);
}

.guide-panels {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(246, 250, 246, 0.78) 100%);
  padding: 1.25rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 16px 32px rgba(16, 34, 27, 0.06);
}

.guide-panel {
  animation: panelReveal 0.35s ease;
}

.guide-panel h3 {
  margin-bottom: 0.85rem;
  font-size: 1.12rem;
}

.guide-panel-grid {
  display: grid;
  gap: 1rem;
}

.guide-list,
.guide-tips {
  list-style: none;
  counter-reset: guide-step;
  margin: 0;
  padding-left: 0;
  color: var(--text);
}

.guide-list li,
.guide-tips li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 3.6rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(200, 212, 202, 0.76);
  box-shadow: 0 10px 22px rgba(16, 34, 27, 0.05);
}

.guide-list li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.8rem;
  height: 1.8rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #278862 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(24, 102, 69, 0.2);
}

.guide-tips li::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 1.15rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffca76 0%, #f39c3d 100%);
  box-shadow: 0 0 0 6px rgba(243, 156, 61, 0.12);
}

.guide-list li + li,
.guide-tips li + li {
  margin-top: 0.75rem;
}

.companion-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 194, 112, 0.16), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(72, 153, 114, 0.18), transparent 24%),
    linear-gradient(150deg, rgba(248, 251, 247, 0.98) 0%, rgba(232, 239, 232, 0.95) 100%);
  border: 1px solid rgba(200, 212, 202, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.companion-header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.companion-intro {
  margin-bottom: 0;
  color: var(--muted);
  max-width: 42rem;
}

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

.mini-card {
  padding: 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(200, 212, 202, 0.85);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px rgba(16, 34, 27, 0.06);
  backdrop-filter: blur(6px);
}

.mini-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.mini-card-head h3 {
  margin-bottom: 0;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(216, 232, 220, 0.95);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.mini-copy {
  color: var(--muted);
  margin-bottom: 1rem;
}

textarea {
  width: 100%;
  min-height: 110px;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f9fbf8;
  color: var(--text);
  resize: vertical;
}

.secondary-btn {
  background: linear-gradient(135deg, #2f8f66 0%, #196a47 100%);
}

.ghost-btn {
  min-height: 52px;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(248, 251, 247, 0.9);
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(27, 122, 82, 0.35);
  background: rgba(241, 247, 242, 0.98);
}

.status-panel {
  margin-top: 1rem;
  border: 1px solid rgba(200, 212, 202, 0.85);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(244, 248, 244, 0.9);
}

.status-panel p:last-child {
  margin-bottom: 0;
}

.insight-line {
  font-weight: 700;
  color: var(--accent-strong);
}

.streak-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(27, 122, 82, 0.12) 0%, rgba(255, 201, 118, 0.16) 100%);
  border: 1px solid rgba(200, 212, 202, 0.85);
}

.streak-value {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #1b7a52 0%, #278862 100%);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(24, 102, 69, 0.2);
}

.streak-copy {
  display: grid;
  gap: 0.2rem;
}

.streak-copy span {
  color: var(--muted);
}

.action-row {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.reminder-panel {
  min-height: 190px;
}

.reminder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.reminder-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(200, 212, 202, 0.82);
}

.reminder-text {
  color: var(--text);
  word-break: break-word;
}

.tiny-btn {
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(200, 212, 202, 0.95);
  background: #fff;
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
}

.placeholder-item {
  color: var(--muted);
  padding: 0.75rem 0;
}

.safe-note {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(200, 212, 202, 0.85);
  background: rgba(255, 255, 255, 0.7);
}

.ad-slot {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  margin: 1rem 0 1.5rem;
  background: linear-gradient(180deg, #f5f8f4 0%, var(--surface-alt) 100%);
}

.ad-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.ad-space {
  min-height: 84px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
}

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

.tool-card {
  padding: 1.25rem;
}

.tool-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.tool-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.field-stack {
  display: grid;
  gap: 0.85rem;
}

label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f9fbf8;
  color: var(--text);
}

input:focus,
select:focus,
button:focus {
  outline: 3px solid rgba(27, 122, 82, 0.18);
  outline-offset: 1px;
  border-color: var(--accent);
}

.action-btn {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #278862 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.output {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  background: var(--surface-alt);
  min-height: 150px;
}

.output-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.output ul {
  margin: 0;
  padding-left: 1.15rem;
}

.output li + li {
  margin-top: 0.55rem;
}

.placeholder {
  color: var(--muted);
  margin: 0;
}

.footer-card {
  margin-top: 1rem;
  padding: 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .shell {
    width: min(1120px, calc(100% - 3rem));
  }

  .hero-card,
  .tool-card,
  .guide-card,
  .companion-card {
    padding: 1.5rem;
  }

  .guide-header,
  .guide-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .companion-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .companion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: stretch;
  }
}

@media (max-width: 759px) {
  .shell {
    width: min(1120px, calc(100% - 1rem));
  }

  .hero {
    padding-top: 0.8rem;
  }

  .hero-card,
  .guide-card,
  .companion-card,
  .tool-card,
  .ad-slot,
  .footer-card {
    border-radius: 18px;
  }

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

  .guide-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
  }

  .guide-tab {
    flex: 0 0 auto;
  }

  .guide-panels,
  .status-panel,
  .streak-shell {
    padding: 1rem;
  }

  .guide-list li,
  .guide-tips li {
    padding: 0.9rem 0.9rem 0.9rem 3.2rem;
  }

  .mini-card {
    padding: 1rem;
  }

  .mini-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .streak-shell {
    grid-template-columns: 1fr;
  }

  .streak-value {
    width: 72px;
    height: 72px;
    font-size: 1.7rem;
  }

  .reminder-item {
    grid-template-columns: 1fr;
  }

  .action-btn,
  .ghost-btn,
  .tiny-btn,
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, 10px, 0) scale(1.04);
  }
}
