/* 1. Design tokens */
:root {
  --navy: #17324d;
  --paper: #f7f5f0;
  --charcoal: #222222;
  --orange: #f28c28;
  --orange-hover: #eaa050;
  --muted: #626862;
  --line: #dcded6;
  --surface: #eeeee7;
  --white: #fffefa;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-large: clamp(1.15rem, 1.5vw, 1.35rem);
  --text-heading: clamp(2rem, 3.4vw, 3rem);
  --text-hero: clamp(2.65rem, 4.75vw, 4.4rem);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-section: clamp(4rem, 7.5vw, 7rem);
  --radius: 4px;
  --shadow: 0 12px 25px rgb(23 50 77 / 6%);
  --container: 1240px;
}

/* 2. Base and accessibility */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--charcoal); font-family: var(--font); font-size: var(--text-base); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { color: var(--navy); }
h1, h2 { font-weight: 700; letter-spacing: -0.045em; }
h2 { font-size: var(--text-heading); line-height: 1.12; text-wrap: balance; }
h3 { font-size: 1.35rem; line-height: 1.3; letter-spacing: -0.025em; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 5px; border-radius: 2px; }
::selection { color: var(--navy); background: #f8c897; }
.container { width: min(var(--container), calc(100% - 2.5rem)); margin-inline: auto; }
.section-space { padding-block: var(--space-section); }
.eyebrow { color: var(--navy); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.15em; line-height: 1.6; text-transform: uppercase; }
.section-heading { margin-bottom: var(--space-4); }
.section-heading .eyebrow, .story-heading .eyebrow, .faq-heading .eyebrow { margin-bottom: var(--space-2); }
.skip-link { position: fixed; z-index: 10; left: 1rem; top: 1rem; padding: 0.75rem 1rem; background: var(--navy); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* 3. Header, navigation, and shared CTA */
.site-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
/* Frame the wordmark inside the square logo file without its large blank margins. */
.wordmark { position: relative; display: inline-block; flex-shrink: 0; width: clamp(10rem, 18vw, 12.5rem); height: 44px; overflow: hidden; vertical-align: middle; }
.wordmark img { position: absolute; top: 50%; left: 50%; display: block; width: 125%; height: auto; transform: translate(-50%, -50%); mix-blend-mode: darken; }
nav { display: flex; align-items: center; gap: 1rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); transition: color 180ms ease; }
nav a:hover { color: #9c4900; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 2.5rem; min-height: 58px; padding: 1rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius); background: var(--orange); color: var(--navy); font-size: 0.9375rem; font-weight: 750; line-height: 1.4; transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.button span { font-size: 1.5rem; font-weight: 400; line-height: 1; }
.button:hover { background: var(--orange-hover); box-shadow: var(--shadow); transform: translateY(-2px); }

/* 4. Hero */
.hero { display: grid; gap: 2.75rem; padding-top: 2.75rem; padding-bottom: 0.5rem; }
.hero-copy { align-self: center; padding-block: 0.5rem; }
.hero .eyebrow { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1.5rem; }
.tiny-square { width: 6px; height: 6px; background: var(--orange); }
h1 { max-width: 12ch; font-size: var(--text-hero); line-height: 1.055; }
.hero-description { max-width: 27ch; margin-top: 1.5rem; font-size: var(--text-large); color: #535c61; line-height: 1.6; }
.hero .button { margin-top: 1.75rem; }

/* 5. Product photography */
.product-photo { overflow: hidden; border-radius: var(--radius); }
.product-photo img { display: block; width: 100%; height: auto; }
.hero-product { width: 100%; max-width: 30rem; justify-self: center; align-self: center; }
/* Rotate the portrait source into landscape and crop 5% from each end.
   Keep the original image intact so the framing remains easy to adjust. */
.demo-product { position: relative; width: 100%; max-width: 60rem; aspect-ratio: 6 / 5; margin-inline: auto; }
.demo-product img { position: absolute; top: 50%; left: 50%; width: calc(100% / 1.2); height: auto; transform: translate(-50%, -50%) rotate(-90deg); }

/* 6. Benefit cards */
.benefits-grid, .reviews-grid { display: grid; gap: 1rem; }
.benefit-card { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.benefit-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.item-number { font-size: 0.6875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.benefit-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy); font-size: 2.25rem; line-height: 1; }
.icon-check { border: 1.5px solid var(--navy); border-radius: 50%; width: 30px; height: 30px; }
.icon-check::after { content: ""; width: 12px; height: 7px; border-left: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: translateY(-2px) rotate(-45deg); }
.icon-arrow { border-bottom: 1.5px solid var(--navy); font-size: 2.5rem; }
.benefit-card p { max-width: 32ch; margin-top: 0.75rem; color: #5c625f; font-size: 0.9375rem; line-height: 1.75; }

/* 7. Testimonials */
.section-note { display: block; margin-top: 1.25rem; font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.13em; color: var(--muted); }
.review-card { padding: 1.75rem; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); }
.quote-mark { display: block; height: 48px; color: var(--navy); font-size: 4rem; line-height: 1; font-family: Georgia, serif; }
.review-card blockquote { flex: 1; margin-block: 0.375rem 1.75rem; font-size: 0.9375rem; line-height: 1.75; }
.review-card figcaption { display: flex; align-items: center; gap: 0.7rem; padding-top: 1.2rem; border-top: 1px solid #d6d9ce; font-size: 0.6875rem; font-weight: 600; color: var(--navy); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #dfe3d7; font-size: 0.625rem; letter-spacing: 0.04em; }

/* 8. Founder story and kit contents */
.our-story { background: #efeee8; padding-block: var(--space-section); }
.story-inner { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 44rem; gap: 1.5rem; }
.story-intro { font-size: var(--text-large); color: var(--navy); line-height: 1.65; }
.founder-story { color: #535b59; }
.founder-story p { line-height: 1.85; }
.contents-card { padding: 1.5rem; background: var(--paper); border: 1px solid #d9dcd2; border-radius: var(--radius); }
.contents-card > p { font-size: 0.9375rem; font-weight: 600; color: var(--navy); line-height: 1.65; }
.contents-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0; }
.contents-list li { position: relative; padding: 0.55rem 0 0.55rem 1.5rem; font-size: 0.8125rem; border-top: 1px solid var(--line); }
.contents-list li::before { content: ""; position: absolute; left: 2px; top: 1rem; width: 8px; height: 5px; border-left: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: rotate(-45deg); }
.story-ending { color: #535b59; font-size: var(--text-base); }
.story-invitation { margin-top: 1.5rem; color: var(--navy); font-weight: 600; }

/* 9. Standalone CTA */
.cta-section { display: flex; align-items: center; justify-content: center; background: var(--navy); padding: 3.5rem 1.25rem; }
.cta-section .button { min-width: 225px; }
.cta-section .button:focus-visible { outline-color: var(--paper); }

/* 10. Native FAQ */
.faq { display: grid; gap: 2.5rem; }
.faq-asterisk { display: none; color: #a95407; font-size: 3.25rem; line-height: 1; margin-top: 2rem; }
.faq-list { border-top: 1px solid #cbd0c8; }
details { border-bottom: 1px solid #cbd0c8; }
summary { position: relative; display: flex; align-items: center; min-height: 76px; padding: 1.25rem 2.5rem 1.25rem 0; color: var(--navy); cursor: pointer; list-style: none; font-size: 0.9375rem; font-weight: 600; line-height: 1.55; transition: color 180ms ease; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; right: 4px; width: 12px; height: 1px; background: currentColor; }
summary::after { transform: rotate(90deg); transition: transform 180ms ease; }
details[open] summary::after { transform: rotate(0); }
summary:hover { color: #9c4900; }
.faq-answer { padding: 0 2rem 1.5rem 0; color: #565f5d; font-size: 0.9375rem; line-height: 1.8; }
@supports (interpolate-size: allow-keywords) {
  details { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: hidden; transition: block-size 220ms ease, content-visibility 220ms allow-discrete; }
  details[open]::details-content { block-size: auto; }
}

/* 11. Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.footer-brand { flex-basis: 100%; }
.footer-brand p { margin-top: 0.5rem; color: var(--muted); font-size: 0.6875rem; }
.site-footer nav { gap: 1.25rem; align-self: center; }
.site-footer nav a { font-size: 0.75rem; gap: 0.25rem; }

/* 12. Responsive layout: mobile first */
@media (max-width: 389px) {
  .site-header { flex-wrap: wrap; gap: 0; padding-top: 1rem; padding-bottom: 0.5rem; }
  .site-header nav { width: 100%; justify-content: space-between; }
  .hero { padding-top: 2rem; }
}
@media (min-width: 600px) {
  .container { width: min(var(--container), calc(100% - 4rem)); }
  .site-header nav { gap: 2rem; }
  .contents-list { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .heading-split { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
  .section-note { margin: 0 0 0.35rem; }
  .site-footer { padding-block: 2.5rem; }
}
@media (min-width: 800px) {
  .hero { grid-template-columns: 1.04fr 1fr; gap: 2.5rem; padding-block: 3.5rem 0.5rem; }
  h1 { max-width: 12.5ch; }
  .benefits-grid, .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .benefit-card, .review-card { padding: 1.5rem; }
  .benefit-card h3 { font-size: 1.2rem; }
  .faq { grid-template-columns: 0.7fr 1.3fr; gap: 4rem; }
  .faq-asterisk { display: block; }
  .footer-brand { flex-basis: auto; }
}
@media (min-width: 1100px) {
  .container { width: min(var(--container), calc(100% - 7rem)); }
  .site-header { min-height: 105px; }
  .site-header nav { gap: 2.75rem; }
  .hero { gap: 4rem; padding-top: 4rem; }
  .hero-description { margin-top: 1.75rem; }
  .hero .button { margin-top: 2rem; }
  .section-heading { margin-bottom: 2.5rem; }
  .benefit-card, .review-card { padding: 2rem; }
  .benefit-card h3 { font-size: 1.4rem; }
  .contents-card { padding: 2rem; }
  .cta-section { padding-block: 4rem; }
  .faq { grid-template-columns: 0.75fr 1.25fr; gap: 6rem; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .benefit-card:hover { transform: translateY(-4px); border-color: #aeb9aa; box-shadow: var(--shadow); }
}

/* 13. Reduced motion and printing */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, details::details-content { transition: none !important; animation: none !important; }
  .button:hover { transform: none; }
}
@media print {
  body { background: white; }
  .skip-link, .site-header nav, .button, .cta-section { display: none; }
  .container { width: 100%; }
  .section-space, .our-story { padding-block: 2rem; }
  details::details-content { display: block; content-visibility: visible; block-size: auto; }
  .benefit-card, .review-card, details { break-inside: avoid; }
}
