@font-face {
  font-family: "Fredoka";
  src: url("/assets/Fredoka-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #fff8e8;
  --paper-2: #fffef8;
  --ink: #17171a;
  --muted: #55545d;
  --line: #17171a;
  --blue: #5b61f4;
  --sky: #76d0e9;
  --lime: #a7df34;
  --lemon: #ffe45f;
  --orange: #ff9d3d;
  --coral: #f24f4f;
  --peach: #f7c9b5;
  --lavender: #dedcff;
  --shadow: 7px 8px 0 var(--ink);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 7%, rgb(118 208 233 / 13%) 0 180px, transparent 181px),
    radial-gradient(circle at 3% 38%, rgb(255 228 95 / 12%) 0 150px, transparent 151px),
    var(--paper);
  font-family: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  border-radius: 14px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 2px solid var(--ink);
  background: rgb(255 248 232 / 92%);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(calc(100% - 36px), var(--max));
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 38px;
  right: -4px;
  bottom: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--lime);
  transform: rotate(-1deg);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--sky);
  box-shadow: 3px 4px 0 var(--ink);
  transform: rotate(-3deg);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 600; }
.nav-links a:hover, .nav-links a:focus-visible { text-decoration: underline 4px var(--lemon); text-underline-offset: 5px; }

.menu-button {
  display: none;
  width: 48px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--lemon);
  box-shadow: 3px 4px 0 var(--ink);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 17px;
  background: var(--blue);
  color: white;
  box-shadow: 4px 5px 0 var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.button:hover, .button:focus-visible { transform: translate(2px, 2px); box-shadow: 2px 3px 0 var(--ink); }
.button.secondary { background: var(--paper-2); color: var(--ink); }
.button.lime { background: var(--lime); color: var(--ink); }
.button.small { min-height: 44px; padding: 9px 15px; border-radius: 14px; }

.section { width: min(calc(100% - 36px), var(--max)); margin: auto; padding: 88px 0; }
.section.compact { padding: 58px 0; }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: clamp(48px, 7vw, 94px);
}

.eyebrow, .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--lemon);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.045em; }
h1 { max-width: 780px; margin-top: 22px; font-size: clamp(3rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2.35rem, 4.5vw, 4.25rem); }
h3 { font-size: 1.45rem; }

.marker { position: relative; display: inline; z-index: 0; }
.marker::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -3px;
  right: -5px;
  bottom: .07em;
  height: .18em;
  border-radius: 999px;
  background: var(--lime);
  transform: rotate(-.7deg);
}
.marker.yellow::after { background: var(--lemon); }
.marker.peach::after { background: var(--peach); }

