/* ===========================================
   Penpoint Website - Main Styles
   Component and layout styles
   =========================================== */

/* ===========================================
   CSS RESET & BASE STYLES
   =========================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;  /* No rounded corners - Penpoint signature */
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  font-family: 'Source Serif 4', ui-serif, Georgia, serif;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-user-select: none;
  user-select: none;
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Hidden SVG sprite container */
.svg-sprite {
  display: none;
}

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

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

/* ===========================================
   LAYOUT UTILITIES
   =========================================== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-gap) 0;
}

.section-alt {
  background-color: rgb(var(--background-accent));
}

/* Section divider with quill - full viewport width */
.section-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  height: 0;
  z-index: 1;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 var(--space-8);
}

.section-divider__line {
  flex: 1;
  height: 2px;
  background-color: rgb(var(--border));
}

.section-divider__quill {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  fill: rgb(var(--muted-foreground));
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--space-2);
}

.gap-md {
  gap: var(--element-gap);
}

.gap-lg {
  gap: var(--component-gap);
}

.gap-xl {
  gap: var(--section-gap);
}

/* Grid utilities */
.grid {
  display: grid;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Text alignment */
.text-center {
  text-align: center;
}

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

/* Section heading with bottom margin */
.section-heading {
  margin-bottom: var(--space-2);
}

.section-subheading {
  color: rgb(var(--muted-foreground));
  margin-top: 0;
  margin-bottom: var(--space-8);
}

/* ===========================================
   HARSH SHADOW
   Penpoint signature effect
   =========================================== */

.harsh-shadow {
  box-shadow: -7px 7px 0 0 rgba(0, 0, 0, 0.2);
}

.harsh-shadow-hover {
  transition: box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.harsh-shadow-hover:hover {
  box-shadow: -9px 9px 0 0 rgba(0, 0, 0, 0.25);
  transform: translate(2px, -2px);
}

/* ===========================================
   BUTTONS
   =========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1rem;
  font-family: 'Source Serif 4', ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: var(--text-base);
  border: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.btn-primary {
  background-color: rgb(var(--cta));
  color: white;
}

.btn-primary:hover {
  background-color: rgb(var(--cta-hover));
}

.btn-outline {
  background-color: transparent;
  color: rgb(var(--foreground));
  border: 1px solid rgb(var(--border));
}

.btn-outline:hover {
  background-color: rgb(var(--muted));
  border-color: rgb(var(--accent));
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--text-lg);
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: var(--text-xl);
}

/* Button with shadow */
.btn-shadow {
  box-shadow: -5px 5px 0 0 rgba(0, 0, 0, 0.2);
  transition: box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.btn-shadow:hover {
  box-shadow: -7px 7px 0 0 rgba(0, 0, 0, 0.25);
  transform: translate(2px, -2px);
}

/* ===========================================
   CARDS
   =========================================== */

.card {
  background-color: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  padding: var(--space-6);
}

.card-hover {
  transition: box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.card-hover:hover {
  box-shadow: -7px 7px 0 0 rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* ===========================================
   HEADER
   =========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgb(var(--background));
  box-shadow: 0 1px 0 rgb(var(--border));
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__logo-icon {
  width: 32px;
  height: 32px;
  color: rgb(var(--primary));
}

.header__logo-text {
  font-size: var(--text-xl);
  font-weight: 600;
  color: rgb(var(--foreground));
}

.header__tagline {
  font-size: var(--text-sm);
  color: rgb(var(--muted-foreground));
  margin-left: var(--space-4);
  padding-left: var(--space-4);
  border-left: 1px solid rgb(var(--border));
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header__nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgb(var(--foreground));
  transition: color var(--duration-fast) var(--ease-out);
}

.header__nav-link:hover {
  color: rgb(var(--muted-foreground));
}

/* Mobile menu button */
.header__menu-btn {
  display: none;
  padding: var(--space-2);
}

/* ===========================================
   HERO SECTION
   =========================================== */

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background-color: rgb(var(--card));
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgb(var(--muted-foreground));
  font-size: var(--text-sm);
}

.hero__headline {
  font-size: clamp(1.75rem, 4vw, var(--text-3xl));
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: rgb(var(--foreground));
  margin-bottom: var(--space-6);
}

.hero__quote {
  font-size: clamp(1.5rem, 4vw, var(--text-3xl));
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: rgb(var(--foreground));
  margin-bottom: var(--space-4);
}

.hero__subheadline {
  font-size: var(--text-lg);
  color: rgb(var(--foreground));
  line-height: var(--leading-relaxed);
  max-width: 38ch;
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.hero__visual {
  position: relative;
}

.hero__visual .screenshot-placeholder {
  min-height: 480px;
  background-color: white;
}

/* ===========================================
   SCREENSHOT PLACEHOLDER
   Styled box for screenshots before they're ready
   =========================================== */

.screenshot-placeholder {
  background-color: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-8);
  min-height: 400px;
  color: rgb(var(--muted-foreground));
}

.screenshot-placeholder__icon {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.screenshot-placeholder__text {
  font-size: var(--text-sm);
}

/* Real screenshot styling */
.screenshot-frame {
  border: 1px solid rgb(var(--border));
  overflow: hidden;
}

.screenshot-frame.featured {
  box-shadow: -7px 7px 0 0 rgba(0, 0, 0, 0.2);
}

/* Feature image buttons (clickable screenshots) */
.feature__image-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature__image-btn:hover {
  transform: translateY(-2px);
  box-shadow: -9px 9px 0 0 rgba(0, 0, 0, 0.25);
}

.feature__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ===========================================
   PAIN POINTS SECTION
   =========================================== */

.pain-points {
  background-color: rgb(var(--background-accent));
}

.pain-points__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--component-gap);
}

.pain-point {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background-color: rgb(var(--paper));
  border: 1px solid rgb(var(--border));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.pain-point__icon {
  font-size: 2rem;
  margin: 0 auto;
  color: rgb(var(--primary));
  flex-shrink: 0;
}

.pain-point__title {
  font-size: var(--text-med);
  font-weight: 600;
  color: rgb(var(--foreground));
  min-height: 2.75em; /* Accommodates 2 lines */
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain-point__desc {
  font-size: var(--text-sm);
  color: rgb(var(--muted-foreground));
  min-height: 2.5em; /* Accommodates 2 lines */
}

/* ===========================================
   STRUCTURE BRIDGE
   =========================================== */

.structure-bridge {
  text-align: center;
}

.structure-bridge__intro {
  color: rgb(var(--foreground));
  margin-bottom: var(--space-8);
}

.structure-bridge__categories {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  margin: 0 auto var(--space-8);
}

.category-card {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background-color: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  color: rgb(var(--foreground));
}

.category-card__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: rgb(var(--primary));
}

.category-card__label {
  white-space: nowrap;
}

.structure-bridge__transition {
  color: rgb(var(--foreground));
}

/* ===========================================
   FEATURE SECTIONS
   =========================================== */

.feature {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  align-items: center;
}

.feature--reversed {
  grid-template-columns: 1.5fr 1fr;
}

.feature--reversed .feature__content {
  order: 2;
}

.feature--reversed .feature__visual {
  order: 1;
}

.feature__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature__headline {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: rgb(var(--foreground));
}

.feature__quill {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  vertical-align: baseline;
  margin-left: 0.35em;
  fill: rgb(var(--muted-foreground));
}

.feature__desc {
  font-size: var(--text-lg);
  color: rgb(var(--muted-foreground));
  line-height: var(--leading-relaxed);
}

.feature__shortcut {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: rgb(var(--muted-foreground));
}

/* ===========================================
   TRUST BLOCK
   =========================================== */

.trust-block {
  background-color: rgb(var(--background-accent));
}

.trust-block .section-heading {
  margin-bottom: var(--space-4);
}

.trust-block__desc {
  max-width: 40rem;
  margin: 0 auto var(--space-12);
  color: rgb(var(--muted-foreground));
  line-height: var(--leading-relaxed);
}

.trust-block__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  width: 100%;
}

.trust-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  min-width: 0; /* Allow shrinking in grid */
}

.trust-point__icon {
  font-size: 2.5rem;
  color: rgb(var(--foreground));
}

.trust-point__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgb(var(--foreground));
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===========================================
   TESTIMONIAL
   =========================================== */

.testimonial {
  background-color: rgb(var(--card));
  border-top: 1px solid rgb(var(--border));
  border-bottom: 1px solid rgb(var(--border));
}

.testimonial__figure {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin: 0;
}

.testimonial__columns {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: var(--space-10);
  align-items: start;
}

.testimonial__divider {
  background-color: rgb(var(--foreground));
  align-self: stretch;
}

.testimonial__quote {
  margin: 0;
  display: flex;
  align-items: flex-start;
}

.testimonial__pullquote {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-weight: 600;
  line-height: var(--leading-snug);
  color: rgb(var(--foreground));
  text-align: right;
  max-width: 90%;
  margin-left: auto;
}

.testimonial__content {
  display: flex;
  flex-direction: column;
}

.testimonial__body {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgb(var(--muted-foreground));
}

.testimonial__attribution {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-items: center;
  text-align: center;
}

.testimonial__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgb(var(--foreground));
}

.testimonial__credits {
  font-size: var(--text-xs);
  color: rgb(var(--muted-foreground));
}

/* ===========================================
   QUICK FEATURES GRID
   =========================================== */

.quick-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--component-gap);
  /* Break out of container for wider layout */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 var(--space-8);
  max-width: 1600px;
}

