/*
Theme Name: Barcode Sender Theme
Theme URI: https://barcodesender.app/
Author: Barcode Sender
Author URI: https://barcodesender.app/
Description: WordPress theme for the Barcode Sender landing page.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: barcodesender-theme
*/

/* ========================================================================
   Brand Design System — Thermal Printer Aesthetic
   Palette derived from: thermal label printer, paper, warehouse surfaces
   ======================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
}

:root {
  /* ── Surface — Paper & Device ── */
  --desk-surface: #CFC9B5;
  --desk-light: #EDE8D8;
  --paper-warm: #F5F0E8;
  --paper-aged: #E8E2D4;
  --device-panel: #F0EBE0;
  --paper-edge: #F8F6F2;

  /* ── Ink — Text & Print ── */
  --thermal-ink: #2A2318;
  --ink-secondary: #4E4233;
  --ink-faded: #6B5D4A;
  --ink-ghost: #8B8B8D;

  /* ── Accent — Actions & Status ── */
  --action-green: #2E8B6E;
  --success-green: #5A8A5A;
  --warning-amber: #C47D3A;
  --error-red: #A84432;

  /* ── Borders ── */
  --border-light: #E5E0D0;
  --border-medium: #D5CCBA;
  --border-heavy: #C5BBA5;

  /* ── Shadows (warm brown, directional, physical) ── */
  --shadow-light: 0 3px 10px rgba(80, 60, 30, 0.14);
  --shadow-medium: 0 6px 24px rgba(80, 60, 30, 0.18);
  --shadow-heavy: 0 10px 40px rgba(60, 45, 20, 0.26);
  --shadow-desk: 0 8px 28px -4px rgba(80, 60, 30, 0.22), 0 2px 6px rgba(80, 60, 30, 0.1);

  /* ── Radius (industrial — barely rounded) ── */
  --radius: 3px;
  --radius-lg: 4px;

  /* ── Torn paper edge (reusable mask) ── */
  --torn-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8'%3E%3Cpath d='M0 8 L4 2 L8 6 L13 1 L17 7 L22 3 L26 6 L31 1 L35 5 L40 2 L44 7 L49 3 L53 6 L58 1 L62 5 L67 2 L71 7 L76 3 L80 6 L85 1 L89 5 L94 2 L98 7 L103 3 L107 6 L112 1 L116 5 L121 2 L125 7 L130 3 L134 6 L139 1 L143 5 L148 2 L152 7 L157 3 L161 6 L166 1 L170 5 L175 2 L179 7 L184 3 L188 6 L193 1 L197 5 L200 3 L200 8 Z' fill='white'/%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--desk-surface);
  color: var(--thermal-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================================
   Paper Card — Industrial documentation panel
   ======================================================================== */

.paper-card {
  position: relative;
  background-color: var(--paper-warm);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--border-heavy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-desk);
}

.paper-card::before,
.paper-card::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  height: 8px;
  background: var(--paper-warm);
  mask-image: var(--torn-edge);
  -webkit-mask-image: var(--torn-edge);
  mask-size: 200px 8px;
  -webkit-mask-size: 200px 8px;
  mask-repeat: repeat-x;
  -webkit-mask-repeat: repeat-x;
}

.paper-card::before {
  top: -7px;
}

.paper-card::after {
  bottom: -7px;
  transform: scaleY(-1);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for card grids */
.reveal-d1 {
  transition-delay: 0.08s;
}

.reveal-d2 {
  transition-delay: 0.16s;
}

.reveal-d3 {
  transition-delay: 0.24s;
}

.reveal-d4 {
  transition-delay: 0.32s;
}

.reveal-d5 {
  transition-delay: 0.40s;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

a {
  color: var(--action-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #24705a;
  text-decoration: underline;
}

code,
.mono {
  font-family: "IBM Plex Mono", monospace;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========================================================================
   Buttons
   Action Green is the ONLY interactive accent — never decorative
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background-color: var(--action-green);
  color: var(--paper-edge);
}

.btn-primary:hover {
  background-color: #24705a;
  transform: translateY(-1px);
  color: var(--paper-edge);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--paper-warm);
  color: var(--thermal-ink);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--paper-aged);
  color: var(--thermal-ink);
  text-decoration: none;
}

/* ========================================================================
   Navbar
   ======================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 1.25rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-bar .navbar {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .navbar {
    top: 46px;
  }
}

.navbar.scrolled {
  background-color: rgba(248, 246, 242, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 3px rgba(80, 60, 30, 0.12), 0 1px 0 var(--border-medium);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-image {
  height: 2.75rem;
  width: auto;
  display: block;
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--thermal-ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--thermal-ink);
  text-decoration: none;
}

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

.nav-cta .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--thermal-ink);
  cursor: pointer;
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .logo-text {
    display: none;
  }
}

/* ========================================================================
   Hero Section
   ======================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7rem 1.25rem 5rem;
  background-color: var(--desk-surface);

  /* Spreadsheet grid background */
  background-image:
    repeating-linear-gradient(to right,
      rgba(181, 172, 153, 0.35) 0px,
      rgba(181, 172, 153, 0.35) 1px,
      transparent 1px,
      transparent 56px),
    repeating-linear-gradient(to bottom,
      rgba(181, 172, 153, 0.35) 0px,
      rgba(181, 172, 153, 0.35) 1px,
      transparent 1px,
      transparent 34px);
  background-size: 56px 34px;
  background-position: center center;
}