.hero-copy > p { max-width: 650px; margin: 26px 0; color: var(--muted); font-size: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.microcopy { margin-top: 17px !important; font-size: .92rem !important; }

.phone-stage { position: relative; min-height: 570px; display: grid; place-items: center; }
.spark { position: absolute; font-size: 2.3rem; font-weight: 700; }
.spark.one { top: 7%; right: 2%; color: var(--orange); transform: rotate(13deg); }
.spark.two { bottom: 11%; left: 0; color: var(--blue); transform: rotate(-10deg); }

.phone {
  width: min(390px, 90%);
  padding: 20px;
  border: 3px solid var(--ink);
  border-radius: 48px;
  background: var(--paper-2);
  box-shadow: 12px 15px 0 var(--ink);
  transform: rotate(1.2deg);
}
.phone-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.avatar { width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 15px; background: var(--peach); box-shadow: 3px 4px 0 var(--ink); }
.score-pill { padding: 7px 11px; border: 2px solid var(--ink); border-radius: 12px; background: var(--sky); font-weight: 700; }
.calendar-title { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 13px; font-weight: 700; font-size: 1.3rem; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.weekdays { margin-bottom: 6px; text-align: center; font-size: .74rem; font-weight: 700; }
.day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1.7px solid var(--ink);
  border-radius: 9px;
  background: #ece8df;
  font-size: .78rem;
  font-weight: 650;
}
.day.dry { background: var(--lime); }
.day.goal { background: var(--lemon); }
.day.mid { background: var(--orange); }
.day.high { background: var(--coral); }
.phone-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.mini-stat { padding: 10px 6px; border: 2px solid var(--ink); border-radius: 13px; text-align: center; background: var(--paper); }
.mini-stat strong { display: block; font-size: 1.25rem; }
.mini-stat span { font-size: .68rem; }

.trust-strip { background: var(--ink); color: white; }
.trust-inner { width: min(calc(100% - 36px), var(--max)); margin: auto; padding: 20px 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 44px; font-weight: 600; }
.trust-inner span::before { content: "✦"; margin-right: 9px; color: var(--lime); }

.section-heading { max-width: 800px; margin-bottom: 40px; }
.section-heading p { max-width: 690px; margin: 20px 0 0; color: var(--muted); font-size: 1.12rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  padding: 27px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.card.sky { background: var(--sky); }
.card.lime { background: var(--lime); }
.card.yellow { background: var(--lemon); }
.card.peach { background: var(--peach); }
.card.lavender { background: var(--lavender); }
.card p { color: #34343a; }
.icon-box { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 56px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper-2); box-shadow: 4px 5px 0 var(--ink); font-size: 1.55rem; }

.steps { counter-reset: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { position: relative; padding: 28px 24px 24px 84px; border-top: 3px solid var(--ink); }
.step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: 20px; width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--lemon); box-shadow: 4px 5px 0 var(--ink); font-size: 1.5rem; font-weight: 700; }

.score-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 58px; align-items: center; padding: 48px; border: 3px solid var(--ink); border-radius: 36px; background: linear-gradient(120deg, var(--sky), var(--lime)); box-shadow: 9px 10px 0 var(--ink); }
.score-orbit { width: 230px; height: 230px; display: grid; place-items: center; margin: auto; border: 26px solid var(--blue); border-right-color: var(--paper-2); border-radius: 50%; background: var(--paper-2); transform: rotate(-18deg); }
.score-number { transform: rotate(18deg); text-align: center; font-size: 4rem; font-weight: 700; line-height: .9; }
.score-number small { display: block; margin-top: 10px; font-size: .9rem; font-weight: 600; }
.score-list { padding: 0; list-style: none; }
.score-list li { margin: 13px 0; padding-left: 30px; position: relative; }
.score-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { background: var(--lime); transform: rotate(-.6deg); }
.price-card .button { margin-top: auto; }
.price-label { margin: 16px 0 26px; color: var(--muted); }
.price-card ul { padding-left: 20px; margin: 0 0 28px; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { display: flex; min-height: 330px; flex-direction: column; color: var(--ink); text-decoration: none; transition: transform .18s ease; }
.article-card:hover { transform: translateY(-5px) rotate(.3deg); }
.article-card .tag { align-self: flex-start; margin-bottom: 48px; }
.article-card p { flex: 1; }
.article-card .read { font-weight: 700; }

.faq { display: grid; gap: 14px; }
.faq details { border: 2px solid var(--ink); border-radius: 20px; background: var(--paper-2); box-shadow: 4px 5px 0 var(--ink); }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 700; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

.safety { border-block: 3px solid var(--ink); background: var(--lemon); }
.safety .section { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding-block: 44px; }

.site-footer { padding: 54px 0 30px; background: var(--ink); color: white; }
.footer-grid { width: min(calc(100% - 36px), var(--max)); margin: auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.footer-grid h3 { color: var(--lemon); font-size: 1.05rem; letter-spacing: 0; }
.footer-grid a { display: block; margin: 9px 0; color: #ececf0; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom { width: min(calc(100% - 36px), var(--max)); margin: 38px auto 0; padding-top: 20px; border-top: 1px solid #47474f; color: #bdbdc6; font-size: .88rem; }

.page-hero { padding: 92px 0 64px; }
.page-hero p { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 1.18rem; }
.breadcrumb { margin-bottom: 20px; color: var(--muted); font-size: .92rem; }
.breadcrumb a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

.prose-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 56px; align-items: start; }
.toc { position: sticky; top: 110px; padding: 20px; border: 2px solid var(--ink); border-radius: 20px; background: var(--lemon); box-shadow: 4px 5px 0 var(--ink); }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; margin: 8px 0; font-size: .9rem; }
.prose { min-width: 0; }
.prose h2 { margin: 64px 0 18px; font-size: clamp(2rem, 4vw, 3rem); scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 34px 0 12px; letter-spacing: -.02em; }
.prose p, .prose li { color: #3e3d46; }
.prose a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote { margin: 28px 0; padding: 20px 24px; border: 2px solid var(--ink); border-radius: 20px; background: var(--sky); box-shadow: 4px 5px 0 var(--ink); font-weight: 600; }
.notice { margin: 25px 0; padding: 22px; border: 2px dashed var(--ink); border-radius: 20px; background: var(--peach); }
.meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: .92rem; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.checklist { padding: 0; list-style: none; }
.checklist li { position: relative; margin: 13px 0; padding-left: 32px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; width: 23px; height: 23px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--lime); font-size: .8rem; font-weight: 700; }

@media (max-width: 900px) {
  .menu-button { display: grid; place-items: center; }
  .nav-links { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 18px; border-bottom: 2px solid var(--ink); background: var(--paper); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links .button { width: 100%; }
  .hero { grid-template-columns: 1fr; padding-top: 62px; }
  .phone-stage { min-height: 530px; }
  .cards, .steps, .pricing, .article-grid { grid-template-columns: 1fr 1fr; }
  .score-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .prose-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .cards, .steps, .pricing, .article-grid, .contact-grid { grid-template-columns: 1fr; }
  .phone { width: 92%; padding: 16px; border-radius: 38px; }
  .phone-stage { min-height: 510px; }
  .score-band { padding: 30px 22px; }
  .score-orbit { width: 190px; height: 190px; }
  .safety .section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .icon-box { margin-bottom: 36px; }
  .page-hero { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
