/* === LANDING PAGE STYLES — GARDEN EDITION === */
/* Extends tokens.css + app.css — landing-page specific layout */

/* ---- Layout shell ---- */
.landing-shell {
  min-block-size: 100vh;
  background: var(--color-background);
  color: var(--color-text);
  font-family: 'Rubik', sans-serif;
}

/* Anchor jumps and focused targets land below the sticky header */
html {
  scroll-padding-block-start: 6rem;
}

/* ---- Skip link ---- */
/* Moved out of view until it has keyboard focus. It is shifted, never
   display:none, so it stays in the tab order. Sits above the sticky header. */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0.5rem;
  z-index: 101;
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 0.625rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}

/* Sections that receive focus from an in-page link or the skip link are not
   controls, so they draw no ring. */
#main:focus,
.landing-shell [tabindex="-1"]:focus {
  outline: none;
}

/* Every link and button shows the same ring when reached by keyboard. The
   offset puts the ring on the page around the control, not on its fill. */
.landing-shell a:focus-visible,
.landing-shell button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---- Header ---- */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--color-surface);
  border-block-end: 1px solid var(--color-border);
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  gap: 1rem;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
}

.landing-brand-mark {
  color: var(--color-primary);
}

.landing-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

/* The language menu hangs from this row, not from the globe. The globe is
   the first item of the row and the license link is always wider than the
   menu, so a menu that starts at the globe and opens toward the link stays
   inside the row. On a phone the header wraps and the row sits at the screen
   edge; a menu that opened from the globe toward that edge went off screen. */
.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

/* ---- Language selector popover ---- */
.lang-selector {
  position: static;
}

.lang-globe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.lang-globe-btn:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
}

.lang-popover {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  width: max-content;
  min-width: 140px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 0.625rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
}

.lang-popover:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  color: var(--color-text);
  font-size: 0.9375rem;
  text-align: start;
  cursor: pointer;
  transition: background 0.1s;
}

.lang-option:hover {
  background: var(--color-surface-hover);
}

.lang-option[aria-current="true"] {
  color: var(--color-primary);
  font-weight: 600;
}

/* The popover clips its overflow, so an outside ring would be cut off; the
   option ring sits inside the button. The .landing-shell prefix keeps it
   ahead of any general .landing-shell button ring whatever the order. */
.landing-shell .lang-option:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.landing-enter-link {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.6875rem 2rem;
  border-radius: 0.625rem;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
  min-inline-size: 220px;
  text-align: center;
}

.landing-enter-link:hover {
  background: color-mix(in srgb, var(--color-primary) 22%, transparent);
  border-color: color-mix(in srgb, var(--color-primary) 55%, transparent);
}

/* ---- Aurora animation ---- */
@keyframes aurora {
  from { background-position: 50% 50%, 50% 50%; }
  to   { background-position: 350% 50%, 350% 50%; }
}

/* ---- Hero section ---- */
.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 2rem 2.5rem;
  text-align: center;
  background: #E8F5E2;
}

[data-theme="dark"] .landing-hero {
  background: #0f2a1a;
}