/* Soft fade at edges so grid doesn't hard-cut */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right,
      var(--desk-surface) 0%,
      transparent 8%,
      transparent 92%,
      var(--desk-surface) 100%),
    linear-gradient(to bottom,
      var(--desk-surface) 0%,
      transparent 10%,
      transparent 88%,
      var(--desk-surface) 100%);
}

/* ── Receipt strip decorations ── */
.hero-receipt-strip {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background: var(--paper-warm);
  border: none;
  border-left: 3px solid var(--border-heavy);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  line-height: 1.8;
  color: var(--ink-faded);
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(80, 60, 30, 0.12);
}

/* Torn receipt edges — top and bottom */
.hero-receipt-strip::before,
.hero-receipt-strip::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  height: 10px;
  background: var(--paper-warm);
  mask-image: var(--torn-edge);
  -webkit-mask-image: var(--torn-edge);
  mask-size: 200px 10px;
  -webkit-mask-size: 200px 10px;
  mask-repeat: repeat-x;
  -webkit-mask-repeat: repeat-x;
}

.hero-receipt-strip::before {
  top: -9px;
}

.hero-receipt-strip::after {
  bottom: -9px;
  transform: rotate(180deg);
}

.hero-receipt-strip.strip-1 {
  top: 12%;
  right: 6%;
  opacity: 0.18;
  transform: rotate(3deg);
  animation: drift-1 35s ease-in-out infinite alternate;
}

.hero-receipt-strip.strip-2 {
  bottom: 18%;
  left: 4%;
  opacity: 0.14;
  transform: rotate(-2.5deg);
  animation: drift-2 40s ease-in-out infinite alternate;
}

.hero-receipt-strip.strip-3 {
  top: 55%;
  right: 12%;
  opacity: 0.12;
  transform: rotate(1.5deg);
  animation: drift-3 30s ease-in-out infinite alternate;
}

.hero-receipt-strip.strip-4 {
  top: 8%;
  left: 15%;
  opacity: 0.10;
  transform: rotate(-4deg);
  animation: drift-4 38s ease-in-out infinite alternate;
}

.receipt-sep {
  border-top: 1px dashed var(--border-heavy);
  margin: 4px 0;
}

@keyframes drift-1 {
  from {
    transform: rotate(3deg) translateY(0);
  }

  to {
    transform: rotate(3deg) translateY(12px);
  }
}

@keyframes drift-2 {
  from {
    transform: rotate(-2.5deg) translateY(0);
  }

  to {
    transform: rotate(-2.5deg) translateY(-10px);
  }
}

@keyframes drift-3 {
  from {
    transform: rotate(1.5deg) translateY(0);
  }

  to {
    transform: rotate(1.5deg) translateY(8px);
  }
}

@keyframes drift-4 {
  from {
    transform: rotate(-4deg) translateY(0);
  }

  to {
    transform: rotate(-4deg) translateY(-6px);
  }
}

@media (max-width: 1023px) {
  .hero {
    min-height: auto;
    padding: 7rem 1.25rem 3rem;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    gap: 5rem;
  }
}

.hero-text {
  flex: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius);
  background-color: var(--paper-warm);
  border: 1px dashed var(--border-heavy);
  color: var(--ink-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: "IBM Plex Mono", monospace;
}

.hero-badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--action-green);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--thermal-ink);
  letter-spacing: -0.03em;
}

.hero h1 .accent {
  color: var(--action-green);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .hero-description {
    margin: 0 0 2rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

/* Trust badges */
.trust-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

@media (min-width: 1024px) {
  .trust-badges {
    justify-content: flex-start;
  }
}

.avatars {
  display: flex;
  margin-left: -0.5rem;
}

.avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--paper-aged);
  border: 2px solid var(--desk-surface);
  margin-left: -0.5rem;
  object-fit: cover;
}

.divider {
  width: 1px;
  height: 0.875rem;
  background: var(--border-medium);
}

.stars {
  display: flex;
  gap: 0.125rem;
}

.star {
  width: 0.875rem;
  height: 0.875rem;
  fill: var(--warning-amber);
}

/* Google Sheets icon inline */
.sheets-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.375rem;
  background: rgba(46, 139, 110, 0.08);
  border-radius: 0.25rem;
  font-weight: 500;
}

.sheets-icon svg {
  width: 1rem;
  height: 1rem;
}

/* ========================================================================
   Hero Animation — Inline looping scan→send→sheets demo
   ======================================================================== */

