/* ==========================================================================
   TopSheets — styles.css
   spreadsheets · made · simple
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --bg:            #F4F1EC;
  --surface:       #FFFFFF;
  --ink:           #2E2E2E;
  --ink-muted:     #6B6862;
  --accent:        #B8B5E8;
  --accent-strong: #8F8AD6;
  --pastel-pink:   #F6D9E0;
  --pastel-peach:  #F8E3CF;
  --pastel-mint:   #D8EBDD;
  --pastel-blue:   #D6E6F2;
  --pastel-sage:   #E2E8D8;
  --pastel-sand:   #EFE4D2;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft:  0 12px 40px rgba(46, 46, 46, 0.08);
  --shadow-hover: 0 20px 60px rgba(46, 46, 46, 0.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section-pad: 72px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 48px;
    --section-pad: 120px;
  }
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle paper-texture noise over the cream background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { max-width: 65ch; }

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 500;
}

.skip-link:focus-visible {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  margin: 16px auto 0;
  color: var(--ink-muted);
}

.section-foot {
  margin: 44px auto 0;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   4. Buttons, chips, links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease),
              background-color 200ms var(--ease);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}

.btn-dark:hover {
  background: #1e1e1e;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: gap 200ms var(--ease), border-color 200ms var(--ease);
}

.text-link:hover {
  gap: 12px;
  border-color: var(--accent-strong);
}

.chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.chip--pastel-pink  { background: var(--pastel-pink); }
.chip--pastel-peach { background: var(--pastel-peach); }
.chip--pastel-mint  { background: var(--pastel-mint); }
.chip--pastel-blue  { background: var(--pastel-blue); }
.chip--pastel-sage  { background: var(--pastel-sage); }
.chip--pastel-sand  { background: var(--pastel-sand); }
.chip--accent       { background: var(--accent); }

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(46, 46, 46, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(244, 241, 236, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(46, 46, 46, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wordmark-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.wordmark-tagline {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a:not(.btn) {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  transition: color 200ms var(--ease);
}

.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links .btn {
  padding: 11px 24px;
  font-size: 0.875rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  padding: 8px var(--gutter) 28px;
  background: rgba(244, 241, 236, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 24px rgba(46, 46, 46, 0.06);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: grid;
  gap: 4px;
}

.mobile-menu a:not(.btn) {
  display: block;
  padding: 12px 4px;
  font-size: 1.125rem;
  font-weight: 500;
}

.mobile-menu .btn {
  margin-top: 16px;
  width: 100%;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: 56px 72px;
  overflow: clip;
}

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--ink-muted);
  margin-bottom: 36px;
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.hero-visual {
  position: relative;
  padding: 24px 8px;
}

.blob {
  position: absolute;
  z-index: 0;
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  filter: blur(2px);
}

.blob--lavender {
  width: 78%;
  height: 82%;
  top: -4%;
  right: -6%;
  background: var(--accent);
  opacity: 0.55;
}

.blob--peach {
  width: 58%;
  height: 60%;
  bottom: -8%;
  left: -4%;
  background: var(--pastel-peach);
}

.browser-frame {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  transform: rotate(-2deg);
  transition: transform 300ms var(--ease);
}

.browser-frame:hover {
  transform: rotate(0deg) translateY(-4px);
}

.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #FBFAF7;
  border-bottom: 1px solid rgba(46, 46, 46, 0.07);
}

.browser-frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pastel-pink);
}

.browser-frame-bar i:nth-child(2) { background: var(--pastel-peach); }
.browser-frame-bar i:nth-child(3) { background: var(--pastel-mint); }

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
  .hero { padding-block: 80px 110px; }
}

/* 3D hero prototype: hidden until /js/hero-3d.js confirms the scene works,
   then it swaps places with the static browser-frame + CSS blobs. */
.hero-3d {
  display: none;
  position: relative;
  z-index: 1;
  aspect-ratio: 6 / 5;
  width: 100%;
}

.hero-3d canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.hero-visual.has-3d .hero-3d {
  display: block;
  animation: hero-3d-in 600ms var(--ease) both;
}

.hero-visual.has-3d .browser-frame,
.hero-visual.has-3d .blob {
  display: none;
}

@keyframes hero-3d-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --------------------------------------------------------------------------
   7. Social proof strip
   -------------------------------------------------------------------------- */
.social-proof {
  border-block: 1px solid rgba(46, 46, 46, 0.08);
  padding-block: 26px;
}

.social-proof-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 32px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.stars {
  color: var(--accent-strong);
  letter-spacing: 3px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   8. Product cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 640px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Silent preview video, revealed only while the card is hovered or focused. */
.product-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
}

.product-card.is-previewing .product-card-video {
  opacity: 1;
}

.product-card-blurb {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin: 0;
}

.product-card-swatches {
  display: inline-flex;
  gap: 6px;
}

.product-card-swatches i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(46, 46, 46, 0.15);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 30px;
  flex: 1;
}

.product-card-body h3 {
  font-size: 1.375rem;
}

.product-card-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.product-card {
  position: relative;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}

.product-card-price {
  font-weight: 600;
  font-size: 1.0625rem;
}

