:root {
  color-scheme: light;
  --paper: #f4eedc;
  --paper-light: #fff8e9;
  --paper-deep: #e7ddc5;
  --green: #3f6652;
  --green-dark: #304d40;
  --mustard: #d99a2b;
  --clay: #a75235;
  --blue: #4f687a;
  --purple: #6e5d77;
  --ink: #302d28;
  --muted: #6a645b;
  --line: rgba(63, 102, 82, 0.22);
  --shadow: 0 18px 50px rgba(73, 60, 37, 0.12);
  --shadow-small: 0 7px 18px rgba(73, 60, 37, 0.14);
  --radius: 22px;
  --content: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: url("./assets/paper-grain.avif") repeat;
  background-size: 256px 256px;
  content: "";
  opacity: 0.12;
  pointer-events: none;
}

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

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(217, 154, 43, 0.72);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  color: var(--green-dark);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.2vw, 4.65rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4.3rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  width: var(--content);
  height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  background: rgba(244, 238, 220, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-size: 1.08rem;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow-small);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--green-dark);
}

.language-link {
  display: inline-flex;
  min-width: 42px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  display: grid;
  width: var(--content);
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: 56px 0 72px;
  align-items: center;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(40px, 8vw, 120px);
}

.hero-copy {
  padding-bottom: 16px;
}

html[lang="en"] .hero h1 {
  font-size: clamp(3rem, 4.2vw, 3.8rem);
}