/* ---- Aurora glow overlay ---- */
.hero-aurora {
  position: absolute;
  inset: -10px;
  pointer-events: none;

  background-image:
    repeating-linear-gradient(100deg, rgba(206,232,195,0.8) 0%, rgba(206,232,195,0.8) 7%, transparent 10%, transparent 12%, rgba(206,232,195,0.8) 16%),
    repeating-linear-gradient(100deg, #2d6a4f 10%, #95d5b2 15%, #52b788 20%, #d8f3dc 25%, #b7e4c7 30%);
  background-size: 300% 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(12px);
  opacity: 0.35;
  animation: aurora 60s linear infinite;
  will-change: transform;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
}

.hero-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(100deg, rgba(206,232,195,0.6) 0%, rgba(206,232,195,0.6) 7%, transparent 10%, transparent 12%, rgba(206,232,195,0.6) 16%),
    repeating-linear-gradient(100deg, #b7e4c7 10%, #d8f3dc 15%, #95d5b2 20%, #CEE8C3 25%, #52b788 30%);
  background-size: 200% 100%;
  animation: aurora 60s linear infinite;
  background-attachment: fixed;
  mix-blend-mode: soft-light;
}

[data-theme="dark"] .hero-aurora {
  opacity: 0.3;
  mix-blend-mode: screen;
}

/* Centered text content — sits above aurora & illustrations */
.hero-content {
  position: relative;
  z-index: 2;
  max-inline-size: 760px;
  margin-inline: auto;
}

/* ---- Hero illustrations ---- */
.hero-botanical {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

/* Left — watering can, positioned bottom-center of left side */
.hero-botanical-left {
  inset-inline-start: -10px;
  bottom: 10px;
}

.hero-botanical-left .hero-botanical-img {
  width: 320px;
}

/* Right — flower pots strip, centered vertically */
.hero-botanical-right {
  inset-inline-end: -10px;
  top: 50%;
  transform: translateY(-50%);
}

.hero-botanical-right .hero-botanical-img {
  width: 180px;
}

.hero-botanical-img {
  display: block;
  height: auto;
  opacity: 0.4;
}

[data-theme="dark"] .hero-botanical-img {
  opacity: 0.2;
  filter: invert(1);
}

@media (max-width: 1100px) {
  .hero-botanical-left .hero-botanical-img { width: 240px; }
  .hero-botanical-right .hero-botanical-img { width: 140px; }
  .hero-botanical-left { inset-inline-start: -30px; }
  .hero-botanical-right { inset-inline-end: -30px; }
  .hero-botanical-img { opacity: 0.3; }
}

@media (max-width: 820px) {
  .hero-botanical {
    display: none;
  }
}

/* ---- Botanical section divider ---- */
.botanical-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 0.75rem;
}

.botanical-divider-img {
  display: block;
  margin-inline: auto;
  max-inline-size: min(640px, 90vw);
  height: auto;
  opacity: 0.6;
  filter: brightness(1.15);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8% 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8% 92%, transparent 100%);
}

[data-theme="dark"] .botanical-divider-img {
  filter: invert(1);
  opacity: 0.4;
  mix-blend-mode: screen;
}

/* ---- Hero badge ---- */
.landing-hero-badge {
  display: inline-block;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  margin-block-end: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero badge override — green on light background */
.landing-hero .landing-hero-badge {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

[data-theme="dark"] .landing-hero-badge {
  background: var(--color-surface-alt);
  color: var(--color-primary-dark);
}

[data-theme="dark"] .landing-hero .landing-hero-badge {
  background: color-mix(in srgb, var(--color-cream-warm-200) 15%, transparent);
  color: var(--color-cream-warm-200);
}

/* ---- Hero typography ---- */
.landing-hero h1 {
  font-size: clamp(1.75rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-primary, #2d6a4f);
  max-inline-size: 40rem;
  margin-inline: auto;
  margin-block-end: 1rem;
}

.landing-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text, #2f2d38);
  margin-block-end: 2.75rem;
  line-height: 1.65;
  max-inline-size: 600px;
  margin-inline: auto;
}

.landing-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Primary CTA button ---- */
.landing-btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 0.9375rem 2.25rem;
  border-radius: 3rem;
  text-decoration: none;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--color-primary) 28%, transparent);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  letter-spacing: -0.01em;
}

.landing-btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.landing-btn-secondary {
  display: inline-block;
  font-size: 0.9375rem;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  border-radius: 3rem;
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
  background: var(--color-surface);
  transition: background 0.15s;
}

.landing-btn-secondary:hover {
  background: var(--color-surface-hover);
}

/* The quiet second hero button next to the buy button */
.hero-cta-secondary {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

.landing-price-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-block-start: 0.875rem;
}