.hero-animation {
  flex: 1;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

@media (max-width: 767px) {
  .hero-animation {
    flex-direction: column;
    min-height: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
  }
}

/* Phone */
.ha-phone {
  position: relative;
  width: 240px;
  height: 500px;
  border-radius: 2rem;
  background: var(--paper-warm);
  border: 3px solid var(--border-heavy);
  box-shadow: var(--shadow-heavy), 0 20px 40px -8px rgba(80, 60, 30, 0.3);
  overflow: hidden;
  z-index: 10;
  opacity: 0;
  transform: scale(0.9) translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ha-phone.ha-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@media (min-width: 768px) {
  .ha-phone {
    width: 270px;
    height: 560px;
    margin-right: 6rem;
  }
}

@media (min-width: 1024px) {
  .ha-phone {
    margin-right: 8rem;
  }
}

.ha-phone-screen {
  position: absolute;
  inset: 6px;
  border-radius: 1.6rem;
  background: var(--paper-edge);
  overflow: hidden;
}

.ha-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: var(--paper-warm);
  border-radius: 0 0 10px 10px;
  z-index: 5;
}

/* Scan view */
.ha-scan-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 12px 12px;
}

.ha-scan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ha-scan-header span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--thermal-ink);
}

.ha-scan-area {
  flex: 1;
  background: var(--paper-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Flash */
.ha-scan-flash {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

/* Reticle */
.ha-reticle {
  width: 140px;
  height: 70px;
  position: relative;
}

@media (min-width: 768px) {
  .ha-reticle {
    width: 160px;
    height: 80px;
  }
}

.ha-reticle-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--action-green);
  border-style: solid;
}

.ha-reticle-corner.tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.ha-reticle-corner.tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.ha-reticle-corner.bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

.ha-reticle-corner.br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

/* Scan line */
.ha-scan-line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--action-green), transparent);
  top: 0;
  opacity: 0;
}

/* Barcode / QR visual */
.ha-barcode-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 1.5px;
  height: 50px;
  align-items: stretch;
  opacity: 0;
  transition: opacity 0.3s;
}

/* 1D barcode bars */
.ha-bar {
  background: var(--thermal-ink);
  opacity: 0.5;
}

/* 2D QR-style grid */
.ha-barcode-visual.ha-qr-mode {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-template-rows: repeat(11, 1fr);
  gap: 1px;
  width: 50px;
  height: 50px;
  align-items: unset;
}

.ha-qr-cell {
  border-radius: 0.5px;
}

.ha-qr-cell.ha-filled {
  background: var(--thermal-ink);
  opacity: 0.5;
}

.ha-qr-cell.ha-empty {
  background: transparent;
}

.ha-scan-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: var(--ink-secondary);
  text-align: center;
  margin-top: 6px;
}

/* ── Receipt roll (bottom of phone) ── */
.ha-receipt-roll {
  margin-top: 8px;
  height: 78px;
  overflow: hidden;
  position: relative;
  /* Fade out items rolling off the bottom */
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* Inner wrapper that slides down when new items are prepended */
.ha-receipt-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.4s ease-out;
}

.ha-receipt-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  border-radius: 2px;
  background: var(--paper-warm);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--action-green);
  flex-shrink: 0;
}

.ha-receipt-entry code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: var(--thermal-ink);
  letter-spacing: 0.3px;
}

.ha-receipt-entry .ha-sent-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 7px;
  color: var(--action-green);
  letter-spacing: 0.5px;
}

.ha-receipt-entry .ha-found-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 7px;
  color: #C77D1A;
  letter-spacing: 0.5px;
}

/* ── Sheets Panel ── */
.ha-sheets-panel {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  background: var(--paper-warm);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  z-index: 15;
  opacity: 1;
  transition: none;
  overflow: hidden;
}

@media (max-width: 767px) {
  .ha-sheets-panel {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 240px;
    margin: 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ha-sheets-panel {
    right: -5rem;
    width: 200px;
  }
}

@media (min-width: 1024px) {
  .ha-sheets-panel {
    right: -7rem;
    width: 220px;
  }
}

.ha-sheets-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-light);
  background: var(--paper-edge);
}

.ha-sheets-header span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: var(--ink-secondary);
}

.ha-sheets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 50px;
  gap: 1px;
  padding: 0 3px;
}

.ha-sheets-grid-header {
  padding: 3px;
  border-bottom: 1px solid var(--border-light);
}

.ha-sheets-body {
  overflow: hidden;
  padding: 0;
  /* Lock height to exactly 3 rows so it never glitches */
  height: 51px;
}

.ha-sheets-body-inner {
  display: flex;
  flex-direction: column;
}

.ha-sheets-body .ha-sheets-grid {
  padding: 0 3px;
}

/* Zebra striping — class-based to avoid nth-child glitches */
.ha-sheets-grid.ha-zebra-odd .ha-sheets-cell {
  background: var(--paper-edge);
}

