:root {
  --cream-050: #fff8ed;
  --cream-100: #f9ecd8;
  --cream-200: #f2dcc0;
  --cream-300: #e9c6a1;
  --copper-500: #d27a3d;
  --copper-600: #b6632e;
  --sage-500: #5f7f57;
  --sage-700: #3f5e39;
  --ink-900: #1f2620;
  --ink-700: #2d3a31;
  --ink-500: #4f6156;
  --ink-350: #748777;
  --line: rgba(38, 54, 44, 0.16);
  --line-soft: rgba(38, 54, 44, 0.08);

  --surface: rgba(255, 248, 237, 0.82);
  --surface-strong: rgba(255, 248, 237, 0.92);
  --surface-dark: rgba(31, 38, 32, 0.78);
  --shadow-soft: 0 10px 30px rgba(24, 37, 29, 0.08);
  --shadow-strong: 0 20px 45px rgba(24, 37, 29, 0.16);

  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 30px;

  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Times New Roman", serif;

  --container: 1520px;
  --nav-height: 78px;
  --transition: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);

  --bg-image: none;
}

body[data-bg="home"] {
  --bg-image: url("../backgrounds/bg_home.jpg");
}

body[data-bg="pantry"] {
  --bg-image: url("../backgrounds/bg_pantry.jpg");
}

body[data-bg="cookbook"] {
  --bg-image: url("../backgrounds/bg_cookbook.jpg");
}

body[data-bg="shopping"] {
  --bg-image: url("../backgrounds/bg_shopping.jpg");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  background: linear-gradient(180deg, #fdeccf 0%, #f6dfbf 100%);
}

body {
  position: relative;
  color: var(--ink-900);
  font-family: var(--font-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  background-image: linear-gradient(
      130deg,
      rgba(255, 247, 232, 0.94),
      rgba(251, 228, 195, 0.76)
    ),
    radial-gradient(circle at 15% -10%, rgba(210, 122, 61, 0.35), transparent 42%),
    radial-gradient(circle at 85% 5%, rgba(95, 127, 87, 0.28), transparent 40%),
    var(--bg-image);
  background-size: auto, auto, auto, cover;
  background-attachment: fixed, fixed, fixed, fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    url("../brand/pp-paper-texture-tile.png"),
    radial-gradient(rgba(31, 38, 32, 0.08) 0.7px, transparent 0.7px);
  background-size: 920px 920px, 3px 3px;
  background-repeat: repeat, repeat;
  opacity: 0.18;
}

a {
  color: inherit;
}

a:hover {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.container {
  width: min(calc(100% - clamp(2rem, 4vw, 4rem)), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  background: linear-gradient(
    180deg,
    rgba(255, 248, 237, 0.92),
    rgba(255, 248, 237, 0.72)
  );
}

.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(31, 38, 32, 0.18);
  box-shadow: 0 6px 16px rgba(24, 37, 29, 0.12);
}

.brand-text {
  display: grid;
  gap: 0.08rem;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-subtitle {
  color: var(--ink-500);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

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

.nav-links a {
  border-radius: 999px;
  padding: 0.5rem 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-700);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.58);
}

.nav-links a[aria-current="page"] {
  background: rgba(31, 38, 32, 0.1);
  color: var(--ink-900);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-strong);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink-700);
  transition: transform var(--transition), opacity var(--transition);
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 760;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition),
    color var(--transition);
}

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

.btn:focus-visible {
  outline: 3px solid rgba(182, 99, 46, 0.3);
  outline-offset: 2px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--copper-600), var(--copper-500));
  border-color: rgba(107, 58, 26, 0.35);
  box-shadow: 0 10px 24px rgba(182, 99, 46, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 15px 28px rgba(182, 99, 46, 0.34);
}

.btn-outline {
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(31, 38, 32, 0.24);
}

.btn-ghost {
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.36);
  border-color: rgba(31, 38, 32, 0.14);
}

.btn-sm {
  min-height: 38px;
  padding-inline: 0.9rem;
  font-size: 0.9rem;
}

main {
  padding-bottom: 4rem;
}

.section {
  padding: clamp(2.75rem, 5vw, 3.5rem) 0;
}

.section-tight {
  padding: 2.2rem 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  font-weight: 760;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

h1,
h2 {
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.24;
}

p {
  margin: 0;
}

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

.small {
  font-size: 0.93rem;
  color: var(--ink-500);
}

.surface {
  background: linear-gradient(
    160deg,
    rgba(255, 249, 238, 0.95),
    rgba(255, 247, 232, 0.82)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 4.4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -140px -90px -140px -90px;
  pointer-events: none;
  background-image: url("../brand/pp-splash-hero-desktop.jpg?v=20260315-01");
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: saturate(0.92) contrast(1.06);
}

.hero > * {
  position: relative;
}

@media (max-width: 900px) {
  .hero::before {
    inset: -110px -60px -110px -60px;
    background-image: url("../brand/pp-splash-hero-mobile.png?v=20260315-01");
    opacity: 0.12;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.2rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  color: var(--ink-700);
  max-width: 58ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-top: 0.25rem;
}

.hero-showcase {
  padding: 1.05rem;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.35rem 0.66rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-700);
}

.device-card {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-strong);
}

.hero-notes {
  margin-top: 0.88rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.note-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.78rem;
  display: grid;
  gap: 0.2rem;
}

.note-card strong {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-700);
}

