@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/fredoka-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --color-bg: #f7f7f4;
  --color-surface: #ffffff;
  --color-text: #172026;
  --color-muted: #5f6d75;
  --color-border: #d9ded8;
  --color-brand: #20545c;
  --color-brand-dark: #173f46;
  --color-nag: #d94f3d;
  --color-nag-dark: #b93f31;
  --color-focus: #f2b84b;
  --color-soft: #ece7df;
  --color-live: #35c46f;
  --font-display: "Fredoka", Arial, sans-serif;
  --font-body: "Nunito", Arial, sans-serif;
  --page-width: 1180px;
  --shadow-hard: 8px 8px 0 #172026;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 24px;
  font-size: 48px;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border: 2px solid var(--color-text);
  border-radius: 4px;
  background: var(--color-surface);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: rgba(247, 247, 244, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner,
.section-inner,
.product-grid,
.privacy-inner,
.buddy-plus-inner,
.closing-inner,
.footer-inner {
  width: min(calc(100% - 48px), var(--page-width));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.header-brand {
  width: 114px;
}

.header-brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.site-nav a,
.footer-links a {
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-nag);
}

.header-cta {
  min-height: 44px;
  padding: 9px 18px;
  border: 2px solid var(--color-text);
  border-radius: 6px;
  color: #ffffff;
  background: var(--color-nag);
  font: 800 14px/1.2 var(--font-body);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--color-nag-dark);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--color-text);
}

.hero {
  position: relative;
  overflow: hidden;
  height: min(740px, calc(100svh - 100px));
  min-height: 600px;
  padding: 42px 0 0;
  background: var(--color-surface);
}

.paper-texture {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: url("assets/textures/paper-texture.jpg");
  background-size: 820px auto;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), 820px);
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-label {
  margin-bottom: 14px;
  color: var(--color-nag);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto 14px;
}

.hero h1 img {
  width: min(270px, 70vw);
  height: auto;
  margin: 0 auto;
}

.hero-promise {
  max-width: 660px;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 550;
  line-height: 1.24;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 13px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 2px solid var(--color-text);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.hero-actions .button {
  min-width: 180px;
  min-height: 56px;
  padding: 14px 28px;
  font-size: 17px;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--color-text);
}

.button-primary {
  color: #ffffff;
  background: var(--color-brand);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-brand-dark);
}

.button-secondary {
  background: var(--color-surface);
}

.hero-visual {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 1;
  width: min(calc(100% - 64px), 1040px);
  height: 310px;
  transform: translateX(-50%);
}

.hero-visual-offset {
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 2px solid var(--color-text);
  background: var(--color-focus);
}

.hero-screenshot {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-text);
  object-fit: cover;
}

.hero-buddy {
  position: absolute;
  z-index: 3;
  left: -72px;
  bottom: -24px;
  width: 190px;
  height: auto;
  filter: drop-shadow(5px 7px 0 rgba(23, 32, 38, 0.18));
  animation: buddy-look 3.8s ease-in-out infinite;
}

.section {
  padding: 112px 0;
}

.how-section {
  padding-top: 54px;
  background: var(--color-bg);
}

.how-section h2 {
  max-width: 700px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 52px;
  border-top: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
}

.step {
  min-width: 0;
  padding: 30px 34px 34px;
}

.step + .step {
  border-left: 1px solid var(--color-border);
}

.step:first-child {
  padding-left: 0;
}

.step:last-child {
  padding-right: 0;
}

.step-number {
  display: block;
  margin-bottom: 38px;
  color: var(--color-nag);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 650;
}

.step p,
.product-copy > p,
.nudge-copy > p,
.buddy-plus-copy > p {
  color: var(--color-muted);
  font-size: 18px;
}

.step p {
  margin-bottom: 0;
}

.product-section {
  padding: 104px 0;
  background: var(--color-surface);
}

.product-grid,
.nudge-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 74px;
}

.product-copy {
  max-width: 430px;
}

.check-list,
.privacy-list {
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--color-border);
  font-weight: 750;
}

.check-list li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 3px;
  width: 11px;
  height: 7px;
  border-bottom: 3px solid var(--color-brand);
  border-left: 3px solid var(--color-brand);
  transform: rotate(-45deg);
}

.product-shot {
  margin: 0;
}

.product-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 14px 14px 0 var(--color-soft);
}

.product-shot figcaption {
  margin-top: 17px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.nudge-section {
  background: #fff7e6;
}

.nudge-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.78fr);
}

.product-shot-popup img {
  box-shadow: 14px 14px 0 var(--color-focus);
}