.ha-sheets-grid.ha-zebra-even .ha-sheets-cell {
  background: var(--paper-warm);
}

/* New-row highlight (overrides zebra) */
.ha-sheets-grid.ha-new-row .ha-sheets-cell {
  background: rgba(46, 139, 110, 0.08);
  color: var(--action-green);
}

/* Lookup-hit highlight (overrides zebra) */
.ha-sheets-grid.ha-lookup-hit .ha-sheets-cell {
  background: rgba(199, 125, 26, 0.15);
  color: #946015;
  transition: background 0.3s ease;
}

.ha-sheets-cell {
  padding: 2px 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  background: var(--paper-edge);
  color: var(--ink-secondary);
  border-radius: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ha-sheets-cell.ha-header {
  background: rgba(46, 139, 110, 0.1);
  color: var(--action-green);
  font-weight: 600;
}

/* ── Connection beam ── */
.ha-connection {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.ha-connection.ha-show {
  opacity: 1;
}

@media (max-width: 767px) {
  .ha-connection {
    display: none;
  }
}

.ha-conn-path {
  animation: ha-dash-flow 0.8s linear infinite;
}

@keyframes ha-dash-flow {
  to {
    stroke-dashoffset: -12;
  }
}

/* ── Data dot ── */
.ha-data-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--action-green);
  border-radius: 50%;
  z-index: 13;
  box-shadow: 0 0 10px rgba(46, 139, 110, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  transform: translate(-50%, -50%);
}

.ha-data-dot.ha-show {
  opacity: 1;
}

@media (max-width: 767px) {
  .ha-data-dot {
    display: none;
  }
}

/* ========================================================================
   Section Shared Styles
   ======================================================================== */

.section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  background-color: var(--paper-warm);
  border: 1px dashed var(--border-heavy);
  color: var(--ink-faded);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--thermal-ink);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--thermal-ink);
  line-height: 1.7;
}

/* ========================================================================
   Features Section
   ======================================================================== */

.features {
  padding: 5rem 1.25rem;
  background-color: var(--paper-aged);
}

.features-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: var(--paper-warm);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--border-heavy);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  box-shadow: var(--shadow-desk);
}

.feature-card::before,
.feature-card::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  height: 8px;
  background: var(--paper-warm);
  mask-image: var(--torn-edge);
  -webkit-mask-image: var(--torn-edge);
  mask-size: 200px 8px;
  -webkit-mask-size: 200px 8px;
  mask-repeat: repeat-x;
  -webkit-mask-repeat: repeat-x;
}

.feature-card::before {
  top: -7px;
}

.feature-card::after {
  bottom: -7px;
  transform: scaleY(-1);
}

.feature-card:hover {
  border-color: var(--border-heavy);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 4px;
  background-color: rgba(46, 139, 110, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--action-green);
  fill: none;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--thermal-ink);
}

.feature-card p {
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* ========================================================================
   Two-Way Data Flow Section
   ======================================================================== */

.two-way {
  padding: 5rem 1.25rem;
  background-color: var(--desk-surface);
}

.two-way-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .two-way-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.two-way-card {
  background-color: var(--paper-warm);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--border-heavy);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-desk);
  position: relative;
}

.two-way-card::before,
.two-way-card::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  height: 8px;
  background: var(--paper-warm);
  mask-image: var(--torn-edge);
  -webkit-mask-image: var(--torn-edge);
  mask-size: 200px 8px;
  -webkit-mask-size: 200px 8px;
  mask-repeat: repeat-x;
  -webkit-mask-repeat: repeat-x;
}

.two-way-card::before {
  top: -7px;
}

.two-way-card::after {
  bottom: -7px;
  transform: scaleY(-1);
}

.two-way-card:hover {
  border-color: var(--border-heavy);
  box-shadow: var(--shadow-medium);
}

.two-way-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(46, 139, 110, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.two-way-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--action-green);
  fill: none;
}

.two-way-icon-lookup {
  background: rgba(199, 125, 26, 0.1);
}

.two-way-icon-lookup svg {
  stroke: #C77D1A;
}

.two-way-card h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 0.5rem;
}

.two-way-card p {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* ── Two-way card lateral entrances ── */
.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
  transition-delay: 0.12s;
}

.reveal-left.in-view,
.reveal-right.in-view {
  transform: translateX(0);
}

/* ── Mini Spreadsheet Visual ── */
.tw-mini-sheet {
  position: relative;
  margin: 1rem 0;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  line-height: 1;
  background: var(--desk-surface);
}

.tw-mini-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.6fr;
  gap: 0;
  padding: 5px 8px;
  background: rgba(46, 139, 110, 0.06);
  border-bottom: 1px solid var(--border-medium);
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tw-mini-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.6fr;
  gap: 0;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  color: var(--ink-primary);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.tw-mini-row:last-of-type {
  border-bottom: none;
}

