﻿:root {
  --bg: #f8f1e7;
  --bg2: #f3e8da;
  --card: #ffffff;
  --text: #2a2018;
  --muted: #6a5646;
  --line: #a8884a;
  --accent: #c9a06b;
  --accent2: #f1d7a6;
  --accent3: #b3834e;
  --shadow: 0 16px 32px rgba(77, 50, 28, 0.12);
  --radius: 20px;
  --max: 1160px;
  --pad: 24px;
  --display: 'DM Serif Display', Georgia, serif;
  --body: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --edge: #c9a06b;
  --edgeGlow: rgba(201, 160, 107, 0.25);
  --edgeSoft: rgba(201, 160, 107, 0.15);
  --btnA: #d8b07b;
  --btnB: #f1d7a6;
  --btnText: #2a1a0d;
  --glass: rgba(255, 255, 255, 0.65);
  --glass2: rgba(255, 255, 255, 0.85);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--bg), var(--bg2) 70%);
}

body.bg-video {
  --bg: #0c1016;
  --bg2: #0f1620;
  --card: #141d2a;
  --text: #f2f5f9;
  --muted: #b7c0cc;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ff6b4a;
  --accent2: #a7ff5a;
  --accent3: #3ad1ff;
  --edge: #2fe7ff;
  --edgeGlow: rgba(47, 231, 255, 0.22);
  --edgeSoft: rgba(47, 231, 255, 0.14);
  --btnA: #ff6b4a;
  --btnB: #a7ff5a;
  --btnText: #07100c;
  --glass: rgba(255, 255, 255, 0.06);
  --glass2: rgba(255, 255, 255, 0.1);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), #07090d 70%);
}

body.bg-video .site-header {
  background: rgba(8, 12, 18, 0.78);
  border-bottom: 1px solid rgba(47, 231, 255, 0.2);
}

body.bg-video .nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #2fe7ff;
  box-shadow: 0 0 16px rgba(47, 231, 255, 0.2);
}