.quick-feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  background-color: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  min-width: 0;
  overflow: hidden;
}

.quick-feature:hover {
  border-color: rgb(var(--primary));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Image wrapper for cropping */
.quick-feature__image-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  flex-shrink: 0;
  margin-bottom: var(--space-2);
  overflow: hidden;
  border: 1px solid rgb(var(--border));
  background-color: rgb(var(--background));
}

.quick-feature__icon {
  width: 24px;
  height: 24px;
  color: rgb(var(--primary));
  margin-bottom: var(--space-2);
}

.quick-feature__title {
  font-size: var(--text-med);
  font-weight: 600;
  color: rgb(var(--foreground));
}

.quick-feature__desc {
  font-size: var(--text-sm);
  color: rgb(var(--muted-foreground));
}

/* Quick feature image button */
.quick-feature__image-btn {
  width: 100%;
  height: 160px;
  padding: 0;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--background));
  cursor: pointer;
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.quick-feature__image-btn:hover {
  border-color: rgb(var(--primary));
}

.quick-feature__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 160px;
  background-color: rgb(var(--background));
  border: 1px solid rgb(var(--border));
  transition: all var(--duration-fast) var(--ease-out);
}

.quick-feature__image-btn:hover .quick-feature__image-placeholder {
  border-color: rgb(var(--primary));
  background-color: rgb(var(--muted));
}