/* Hero CTA button — green on light bg */
.landing-hero .landing-btn-primary {
  background: var(--color-primary);
  color: #fff;
  font-size: 1.1875rem;
  padding: 1.05rem 2.75rem;
  border: none;
  box-shadow: 0 4px 24px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.landing-hero .landing-btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 32px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

/* Hero price note — muted text */
.landing-hero .landing-price-note {
  color: var(--color-text-muted);
}

/* Dark mode hero text overrides */
[data-theme="dark"] .landing-hero h1 {
  color: var(--color-cream-warm-200);
}

[data-theme="dark"] .landing-hero .landing-subtitle {
  color: color-mix(in srgb, var(--color-cream-warm-200) 75%, transparent);
}

[data-theme="dark"] .landing-hero .landing-price-note {
  color: color-mix(in srgb, var(--color-cream-warm-200) 60%, transparent);
}

/* White text fails on the light teal fill in dark mode, and more so on the
   lighter hover fill; the dark surface colour reads on both. */
[data-theme="dark"] .landing-btn-primary,
[data-theme="dark"] .landing-btn-primary:hover,
[data-theme="dark"] .landing-hero .landing-btn-primary,
[data-theme="dark"] .landing-hero .landing-btn-primary:hover {
  color: var(--color-surface);
}

/* ---- Sections ---- */
.landing-section {
  padding: 5rem 2rem;
  max-inline-size: 1100px;
  margin-inline: auto;
}

/* Reduce top padding when section immediately follows a botanical divider */
.botanical-divider + .landing-section,
.botanical-divider-alt + .landing-section {
  padding-block-start: 1.5rem;
}

.landing-section-title {
  text-align: center;
  font-size: clamp(1.625rem, 3.2vw, 2.125rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-block-end: 0.75rem;
  letter-spacing: -0.025em;
}

.landing-section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-block-end: 3rem;
  line-height: 1.6;
}

/* ---- Alternate section background ---- */
.landing-section-alt {
  background: color-mix(in srgb, var(--color-surface-alt) 85%, var(--color-primary) 15%);
  border-radius: 1.5rem;
  box-shadow: 0 0 32px color-mix(in srgb, var(--color-primary) 10%, transparent);
  transition: box-shadow 0.3s;
}

.landing-section-alt:hover {
  box-shadow: 0 0 48px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

[data-theme="dark"] .landing-section-alt {
  background: var(--color-surface-alt);
}

/* ---- Features grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@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 with botanical accent line at top */
.feature-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  border-block-start: 3px solid color-mix(in srgb, var(--color-primary) 45%, transparent);
  padding: 1.875rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.18s;
}

/* The light teal text of dark mode cannot be read on a white card. */
[data-theme="dark"] .feature-card {
  background: var(--color-surface);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    200px circle at var(--x, 50%) var(--y, 50%),
    color-mix(in srgb, var(--color-primary) 12%, transparent),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--color-primary) 18%, transparent), 0 8px 32px color-mix(in srgb, var(--color-primary) 12%, transparent);
  transform: translateY(-2px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 72px;
  margin-block-end: 1rem;
}

.feature-icon-img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .feature-icon-img {
  filter: invert(1);
  mix-blend-mode: screen;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-block-end: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---- Pricing section ---- */
.landing-pricing {
  padding: 2rem 2rem 3rem;
  background: color-mix(in srgb, var(--color-surface-alt) 85%, var(--color-primary) 15%);
}

[data-theme="dark"] .landing-pricing {
  background: var(--color-surface-alt);
}

.landing-pricing-inner {
  max-inline-size: 500px;
  margin-inline: auto;
  text-align: center;
  border-radius: 1.5rem;
  box-shadow: 0 0 40px color-mix(in srgb, var(--color-primary) 14%, transparent);
  transition: box-shadow 0.3s;
}

.pricing-card {
  background: var(--color-surface);
  border: 2px solid color-mix(in srgb, var(--color-primary) 55%, transparent);
  border-radius: 1.75rem;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 12px 48px color-mix(in srgb, var(--color-primary) 14%, transparent);
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  margin-block-end: 0.375rem;
}

.pricing-price {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-price-sub {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-block-end: 0.5rem;
}

.pricing-no-subscription,
.pricing-value-line {
  font-size: 0.9375rem;
  color: var(--color-primary-dark, var(--color-primary));
  font-style: italic;
  margin-block-end: 2rem;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: start;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  padding-block: 0.5rem;
  border-block-end: 1px solid var(--color-border-faint);
}

.pricing-features-list li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-block-start: 0.1em;
}

.pricing-data-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-block-end: 1.5rem;
  padding: 0.625rem 0.875rem;
  background: var(--color-surface-alt);
  border-radius: 0.625rem;
  line-height: 1.5;
}

