:root {
  --ink: #18171b;
  --muted: #625d68;
  --paper: #f7f2e8;
  --cream: #fffaf2;
  --coral: #ef725f;
  --coral-dark: #c94b3b;
  --yellow: #f6d66d;
  --indigo: #5146a8;
  --indigo-dark: #39317d;
  --soft: #e9e5fb;
  --mint: #cbe7d5;
  --line: rgba(24, 23, 27, 0.16);
  --wrap: 1160px;
  --shadow: 0 24px 70px rgba(65, 48, 32, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 4%, rgba(246, 214, 109, 0.34), transparent 25rem),
    radial-gradient(circle at 92% 14%, rgba(239, 114, 95, 0.18), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--indigo);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(calc(100% - 36px), var(--wrap));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 36px), 820px);
  margin-inline: auto;
}

.nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(24, 23, 27, 0.08);
  background: rgba(247, 242, 232, 0.93);
  backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 900;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 22px rgba(24, 23, 27, 0.16);
}

.links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.links > a:not(.button) {
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 750;
}

.links > a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid var(--ink);
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--coral);
  text-decoration: none;
  font-weight: 850;
  transition: transform 0.18s, box-shadow 0.18s;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--coral);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  box-shadow: none;
}

.button.light {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
}

.hero {
  padding: clamp(58px, 8vw, 86px) 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(38px, 6vw, 68px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--indigo-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 5px;
  border-radius: 99px;
  background: var(--coral-dark);
}

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

h1 {
  margin-bottom: 27px;
  font-size: clamp(3.2rem, 7.4vw, 6.75rem);
  line-height: 0.94;
  letter-spacing: -0.072em;
}

h2 {
  margin-bottom: 17px;
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h3 {
  line-height: 1.15;
}

.warm {
  display: inline-block;
  color: var(--coral-dark);
  transform: rotate(-1.3deg);
}

.lead {
  max-width: 650px;
  color: #454049;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.actions,
.pills,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions {
  margin: 28px 0 22px;
}

.pill,
.tag {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
  font-weight: 750;
}

.board {
  position: relative;
  min-height: 500px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(24, 23, 27, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
}

.board > * {
  position: relative;
}

.board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.chip {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: var(--yellow);
  font-size: 0.72rem;
}

.solution {
  width: 76%;
  margin: 55px auto 0;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  box-shadow: 8px 8px 0 var(--soft);
}

.solution .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--indigo);
  color: #fff;
  font-size: 1.35rem;
}

.solution h3 {
  margin: 15px 0 6px;
  font-size: 1.55rem;
}

.solution p,
.card p,
.heading p,
.story p,
.page-intro p,
.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini span {
  padding: 14px 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 850;
}

.note {
  position: absolute;
  width: 145px;
  padding: 13px;
  box-shadow: 6px 7px 15px rgba(24, 23, 27, 0.1);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
}

.n1 { top: 95px; left: 10px; background: var(--yellow); transform: rotate(-7deg); }
.n2 { top: 190px; right: 8px; background: var(--mint); transform: rotate(6deg); }
.n3 { bottom: 28px; left: 24px; background: #f5b9ae; transform: rotate(4deg); }
.n4 { right: 18px; bottom: 28px; background: var(--soft); transform: rotate(-5deg); }

.section {
  padding: 82px 0;
}

.alt {
  border-block: 1px solid rgba(24, 23, 27, 0.08);
  background: rgba(255, 255, 255, 0.52);
}

.heading {
  max-width: 800px;
  margin-bottom: 38px;
}

.heading p,
.story p,
.page-intro p {
  font-size: 1.1rem;
}

.grid3,
.grid2,
.values {
  display: grid;
  gap: 17px;
}

.grid3 { grid-template-columns: repeat(3, 1fr); }
.grid2 { grid-template-columns: repeat(2, 1fr); }
.values { grid-template-columns: repeat(2, 1fr); }

.card {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.card h3 {
  margin-bottom: 9px;
  font-size: 1.4rem;
}

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

.num {
  margin-bottom: 28px;
  color: var(--coral-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.product {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 32px;
  background: var(--ink);
  box-shadow: 12px 13px 0 var(--yellow);
}

.product-copy {
  padding: 45px;
  color: #fff;
}

.product-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}

.product-copy .eyebrow {
  color: var(--yellow);
}

.product-copy .tag {
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
}

.product-copy .button {
  margin-top: 28px;
}

.visual {
  min-width: 0;
  padding: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(81, 70, 168, 0.94), rgba(239, 114, 95, 0.78));
}

.phone {
  width: min(100%, 365px);
  padding: 22px;
  border: 9px solid var(--ink);
  border-radius: 35px;
  background: var(--cream);
  box-shadow: 0 28px 50px rgba(24, 23, 27, 0.3);
  transform: rotate(2deg);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 900;
}

.streak {
  color: var(--coral-dark);
  font-size: 0.8rem;
}

.tile,
.due,
.coach {
  padding: 13px;
  border-radius: 14px;
  margin-bottom: 11px;
}

.tile { background: var(--soft); }
.due { background: #fff0b9; }

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.mode {
  padding: 12px 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  text-align: center;
  font-size: 0.73rem;
  font-weight: 850;
}

.coach {
  margin-top: 11px;
  background: #f4e4df;
  font-size: 0.8rem;
}

.story-grid,
.split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 40px;
  align-items: start;
}

.statement {
  padding: 28px;
  border-radius: 22px;
  background: var(--coral);
  box-shadow: 8px 8px 0 var(--yellow);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  transform: rotate(-1deg);
}

.cta {
  padding: 30px 0 85px;
}

.cta-box {
  padding: clamp(42px, 7vw, 60px);
  border: 2px solid var(--ink);
  border-radius: 32px;
  background: var(--yellow);
  box-shadow: 12px 12px 0 var(--coral);
  text-align: center;
}

.cta-box p {
  max-width: 650px;
  margin: 0 auto 25px;
}

.page-hero {
  padding: clamp(58px, 8vw, 96px) 0 54px;
}

.page-hero h1 {
  max-width: 950px;
  font-size: clamp(3rem, 7vw, 5.75rem);
}

.page-intro {
  max-width: 760px;
}

.study-hero .hero-grid {
  grid-template-columns: 1fr 0.86fr;
}

.study-hero h1 {
  font-size: clamp(3.15rem, 7.2vw, 6.1rem);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  padding: 25px;
  border: 2px solid var(--ink);
  border-radius: 20px;
}

.step:nth-child(1) { background: #fff0b9; transform: rotate(-0.7deg); }
.step:nth-child(2) { background: var(--soft); transform: rotate(0.5deg); }
.step:nth-child(3) { background: var(--mint); transform: rotate(-0.35deg); }

.step-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  font-weight: 900;
}

.family-band {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 38px;
  padding: 42px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--ink);
  color: #fff;
}

.family-band h2 {
  color: #fff;
}

.family-band p {
  color: #ddd9eb;
  font-size: 1.06rem;
}

.family-band p:last-child {
  margin-bottom: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 850;
}

.notice {
  padding: 22px 24px;
  border: 1px solid #d5be67;
  border-left: 7px solid var(--yellow);
  border-radius: 15px;
  background: #fff7d9;
}

.notice strong {
  display: block;
  margin-bottom: 5px;
}

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

.legal-copy {
  padding-bottom: 82px;
}

.legal-copy h2 {
  margin-top: 42px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}

.legal-copy a:not(.button) {
  color: var(--indigo-dark);
  font-weight: 750;
}

.error-page {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
  padding: 64px 0;
}

.error-card {
  max-width: 720px;
  padding: clamp(32px, 7vw, 64px);
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 10px 10px 0 var(--yellow);
  text-align: center;
}

.error-code {
  color: var(--coral-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-copy {
  max-width: 390px;
}

.footer-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer a {
  font-weight: 750;
  text-decoration: none;
}

.footer a:hover,
.links > a:not(.button):hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.fine-print {
  width: 100%;
  margin: 0;
  font-size: 0.83rem;
}

@media (max-width: 900px) {
  .links > a:not(.button) { display: none; }
  .hero-grid,
  .product,
  .story-grid,
  .split,
  .family-band,
  .study-hero .hero-grid { grid-template-columns: 1fr; }
  .grid3,
  .how-grid { grid-template-columns: 1fr; }
  .grid2,
  .values { grid-template-columns: 1fr; }
  .visual { min-height: 500px; }
}

@media (max-width: 600px) {
  .wrap,
  .narrow { width: calc(100% - 24px); }
  .nav-inner { min-height: 70px; }
  .links .button { min-height: 44px; padding-inline: 13px; font-size: 0.88rem; }
  h1 { font-size: clamp(3rem, 18vw, 4.65rem); }
  .board { min-height: 470px; padding: 20px 13px; }
  .board-head .chip { display: none; }
  .solution { width: 82%; }
  .note { width: 122px; font-size: 0.76rem; }
  .product-copy,
  .visual,
  .family-band { padding: 28px 22px; }
  .visual { min-height: 440px; }
  .phone { padding: 17px; border-width: 7px; }
  .cta-box { padding: 42px 22px; }
  .actions .button { width: 100%; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .warm,
  .board,
  .phone,
  .statement,
  .step,
  .note { transform: none; }
}