body.bg-video .nav-cta {
  background: linear-gradient(135deg, #ff6b4a, #a7ff5a);
  border: 1px solid #2fe7ff;
  color: #07100c !important;
  box-shadow:
    0 0 24px rgba(47, 231, 255, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

body.bg-video .nav-cta:hover {
  box-shadow:
    0 0 32px rgba(47, 231, 255, 0.35),
    0 12px 36px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(47, 231, 255, 0.12);
}

body.bg-video .hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.bg-video .hero-video-overlay {
  background: rgba(7, 9, 13, 0.48);
}
body.bg-video .hero-video-vignette {
  background: radial-gradient(60% 60% at 50% 35%, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}

body.bg-video .kicker {
  color: #dfe7f1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.bg-video .store-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

body.bg-video .hero-badges span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dfe7f1;
}

body.bg-video .hamburger {
  background: rgba(255, 255, 255, 0.04);
}

body.bg-video .hamburger span {
  background: rgba(233, 238, 247, 0.85);
}

body.bg-video .fineprint {
  color: rgba(169, 182, 199, 0.75);
}

body.bg-video .section.alt {
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.9), rgba(8, 12, 18, 0));
  border-top: 1px solid rgba(47, 231, 255, 0.12);
  border-bottom: 1px solid rgba(47, 231, 255, 0.12);
}

body.bg-video .section-title {
  color: #e6edf3;
}
body.bg-video .section-subtitle {
  color: #c9d2dc;
}

body.bg-video .feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

body.bg-video .feature-media {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
}

body.bg-video .panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.bg-video .split p {
  color: #c9d2dc;
}
body.bg-video .bullets {
  color: rgba(233, 238, 247, 0.86);
}

body.bg-video .chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(233, 238, 247, 0.88);
}

body.bg-video .insight-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.bg-video .insight-card h3 {
  color: #e6edf3;
}
body.bg-video .insight-card p {
  color: #c9d2dc;
}

body.bg-video .footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body.bg-video .footer-inner {
  color: rgba(169, 182, 199, 0.85);
}

body.bg-video .pattern-block {
  background: rgba(14, 18, 26, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

body.bg-video .pattern-block::before {
  background: linear-gradient(
    135deg,
    rgba(214, 176, 122, 0.6),
    rgba(122, 214, 255, 0.25),
    transparent 60%
  );
}

body.bg-video .muted {
  color: rgba(217, 204, 188, 0.75);
}

body.bg-video .diamond {
  background: rgba(14, 18, 26, 0.65);
  border: 1px solid rgba(214, 176, 122, 0.5);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  color: var(--text);
}

body.bg-video .btn-secondary {
  background: rgba(12, 16, 24, 0.7);
  color: var(--text);
  border: 1px solid rgba(214, 176, 122, 0.5);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

body.bg-video .pattern-card {
  background: rgba(14, 18, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

body.bg-video .pattern-card-title {
  color: #f7f1ea;
}

body.bg-video .pattern-input {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 14, 20, 0.9);
  color: #f4efe6;
}

body.bg-video .logbook-day,
body.bg-video .logbook-clear,
body.bg-video .entries-back {
  border: 1px solid var(--edgeGlow);
  background: linear-gradient(135deg, rgba(15, 22, 32, 0.8), rgba(20, 29, 42, 0.8));
  color: #fff;
  box-shadow: 0 0 16px rgba(47, 231, 255, 0.08);
}

body.bg-video .entries-back:hover,
body.bg-video .logbook-clear:hover {
  background: linear-gradient(135deg, rgba(20, 29, 42, 0.95), rgba(25, 35, 50, 0.95));
  border-color: var(--edge);
  box-shadow: 0 0 24px rgba(47, 231, 255, 0.15);
}

body.bg-video .logbook-day:focus {
  border-color: var(--edge);
  box-shadow: 0 0 24px rgba(47, 231, 255, 0.15);
}

body.bg-video .logbook-card {
  background: linear-gradient(135deg, rgba(15, 22, 32, 0.7), rgba(20, 29, 42, 0.7));
  border: 1px solid var(--edgeGlow);
  box-shadow:
    0 0 24px rgba(47, 231, 255, 0.08),
    inset 0 1px 0 rgba(47, 231, 255, 0.1);
}

body.bg-video .logbook-form label {
  color: rgba(233, 238, 247, 0.92);
}

body.bg-video .logbook-form input,
body.bg-video .logbook-form select {
  border: 1px solid var(--edgeGlow);
  background: rgba(20, 29, 42, 0.8);
  color: #fff;
}

body.bg-video .logbook-form input:focus,
body.bg-video .logbook-form select:focus {
  border-color: var(--edge);
  box-shadow:
    0 0 16px rgba(47, 231, 255, 0.15),
    inset 0 0 8px rgba(47, 231, 255, 0.08);
  background: rgba(25, 35, 50, 0.9);
}

body.bg-video .logbook-add {
  border: 1px solid var(--edge);
  box-shadow:
    0 0 24px var(--edgeGlow),
    0 12px 36px rgba(47, 231, 255, 0.2);
}

body.bg-video .logbook-add:hover {
  box-shadow:
    0 0 40px var(--edgeGlow),
    0 18px 48px rgba(47, 231, 255, 0.3),
    0 0 0 2px rgba(47, 231, 255, 0.12);
}

body.bg-video .logbook-tip {
  color: rgba(169, 182, 199, 0.85);
}

body.bg-video .total {
  background: linear-gradient(135deg, rgba(20, 29, 42, 0.7), rgba(15, 22, 32, 0.7));
  border: 1px solid var(--edgeGlow);
  box-shadow: 0 0 16px rgba(47, 231, 255, 0.08);
}

/* IMPORTANT: global overlay ONLY on non-logbook pages */
body:not(.page-logbook)::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(240px 140px at 12% 15%, rgba(214, 176, 122, 0.18), transparent 70%),
    radial-gradient(200px 160px at 90% 25%, rgba(241, 215, 166, 0.2), transparent 75%);
  pointer-events: none;
  z-index: -1;
}

body.bg-video:not(.page-logbook)::before {
  background:
    radial-gradient(240px 140px at 12% 15%, rgba(255, 107, 74, 0.2), transparent 70%),
    radial-gradient(200px 160px at 90% 25%, rgba(58, 209, 255, 0.2), transparent 75%);
}


img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

/* Reveal */
.reveal {
  animation: rise 0.7s ease both;
  animation-delay: var(--delay, 0s);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.section-locked {
  padding: 30px 0;
}
.section-locked .container {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
}
.section-locked .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 12px;
}
.section-locked .feature {
  display: flex;
  flex-direction: column;
  height: 230px;
}
.section-locked .feature-media {
  flex: 0 0 auto;
  height: 115px;
}
.section-locked .feature-body {
  flex: 1 1 auto;
  padding: 10px;
}
.section-locked .section-title {
  font-size: 24px;
  margin-bottom: 6px;
}
.section-locked .section-subtitle {
  font-size: 14px;
  margin-bottom: 14px;
}
.section-locked .feature h3 {
  font-size: 14px;
  margin: 0 0 6px;
}
.section-locked .feature p {
  font-size: 12px;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .section-locked .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: auto;
  }
}
@media (max-width: 600px) {
  .section-locked {
    min-height: auto;
  }
  .section-locked .feature-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--line);
}
.site-header,
.site-header * {
  pointer-events: auto;
}

.bgWrap,
.bgVideo,
.bgOverlay,
.bgGrain {
  pointer-events: none;
}
.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 0;
  gap: 16px;
}
.header-inner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(245, 236, 223, 0.55));
  border: 1px solid rgba(168, 136, 74, 0.55);
  box-shadow:
    0 8px 18px rgba(77, 50, 28, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(1.15);
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
  pointer-events: none;
  z-index: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.12);
  transform-origin: center;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 10px rgba(77, 50, 28, 0.18));
}
.brand-text {
  font-size: 13px;
  opacity: 0.9;
}