.quick-feature__placeholder-icon {
  width: 32px;
  height: 32px;
  color: rgb(var(--muted-foreground));
  opacity: 0.5;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.quick-feature__image-btn:hover .quick-feature__placeholder-icon {
  opacity: 0.8;
}

.quick-feature__placeholder-text {
  color: rgb(var(--muted-foreground));
  opacity: 0.7;
}

/* Actual quick feature images - zoomed preview, cropped to container */
.quick-feature__image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%) scale(1.2);
  /* Smooth scaling for downscaled images */
  -webkit-image-rendering: auto;
  image-rendering: auto;
  backface-visibility: hidden;
}

/* Modifier for top-center crop position */
.quick-feature__image--top {
  object-position: top center;
}

/* Modifier for top-left crop position */
.quick-feature__image--top-left {
  top: 0;
  left: 0;
  transform: scale(1.2);
  transform-origin: top left;
  object-position: top left;
}

/* Modifier for top-center crop position */
.quick-feature__image--top-center {
  top: 0;
  left: 50%;
  transform: scale(1.2) translateX(-50%);
  transform-origin: top center;
  object-position: top center;
}

/* ===========================================
   LIGHTBOX
   =========================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal) var(--ease-out);
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
}

.lightbox__container {
  position: relative;
  /* Let content (image) define width, but cap at 90vw */
  max-width: 90vw;
  max-height: 90vh;
  background-color: rgb(var(--background));
  border: 1px solid rgb(var(--border));
  overflow: visible;
  transform: scale(0.95);
  transition: transform var(--duration-normal) var(--ease-out);
}

.lightbox--open .lightbox__container {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  transform: translate(50%, -50%);
}