.stats-band {
  margin-top: 1.35rem;
  padding: 0.9rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.stat-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.56rem 0.72rem;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 760;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.62);
}

.section-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.feature-card,
.info-card {
  padding: 1.05rem;
  display: grid;
  gap: 0.55rem;
}

.feature-card h3,
.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper-600), var(--sage-500));
  box-shadow: 0 0 0 3px rgba(182, 99, 46, 0.14);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.flow-step {
  position: relative;
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
}

.flow-step .step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(95, 127, 87, 0.35);
  background: rgba(95, 127, 87, 0.14);
  font-weight: 800;
  color: var(--sage-700);
}

.callout {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(95, 127, 87, 0.26);
  background: linear-gradient(
    140deg,
    rgba(95, 127, 87, 0.14),
    rgba(95, 127, 87, 0.08)
  );
}

.panel {
  padding: 1.1rem;
}

.support-quick-note {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.7rem;
  border-color: rgba(95, 127, 87, 0.24);
}

.support-delete-shell {
  border-color: rgba(182, 99, 46, 0.24);
  box-shadow: var(--shadow-strong);
}

.support-card-grid {
  margin-top: 1rem;
}

.support-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  display: grid;
  gap: 0.6rem;
}

.support-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.support-card p,
.support-card li {
  color: var(--ink-700);
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.15rem;
}

.list-clean {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.48rem;
  color: var(--ink-700);
}

.form-shell {
  padding: 1.2rem;
}

form {
  display: grid;
  gap: 0.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.34rem;
  font-weight: 760;
  font-size: 0.92rem;
  color: var(--ink-700);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 44px;
  padding: 0.66rem 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
  color: var(--ink-900);
  transition: border-color var(--transition), box-shadow var(--transition);
}

textarea {
  min-height: 128px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: rgba(182, 99, 46, 0.8);
  box-shadow: 0 0 0 3px rgba(182, 99, 46, 0.18);
}

.form-message {
  margin: 0;
  padding: 0.66rem 0.75rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.form-message[data-state="success"] {
  background: rgba(95, 127, 87, 0.14);
  border-color: rgba(95, 127, 87, 0.34);
  color: var(--sage-700);
}

.form-message[data-state="error"] {
  background: rgba(182, 99, 46, 0.14);
  border-color: rgba(182, 99, 46, 0.32);
  color: #7e441e;
}

.faq {
  display: grid;
  gap: 0.72rem;
}

details {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  padding: 0.8rem 0.9rem;
}

summary {
  cursor: pointer;
  font-weight: 780;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin-top: 0.52rem;
  color: var(--ink-700);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.toc a {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  padding: 0.44rem 0.72rem;
  font-size: 0.85rem;
  font-weight: 760;
  color: var(--ink-700);
}

.toc a:hover {
  background: rgba(255, 255, 255, 0.9);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-btn {
  min-height: 36px;
  padding: 0.45rem 0.74rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-weight: 750;
  color: var(--ink-700);
  cursor: pointer;
}

.filter-btn.is-active {
  background: linear-gradient(135deg, var(--sage-500), var(--sage-700));
  border-color: rgba(63, 94, 57, 0.4);
  color: #fff;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.shot-card {
  margin: 0;
  display: grid;
  gap: 0.6rem;
  padding: 0.8rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.shot-card[hidden] {
  display: none;
}

.shot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.shot-card img {
  border-radius: 18px;
  border: 1px solid var(--line-soft);
}

.shot-card figcaption {
  display: grid;
  gap: 0.2rem;
}

.shot-title {
  font-size: 0.98rem;
  font-weight: 770;
  color: var(--ink-900);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(14, 19, 15, 0.8);
}

.lightbox[aria-hidden="false"] {
  display: flex;
}

.lightbox-dialog {
  width: min(860px, 100%);
  background: #0f1511;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: #dce8dd;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-close {
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.lightbox-image {
  width: min(580px, 100%);
  margin: 0 auto;
  padding: 0.8rem;
}

.lightbox-copy {
  padding: 0 0.95rem 1rem;
  color: #d2dfd4;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(
    160deg,
    rgba(255, 249, 238, 0.92),
    rgba(247, 233, 208, 0.72)
  );
  padding: 2.2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 1rem;
}

.footer-links {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 0.42rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 760;
  color: var(--ink-700);
}

.footer-links a:hover {
  text-decoration: underline;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

[data-reveal][data-delay="80"] {
  transition-delay: 80ms;
}

[data-reveal][data-delay="120"] {
  transition-delay: 120ms;
}

[data-reveal][data-delay="160"] {
  transition-delay: 160ms;
}

[data-reveal][data-delay="200"] {
  transition-delay: 200ms;
}

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

  *,
  [data-reveal] {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .grid-3,
  .flow-grid,
  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: calc(var(--nav-height) + 0.55rem);
    z-index: 120;
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-strong);
    background: var(--surface-strong);
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-links .btn {
    margin-top: 0.3rem;
  }

  .hero-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-notes {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 2.4rem 0;
  }

  .grid-3,
  .flow-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-cta {
    width: 100%;
  }
}