.nav {
  display: flex;
  margin-left: auto;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
}
.nav a {
  position: relative;
  display: inline-grid;
  place-items: center;
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 14px;
  transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}
.nav a::after {
  content: attr(data-label);
  grid-area: 1 / 1;
  font-weight: 700;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}
.nav a .nav-label {
  grid-area: 1 / 1;
}
.nav .auth-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 14px;
  transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  background: none;
  border: none;
  cursor: pointer;
  list-style: none;
}
.nav .auth-link::after {
  content: attr(data-label);
  grid-area: 1 / 1;
  font-weight: 700;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}
.nav .auth-link .nav-label {
  grid-area: 1 / 1;
}

.auth-details {
  position: relative;
  display: inline-block;
}

.auth-details > summary::-webkit-details-marker {
  display: none;
}

.auth-details > summary {
  list-style: none;
  font-weight: inherit;
  line-height: 1;
}

.auth-details > summary::marker {
  content: '';
}

.auth-details[open] > summary {
  background: var(--edgeSoft);
  color: var(--accent3);
  box-shadow: 0 0 16px var(--edgeGlow);
  font-weight: inherit;
}

.auth-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  min-width: 160px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 20;
}
.nav a:hover {
  background: var(--edgeSoft);
  color: var(--accent3);
  box-shadow: 0 0 16px var(--edgeGlow);
}
.nav-cta {
  background: linear-gradient(135deg, var(--btnA), var(--btnB));
  border: 1px solid var(--edge);
  color: var(--btnText) !important;
  box-shadow:
    0 0 20px var(--edgeGlow),
    0 8px 24px rgba(201, 160, 107, 0.2);
  transition: all 0.3s ease;
}
.nav-cta:hover {
  box-shadow:
    0 0 32px var(--edgeGlow),
    0 12px 36px rgba(201, 160, 107, 0.25),
    0 0 0 2px rgba(201, 160, 107, 0.1);
  transform: translateY(-2px);
}