.lightbox__close:hover {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.lightbox__close i {
  width: 24px;
  height: 24px;
  color: #333;
}

.lightbox__content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.lightbox__image-wrapper {
  /* Clean wrapper - no padding/margins, just contains the image */
  position: relative;
  z-index: 1;
  line-height: 0;
  flex-shrink: 0;
  /* Subtle shadow casting down onto the text area */
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

.lightbox__image {
  /* Display at natural size, but cap at 90vw and leave room for text */
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: calc(90vh - 140px);
}

.lightbox__image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 600px;
  max-width: 90vw;
  height: 400px;
  color: rgb(var(--muted-foreground));
  background-color: rgb(var(--card));
}

.lightbox__placeholder-icon {
  width: 64px;
  height: 64px;
  opacity: 0.4;
}

.lightbox__placeholder-text {
  opacity: 0.6;
}

.lightbox__info {
  /* Trick: width:0 means it doesn't contribute to container width calculation,
     but min-width:100% makes it fill the available space (set by image) */
  width: 0;
  min-width: 100%;
  padding: var(--space-5) var(--space-6);
  background-color: rgb(var(--background-accent));
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.lightbox__title {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: rgb(var(--foreground));
  margin-bottom: var(--space-3);
}

.lightbox__desc {
  font-size: var(--text-base);
  color: rgb(var(--muted-foreground));
  line-height: var(--leading-relaxed);
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

/* ===========================================
   FAQ SECTION
   =========================================== */

.faq {
  padding: var(--space-20) 0;
}

.faq .section-heading {
  margin-bottom: var(--space-12);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq__item {
  background-color: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: all 0.2s ease;
}

.faq__item:hover {
  border-color: rgb(var(--foreground) / 0.2);
}

.faq__item[open] {
  background-color: rgb(var(--background));
}

.faq__question {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-user-select: none;
  user-select: none;
  margin: 0;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: var(--text-2xl);
  font-weight: 400;
  color: rgb(var(--muted-foreground));
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.faq__item[open] .faq__question::after {
  content: '−';
}

.faq__answer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgb(var(--border));
}

.faq__answer p {
  margin: 0;
  line-height: var(--leading-relaxed);
}

/* ===========================================
   FINAL CTA
   =========================================== */

.final-cta {
  background-color: rgb(var(--background-accent));
  text-align: center;
  padding: var(--space-24) 0;
}

.final-cta__headline {
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.final-cta__subtext {
  font-size: var(--text-lg);
  color: rgb(var(--muted-foreground));
  margin-bottom: var(--space-8);
}

.final-cta__platforms {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
  color: rgb(var(--muted-foreground));
}

.final-cta__platform {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.final-cta__platform-icon {
  font-size: 1.5rem;
}

/* ===========================================
   FOOTER
   =========================================== */

.footer {
  background-color: rgb(var(--primary));
  color: rgb(var(--primary-foreground));
  padding: var(--space-8) 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__logo-icon {
  width: 24px;
  height: 24px;
}

.footer__logo-text {
  font-weight: 600;
}

.footer__nav {
  display: flex;
  gap: var(--space-6);
}

.footer__link {
  font-size: var(--text-sm);
  opacity: 0.8;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
  opacity: 1;
}

.footer__copyright {
  font-size: var(--text-xs);
  opacity: 0.6;
}

/* ===========================================
   RESPONSIVE STYLES
   =========================================== */

@media (max-width: 1280px) {
  .quick-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subheadline {
    max-width: none;
    margin: 0 auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .feature {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature--reversed .feature__content,
  .feature--reversed .feature__visual {
    order: unset;
  }

  .pain-points__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-block__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial__columns {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .testimonial__divider {
    display: none;
  }

  .testimonial__quote {
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgb(var(--foreground));
  }

  .testimonial__pullquote {
    text-align: left;
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* Reduce section padding for mobile */
  .section {
    padding: var(--space-12) 0;
  }

  .header__tagline {
    display: none;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgb(var(--background));
    border-bottom: 1px solid rgb(var(--border));
    padding: var(--space-4) var(--container-padding);
    gap: var(--space-4);
  }

  .header__nav--open {
    display: flex;
  }

  .header__nav-link {
    padding: var(--space-3) 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .header__nav .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .header__menu-btn {
    display: block;
    min-width: 44px;
    min-height: 44px;
  }

  .hero.section {
    min-height: 0;
    padding-top: calc(var(--header-height) + var(--space-10));
    padding-bottom: var(--space-12);
  }

  .hero__visual .screenshot-placeholder {
    min-height: 280px;
  }

  .pain-points__grid {
    grid-template-columns: 1fr;
  }

  /* Remove min-heights when cards stack */
  .pain-point__title {
    min-height: 0;
  }

  .pain-point__desc {
    min-height: 0;
  }

  /* Reduce feature section gap when stacked */
  .feature {
    gap: var(--space-6);
  }

  /* Allow feature shortcut to wrap */
  .feature__shortcut {
    flex-wrap: wrap;
    justify-content: center;
  }

  .trust-block__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .quick-features__grid {
    grid-template-columns: 1fr;
  }

  .quick-feature__image-placeholder {
    height: 120px;
  }

  /* Fix lightbox close button position */
  .lightbox__close {
    transform: none;
    top: var(--space-2);
    right: var(--space-2);
  }

  .lightbox__container {
    width: auto;
    max-width: calc(100vw - 2rem);
    max-height: 85vh;
  }

  .lightbox__image {
    max-height: calc(85vh - 120px);
  }

  .lightbox__image-placeholder {
    height: 250px;
  }

  .lightbox__info {
    padding: var(--space-4);
  }

  .lightbox__title {
    font-size: var(--text-xl);
  }

  .lightbox__desc {
    font-size: var(--text-sm);
  }

  .final-cta {
    padding: var(--space-16) 0;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-6);
    text-align: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-10) 0;
  }

  .structure-bridge__categories {
    gap: var(--space-3);
  }

  .category-card {
    padding: var(--space-2) var(--space-4);
  }

  .trust-block__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .trust-point {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: var(--space-4);
  }

  .trust-point__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
  }

  .btn-xl {
    width: 100%;
  }

  .final-cta {
    padding: var(--space-12) 0;
  }

  .final-cta__platforms {
    flex-direction: column;
    align-items: center;
  }

  /* Reduce lightbox info padding */
  .lightbox__info {
    padding: var(--space-3);
  }

  .lightbox__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
  }
}

/* Very narrow devices */
@media (max-width: 375px) {
  .hero__quote {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .feature__headline {
    font-size: var(--text-2xl);
  }

  .final-cta__headline {
    font-size: var(--text-2xl);
  }

  .container {
    padding: 0 var(--space-4);
  }

  .category-card {
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }

  .category-card__icon {
    width: 18px;
    height: 18px;
  }

  .category-card__label {
    font-size: var(--text-sm);
  }
}

/* Extra narrow devices (iPhone SE 1st gen, etc) */
@media (max-width: 320px) {
  .container {
    padding: 0 var(--space-3);
  }

  .hero__quote {
    font-size: 1.4rem;
  }

  .hero__subheadline {
    font-size: var(--text-base);
  }

  .feature__headline {
    font-size: var(--text-xl);
  }

  .feature__desc {
    font-size: var(--text-base);
  }

  .final-cta__headline {
    font-size: var(--text-xl);
  }

  .btn-xl {
    padding: 0.875rem 1.5rem;
    font-size: var(--text-lg);
  }

  .structure-bridge__categories {
    gap: var(--space-2);
  }

  .category-card {
    padding: var(--space-1) var(--space-2);
  }
}

/* ===========================================
   HOVER STATES - Only for devices that support hover
   Prevents sticky hover on touch devices
   =========================================== */

@media (hover: hover) and (pointer: fine) {
  .card-hover:hover {
    box-shadow: -7px 7px 0 0 rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
  }

  .feature__image-btn:hover {
    transform: translateY(-2px);
    box-shadow: -9px 9px 0 0 rgba(0, 0, 0, 0.25);
  }

  .quick-feature:hover {
    border-color: rgb(var(--primary));
  }
}

/* Remove hover effects for touch devices */
@media (hover: none) {
  .card-hover:hover {
    box-shadow: none;
    transform: none;
  }

  .feature__image-btn:hover {
    transform: none;
    box-shadow: -7px 7px 0 0 rgba(0, 0, 0, 0.2);
  }
}
