/* Hallmark pre-emit critique | Philosophy 4 | Hierarchy 5 | Execution 4 | Specificity 5 | Restraint 5 | Variety 4 */
:root {
  --paper: #fbf8f4;
  --panel: #f6eee5;
  --photo: #f8eee3;
  --ink: #28231f;
  --muted: #62534c;
  --accent: #684458;
  --rule: #daccc0;
  --white: #fff;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --gutter: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3 { min-width: 0; overflow-wrap: anywhere; font-family: var(--serif); font-style: normal; font-weight: 700; }
h1 { max-width: 14ch; font-size: clamp(2.65rem, 7.5vw, 4.65rem); line-height: 1; letter-spacing: -.043em; }
h2 { font-size: clamp(2rem, 5.4vw, 3.15rem); line-height: 1.08; letter-spacing: -.036em; }
h3 { font-size: clamp(1.18rem, 3vw, 1.54rem); line-height: 1.2; letter-spacing: -.019em; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.frame, .reading { width: min(calc(100% - var(--gutter) * 2), 55rem); margin-inline: auto; }
.reading { max-width: 40rem; }
.topline { border-bottom: 1px solid var(--rule); }
.masthead, .footer-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 51px; }
.masthead-title, .footer-line span:first-child { font: bold 1rem/1.2 var(--serif); }
.disclosure { color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }

.hero { background: var(--panel); border-bottom: 1px solid var(--rule); }
.hero-layout { display: grid; gap: 21px; padding-block: 26px 22px; }
.hero-copy { align-self: center; }
.label { color: var(--accent); font-size: .68rem; font-weight: 760; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.label span { margin-right: .54rem; font-variant-numeric: tabular-nums; }
.hero .label { margin-bottom: 12px; }
.lede { max-width: 36ch; margin-top: 14px; color: var(--muted); font-size: 1.02rem; }
.hero-picture { align-self: center; overflow: hidden; background: var(--photo); border: 1px solid var(--rule); border-radius: 5px; }

.chapter { padding-block: 38px; border-bottom: 1px solid var(--rule); }
.chapter .label { margin-bottom: 8px; }
.chapter h2 + p { max-width: 61ch; margin-top: 13px; color: var(--muted); }
.chapter figure:not(.comparison-photos figure, .variants figure) { margin-top: 19px; }
figcaption { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.detail-photo img, .demo-media { border-radius: 5px; }
.detail-photo figcaption { margin-top: 8px; }

.demo-media { position: relative; overflow: hidden; background: var(--panel); }
.demo-media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.demo-media.has-played video { opacity: 1; }
.demo-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; min-height: 46px; padding-top: 4px; }
.motion-control { min-height: 44px; padding: 4px 0 4px 12px; border: 0; background: none; color: var(--accent); font-weight: 720; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; cursor: pointer; }
.motion-control:hover { color: var(--ink); }
.motion-control:disabled { color: var(--muted); cursor: default; }

.steps { margin-top: 20px; border-block: 1px solid var(--rule); }
.step { padding: 16px 0; }
.step + .step { border-top: 1px solid var(--rule); }
.step-index { margin-bottom: 4px; color: var(--accent); font-size: .73rem; font-weight: 750; }
.step h3 + p { margin-top: 5px; color: var(--muted); font-size: .9rem; }

.comparison-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 15px; }
.comparison-photos img { border: 1px solid var(--rule); border-radius: 5px; background: var(--photo); }
.comparison-photos figcaption { display: grid; gap: 1px; padding-top: 7px; }
.comparison-photos strong { color: var(--ink); font-size: .81rem; }
.comparison-photos small { font-size: .71rem; }
.comparison { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .82rem; line-height: 1.42; text-align: left; }
.comparison th, .comparison td { padding: 10px 7px; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
.comparison th:first-child { width: 23%; }
.comparison thead { background: var(--panel); }
.comparison thead th { color: var(--accent); }
.comparison tbody td { color: var(--muted); }
.comparison-note { margin-top: 15px; padding: 11px 14px; border-left: 2px solid var(--accent); background: var(--panel); color: var(--muted); font-size: .91rem; }

.product-details { display: grid; gap: 16px; margin-top: 17px; }
.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.variants figure { padding: 7px; border: 1px solid var(--rule); border-radius: 5px; background: var(--white); text-align: center; }
.variants img { width: min(100%, 180px); margin-inline: auto; }
.variants figcaption { margin-top: 3px; color: var(--ink); font-weight: 650; }
.specs div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: .86rem; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 650; }

.faq { border: 0; }
.faq h2 { margin-bottom: 14px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; display: block; padding: 12px 27px 12px 0; color: var(--ink); font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; top: 16px; right: 5px; width: 8px; height: 8px; transform: rotate(45deg); border: solid var(--accent); border-width: 0 1.5px 1.5px 0; }
.faq details[open] summary::after { top: 20px; transform: rotate(225deg); }
.faq details p { padding-bottom: 13px; color: var(--muted); font-size: .93rem; }
.page-footer { border-top: 1px solid var(--rule); background: var(--panel); }
.footer-line { flex-wrap: wrap; padding-block: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-nav a, .policy a { color: var(--accent); text-underline-offset: .2em; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; font-weight: 650; }
.footer-nav a:hover, .policy a:hover { color: var(--ink); }
.footer-nav a[aria-current="page"] { color: var(--ink); }
.policy { min-height: 65vh; padding-block: 38px 50px; }
.policy .label { margin: 24px 0 8px; }
.policy h1 { max-width: none; font-size: clamp(2.6rem, 7vw, 3.7rem); }
.policy h2 { margin: 30px 0 8px; font-size: clamp(1.45rem, 4vw, 1.8rem); line-height: 1.2; }
.policy p { margin-top: 10px; color: var(--muted); }
.policy .policy-home { font-size: .9rem; font-weight: 650; }
.policy .policy-date { margin-bottom: 20px; font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .hero-layout { max-width: 34.375rem; padding-block: 36px; }
  .chapter { padding-block: 50px; }
  .steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { padding: 17px 19px 17px 0; }
  .step + .step { padding-inline: 19px 0; border-top: 0; border-left: 1px solid var(--rule); }
  .comparison { font-size: .91rem; }
  .comparison th, .comparison td { padding-inline: 12px; }
  .product-details { grid-template-columns: 1.12fr minmax(0, 1fr); align-items: center; gap: 22px; }
}

@media (min-width: 760px) {
  .hero-layout { max-width: 55rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; padding-block: 42px; }
  h1 { font-size: clamp(2.65rem, 5.7vw, 3.75rem); text-wrap: balance; }
}

:root {
  --purchase-accent: #684458;
  --purchase-hover: #4f3243;
  --purchase-surface: #fbf8f4;
  --purchase-card-radius: 5px;
  --purchase-layout-width: 75rem;
}

/* Product links */
.has-purchase-bar { scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
.has-purchase-bar body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
.product-content { min-width: 0; }
.purchase-sidebar { display: none; }

.purchase-link {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 5px;
  background: var(--purchase-accent);
  color: #fff;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.purchase-link:hover { background: var(--purchase-hover); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .purchase-link::after {
    position: absolute;
    inset: -2px;
    border: 2px solid var(--purchase-accent);
    border-radius: 7px;
    content: "";
    pointer-events: none;
    opacity: 0;
    animation: purchase-breathe 4.4s ease-in-out infinite;
    animation-delay: .6s;
  }
  .purchase-bar .purchase-link::after { animation-delay: 1.5s; }
  .purchase-link:is(:hover, :focus)::after { animation: none; }
}

@keyframes purchase-breathe {
  0% { opacity: 0; transform: scale(.985, .97); }
  19% { opacity: .55; transform: scale(1.012, 1.045); }
  43%, 100% { opacity: 0; transform: scale(1.04, 1.18); }
}

.purchase-bar {
  position: fixed;
  z-index: 10;
  inset: auto 0 0;
  display: grid;
  justify-items: center;
  padding: 9px max(var(--gutter), env(safe-area-inset-right, 0px))
    calc(9px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--rule);
  background: var(--purchase-surface);
}
.purchase-bar .purchase-link { width: 100%; max-width: 22rem; }

@media (min-width: 960px) {
  .purchase-bar .purchase-link { max-width: 36rem; }
}

@media (min-width: 1040px) and (min-height: 540px) {
  .product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17rem;
    align-items: start;
    gap: 28px;
    width: min(calc(100% - var(--gutter) * 2), var(--purchase-layout-width));
    margin-inline: auto;
  }
  .purchase-sidebar {
    display: grid;
    gap: 14px;
    margin-top: 20px;
    padding: 24px 20px 20px;
    border: 1px solid var(--rule);
    border-radius: var(--purchase-card-radius);
    background: var(--purchase-surface);
    text-align: center;
  }
  .purchase-sidebar h2 { font-size: 1.5rem; line-height: 1.22; }
  .purchase-sidebar img { width: min(100%, 180px); margin-inline: auto; }
  .purchase-sidebar p { color: var(--muted); font-size: .87rem; line-height: 1.5; }
  .purchase-sidebar .purchase-link { min-height: 54px; font-size: 1rem; }
  .purchase-benefits {
    display: grid;
    gap: 10px;
    margin: 2px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--rule);
    list-style: none;
    font-size: .87rem;
    line-height: 1.35;
    text-align: left;
  }
  .purchase-benefits li { display: flex; align-items: flex-start; gap: 9px; }
  .purchase-check {
    display: inline-grid;
    place-items: center;
    flex: 0 0 19px;
    height: 19px;
    border: 1px solid #25734c;
    border-radius: 50%;
    color: #25734c;
    font: bold .8rem/1 system-ui, sans-serif;
  }
  .purchase-sidebar .purchase-colors { font-size: .78rem; }
  .demo-product-layout .hero-layout { padding-block: 34px; }
  .demo-product-layout .hero h1 { font-size: clamp(2.65rem, 4.3vw, 3.75rem); }
}

@media (min-width: 1040px) and (min-height: 740px) {
  .purchase-sidebar { position: sticky; top: 20px; }
}