/* ── Write card: new-row append animation ── */
.tw-row-new {
  opacity: 0;
  transform: translateY(8px);
  border-left: 3px solid transparent;
  transition: opacity 0.4s ease 0.6s, transform 0.4s ease 0.6s, border-color 0.3s ease 1s, background 0.3s ease 1s;
}

.tw-animate .tw-row-new {
  opacity: 1;
  transform: translateY(0);
  border-left: 3px solid var(--action-green);
  background: rgba(46, 139, 110, 0.06);
}

/* Write badge confirmation */
.tw-write-badge {
  padding: 4px 10px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--action-green);
  text-align: right;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease 1.2s, transform 0.35s ease 1.2s;
}

.tw-animate .tw-write-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ── Update mode: highlight existing row instead of appending ── */
.tw-animate-update .tw-row-new {
  opacity: 0;
  transform: translateY(8px);
}

.tw-animate-update .tw-row-update {
  border-left: 3px solid var(--action-green);
  background: rgba(46, 139, 110, 0.06);
  transition: background 0.35s ease 0.6s, border-color 0.35s ease 0.6s;
}

.tw-animate-update .tw-qty {
  animation: tw-value-flash 0.4s ease 0.8s;
}

@keyframes tw-value-flash {
  0% {
    color: inherit;
  }

  30% {
    color: var(--action-green);
    font-weight: 700;
  }

  100% {
    color: inherit;
  }
}

.tw-animate-update .tw-write-badge {
  opacity: 1;
  transform: translateY(0);
}

.tw-lookup-badge {
  padding: 4px 10px;
  font-size: 0.6rem;
  font-weight: 600;
  color: #C77D1A;
  text-align: right;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease 1.8s, transform 0.35s ease 1.8s;
}

.tw-animate .tw-lookup-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ── Lookup card: magnifier + row hit ── */
.tw-magnifier {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

.tw-magnifier svg {
  width: 100%;
  height: 100%;
  stroke: #C77D1A;
}

.tw-animate .tw-magnifier {
  animation: tw-sweep 1.2s ease-in-out 0.4s forwards;
}

@keyframes tw-sweep {
  0% {
    left: -10%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  50% {
    left: 50%;
  }

  70% {
    left: 50%;
  }

  85% {
    opacity: 1;
  }

  100% {
    left: 110%;
    opacity: 0;
  }
}

/* Hit row goes amber after magnifier passes */
.tw-row-hit {
  transition: background 0.35s ease, border-color 0.35s ease;
  border-left: 3px solid transparent;
}

.tw-animate .tw-row-hit {
  animation: tw-hit-flash 0.8s ease 1.2s forwards;
}

@keyframes tw-hit-flash {
  0% {
    background: transparent;
    border-left-color: transparent;
  }

  40% {
    background: rgba(199, 125, 26, 0.15);
    border-left-color: #C77D1A;
  }

  100% {
    background: rgba(199, 125, 26, 0.08);
    border-left-color: #C77D1A;
  }
}

/* Lookup header tint */
.tw-sheet-lookup .tw-mini-header {
  background: rgba(199, 125, 26, 0.06);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .tw-row-new {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tw-magnifier {
    display: none;
  }

  .tw-animate .tw-row-hit {
    animation: none;
    background: rgba(199, 125, 26, 0.08);
    border-left-color: #C77D1A;
  }
}

/* ========================================================================
   How It Works Section
   ======================================================================== */

.how-it-works {
  padding: 5rem 1.25rem;
  background-color: var(--paper-aged);
}

.steps-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.steps-line {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-medium);
  transform: translateY(-50%);
}

@media (min-width: 1024px) {
  .steps-line {
    display: block;
  }
}

.steps-grid {
  display: grid;
  gap: 1.5rem;
  position: relative;
}

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

.step-card {
  position: relative;
  background-color: var(--paper-warm);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--border-heavy);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-desk);
}

.step-card::before,
.step-card::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  height: 8px;
  background: var(--paper-warm);
  mask-image: var(--torn-edge);
  -webkit-mask-image: var(--torn-edge);
  mask-size: 200px 8px;
  -webkit-mask-size: 200px 8px;
  mask-repeat: repeat-x;
  -webkit-mask-repeat: repeat-x;
}

.step-card::before {
  top: -7px;
}

.step-card::after {
  bottom: -7px;
  transform: scaleY(-1);
}

.step-card:hover {
  border-color: var(--border-heavy);
}

.step-card.cycle-highlight {
  border-color: var(--action-green);
  border-left-color: var(--action-green);
  box-shadow: 0 4px 16px rgba(46, 139, 110, 0.12);
}

.step-card.cycle-highlight .step-icon {
  background-color: rgba(46, 139, 110, 0.15);
}

.step-number {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius);
  background-color: var(--action-green);
  color: var(--paper-edge);
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: "IBM Plex Mono", monospace;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 4px rgba(46, 139, 110, 0.3);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.step-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 4px;
  background-color: rgba(46, 139, 110, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.step-icon svg {
  width: 2rem;
  height: 2rem;
  stroke: var(--action-green);
  fill: none;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--thermal-ink);
}

