/* ============================================
   HowTo PDFs — clean, simple design system
   ============================================ */

:root {
  --bg: #f7f5f2;
  --bg-elevated: #ffffff;
  --ink: #1a1a18;
  --ink-soft: #5c5a55;
  --ink-muted: #8a8780;
  --line: #e6e2db;
  --line-strong: #d4cfc5;
  --accent: #1f6b4a;
  --accent-hover: #18563b;
  --accent-soft: #e8f3ed;
  --warm: #c45c26;
  --warm-soft: #fdf0e8;
  --featured: #1a1a18;
  --shadow-sm: 0 1px 2px rgba(26, 26, 24, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 26, 24, 0.06);
  --shadow-lg: 0 20px 48px rgba(26, 26, 24, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --container: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

p:last-child {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, 680px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 4px;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: rgba(26, 26, 24, 0.05);
}

.nav-link.active {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.15s;
}

.cart-btn:hover {
  background: rgba(26, 26, 24, 0.06);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

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

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

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--bg-elevated);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.text-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
}

/* ---------- Hero ---------- */
.hero {
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.hero-lead,
.page-lead {
  font-size: 1.125rem;
  max-width: 34em;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.hero-stats li {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.hero-visual {
  position: relative;
  min-height: 360px;
}

.pdf-stack {
  position: relative;
  height: 100%;
  min-height: 360px;
}

.pdf-card {
  position: absolute;
  width: min(260px, 70%);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pdf-card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.pdf-card-body {
  padding: 0.9rem 1.15rem 1.15rem;
}

.pdf-card h3 {
  margin: 0.45rem 0 0.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
}

.pdf-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.pdf-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
}

.pdf-card-1 {
  top: 10%;
  left: 8%;
  z-index: 3;
  transform: rotate(-4deg);
}

.pdf-card-2 {
  top: 28%;
  right: 4%;
  z-index: 2;
  transform: rotate(5deg);
  background: #faf8f5;
}

.pdf-card-2 .pdf-tag {
  background: var(--warm-soft);
  color: var(--warm);
}

.pdf-card-3 {
  bottom: 8%;
  left: 22%;
  z-index: 1;
  transform: rotate(-1deg);
  opacity: 0.95;
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 36em;
}

.section-header.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

.section-header p {
  margin: 0;
}

.page-hero {
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.page-hero .page-lead {
  margin-inline: auto;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.feature-card h3 {
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s, transform 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.product-cover {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e8f3ed 0%, #f5efe6 55%, #fdf0e8 100%);
  position: relative;
  overflow: hidden;
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}

.product-card:hover .product-cover img {
  transform: scale(1.04);
}

.product-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 24, 0.28) 0%,
    transparent 40%,
    transparent 60%,
    rgba(26, 26, 24, 0.35) 100%
  );
  pointer-events: none;
}

.product-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  width: fit-content;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.product-level {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.product-body {
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.product-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0;
}

.product-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin: 0;
}

.product-body .product-desc {
  font-size: 0.9rem;
  flex: 1;
  margin: 0.35rem 0 0;
}

.product-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.product-pages {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ---------- Pricing teaser ---------- */
.teaser-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.teaser-copy h2 {
  margin-bottom: 0.65rem;
}

.teaser-copy .btn {
  margin-top: 0.5rem;
}

.teaser-prices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mini-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
}

.mini-price.highlight {
  background: var(--accent-soft);
  border-color: transparent;
}

.mini-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.mini-amount {
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}

.steps li {
  padding: 0;
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding-bottom: 5rem;
}

.cta-inner {
  background: var(--ink);
  color: #fff;
  border-radius: calc(var(--radius-lg) + 4px);
  padding: 3.5rem 2rem;
  text-align: center;
}

.cta-inner h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.cta-inner .hero-cta {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Shop toolbar ---------- */
.shop-section {
  padding-top: 1rem;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.sort-select {
  padding: 0.5rem 2rem 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--bg-elevated) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%585550' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  appearance: none;
  font-size: 0.875rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.results-count {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--ink-muted);
}

/* ---------- Pricing page ---------- */
.billing-toggle {
  display: inline-flex;
  padding: 0.3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.billing-btn {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.15s, color 0.15s;
}

.billing-btn.active {
  background: var(--ink);
  color: #fff;
}

.save-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
}

.billing-btn.active .save-badge {
  background: rgba(255, 255, 255, 0.2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 2rem 1.65rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.price-card-featured {
  background: var(--featured);
  border-color: var(--featured);
  color: #fff;
  transform: scale(1.03);
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.price-card-featured p,
.price-card-featured .price-note,
.price-card-featured .price-features {
  color: rgba(255, 255, 255, 0.72);
}

.price-card-featured h2 {
  color: #fff;
}

.price-card-featured .period {
  color: rgba(255, 255, 255, 0.55);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.price-card-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.price-card-header p {
  font-size: 0.925rem;
  margin-bottom: 0;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin: 1.5rem 0 0.35rem;
}

.currency {
  font-size: 1.35rem;
  font-weight: 600;
}

.amount {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.period {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-left: 0.25rem;
}

.price-note {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.price-features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.price-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.925rem;
  color: var(--ink-soft);
}

.price-card-featured .price-features li {
  color: rgba(255, 255, 255, 0.78);
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231f6b4a' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.price-card-featured .price-features li::before {
  background-color: rgba(255, 255, 255, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
}

/* Compare table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  min-width: 560px;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table th {
  font-weight: 600;
  background: rgba(26, 26, 24, 0.03);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  font-weight: 500;
  color: var(--ink);
}

.compare-table td {
  color: var(--ink-soft);
}

.check {
  color: var(--accent);
  font-weight: 600;
}

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

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.25rem 1.15rem;
  margin: 0;
  font-size: 0.95rem;
}

/* About */
.about-prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  font-size: 1.65rem;
}

.about-prose h2:first-child {
  margin-top: 0;
}

.plain-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.plain-list li {
  margin-bottom: 0.5rem;
}

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  margin-bottom: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-weight: 400;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  background: #f0ede8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  max-width: 22em;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.footer-col a {
  font-size: 0.925rem;
  color: var(--ink-soft);
  transition: color 0.15s;
}

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

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 24, 0.35);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.cart-overlay.open {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--bg-elevated);
  z-index: 210;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  font-size: 1.2rem;
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
}

.cart-close:hover {
  background: var(--bg);
  color: var(--ink);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.35rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  color: var(--ink);
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
  grid-column: 1;
}

.cart-item-price {
  font-weight: 700;
  font-size: 0.95rem;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

.cart-item-actions {
  grid-column: 1;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.cart-item-buy {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.cart-item-buy:hover {
  text-decoration: underline;
}

.cart-item-remove {
  font-size: 0.8rem;
  color: var(--warm);
  font-weight: 500;
  text-align: left;
  padding: 0;
  width: fit-content;
}

.cart-item-remove:hover {
  text-decoration: underline;
}

/* ---------- Checkout & success ---------- */
[hidden] {
  display: none !important;
}

.checkout-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.checkout-page main {
  flex: 1;
}

.checkout-page .site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 242, 0.96);
}

.checkout-page .header-inner {
  justify-content: space-between;
}

.checkout-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.demo-banner {
  background: var(--warm-soft);
  border-bottom: 1px solid #f0d4c0;
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.45;
}

.demo-banner .container {
  text-align: center;
}

.demo-banner strong {
  color: var(--warm);
}

.checkout-section {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.checkout-title {
  margin-bottom: 0.35rem;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
}

.checkout-lead {
  margin-bottom: 1.5rem;
  max-width: 36em;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.checkout-main {
  min-width: 0;
}

.checkout-summary {
  min-width: 0;
}

/* Form blocks — avoid fieldset/legend browser quirks */
.checkout-form {
  width: 100%;
  max-width: 100%;
}

.checkout-form fieldset.form-block {
  all: unset;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0 0 1.15rem;
  padding: 1.25rem 1.35rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.checkout-form legend {
  all: unset;
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 1rem;
  padding: 0;
  float: none;
}

.form-block {
  /* kept for any non-fieldset use */
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.field-hint {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-muted);
  margin: -0.35rem 0 1rem;
  line-height: 1.45;
}

.field-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.form-row {
  margin: 0 0 0.9rem;
  min-width: 0;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  width: 100%;
}

.checkout-form input,
.checkout-form select {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.3;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.checkout-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%585550' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.checkout-form input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.checkout-form input:focus,
.checkout-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--bg-elevated);
}

.checkout-actions {
  margin-top: 0.25rem;
}

.checkbox-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0.25rem 0 1.15rem;
  padding: 0.95rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
  cursor: pointer;
}

.checkbox-row span {
  flex: 1;
  min-width: 0;
}

.checkbox-row input[type="checkbox"] {
  margin: 0.15rem 0 0;
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
  border-radius: 4px;
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  min-height: 50px;
}

.checkout-form .btn-block {
  width: 100%;
}

.checkout-form .btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.checkout-fineprint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0.85rem 0 0;
  line-height: 1.45;
}

.summary-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow: auto;
}

.summary-card h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 1.1rem;
  letter-spacing: -0.01em;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid var(--line);
}

.summary-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.summary-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg);
  display: block;
}

.summary-item-info {
  min-width: 0;
}

.summary-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.2rem;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.summary-item-meta {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.35;
}

.summary-item-price {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  padding-top: 0.1rem;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.summary-line.total {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
}

.summary-line.total strong {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.summary-perks {
  list-style: none;
  margin: 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.summary-perks li {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-left: 1.35rem;
  position: relative;
  line-height: 1.4;
}

.summary-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.checkout-empty {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 28rem;
  margin-inline: auto;
}

.checkout-empty h1 {
  margin-bottom: 0.5rem;
}

.checkout-empty .btn {
  margin-top: 1rem;
}

.checkout-page .site-footer.checkout-footer {
  margin-top: auto;
  padding: 1.25rem 0;
  background: transparent;
  border-top: 1px solid var(--line);
}

.checkout-footer .footer-bottom {
  border-top: none;
  padding-top: 0;
  text-align: center;
}

.checkout-footer .footer-bottom p {
  font-size: 0.8rem;
}

/* Success */
.success-section {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.success-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
}

.success-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.65rem;
  box-shadow: var(--shadow-sm);
}

.success-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.success-meta strong {
  font-size: 0.95rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.downloads-heading {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.success-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.success-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.success-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}

.success-item-info {
  min-width: 0;
}

.success-item-title {
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.success-item-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.success-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.success-item-price {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  padding-top: 0.25rem;
}

.success-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 1.5rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Summary first on mobile so price is visible before form */
  .checkout-summary {
    order: -1;
  }

  .summary-card {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .success-meta {
    grid-template-columns: 1fr;
  }

  .success-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .success-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .product-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .product-actions {
    justify-content: stretch;
    width: 100%;
  }

  .product-actions .btn {
    flex: 1;
    text-align: center;
  }

  .checkout-header-meta .secure-badge {
    display: none;
  }

  .checkout-section {
    padding-top: 1.25rem;
  }

  .checkout-form fieldset.form-block {
    padding: 1.1rem 1rem 1rem;
  }

  .summary-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .summary-thumb {
    width: 48px;
    height: 48px;
  }
}

.cart-footer {
  padding: 1.25rem 1.35rem 1.5rem;
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.cart-total strong {
  font-size: 1.25rem;
}

.cart-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-align: center;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  max-width: min(90vw, 360px);
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    min-height: 300px;
    max-width: 420px;
    margin-inline: auto;
  }

  .feature-grid,
  .product-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-card-featured {
    transform: none;
  }

  .teaser-card {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .header-actions .btn-sm {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s;
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }

  .feature-grid,
  .product-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .section-header.row {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-select {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .page-hero {
    text-align: left;
  }

  .page-hero .page-lead {
    margin-inline: 0;
  }

  .billing-toggle {
    width: 100%;
  }

  .billing-btn {
    flex: 1;
    justify-content: center;
  }
}