.paper-label {
  display: inline-block;
  margin-bottom: 26px;
  padding: 8px 16px;
  transform: rotate(-1.4deg);
  border: 1px solid rgba(48, 77, 64, 0.18);
  background: var(--paper-light);
  box-shadow: 2px 4px 0 rgba(48, 77, 64, 0.1);
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.hero-intro {
  max-width: 24em;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.store-button {
  min-width: 174px;
  padding: 11px 20px 12px;
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.store-button span {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  opacity: 0.76;
}

.store-button strong {
  font-size: 0.98rem;
  font-weight: 780;
}

.download-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.download-note a {
  color: var(--green-dark);
  font-weight: 720;
}

.sticker-button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 22px;
  align-items: center;
  justify-content: center;
  border: 5px solid var(--paper-light);
  border-radius: 16px;
  box-shadow: var(--shadow-small);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.sticker-button:hover {
  transform: translateY(-2px) rotate(-0.5deg);
  box-shadow: 0 10px 22px rgba(73, 60, 37, 0.18);
}

.sticker-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 10px rgba(73, 60, 37, 0.14);
}

.sticker-button.primary {
  background: var(--green);
  color: var(--paper-light);
}

.sticker-button.secondary {
  background: var(--mustard);
  color: #3c2b0e;
}

.text-link {
  color: var(--green-dark);
  font-weight: 750;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: min(570px, 68dvh);
  place-items: center;
}

.hero-art::after {
  position: absolute;
  z-index: -1;
  width: 68%;
  height: 76%;
  transform: rotate(3deg);
  border: 1px dashed rgba(48, 77, 64, 0.24);
  border-radius: var(--radius);
  background: var(--paper-deep);
  content: "";
}

.hero-icon {
  width: min(420px, 72%);
  border: 9px solid rgba(255, 248, 233, 0.9);
  border-radius: 25%;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.floating-sticker {
  position: absolute;
  width: clamp(84px, 12vw, 132px);
  filter: drop-shadow(0 9px 10px rgba(73, 60, 37, 0.16));
}

.sticker-voice {
  top: 4%;
  right: 3%;
  transform: rotate(8deg);
}

.sticker-goal {
  bottom: 1%;
  left: 1%;
  transform: rotate(-8deg);
}

.paper-note {
  position: absolute;
  z-index: 2;
  padding: 10px 17px;
  border: 1px solid rgba(48, 77, 64, 0.13);
  background: var(--paper-light);
  box-shadow: var(--shadow-small);
  color: var(--green-dark);
  font-weight: 760;
}

.note-one {
  top: 13%;
  left: -2%;
  transform: rotate(-7deg);
}

.note-two {
  right: 0;
  bottom: 9%;
  transform: rotate(4deg);
}

.journal-statement {
  width: var(--content);
  margin: 0 auto;
  padding: 120px 8vw;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  text-align: center;
}

.journal-statement > p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.value-stamps {
  display: flex;
  margin-top: 38px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.value-stamps span {
  padding: 6px 15px;
  border: 2px solid currentColor;
  color: var(--clay);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.value-stamps span:nth-child(2) {
  transform: rotate(2deg);
  color: var(--green);
}

.value-stamps span:nth-child(3) {
  transform: rotate(-2deg);
  color: var(--blue);
}

.value-stamps span:nth-child(4) {
  color: var(--purple);
}

.feature-section,
.review-section,
.privacy-note,
.faq-section,
.legal-section {
  width: var(--content);
  margin: 0 auto;
  padding: 120px 0;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 52px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.record-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.paper-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(48, 77, 64, 0.12);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.paper-card::before,
.contact-sheet::before,
.clipping::before {
  position: absolute;
  inset: 0;
  background: url("./assets/paper-grain.avif") repeat;
  background-size: 240px 240px;
  content: "";
  opacity: 0.1;
  pointer-events: none;
}

.feature-large {
  display: grid;
  min-height: 540px;
  padding: 56px;
  align-items: end;
  grid-row: 1 / span 2;
}

.feature-large img {
  position: absolute;
  top: 18px;
  right: 22px;
  width: min(300px, 52%);
  transform: rotate(4deg);
}

.feature-large div {
  position: relative;
  max-width: 520px;
}

.feature-large h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.feature-large p,
.feature-small p,
.review-copy p {
  color: var(--muted);
}

.feature-small {
  min-height: 258px;
  padding: 34px 32px 28px 140px;
}

.feature-small img {
  position: absolute;
  top: 31px;
  left: 20px;
  width: 104px;
}

.rotate-right {
  transform: rotate(0.6deg);
}

.rotate-left {
  transform: rotate(-0.7deg);
}

.review-section {
  display: grid;
  align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(48px, 9vw, 120px);
  border-top: 1px dashed var(--line);
}

.review-visual {
  position: relative;
  min-height: 520px;
}

.clipping {
  position: absolute;
  display: flex;
  width: min(430px, 90%);
  min-height: 350px;
  padding: 42px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(48, 77, 64, 0.14);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.clipping span {
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.clipping strong {
  color: var(--green-dark);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.clipping p {
  margin: 14px 0 0;
  color: var(--muted);
}

.clipping img {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 140px;
}

.clipping-back {
  top: 15px;
  left: 54px;
  transform: rotate(5deg);
  background: var(--paper-deep);
}

.clipping-front {
  right: 12px;
  bottom: 8px;
  transform: rotate(-2deg);
}

.review-copy {
  max-width: 510px;
}

.review-copy .text-link {
  display: inline-block;
  margin-top: 10px;
}

.privacy-note {
  display: flex;
  margin-bottom: 100px;
  padding: 58px 64px;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  border: 1px solid rgba(48, 77, 64, 0.13);
  border-radius: var(--radius);
  background: var(--green-dark);
  box-shadow: var(--shadow);
}

.privacy-note h2,
.privacy-note p {
  color: var(--paper-light);
}

.privacy-note h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.privacy-note p {
  max-width: 680px;
  margin-bottom: 0;
  opacity: 0.82;
}

.site-footer {
  display: grid;
  width: var(--content);
  margin: 0 auto;
  padding: 44px 0 54px;
  align-items: end;
  border-top: 1px dashed var(--line);
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer strong {
  color: var(--green-dark);
  font-size: 1.05rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-records {
  display: flex;
  padding-top: 18px;
  border-top: 1px dashed rgba(117, 111, 101, 0.28);
  flex-direction: row;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px 20px;
  font-size: 0.78rem;
}

.footer-records a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-records a:hover,
.footer-records a:focus-visible {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-main {
  width: 100%;
}

.support-hero {
  display: grid;
  width: var(--content);
  min-height: 560px;
  margin: 0 auto;
  padding: 80px 0;
  align-items: center;
  grid-template-columns: 1fr 260px;
  gap: 60px;
}

.support-hero > div {
  max-width: 780px;
}

.support-hero h1 {
  font-size: clamp(3rem, 5.4vw, 5rem);
}

.support-hero p:not(.paper-label) {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
}

.support-hero > img {
  width: 230px;
  transform: rotate(4deg);
  filter: drop-shadow(0 12px 14px rgba(73, 60, 37, 0.18));
}

.contact-sheet {
  position: relative;
  display: grid;
  width: var(--content);
  margin: 0 auto 50px;
  padding: 54px;
  overflow: hidden;
  align-items: center;
  border: 1px solid rgba(48, 77, 64, 0.13);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: var(--shadow);
  grid-template-columns: 1fr minmax(280px, 0.8fr);
  gap: 44px 70px;
}

.contact-copy {
  position: relative;
}

.contact-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.contact-copy p {
  max-width: 630px;
  margin-bottom: 0;
  color: var(--muted);
}

.contact-details {
  position: relative;
  margin: 0;
  border-top: 1px dashed var(--line);
}

.contact-details div {
  display: grid;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  grid-template-columns: 92px 1fr;
  gap: 18px;
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-details dd {
  margin: 0;
  color: var(--green-dark);
  font-weight: 720;
}

.contact-sheet .sticker-button {
  position: relative;
  width: max-content;
}

.faq-section {
  padding-bottom: 100px;
}

.faq-list {
  max-width: 920px;
}

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

.faq-list summary {
  padding: 24px 44px 24px 0;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 750;
  list-style-position: outside;
}

.faq-list details[open] summary {
  color: var(--clay);
}

.faq-list p {
  max-width: 760px;
  padding: 0 0 24px;
  color: var(--muted);
}

.legal-section {
  border-top: 1px dashed var(--line);
}

.legal-section > header {
  max-width: 780px;
  margin-bottom: 54px;
}

.legal-section > header span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.legal-section > header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 54px;
}

.legal-grid article {
  padding: 26px 0;
  border-bottom: 1px dashed var(--line);
}

.legal-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-grid p + p {
  margin-top: 16px;
}

.legal-grid a {
  color: var(--green-dark);
  font-weight: 720;
}

.terms-section {
  padding-bottom: 150px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 78px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 670px;
  }

  .hero-art {
    min-height: 520px;
  }

  .record-grid,
  .review-section {
    grid-template-columns: 1fr;
  }

  .feature-large {
    min-height: 500px;
    grid-row: auto;
  }

  .feature-small {
    min-height: 230px;
  }

  .review-copy {
    grid-row: 1;
  }

  .privacy-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-hero {
    min-height: auto;
    grid-template-columns: 1fr 180px;
  }

  .support-hero > img {
    width: 170px;
  }

  .contact-sheet {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --content: min(100% - 32px, 1160px);
    --radius: 18px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    height: 64px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a:not(.language-link):not(.mobile-keep) {
    display: none;
  }

  .language-link {
    min-width: 38px;
    height: 34px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .hero {
    padding: 64px 0 80px;
    gap: 34px;
  }

  .hero-actions {
    width: min(100%, 360px);
    flex-direction: column;
    gap: 12px;
  }

  .store-button {
    width: 100%;
  }

  .hero-art {
    min-height: 390px;
  }

  .hero-icon {
    width: 72%;
  }

  .floating-sticker {
    width: 82px;
  }

  .paper-note {
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  .journal-statement,
  .feature-section,
  .review-section,
  .faq-section,
  .legal-section {
    padding: 80px 0;
  }

  .journal-statement {
    padding-right: 0;
    padding-left: 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .record-grid {
    gap: 18px;
  }

  .feature-large {
    min-height: 430px;
    padding: 34px 26px;
  }

  .feature-large img {
    width: 58%;
  }

  .feature-small {
    min-height: 220px;
    padding: 28px 22px 24px 128px;
  }

  .feature-small img {
    width: 92px;
  }

  .review-section {
    gap: 30px;
  }

  .review-visual {
    min-height: 430px;
  }

  .clipping {
    min-height: 300px;
    padding: 30px;
  }

  .clipping img {
    width: 104px;
  }

  .clipping-back {
    left: 24px;
  }

  .privacy-note {
    width: calc(100% - 32px);
    margin-bottom: 70px;
    padding: 38px 26px;
  }

  .site-footer {
    padding-bottom: 40px;
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .support-hero {
    padding: 64px 0;
    grid-template-columns: 1fr;
  }

  .support-hero > img {
    display: none;
  }

  .contact-sheet {
    width: calc(100% - 32px);
    padding: 34px 24px;
  }

  .contact-details div {
    grid-template-columns: 80px 1fr;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .terms-section {
    padding-bottom: 100px;
  }
}

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

  .sticker-button {
    transition: none;
  }
}