.step-card p {
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* ========================================================================
   Testimonials Section (commented out in HTML — CSS kept for when re-enabled)
   ======================================================================== */

.testimonials {
  padding: 5rem 1.25rem;
  background-color: var(--paper-aged);
}

.testimonials-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.testimonial-card {
  background-color: var(--paper-warm);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--border-heavy);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
  box-shadow: var(--shadow-desk);
  position: relative;
}

.testimonial-card::before,
.testimonial-card::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  height: 8px;
  background: var(--paper-warm);
  mask-image: var(--torn-edge);
  -webkit-mask-image: var(--torn-edge);
  mask-size: 200px 8px;
  -webkit-mask-size: 200px 8px;
  mask-repeat: repeat-x;
  -webkit-mask-repeat: repeat-x;
}

.testimonial-card::before {
  top: -7px;
}

.testimonial-card::after {
  bottom: -7px;
  transform: scaleY(-1);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-medium);
}

.testimonial-stars {
  display: flex;
  gap: 0.1875rem;
  margin-bottom: 1.25rem;
}

.testimonial-stars svg {
  width: 1rem;
  height: 1rem;
  fill: var(--warning-amber);
}

.testimonial-quote {
  font-size: 1.0625rem;
  color: var(--thermal-ink);
  margin-bottom: 1.25rem;
  flex: 1;
  line-height: 1.65;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--paper-aged);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-secondary);
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.testimonial-info .name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--thermal-ink);
}

.testimonial-info .role {
  font-size: 0.875rem;
  color: var(--ink-faded);
}

/* ========================================================================
   CTA Section
   ======================================================================== */

.cta {
  padding: 5rem 1.25rem;
  background-color: var(--paper-aged);
}

.cta-container {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-card {
  background-color: var(--paper-warm);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--border-heavy);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-desk);
  position: relative;
}

.cta-card::before,
.cta-card::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  height: 8px;
  background: var(--paper-warm);
  mask-image: var(--torn-edge);
  -webkit-mask-image: var(--torn-edge);
  mask-size: 200px 8px;
  -webkit-mask-size: 200px 8px;
  mask-repeat: repeat-x;
  -webkit-mask-repeat: repeat-x;
}

.cta-card::before {
  top: -7px;
}

.cta-card::after {
  bottom: -7px;
  transform: scaleY(-1);
}

.cta-content {
  position: relative;
}

.cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--thermal-ink);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta h2 .accent {
  color: var(--action-green);
}

.cta-description {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.cta-feature {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-faded);
}

/* Integration badge */
.integration-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background-color: var(--paper-edge);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.integration-badge svg {
  width: 1.25rem;
  height: 1.25rem;
}

.integration-badge span {
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  font-family: "IBM Plex Mono", monospace;
}

/* ========================================================================
   Footer
   ======================================================================== */

.footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--border-medium);
  background-color: var(--paper-aged);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.footer-brand p {
  color: var(--ink-secondary);
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.footer-links h4 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--thermal-ink);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--action-green);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
}


.footer-copyright {
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-stores {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.footer-store-badge {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  text-decoration: none;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.footer-store-badge:hover {
  opacity: 0.75;
  transform: none;
  box-shadow: none;
  text-decoration: none;
}

.footer-store-badge img {
  height: 2rem;
  width: auto;
  display: block;
}

.footer-social a {
  color: var(--ink-faded);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--action-green);
}

.footer-social svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

/* ========================================================================
   Page Content / Privacy / Contact
   ======================================================================== */

.page-content-wrapper,
.page .entry-content,
.single .entry-content,
.privacy-policy,
.contact-page {
  margin: 0 auto;
  padding: 2.5rem 1.75rem;
  background: var(--paper-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  color: var(--ink-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.page-content-wrapper h1,
.page-content-wrapper h2,
.page-content-wrapper h3,
.page-content-wrapper h4,
.page .entry-content h1,
.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4,
.privacy-policy h1,
.privacy-policy h2,
.privacy-policy h3,
.privacy-policy h4,
.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page h4 {
  color: var(--thermal-ink);
}

.contact-page h3,
.contact-page h4 {
  line-height: 1.3;
}

.page-content-wrapper p,
.page .entry-content p,
.privacy-policy p,
.contact-page p {
  margin: 0 0 1rem;
  color: var(--ink-secondary);
}

.page-content-wrapper ul,
.page .entry-content ul,
.privacy-policy ul,
.contact-page ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.35rem;
}

.page-content-wrapper li,
.page .entry-content li,
.privacy-policy li,
.contact-page li {
  color: var(--ink-secondary);
}

.page-content-wrapper a,
.page .entry-content a,
.privacy-policy a,
.contact-page a {
  color: var(--action-green);
  text-decoration: underline;
}

.contact-page a:visited {
  color: var(--action-green);
}

.page-content-wrapper a:hover,
.page .entry-content a:hover,
.privacy-policy a:hover,
.contact-page a:hover {
  color: #24705a;
}

.privacy-policy .last-updated {
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 1.5rem;
}

.privacy-policy .contact-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--paper-edge);
  border: 1px solid var(--border-light);
}

.privacy-policy .contact-box h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* ========================================================================
   Demo Modal
   ======================================================================== */

.demo-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(207, 201, 181, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.demo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal-backdrop {
  position: absolute;
  inset: 0;
}

.demo-modal-dialog {
  position: relative;
  width: min(900px, 100%);
  aspect-ratio: 16 / 9;
  background: var(--paper-warm);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
}

.demo-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.demo-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--paper-warm);
  color: var(--thermal-ink);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 10;
}

.demo-modal-close:hover {
  background: var(--paper-edge);
}

/* ========================================================================
   Install Modal
   ======================================================================== */

.install-modal .demo-modal-dialog {
  width: min(700px, 100%);
  max-height: min(90vh, 880px);
  aspect-ratio: auto;
  background: var(--paper-warm);
  display: grid;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
}

.install-modal .install-content {
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

.install-modal .install-header h3 {
  margin: 0 0 0.375rem;
  font-size: 1.375rem;
  color: var(--thermal-ink);
  letter-spacing: -0.01em;
}

.install-modal .install-header p {
  margin: 0;
  color: var(--ink-secondary);
}

.install-modal .install-steps {
  display: grid;
  gap: 0.875rem;
}

.install-modal .install-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--paper-edge);
  box-shadow: var(--shadow-light);
}