.pricing-actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: center;
}

.pricing-vat-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

.pricing-legal-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
  max-inline-size: 400px;
  margin: 0;
}

.pricing-legal-text a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding-block: 0.25rem;
}

.pricing-legal-text a:hover {
  color: var(--color-primary);
}

.pricing-license-link {
  font-size: 0.875rem;
  color: var(--color-primary);
  text-decoration: none;
}

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

/* ---- Who is it for ---- */
.landing-section--compact {
  padding-block: 3rem;
}

.who-for-line {
  margin-block-end: 0;
}

/* ---- Sound Familiar ---- */
.sound-familiar-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  max-inline-size: 680px;
}

.sound-familiar-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 1rem;
  color: var(--color-text);
  padding-block: 0.75rem;
  border-block-end: 1px solid var(--color-border-faint);
  line-height: 1.5;
}

.sound-familiar-list li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-block-start: 0.1em;
}

.sound-familiar-note {
  max-inline-size: 680px;
  margin-inline: auto;
  font-size: 1rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.65;
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent);
}

/* ---- Why I Built This ---- */
.why-built-quote {
  max-inline-size: 660px;
  margin-inline: auto;
  padding: 2.25rem 2.5rem;
  border-radius: 1.25rem;
  background: var(--color-surface);
  box-shadow: 0 0 24px color-mix(in srgb, var(--color-primary) 12%, transparent);
  border-block-start: 4px solid var(--color-primary);
  position: relative;
}

/* Opening quote mark decoration */
.why-built-quote::before {
  content: '\201C';
  position: absolute;
  top: 0.25rem;
  inset-inline-start: 1.25rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.18;
  font-family: Georgia, serif;
}

.why-built-quote p {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-block-end: 0.875rem;
}

.why-built-quote p:last-child {
  margin-block-end: 0;
  font-weight: 600;
  color: var(--color-primary);
  font-style: italic;
}

/* ---- FAQ ---- */
.faq-list {
  max-inline-size: 700px;
  margin-inline: auto;
}

.faq-item {
  border-block-end: 1px solid var(--color-border);
  padding-block: 0;
}

.faq-item:last-child {
  border-block-end: none;
}

/* Each question is a native details/summary, so open and close, Enter and
   Space work with no script. The flex row with space-between puts the
   chevron on the inline end: right in left-to-right, left in right-to-left. */
summary.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-block-size: 48px;
  padding-block: 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-primary);
}

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

summary.faq-q::marker {
  content: '';
}

summary.faq-q:hover {
  color: var(--color-primary-dark);
}

/* A summary is neither a link nor a button, so the shared ring rule above
   does not reach it. */
.landing-shell .faq-q:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-icon {
  inline-size: 20px;
  block-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-a {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
  padding-block-end: 1.25rem;
  margin: 0;
}

/* ---- Legal sections ---- */
.legal-section {
  padding: 4rem 2rem;
  max-inline-size: 800px;
  margin-inline: auto;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-block-end: 1.5rem;
  padding-block-end: 0.75rem;
  border-block-end: 1px solid var(--color-border);
}

.legal-section h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  margin-block-start: 1.5rem;
  margin-block-end: 0.5rem;
}