/* Mobile */
.hamburger {
  display: none;
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hamburger-overlay {
  display: none;
}
@media (max-width: 680px) {
  .hamburger-overlay {
    position: fixed;
    top: 14px;
    right: var(--pad);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    z-index: 2000;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    pointer-events: auto;
    touch-action: manipulation;
  }
}
@media (max-width: 680px) {
  .hamburger {
    position: absolute;
    right: var(--pad);
    top: 50%;
    transform: translateY(-50%);
  }
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #2a2018;
  margin: 5px auto;
  border-radius: 2px;
}
.mobile-nav {
  position: relative;
  z-index: 1;
  display: none;
  padding: 10px var(--pad) 18px;
  border-top: 1px solid var(--line);
}
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}
.mobile-nav-backdrop[hidden] {
  display: none;
}
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}
.mobile-nav-backdrop[hidden] {
  display: none;
}
.mobile-nav[hidden] {
  display: none;
}
.mobile-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}
.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 52px 0 20px;
  overflow: hidden;
  border-bottom: 1px solid rgba(201, 160, 107, 0.3);
  z-index: 0;
  background-color: #fcf8f2;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: -15% -10% -20% -10%;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-color: #fcf8f2;
  filter: blur(6px) saturate(105%);
  opacity: 0.85;
}
.hero::before {
  background-image:
    radial-gradient(520px 520px at 18% 28%, rgba(167, 196, 166, 0.55), transparent 62%),
    radial-gradient(600px 600px at 78% 18%, rgba(202, 134, 86, 0.45), transparent 64%),
  pointer-events: none;
    radial-gradient(640px 640px at 72% 78%, rgba(233, 214, 188, 0.6), transparent 66%);
  animation: hero-orb-drift 20s ease-in-out infinite alternate;
}
.hero::after {
  background-image:
    radial-gradient(520px 520px at 20% 70%, rgba(202, 134, 86, 0.35), transparent 62%),
    radial-gradient(540px 540px at 85% 55%, rgba(167, 196, 166, 0.4), transparent 64%);
  animation: hero-orb-drift-alt 20s ease-in-out infinite alternate;
  opacity: 0.6;
  pointer-events: none;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 250, 242, 0.6);
  pointer-events: none;
}
.hero-video-vignette {
  position: absolute;
  inset: -2px;
  background: radial-gradient(
    60% 60% at 50% 35%,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 250, 242, 0.5) 100%
  );
  pointer-events: none;
}

@keyframes hero-orb-drift {
  0% {
    transform: translate3d(-1.5%, -1%, 0);
  }
  50% {
    transform: translate3d(1.5%, 1.25%, 0);
  }
  100% {
    transform: translate3d(3%, -0.5%, 0);
  }
}

@keyframes hero-orb-drift-alt {
  0% {
    transform: translate3d(2%, 1%, 0);
  }
  50% {
    transform: translate3d(-1.5%, -1.5%, 0);
  }
  100% {
    transform: translate3d(-3%, 0.75%, 0);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 34px;
}
.kicker {
  display: inline-flex;
  gap: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  margin: 0 0 16px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 4.5vw, 62px);
  line-height: 1.05;
  margin: 0 0 12px;
}
.subhead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 60ch;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 8px;
}
.store-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 236, 223, 0.85));
  box-shadow: var(--shadow);
  min-width: 190px;
}
.store-btn:hover {
  transform: translateY(-1px);
  transition: transform 0.15s ease;
}
.store-top {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.store-main {
  font-size: 16px;
  font-weight: 800;
}
.fineprint {
  margin: 6px 0 0;
  color: #8a7664;
  font-size: 12px;
}
.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.hero-badges span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

/* iPad 3D Mockup */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  position: relative;
  padding: 28px 16px;
}

.ipad-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 5/6;
}

.ipad-device {
  width: 100%;
  height: 100%;
  position: relative;
  transform: none;
  filter: none;
  transition: none;
}

.ipad-device:hover {
  transform: none;
}

.ipad-frame {
  width: 100%;
  height: 100%;
  background: #f2f2f2;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ipad-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #f5f5f7, #ffffff);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.ipad-status {
  display: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 8px 20px;
  background: linear-gradient(to bottom, #f5f5f7, rgba(245, 245, 247, 0.95));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-weight: 600;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.status-left {
  flex: 1;
  text-align: left;
}

.status-right {
  flex: 1;
  text-align: right;
  font-size: 12px;
  letter-spacing: 2px;
}

.ipad-header {
  padding: 20px 24px 16px 24px;
  background: linear-gradient(to right, #f5f5f7, #ffffff);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ipad-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #1d1d1f;
  letter-spacing: -0.5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.header-sub {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #86868b;
  font-weight: 400;
}

.nutrition-grid {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: #f5f5f7;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nutrition-grid::-webkit-scrollbar {
  display: none;
}

.nutrition-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.macro-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 170px;
}

.macro-video {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.macro-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.macro-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.12)
  );
}