.install-modal .install-step-number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: "IBM Plex Mono", monospace;
  color: var(--paper-edge);
  background-color: var(--action-green);
}

.install-modal .install-step h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--thermal-ink);
}

.install-modal .install-step p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

.install-modal .install-qr {
  margin-top: 0.75rem;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 0.5rem;
  max-width: 220px;
}

.install-modal .install-qr img {
  width: 100%;
  padding: 0.375rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-light);
}

.install-modal .install-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.install-modal [data-install-prev]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Store badges inside install modal */
.install-store-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.install-store-badge {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.install-store-badge:hover {
  opacity: 0.75;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}

.install-store-badge img {
  height: 2.25rem;
  width: auto;
  display: block;
}

/* Compact install modal (simplified — QR + badges only) */
.install-modal-compact {
  max-width: 400px;
}

.install-modal-compact .install-content {
  text-align: center;
  padding: 1.5rem;
}

.install-modal-compact .install-header {
  margin-bottom: 1.25rem;
}

.install-modal-compact .install-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.install-modal-compact .install-header p {
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.install-modal-compact .install-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.install-modal-compact .install-qr>div {
  display: flex;
  justify-content: center;
}

.install-hint {
  font-size: 0.8125rem;
  color: var(--ink-faded);
  margin-top: 1rem;
  margin-bottom: 0;
}



/* ========================================================================
   Pricing Page
   ======================================================================== */

.pricing-hero {
  padding: 10rem 1.25rem 3rem;
  background-color: var(--desk-surface);
  text-align: center;
}

.pricing-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--thermal-ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.pricing-hero .section-header p {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.7;
}

.pricing-hero .section-header p strong {
  color: var(--action-green);
  font-weight: 700;
}

/* ── Pricing Cards ── */

.pricing-section {
  padding: 2rem 1.25rem 5rem;
  background-color: var(--desk-surface);
}

.pricing-card-wrapper {
  display: grid;
  gap: 1.5rem;
  max-width: 52rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-card-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.pricing-card {
  position: relative;
  background-color: var(--paper-warm);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--border-heavy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-desk);
  overflow: visible;
}

/* Torn edges */
.pricing-card::before,
.pricing-card::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  height: 8px;
  background: var(--paper-warm);
  mask-image: var(--torn-edge);
  -webkit-mask-image: var(--torn-edge);
  mask-size: 200px 8px;
  -webkit-mask-size: 200px 8px;
  mask-repeat: repeat-x;
  -webkit-mask-repeat: repeat-x;
}

.pricing-card::before {
  top: -7px;
}

.pricing-card::after {
  bottom: -7px;
  transform: scaleY(-1);
}

.pricing-card-inner {
  padding: 2.5rem 2rem 2rem;
}

/* Badge (Now / At Launch) */
.pricing-card-badge {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  padding: 0.25rem 0.875rem;
  background: var(--action-green);
  color: var(--paper-edge);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
}

.pricing-badge-future {
  background: var(--ink-faded);
}

.pricing-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--thermal-ink);
  margin-bottom: 1rem;
}

/* Price display */
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--thermal-ink);
  font-family: "IBM Plex Mono", monospace;
  line-height: 1;
}

.pricing-amount-tbd {
  font-size: 2.5rem;
  color: var(--ink-faded);
}

.pricing-tbd-label {
  color: var(--ink-ghost);
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--ink-faded);
}