.legal-section p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-block-end: 1rem;
}

.legal-section a {
  color: var(--color-primary);
}

.legal-placeholder {
  background: var(--color-surface-alt);
  border: 1px dashed var(--color-border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-family: monospace;
}

.legal-divider {
  border: none;
  border-block-start: 1px solid var(--color-border);
  margin-block: 3rem;
  max-inline-size: 800px;
  margin-inline: auto;
}

/* ---- Footer ---- */
.landing-footer {
  background: var(--color-surface);
  border-block-start: 1px solid var(--color-border);
  padding: 2.75rem 2rem;
  text-align: center;
}

.landing-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-block-end: 1rem;
  font-size: 0.875rem;
}

.landing-footer-links a {
  color: var(--color-primary);
  text-decoration: none;
}

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

.landing-footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-block-end: 0.375rem;
}

.landing-footer-tagline {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ---- Botanical section accents ---- */
.botanical-accent {
  color: var(--color-primary);
  pointer-events: none;
  display: flex;
  justify-content: center;
}

[data-theme="dark"] .botanical-accent {
  color: var(--color-cream-warm-200);
}

/* Small inline accent next to section titles */
.botanical-accent-inline {
  display: inline-block;
  vertical-align: middle;
  color: var(--color-primary);
  opacity: 0.35;
  pointer-events: none;
  margin-inline-start: 0.5rem;
}

[data-theme="dark"] .botanical-accent-inline {
  color: var(--color-cream-warm-200);
}

@media (max-width: 768px) {
  .botanical-accent-inline {
    display: none;
  }
}

/* Positioned botanical decorations — hidden on mobile */
.botanical-positioned {
  position: absolute;
  color: var(--color-primary);
  opacity: 0.3;
  pointer-events: none;
}

[data-theme="dark"] .botanical-positioned {
  color: var(--color-cream-warm-200);
}

@media (max-width: 768px) {
  .botanical-positioned {
    display: none;
  }
}

/* Botanical divider variant — different plant design */
.botanical-divider-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0 0.5rem;
}

/* Founder section — relative for positioned botanicals */
.why-built-quote {
  position: relative;
}

/* Footer botanical decoration */
.botanical-footer-accent {
  display: flex;
  justify-content: center;
  pointer-events: none;
  margin-block-end: 1.25rem;
}

.botanical-footer-img {
  display: block;
  margin-inline: auto;
  max-inline-size: 200px;
  height: auto;
  opacity: 0.55;
  margin-block-end: 1.5rem;
}

[data-theme="dark"] .botanical-footer-img {
  filter: invert(1);
  opacity: 0.45;
}

/* ---- Contact section ---- */
.contact-section {
  padding-block: 4rem;
  padding-inline: 2rem;
  max-inline-size: 800px;
  margin-inline: auto;
  text-align: center;
}

.contact-email-link {
  display: inline-block;
  margin-block-start: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-email-link:hover {
  opacity: 0.8;
}

/* ---- Section separator ---- */
.section-separator {
  block-size: 3rem;
  background: linear-gradient(
    to bottom,
    var(--color-surface-alt),
    var(--color-background)
  );
}

/* ---- Interactive Demo section ---- */
.demo-section {
  padding-block: 5rem;
  padding-inline: 2rem;
  max-inline-size: 1100px;
  margin-inline: auto;
}

.demo-window {
  max-inline-size: 900px;
  margin: 2rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  box-shadow: 0 8px 40px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

/* The demo stage: a picture of the demo with a start control on top. The
   picture, the scrim, the controls and (after a click) the demo frame all
   share one grid cell, so the controls are centred by grid placement and the
   frame takes the picture's place without the page moving. */
.demo-stage {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  block-size: 700px;
}

.demo-stage.is-loaded {
  block-size: auto;
}

.demo-stage > *,
.demo-stage::before {
  grid-area: 1 / 1;
}

/* Softens the picture so the start control reads clearly over it. */
.demo-stage::before {
  content: '';
  z-index: 1;
  background: color-mix(in srgb, var(--color-background) 30%, transparent);
  pointer-events: none;
}

[data-theme="dark"] .demo-stage::before {
  background: color-mix(in srgb, var(--color-background) 45%, transparent);
}

.demo-stage.is-loaded::before {
  content: none;
}

.demo-poster {
  display: block;
  min-block-size: 0;
  z-index: 0;
  overflow: hidden;
}

/* Fills the stage; object-fit keeps the picture's proportions, so the size
   attributes only give the browser the aspect ratio. The alt text shows on
   the scrim if the file fails to load. */
.demo-poster-img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: top center;
  color: var(--color-text);
  /* A heavy blur, so the picture reads as a backdrop and not as the live
     app; the slight scale hides the soft edges the blur leaves. */
  filter: blur(14px);
  transform: scale(1.08);
}

.demo-start {
  place-self: center;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1.125rem 2.25rem;
  border-width: 2px;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--color-text) 22%, transparent);
  max-inline-size: calc(100% - 2rem);
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