.nutrition-card h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.macro-display {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.macro-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.macro-label {
  font-size: 12px;
  color: #86868b;
  font-weight: 500;
}

.macro-value {
  font-size: 16px;
  font-weight: 700;
  color: #007aff;
}

.macro-percent {
  font-size: 11px;
  color: #a1a1a6;
}

.calories-display {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.calories-value {
  font-size: 32px;
  font-weight: 800;
  color: #34c759;
}

.calories-goal {
  font-size: 12px;
  color: #86868b;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e5ea;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #34c759, #30b0c0);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.meals-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meal-item-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.meal-item-summary:last-child {
  border-bottom: none;
}

.meal-cal {
  font-weight: 600;
  color: #007aff;
}

.water-display {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.water-cups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.cup {
  font-size: 18px;
  opacity: 0.3;
  transition: opacity 0.2s;
}

.cup.filled {
  opacity: 1;
}

.water-label {
  font-size: 12px;
  color: #86868b;
}

/* Glass reflection effects */
.ipad-glass {
  display: none;
}

.ipad-gloss {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
}

.ipad-shadow {
  position: absolute;
  display: none;
}

.ipad-glow {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-visual {
    min-height: 500px;
    padding: 30px 10px;
  }

  .ipad-container {
    max-width: 100%;
  }

  .ipad-device {
    transform: rotateX(30deg) rotateY(-18deg) rotateZ(10deg) scale(0.9);
  }

  .ipad-header h1 {
    font-size: 24px;
  }

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

  .nutrition-card {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    min-height: 400px;
  }

  .ipad-device {
    transform: rotateX(35deg) rotateY(-20deg) rotateZ(12deg) scale(0.85);
  }

  .ipad-frame {
    border-radius: 36px;
    padding: 12px;
  }

  .ipad-screen {
    border-radius: 32px;
  }

  .ipad-header {
    padding: 16px 20px 12px 20px;
  }

  .ipad-header h1 {
    font-size: 20px;
  }

  .nutrition-grid {
    gap: 10px;
    padding: 10px;
  }

  .nutrition-card {
    padding: 12px;
    border-radius: 16px;
  }

  .nutrition-card h3 {
    font-size: 12px;
  }
}

/* Sections */
.section {
  padding: 50px 0;
}
.section.alt {
  background: linear-gradient(180deg, rgba(245, 236, 223, 0.9), rgba(248, 241, 231, 0));
  border-top: 1px solid rgba(201, 160, 107, 0.35);
  border-bottom: 1px solid rgba(201, 160, 107, 0.35);
}
.section-title {
  font-size: 30px;
  margin: 0 0 8px;
  color: #2a2018;
}
.section-subtitle {
  margin: 0 0 22px;
  color: #6a5646;
  max-width: 70ch;
  line-height: 1.6;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(77, 50, 28, 0.12);
}
.feature-media {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #f5eee4;
  min-height: 160px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.feature:hover .feature-media img {
  transform: scale(1.05);
}
.feature-body {
  padding: 14px 14px 16px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}
.split h2 {
  margin: 0 0 10px;
  font-size: 30px;
}
.split p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

/* Daily flow callout */
.flow-callout {
  background: #f5efe6;
}

.flow-callout-inner {
  align-items: center;
  gap: 32px;
  grid-template-columns: 1fr;
}

.flow-callout-copy {
  text-align: left;
  order: 1;
}

.flow-callout-title {
  margin: 0 0 20px;
  font-weight: 500;
  font-size: clamp(2.0rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #241c14;
  opacity: 1;
  transform: none;
}

.flow-callout-body {
  margin: 0 0 28px;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 42ch;
  color: #2f241b;
  opacity: 0.88;
  transform: none;
}

.flow-callout-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.flow-callout-feature {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(47, 36, 27, 0.82);
  opacity: 1;
}

.flow-callout-check {
  font-size: 0.9em;
  color: rgba(90, 72, 55, 0.6);
  opacity: 0.6;
}

.flow-callout-cta {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(90, 72, 55, 0.65);
  opacity: 0.65;
}

.flow-callout-media {
  display: flex;
  justify-content: flex-end;
  opacity: 1;
  order: 2;
}

.flow-callout.in-view .flow-callout-title {
  animation: flow-fade-up 320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.flow-callout.in-view .flow-callout-body {
  animation: flow-fade-up-body 360ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}

.flow-callout.in-view .flow-callout-cta {
  animation: flow-fade-cta 260ms ease 220ms forwards;
}

.flow-callout.in-view .flow-callout-feature {
  animation: flow-fade 240ms ease forwards;
  animation-delay: calc(260ms + (var(--stagger, 0) * 80ms));
}

.flow-callout.in-view .flow-callout-media {
  animation: flow-fade 260ms ease 260ms forwards;
}

@media (prefers-reduced-motion: reduce) {
  .flow-callout.in-view .flow-callout-title,
  .flow-callout.in-view .flow-callout-body,
  .flow-callout.in-view .flow-callout-cta,
  .flow-callout.in-view .flow-callout-feature,
  .flow-callout.in-view .flow-callout-media {
    animation: none;
  }
}

@keyframes flow-fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flow-fade-up-body {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 0.88;
    transform: translateY(0);
  }
}

@keyframes flow-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes flow-fade-cta {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.65;
  }
}

@media (max-width: 820px) {
  .flow-callout-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .flow-callout-media {
    width: 100%;
    justify-content: flex-start;
  }

  .flow-callout-body {
    font-size: 1.05rem;
    max-width: 38ch;
  }
}

@media (min-width: 900px) {
  .flow-callout-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .flow-callout-copy {
    order: 1;
  }

  .flow-callout-media {
    order: 2;
  }
}
.bullets {
  margin: 0 0 16px;
  padding-left: 18px;
  color: #6a5646;
}
.bullets li {
  margin: 8px 0;
}
.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.panel-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.panel-text {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}
.panel-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff7ec;
  color: #2a2018;
  font-weight: 700;
  font-size: 12px;
}
.mini-panel {
  padding: 14px 18px;
}

.store-badges {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: start;
}
.store-badge {
  width: min(260px, 100%);
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(168, 136, 74, 0.35);
  box-shadow: 0 16px 32px rgba(77, 50, 28, 0.16);
  background: #2a2018;
}

/* Insights */
.insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.insight-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.insight-card h3 {
  margin: 0 0 6px;
  color: #2a2018;
}
.insight-card p {
  margin: 0;
  color: #6a5646;
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #6a5646;
  font-weight: 600;
}
.footer a:hover {
  color: var(--text);
}

/* ===========================
   LOGBOOK VIDEO BACKGROUND (SCOPED)
   =========================== */
.page-logbook {
  background: transparent !important;
}
.page-logbook .video-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
}
.page-logbook .video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}
.page-logbook .video-bg .overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 250, 242, 0.65);
}
.page-logbook .video-bg .vignette {
  position: absolute;
  inset: -2px;
  background: radial-gradient(
    60% 60% at 50% 35%,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 250, 242, 0.55) 100%
  );
}