.pricing-description {
  font-size: 1rem;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.pricing-description strong {
  color: var(--action-green);
  font-weight: 600;
}

/* Feature checklist */
.pricing-features {
  list-style: none;
  display: grid;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

.pricing-features svg {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  fill: var(--action-green);
}

/* CTA button inside card */
.pricing-cta {
  width: 100%;
  justify-content: center;
}

/* Founders' deal highlight */
.pricing-founders-deal {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(46, 139, 110, 0.06);
  border: 1px dashed var(--action-green);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.pricing-founders-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--action-green);
  border-radius: var(--radius);
}

.pricing-founders-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--paper-edge);
  fill: none;
}

.pricing-founders-deal strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--thermal-ink);
  margin-bottom: 0.25rem;
}

.pricing-founders-deal p {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── Highlighted card (current plan) ── */
.pricing-card-current {
  border-color: var(--action-green);
  border-left-color: var(--action-green);
}

/* ── FAQ Section ── */

.pricing-faq {
  padding: 5rem 1.25rem;
  background-color: var(--paper-aged);
}

.pricing-faq-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-faq-item {
  background-color: var(--paper-warm);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--border-heavy);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.pricing-faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--thermal-ink);
  margin-bottom: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
}

.pricing-faq-item p {
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin: 0;
}

.pricing-faq-item em {
  font-style: normal;
  font-weight: 600;
  color: var(--thermal-ink);
}

/* ── Bottom CTA ── */

.pricing-bottom-cta {
  padding: 0 1.25rem 5rem;
  background-color: var(--paper-aged);
}

/* ========================================================================
   Utility: skip-link for accessibility
   ======================================================================== */

.skip-link.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link.screen-reader-text:focus {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--action-green);
  color: var(--paper-edge);
  padding: 0.5rem 1rem;
  z-index: 100000;
  width: auto;
  height: auto;
}

/* ========================================================================
   Comparison Pages
   ======================================================================== */

/* ── Hero ── */
.compare-hero {
  padding: 8rem 1.25rem 3rem;
  background-color: var(--desk-surface);
  text-align: center;
}

.compare-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.compare-hero-sub {
  font-size: 1.125rem;
  color: var(--ink-secondary);
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Comparison Table ── */
.compare-table-section {
  padding: 0 1.25rem 4rem;
  margin-top: -1rem;
}

.compare-table-wrap {
  padding: 1.5rem;
  overflow: visible;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table thead {
  border-bottom: 2px solid var(--border-heavy);
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: middle;
}

.compare-table th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faded);
  white-space: nowrap;
}

.compare-feature-col {
  width: 40%;
}

.compare-product-col {
  width: 30%;
  text-align: center;
}

.compare-product-col.compare-ours {
  background: rgba(46, 139, 110, 0.04);
}

.compare-product-name {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--thermal-ink);
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--border-light);
}

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

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

td.compare-ours,
td.compare-theirs {
  text-align: center;
  font-weight: 500;
}

td.compare-ours {
  background: rgba(46, 139, 110, 0.04);
}

.compare-yes {
  color: var(--action-green);
  font-weight: 600;
}

.compare-no {
  color: var(--error-red);
  font-weight: 500;
}

.compare-partial {
  color: #9A6420;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ── TL;DR Summary ── */
.compare-tldr {
  max-width: 800px;
  margin: -1rem auto 2rem;
  padding: 1.5rem 2rem;
  background: var(--paper-edge);
  border-left: 3px solid var(--action-green);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.compare-tldr strong {
  color: var(--thermal-ink);
  font-weight: 600;
}

/* ── Detail Blocks ── */
.compare-details {
  padding: 2rem 1.25rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.compare-detail-block {
  margin-bottom: 3rem;
}

.compare-detail-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--thermal-ink);
}

.compare-detail-block p {
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.compare-detail-block p:last-child {
  margin-bottom: 0;
}

/* ── Verdict ── */
.compare-verdict-section {
  padding: 0 1.25rem 4rem;
}

.compare-verdict {
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.compare-verdict h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.compare-verdict-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .compare-verdict-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-verdict-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--thermal-ink);
}

.compare-verdict-item ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.compare-verdict-item ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.compare-verdict-item ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--action-green);
  font-weight: 700;
}

/* ── CTA (comparison-specific) ── */
.compare-cta {
  padding: 3rem 1.25rem 4rem;
  background: var(--desk-surface);
}

.compare-cta .cta-card {
  border: 2px solid var(--action-green);
}

/* ── FAQ ── */
.compare-faq {
  padding: 2rem 1.25rem 5rem;
  background-color: var(--desk-light);
}

/* ── Responsive table scroll hint ── */
@media (max-width: 640px) {
  .compare-table-wrap {
    padding: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .compare-table {
    font-size: 0.8125rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.5rem 0.625rem;
  }

  .compare-verdict {
    padding: 1.5rem;
  }

  .compare-tldr {
    margin: 0 1rem 1.5rem;
    padding: 1rem 1.25rem;
  }
}