/* Makes the whole picture clickable: the hit area is stretched over the
   stage, which is the nearest positioned ancestor. */
.demo-start::after {
  content: '';
  position: absolute;
  inset: 0;
}

.demo-start:disabled {
  opacity: 0.7;
  cursor: progress;
}

.demo-start-icon {
  flex-shrink: 0;
  inline-size: 1.375rem;
  block-size: 1.375rem;
}

/* The phone control: a link that opens the demo full screen. Shown below
   640px only; the start button is shown from 640px up. */
.demo-fullscreen-link {
  justify-content: center;
}

#demo-fullscreen-link {
  display: none;
}

@media (max-width: 639.98px) {
  #demo-start {
    display: none;
  }

  #demo-fullscreen-link {
    display: inline-flex;
  }

  .demo-stage:not(.is-loaded) {
    block-size: 30rem;
  }
}

.demo-iframe {
  width: 100%;
  height: 700px;
  border: none;
  background: var(--color-background);
  display: block;
}

.demo-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

/* Responsive demo */
@media (max-width: 640px) {
  .demo-section {
    padding-inline: 1rem;
  }

  .demo-iframe {
    height: 400px;
  }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  html {
    scroll-padding-block-start: 8rem;
  }
  .landing-header {
    padding: 0.875rem 1rem;
    flex-wrap: wrap;
  }
  .landing-brand-name {
    font-size: 0.9375rem;
  }
  .landing-enter-link {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    min-inline-size: unset;
  }
  /* On a phone the hero is tighter, so the buy label stays on one line and
     the headline, both buttons and the price note fit the first screen of a
     360x640 phone in every language. */
  .landing-hero {
    padding: 2.5rem 1.25rem 3rem;
  }
  .landing-hero .landing-subtitle {
    margin-block-end: 1.75rem;
  }
  .landing-hero .landing-btn-primary {
    font-size: 1.0625rem;
    padding: 0.9375rem 1.5rem;
  }
  .landing-section {
    padding: 3rem 1.25rem;
  }
  .landing-pricing {
    padding: 3rem 1.25rem;
  }
  .legal-section {
    padding: 2.5rem 1.25rem;
  }
  .landing-footer {
    padding: 2rem 1.25rem;
  }
  .why-built-quote {
    padding: 1.75rem 1.5rem;
  }
}

/* ---- Reduced motion ---- */
/* Keep this block last, so it wins over the earlier rules of equal weight.
   Colour and shadow hover changes stay but switch at once; the aurora keeps
   its still gradient. */
@media (prefers-reduced-motion: reduce) {
  .landing-shell *,
  .landing-shell *::before,
  .landing-shell *::after {
    animation: none !important;
    transition: none !important;
  }
  .landing-btn-primary:hover,
  .feature-card:hover {
    transform: none;
  }
  .feature-card::before {
    display: none;
  }
}