.product-card-view {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent-strong);
}

.grid-status {
  text-align: center;
  color: var(--ink-muted);
  padding-block: 48px;
}

/* --------------------------------------------------------------------------
   9. How it works
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 40px;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

.step {
  text-align: center;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.375rem;
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: var(--ink-muted);
  margin-inline: auto;
  max-width: 34ch;
}

/* --------------------------------------------------------------------------
   10. Value props band
   -------------------------------------------------------------------------- */
.value-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
}

.value-band-grid {
  display: grid;
  gap: 36px;
  padding: 64px 40px;
  text-align: center;
}

@media (min-width: 768px) {
  .value-band-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 80px 64px;
  }
}

.value-band h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.value-band p {
  color: rgba(244, 241, 236, 0.72);
  margin-inline: auto;
  font-size: 0.9375rem;
}

.value-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(184, 181, 232, 0.18);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.quote-card figcaption {
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   12. FAQ (details/summary)
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent-strong);
  transition: transform 200ms var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item-body {
  padding: 0 28px 24px;
  color: var(--ink-muted);
}

.faq-item-body a {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}

/* --------------------------------------------------------------------------
   13. Final CTA
   -------------------------------------------------------------------------- */
.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 18ch;
  margin: 0 auto 32px;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(46, 46, 46, 0.08);
  padding-block: 56px 40px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-grid h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-grid a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(46, 46, 46, 0.08);
  font-size: 0.8125rem;
}

.footer-bottom nav {
  display: flex;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   15. Shop page
   -------------------------------------------------------------------------- */
.page-hero {
  padding-block: 64px 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.page-hero p {
  margin: 16px auto 0;
  color: var(--ink-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-pill {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(46, 46, 46, 0.15);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink-muted);
  background: transparent;
  transition: all 200ms var(--ease);
}

.filter-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   16. Product detail page
   -------------------------------------------------------------------------- */
.product-layout {
  display: grid;
  gap: 48px;
  padding-block: 48px 72px;
}

@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
    align-items: start;
  }
}

.gallery-main {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.gallery-thumb {
  width: 76px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.gallery-thumb:hover { transform: translateY(-2px); }

.gallery-thumb[aria-current="true"] {
  border-color: var(--accent-strong);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 14px 0 10px;
}

.product-price {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.product-short {
  color: var(--ink-muted);
  font-size: 1.0625rem;
  margin-bottom: 28px;
}

/* Colour variant picker */
.variant-picker {
  margin-bottom: 30px;
}

.variant-label {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.variant-label strong {
  color: var(--ink);
  font-weight: 600;
}

.variant-swatches {
  display: flex;
  gap: 12px;
}

.variant-swatch {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.variant-swatch:hover {
  transform: translateY(-2px);
}

.variant-swatch-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(46, 46, 46, 0.12);
}

.variant-swatch[aria-checked="true"] {
  border-color: var(--ink);
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
}

.feature-list li::before {
  content: "✓";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--pastel-mint);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Practical caveats — deliberately quieter than the feature ticks. */
.note-list {
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 62ch;
}

.note-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.note-list li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--ink-muted);
  opacity: 0.5;
}

.buy-button {
  width: 100%;
}

.buy-error {
  display: none;
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--pastel-pink);
  font-size: 0.875rem;
  font-weight: 500;
}

.buy-error.is-visible { display: block; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-body {
  display: grid;
  gap: 56px;
  padding-bottom: var(--section-pad);
  max-width: 760px;
}

.product-body h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}

.product-body .prose p + p {
  margin-top: 1em;
}

.prose {
  color: var(--ink-muted);
}

.not-found {
  text-align: center;
  padding-block: 96px;
}

.not-found h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.not-found p {
  color: var(--ink-muted);
  margin: 0 auto 32px;
}

/* --------------------------------------------------------------------------
   17. Success page
   -------------------------------------------------------------------------- */
.success-wrap {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}

.success-inner p {
  margin: 20px auto 36px;
  color: var(--ink-muted);
  max-width: 52ch;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  align-items: center;
}

.checkmark-circle {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
}

.checkmark-circle circle {
  fill: var(--pastel-mint);
  stroke: var(--accent-strong);
  stroke-width: 2;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  animation: draw-circle 700ms var(--ease) forwards;
}

.checkmark-circle path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw-check 500ms var(--ease) 500ms forwards;
}

@keyframes draw-circle { to { stroke-dashoffset: 0; } }
@keyframes draw-check  { to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------------------
   18. About + legal pages
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--pastel-peach);
  aspect-ratio: 4 / 5;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy h2 {
  margin-bottom: 20px;
}

.about-copy p {
  color: var(--ink-muted);
}

.about-copy p + p {
  margin-top: 1em;
}

.legal-content {
  max-width: 720px;
  margin-inline: auto;
  padding-block: 24px var(--section-pad);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 12px;
}

.legal-content p,
.legal-content li {
  color: var(--ink-muted);
}

.legal-content ul {
  padding-left: 22px;
  margin-top: 8px;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   19. Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   20. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .browser-frame { transform: none; }
}