/* Logbook layout helpers (your nutrition.html already uses these classes) */
.logbook {
  padding: 48px 0 80px;
}
.logbook-head h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 52px);
  margin: 0;
}
.logbook-sub {
  margin: 6px 0 0;
  color: var(--muted);
}
.logbook-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.logbook-day,
.logbook-clear,
.entries-back {
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #a8884a;
  background: #fff7ec;
  color: #2a2018;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 22px rgba(77, 50, 28, 0.12);
}
.entries-back:hover,
.logbook-clear:hover {
  background: #fff2e4;
  border-color: rgba(201, 160, 107, 0.6);
  box-shadow: 0 0 18px rgba(201, 160, 107, 0.2);
}
.logbook-day:focus {
  outline: none;
  border-color: rgba(201, 160, 107, 0.6);
  box-shadow: 0 0 18px rgba(201, 160, 107, 0.2);
}
.logbook-card {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid #a8884a;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 30px rgba(77, 50, 28, 0.12);
}
.logbook-card-title {
  font-weight: 900;
  margin-bottom: 10px;
}
.logbook-form {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr repeat(4, 0.8fr) auto;
  gap: 10px;
}
.logbook-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  color: #5c4a3a;
}
.logbook-form input,
.logbook-form select {
  height: 42px;
  border-radius: 14px;
  border: 1px solid #a8884a;
  background: #ffffff;
  color: #2a2018;
  padding: 0 12px;
  transition: all 0.2s ease;
}
.logbook-form input:focus,
.logbook-form select:focus {
  outline: none;
  border-color: rgba(201, 160, 107, 0.6);
  box-shadow: 0 0 12px rgba(201, 160, 107, 0.2);
  background: #ffffff;
}
.logbook-add {
  background: linear-gradient(135deg, var(--btnA), var(--btnB));
  color: var(--btnText);
  border: 1px solid rgba(201, 160, 107, 0.6);
  border-radius: 14px;
  padding: 0 20px;
  height: 42px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(77, 50, 28, 0.18);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.logbook-add:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 18px rgba(201, 160, 107, 0.25),
    0 16px 34px rgba(77, 50, 28, 0.2),
    0 0 0 2px rgba(201, 160, 107, 0.12);
}
.logbook-tip {
  margin: 10px 0 0;
  color: #6a5646;
  font-size: 12px;
}
.logbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.total {
  background: #fffaf2;
  border: 1px solid #a8884a;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 22px rgba(77, 50, 28, 0.12);
}
.total .k {
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
}
.total .v {
  font-size: 22px;
  font-weight: 900;
}