.nudge-copy {
  max-width: 430px;
  justify-self: end;
}

.choice-list {
  margin: 34px 0 0;
}

.choice-list div {
  padding: 17px 0;
  border-top: 1px solid rgba(23, 32, 38, 0.22);
}

.choice-list div:last-child {
  border-bottom: 1px solid rgba(23, 32, 38, 0.22);
}

.choice-list dt {
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
}

.choice-list dd {
  margin: 0;
  color: var(--color-muted);
}

.privacy-section {
  padding: 112px 0;
  color: #ffffff;
  background: var(--color-brand);
}

.privacy-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: 80px;
}

.section-label-light {
  color: #ffd26f;
}

.privacy-copy > p {
  margin-bottom: 26px;
  color: #e9f0ef;
  font-size: 18px;
}

.privacy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.privacy-list li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 800;
}

.privacy-detail {
  font-size: 14px !important;
}

.buddy-plus-section {
  overflow: hidden;
  padding: 106px 0 92px;
  background: var(--color-focus);
}

.buddy-plus-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 70px;
}

.buddy-plus-copy {
  max-width: 720px;
}

.buddy-plus-price {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin: 30px 0 18px;
  color: var(--color-text) !important;
}

.buddy-plus-price strong {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 650;
  line-height: 1;
}

.buddy-plus-price span {
  font-weight: 800;
}

.buddy-plus-cta {
  width: fit-content;
  margin-top: 27px;
}

.license-note {
  margin: 14px 0 0 !important;
  color: #4b3a13 !important;
  font-size: 14px !important;
  font-weight: 700;
}

.buddy-plus-visual {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.buddy-plus-visual img {
  position: relative;
  z-index: 2;
  width: min(310px, 100%);
  height: auto;
}

.countdown-stamp {
  position: absolute;
  top: 0;
  right: 5%;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 5px solid var(--color-text);
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-nag);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 700;
  transform: rotate(7deg);
}

.faq-section {
  background: var(--color-surface);
}

.faq-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 92px;
}

.faq-list {
  border-top: 2px solid var(--color-text);
}

.faq-list details {
  border-bottom: 1px solid var(--color-border);
}

.faq-list summary {
  position: relative;
  padding: 22px 42px 22px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 3px;
  font-size: 28px;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  max-width: 640px;
  margin-bottom: 22px;
  color: var(--color-muted);
}

.closing-section {
  padding: 38px 0;
  border-top: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  background: var(--color-nag);
}

.closing-inner {
  min-height: 180px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 34px;
}

.closing-inner img {
  width: 142px;
  height: auto;
  max-height: 186px;
  object-fit: contain;
  object-position: center bottom;
}

.closing-inner h2 {
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 39px;
}

.closing-inner p {
  margin-bottom: 0;
  color: #ffffff;
  font-weight: 750;
}