/* Responsive */
@media (max-width: 980px) {
  .header-inner {
    padding: 14px 0;
  }
  .nav {
    gap: 12px;
    font-size: 14px;
  }
  .nav a {
    padding: 8px 10px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 38px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .insights {
    grid-template-columns: 1fr;
  }
  .logbook-grid {
    grid-template-columns: 1fr;
  }
  .logbook-form {
    grid-template-columns: 1fr 1fr;
  }
  .logbook-add {
    grid-column: 1/-1;
  }
}
@media (max-width: 680px) {
  .hamburger {
    z-index: 1201;
  }
  .site-header.has-react-menu .hamburger {
    display: block;
  }
  .nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .mobile-nav {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 30px rgba(77, 50, 28, 0.12);
  }
  .header-inner {
    padding: 12px 0;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .brand-text {
    font-size: 12px;
    letter-spacing: 0.18em;
  }
  .mobile-nav a {
    font-size: 15px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .store-btn {
    width: 100%;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-inner {
    gap: 20px;
  }
  .hero {
    padding-top: 32px;
  }
  .kicker {
    font-size: 12px;
    padding: 6px 12px;
  }
  .hero h1 {
    font-size: clamp(30px, 8vw, 40px);
  }
  .subhead {
    font-size: 15px;
  }
  .hero-badges {
    gap: 8px;
  }
  .hero-badges span {
    font-size: 12px;
  }
  .hero-visual {
    min-height: auto;
    padding: 12px 0 18px;
  }
  .store-badges {
    justify-items: center;
  }
  .store-badge {
    width: min(240px, 100%);
  }
  .ipad-device {
    transform: none;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.35));
  }
  .section {
    padding: 36px 0;
  }
  .section-title {
    font-size: 24px;
  }
  .section-subtitle {
    font-size: 14px;
  }
  .split h2 {
    font-size: 24px;
  }
  .split p,
  .bullets {
    font-size: 14px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .logbook {
    padding: 32px 0 60px;
  }
  .logbook-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .logbook-day,
  .logbook-clear,
  .entries-back {
    width: 100%;
  }
  .logbook-form {
    grid-template-columns: 1fr;
  }
  .logbook-add {
    width: 100%;
  }
  .fold {
    width: min(340px, 94%);
  }
}

@media (max-width: 900px) {
  :root {
    --pad: 24px;
  }
}

@media (max-width: 600px) {
  :root {
    --pad: 16px;
  }

  .mobile-nav a {
    min-height: 44px;
  }

  .section-locked .feature {
    height: auto;
  }
  .section-locked .feature-media {
    height: 150px;
  }
  .logbook-card {
    padding: 16px;
  }
  .pattern-block {
    padding: 16px;
  }
  .pattern-card {
    flex: 1 1 100%;
    min-width: 0;
  }
  .pattern-input {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(28px, 9vw, 34px);
  }
  .subhead {
    font-size: 14px;
  }
  .hero-badges span {
    font-size: 11px;
  }
  .ipad-container {
    max-width: 360px;
  }
  .totals {
    grid-template-columns: 1fr;
  }
  .total .v {
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  :root {
    --pad: 16px;
  }
}

/* POP OUTLINES (GLOBAL OVERRIDE) */
.feature,
.panel,
.insight-card,
.logbook-card,
.total,
.entries-table,
.store-btn {
  border: 1px solid transparent !important;
  border-image: linear-gradient(
      135deg,
      rgba(214, 176, 122, 0.65),
      rgba(122, 214, 255, 0.28),
      transparent 60%
    )
    1;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(214, 176, 122, 0.12) inset,
    0 0 24px rgba(214, 176, 122, 0.16) !important;
}
.feature:hover,
.panel:hover,
.insight-card:hover {
  border-color: rgba(214, 176, 122, 0.45) !important;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(214, 176, 122, 0.18) inset,
    0 0 34px rgba(214, 176, 122, 0.22) !important;
}

/* Pattern gallery styles */
.patterns {
  padding: 48px 0 80px;
}
.patterns-title {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 44px);
  margin: 0 0 6px;
}
.patterns-sub {
  margin: 0 0 18px;
  color: var(--muted);
}
.pattern-block {
  position: relative;
  margin: 16px 0;
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #a8884a;
  box-shadow: 0 18px 36px rgba(77, 50, 28, 0.12);
  overflow: hidden;
}
.pattern-block::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(214, 176, 122, 0.6),
    rgba(255, 255, 255, 0.7),
    transparent 60%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.pattern-block h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.muted {
  color: #8a7664;
}
.diamond-row,
.btn-row,
.card-row,
.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.diamond {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 160, 107, 0.5);
  background: #fff7ec;
  box-shadow: 0 10px 22px rgba(77, 50, 28, 0.12);
  font-weight: 700;
  color: #2a2018;
}
.diamond-ico {
  font-size: 14px;
}
.diamond-label {
  font-size: 12px;
  letter-spacing: 0.2px;
}
.btn-primary,
.btn-secondary {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 160, 107, 0.5);
  box-shadow: 0 12px 24px rgba(77, 50, 28, 0.15);
}
.btn-primary {
  background: linear-gradient(135deg, var(--btnA), var(--btnB));
  color: var(--btnText);
}
.btn-secondary {
  background: #fff7ec;
  color: #2a2018;
}
.pattern-card {
  flex: 1 1 220px;
  min-width: 200px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #a8884a;
  box-shadow: 0 14px 28px rgba(77, 50, 28, 0.12);
}
.pattern-card-title {
  font-weight: 800;
  margin-bottom: 6px;
  color: #2a2018;
}
.pattern-input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #a8884a;
  background: #ffffff;
  color: #2a2018;
  min-width: 160px;
}

@media (max-width: 768px) {
  .bgWrap,
  .bgVideo,
  .bgOverlay,
  .bgGrain,
  .hero-video-overlay,
  .hero-video-vignette,
  .videoOverlay,
  .videoVignette {
    pointer-events: none !important;
  }

  .site-header {
    position: relative;
    z-index: 1000 !important;
  }

  .hamburger {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1100 !important;
    pointer-events: auto !important;
  }

  .mobile-nav {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1200 !important;
    pointer-events: auto !important;
  }

  .mobile-nav * {
    pointer-events: auto !important;
  }

  .mobileMenuBackdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1150 !important;
    pointer-events: auto !important;
  }

  .mobile-nav,
  .mobile-nav * {
    touch-action: manipulation !important;
  }
}

.mobile-hamburger-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483647;
}

.mobile-hamburger-button,
.mobile-hamburger-panel,
.mobile-hamburger-backdrop {
  pointer-events: auto;
}

.mobile-hamburger-button {
  display: none;
}

@media (max-width: 768px) {
  .home-overlay-hamburger .site-header .hamburger {
    display: none !important;
  }

  .mobile-hamburger-button {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(201, 160, 107, 0.45);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 24px rgba(77, 50, 28, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    z-index: 2147483647;
    touch-action: manipulation;
  }

  .mobile-hamburger-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: #2a2018;
    border-radius: 999px;
  }

  .mobile-hamburger-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 2147483645;
  }

  .mobile-hamburger-panel {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 64px);
    right: 12px;
    left: 12px;
    border-radius: 18px;
    border: 1px solid rgba(201, 160, 107, 0.35);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 30px rgba(77, 50, 28, 0.18);
    padding: 10px;
    display: grid;
    gap: 6px;
    z-index: 2147483646;
  }

  .mobile-hamburger-panel a {
    display: block;
    padding: 12px 10px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 600;
  }
}