.site-footer {
  padding: 54px 0;
  background: var(--color-bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.footer-brand {
  width: 104px;
}

.footer-brand img {
  width: 100%;
  height: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 25px;
}

.footer-links .footer-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.footer-support-label {
  color: var(--color-text);
  font-weight: 800;
}

.footer-links .footer-support:hover,
.footer-links .footer-support:focus-visible {
  color: var(--color-nag);
}

.copyright {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 13px;
  white-space: nowrap;
}

.legal-main {
  background: var(--color-surface);
}

.legal-header-inner {
  grid-template-columns: auto 1fr;
}

.legal-home-link {
  justify-self: end;
  color: var(--color-brand);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-home-link:hover,
.legal-home-link:focus-visible {
  color: var(--color-nag);
}

.legal-hero {
  padding: 74px 0 54px;
  border-bottom: 2px solid var(--color-text);
  background: var(--color-bg);
}

.legal-hero-inner,
.legal-document-nav-inner,
.legal-document {
  width: min(calc(100% - 48px), 880px);
  margin-inline: auto;
}

.legal-hero .section-label {
  margin-bottom: 12px;
}

.legal-hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 56px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.legal-document-nav {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.legal-document-nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.legal-document-nav a {
  color: var(--color-muted);
  font-weight: 800;
  text-decoration: none;
}

.legal-document-nav a:hover,
.legal-document-nav a:focus-visible,
.legal-document-nav a[aria-current="page"] {
  color: var(--color-nag);
}

.legal-document {
  padding: 70px 0 104px;
}

.legal-document h2 {
  margin: 52px 0 18px;
  font-size: 28px;
  line-height: 1.2;
  scroll-margin-top: 100px;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document p,
.legal-document li {
  font-size: 17px;
  line-height: 1.75;
}

.legal-document p {
  margin-bottom: 18px;
}

.legal-document ul {
  margin: 0 0 22px;
  padding-left: 24px;
}

.legal-document li + li {
  margin-top: 7px;
}

.legal-document a {
  color: var(--color-brand);
  font-weight: 750;
  text-underline-offset: 3px;
}

.legal-document a:hover,
.legal-document a:focus-visible {
  color: var(--color-nag);
}

.legal-document code {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--color-soft);
  font-size: 0.92em;
}

@keyframes buddy-look {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-4px) rotate(1deg);
  }
}

@media (max-width: 960px) {
  h2 {
    font-size: 41px;
  }

  .product-grid,
  .nudge-grid,
  .privacy-inner,
  .buddy-plus-inner,
  .faq-inner {
    gap: 48px;
  }

  .hero-buddy {
    left: -38px;
    width: 150px;
  }

  .closing-inner {
    grid-template-columns: 120px 1fr;
  }

  .closing-inner img {
    width: 116px;
  }

  .closing-inner .button {
    grid-column: 2;
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
  }

  .copyright {
    grid-column: 2;
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .section-inner,
  .product-grid,
  .privacy-inner,
  .buddy-plus-inner,
  .closing-inner,
  .footer-inner,
  .legal-hero-inner,
  .legal-document-nav-inner,
  .legal-document {
    width: min(calc(100% - 32px), var(--page-width));
  }

  .header-inner {
    min-height: 68px;
    grid-template-columns: auto 1fr;
    gap: 20px;
  }

  .header-brand {
    width: 96px;
  }

  .site-nav {
    display: none;
  }

  .header-cta {
    justify-self: end;
    font-size: 14px;
  }

  .hero {
    height: min(650px, calc(100svh - 82px));
    min-height: 480px;
    padding-top: 28px;
  }

  .eyebrow {
    margin-bottom: 8px;
  }

  .hero-promise {
    max-width: 520px;
    margin-bottom: 15px;
    font-size: 21px;
  }

  .hero-visual {
    width: calc(100% - 34px);
    height: 190px;
    bottom: 20px;
  }

  .hero-visual-offset {
    inset: 9px -9px -9px 9px;
  }

  .hero-buddy {
    left: -18px;
    bottom: -18px;
    width: 98px;
  }

  .section,
  .privacy-section {
    padding: 78px 0;
  }

  h2 {
    font-size: 36px;
  }

  .steps {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .step,
  .step:first-child,
  .step:last-child {
    padding: 25px 0;
  }

  .step + .step {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .step-number {
    margin-bottom: 14px;
    font-size: 32px;
  }

  .product-section {
    padding: 78px 0;
  }

  .product-grid,
  .nudge-grid,
  .privacy-inner,
  .buddy-plus-inner,
  .faq-inner {
    grid-template-columns: 1fr;
  }

  .product-copy,
  .nudge-copy,
  .buddy-plus-copy {
    max-width: none;
  }

  .nudge-copy {
    grid-row: 1;
    justify-self: stretch;
  }

  .privacy-list {
    grid-template-columns: 1fr;
  }

  .buddy-plus-section {
    padding: 78px 0 46px;
  }

  .buddy-plus-visual {
    min-height: 280px;
  }

  .buddy-plus-visual img {
    width: 270px;
  }

  .countdown-stamp {
    right: 14%;
    width: 96px;
    height: 96px;
    font-size: 48px;
  }

  .closing-inner {
    grid-template-columns: 94px 1fr;
    gap: 20px;
  }

  .closing-inner img {
    width: 92px;
  }

  .closing-inner h2 {
    font-size: 30px;
  }

  .closing-inner .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .legal-hero {
    padding: 52px 0 40px;
  }

  .legal-hero h1 {
    font-size: 40px;
  }

  .legal-document-nav-inner {
    min-height: 54px;
    gap: 20px;
  }

  .legal-document {
    padding: 48px 0 76px;
  }

  .legal-document h2 {
    margin-top: 42px;
    font-size: 24px;
  }

  .legal-document p,
  .legal-document li {
    font-size: 16px;
  }

  .copyright {
    grid-column: auto;
    justify-self: auto;
  }
}

@media (max-width: 480px) {
  .closing-inner .button {
    width: 100%;
  }

  .product-shot img {
    box-shadow: 8px 8px 0 var(--color-soft);
  }

  .product-shot-popup img {
    box-shadow: 8px 8px 0 var(--color-focus);
  }

  .buddy-plus-price {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
