/* Self-hosted fonts (GDPR: no requests to fonts.googleapis.com / fonts.gstatic.com).
   Variable woff2, weights 400-800, latin + latin-ext subsets. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f6f8ef;
  --paper-light: #f8faf4;
  --paper-warm: #fff9ec;
  --ink: #171d14;
  --ink-soft: #44513f;
  --muted: #707b68;
  --line: rgba(23, 29, 20, 0.1);
  --line-strong: rgba(23, 29, 20, 0.18);
  --leaf: #285f3b;
  --leaf-light: #0b4726;
  --moss: #6f8c49;
  --amber: #c98b28;
  --coral: #dc6543;
  --surface: rgba(255, 252, 242, 0.9);
  --surface-glass: rgba(255, 252, 242, 0.7);
  --shadow-soft: 0 8px 40px rgba(40, 95, 59, 0.08);
  --shadow-medium: 0 16px 56px rgba(40, 95, 59, 0.12);
  --shadow-glow: 0 0 60px rgba(40, 95, 59, 0.06);
  --max: 1100px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  background: var(--paper-warm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, calc(var(--max) + 48px));
  margin: 0 auto;
  padding: 20px 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.brand-mark:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--leaf);
}

.brand-icon img {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.site-nav a {
  position: relative;
  padding: 10px 18px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.site-nav a:hover {
  color: var(--leaf);
  background: rgba(40, 95, 59, 0.06);
}

.site-nav a.active {
  color: var(--leaf);
  background: rgba(40, 95, 59, 0.08);
}

.main {
  padding-top: 80px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 80px 24px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(40, 95, 59, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(111, 140, 73, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 20% 30%, var(--leaf) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, var(--moss) 1px, transparent 1px),
    radial-gradient(circle at 60% 20%, var(--amber) 0.5px, transparent 0.5px);
  background-size: 80px 80px, 120px 120px, 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(40, 95, 59, 0.08);
  border: 1px solid rgba(40, 95, 59, 0.15);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 28px;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--leaf);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-brand {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 2rem;
  color: var(--leaf);
}

.hero-brand-seal {
  display: grid;
  width: 6.5rem;
  height: 6.5rem;
  place-items: center;
  padding: 0.625rem;
  border: 1px solid rgba(40, 95, 59, 0.16);
  border-radius: 2rem;
  background: rgba(255, 249, 236, 0.66);
  box-shadow: var(--shadow-soft);
}

.hero-brand-seal img {
  display: block;
  width: 5.25rem;
  height: 5.25rem;
}

.hero-brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero h1 {
  margin: 0 0 24px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-line {
  display: block;
  margin-bottom: 8px;
}

.hero-copy {
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
}

.hero-decoration {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  opacity: 0.06;
  pointer-events: none;
}

.portfolio {
  position: relative;
  padding: 100px 24px 80px;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
}

.portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--leaf));
}

.section-intro {
  text-align: center;
  margin-bottom: 60px;
}

.eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--leaf);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--leaf));
}

.eyebrow::before {
  right: calc(100% + 16px);
  background: linear-gradient(90deg, transparent, var(--leaf));
}

.eyebrow::after {
  left: calc(100% + 16px);
  background: linear-gradient(90deg, var(--leaf), transparent);
}

.section-intro h2 {
  margin: 0 auto;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  max-width: 600px;
}

.signal-list {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 40px;
}

.signal-list::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--leaf), rgba(40, 95, 59, 0.15), rgba(40, 95, 59, 0.05));
}

.signal-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

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

.signal-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 38px;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border: 3px solid var(--leaf);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(40, 95, 59, 0.12), 0 0 20px rgba(40, 95, 59, 0.1);
}

.signal-item:nth-child(2)::before {
  border-color: var(--moss);
  box-shadow: 0 0 0 4px rgba(111, 140, 73, 0.12), 0 0 20px rgba(111, 140, 73, 0.1);
}

.signal-item:nth-child(3)::before {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(201, 139, 40, 0.12), 0 0 20px rgba(201, 139, 40, 0.1);
}

.signal-index {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--leaf);
  padding-top: 4px;
}

.signal-content h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.signal-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.signal-state {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-light));
  color: white;
  box-shadow: 0 4px 12px rgba(40, 95, 59, 0.25);
}

.signal-state.muted {
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--muted);
  box-shadow: none;
}

.method {
  position: relative;
  padding: 60px 24px 100px;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
}

.method::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.method-item {
  position: relative;
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  text-align: center;
  overflow: hidden;
  transition: all 0.35s ease;
}

.method-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--leaf), var(--moss), var(--amber));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.method-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium), var(--shadow-glow);
}

.method-item:hover::before {
  opacity: 1;
}

.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(40, 95, 59, 0.08), rgba(40, 95, 59, 0.04));
  border-radius: 50%;
  color: var(--leaf);
  transition: transform 0.35s ease;
}

.method-item:hover .method-icon {
  transform: scale(1.1);
}

.method-item h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.method-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 24px;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.footer-brand img {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--leaf);
  transition: gap 0.2s ease;
}

.footer-top:hover {
  gap: 10px;
}

.footer-top svg {
  transition: transform 0.2s ease;
}

.footer-top:hover svg {
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand-mark {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .site-nav {
    gap: 4px;
    padding: 6px;
  }

  .site-nav a {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 100svh;
    padding: 60px 18px;
  }

  .hero-badge {
    margin-bottom: 20px;
  }

  .portfolio,
  .method {
    padding: 60px 18px 60px;
  }

  .signal-list {
    padding-left: 32px;
  }

  .signal-list::before {
    left: 8px;
  }

  .signal-item {
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .signal-item::before {
    left: -28px;
    width: 12px;
    height: 12px;
  }

  .signal-state {
    grid-column: 2;
    width: fit-content;
    margin-top: 12px;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .method-item {
    padding: 28px 24px;
  }

  .site-footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 40px 18px;
  }
}

/* App pages — Currency Converter */

.hero-badge[data-variant="amber"] {
  background: rgba(201, 139, 40, 0.10);
  border-color: rgba(201, 139, 40, 0.22);
  color: var(--amber);
}

.hero-badge[data-variant="amber"]::before {
  background: var(--amber);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

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

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--leaf);
  color: var(--paper);
  border: 1px solid var(--leaf);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 14px 36px rgba(40, 95, 59, 0.18);
}

.cta-primary:hover,
.cta-primary:focus-visible {
  background: var(--leaf-light);
  border-color: var(--leaf-light);
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(40, 95, 59, 0.24);
}

.cta-primary:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: rgba(255, 252, 242, 0.72);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(16px);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  background: rgba(255, 252, 242, 0.95);
  transform: translateY(-1px);
}

.cta-secondary:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.cta-disabled {
  color: var(--muted);
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  cursor: default;
}

.cta-secondary.cta-disabled:hover,
.cta-secondary.cta-disabled:focus-visible {
  background: transparent;
  transform: none;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.screenshot-card {
  margin: 0;
  text-align: center;
}

.screenshot-frame {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--paper-warm), var(--paper));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  aspect-ratio: 9 / 16;
  max-width: 280px;
  margin: 0 auto;
  overflow: hidden;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: calc(var(--radius-xl) - 6px);
  display: block;
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-xl) - 8px);
  background: var(--paper);
  border: 1px dashed rgba(40, 95, 59, 0.30);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px;
  text-align: center;
  color: var(--ink-soft);
}

.screenshot-placeholder[data-mode="dark"] {
  background: #1a2418;
  color: rgba(246, 248, 239, 0.78);
  border-color: rgba(111, 140, 73, 0.45);
}

.screenshot-placeholder span {
  font-weight: 700;
  font-size: 0.95rem;
}

.screenshot-placeholder small {
  font-size: 0.78rem;
  color: var(--muted);
}

.screenshot-placeholder[data-mode="dark"] small {
  color: rgba(246, 248, 239, 0.55);
}

.screenshot-card figcaption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── Showcase hero (two-column with screenshot) ── */

.hero--showcase {
  flex-direction: row;
  align-items: center;
  text-align: left;
  justify-content: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  min-height: auto;
  padding: 120px 24px 80px;
}

.hero--showcase h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.hero--showcase .hero-copy {
  margin: 0 0 32px;
  max-width: 460px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  width: 100%;
  max-width: 1000px;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.app-hero-icon {
  width: 8rem;
  height: 8rem;
  margin-bottom: 1.5rem;
  border-radius: 1.75rem;
  box-shadow: var(--shadow-medium);
}

.app-hero-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-text .hero-badge {
  margin-bottom: 24px;
}

.hero-shot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.shot-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(40, 95, 59, 0.18),
    0 8px 24px rgba(23, 29, 20, 0.08);
  border: 1px solid var(--line);
  aspect-ratio: 9 / 20;
  max-width: 320px;
  width: 100%;
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ── Stats band ── */

.stats-band {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 40px 24px;
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 8px 12px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--leaf);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Feature rows (alternating) ── */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 24px;
}

.feature-row[data-reverse] .feature-text {
  order: 2;
}

.feature-text {
  max-width: 420px;
}

.feature-text .eyebrow {
  margin-bottom: 16px;
}

.feature-text h2 {
  margin: 0 0 16px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.feature-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.feature-shot {
  display: flex;
  justify-content: center;
}

.feature-shot .shot-frame {
  max-width: 280px;
}

/* ── Theme showcase (light vs dark) ── */

.theme-showcase {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.theme-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  justify-items: center;
  margin-top: 24px;
}

.theme-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.theme-shot .shot-frame {
  max-width: 280px;
  width: 100%;
}

.theme-caption {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Privacy callout ── */

.privacy-callout {
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 640px;
  margin: 0 auto;
}

.privacy-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(40, 95, 59, 0.08);
  border: 1px solid rgba(40, 95, 59, 0.15);
  color: var(--leaf);
}

.privacy-callout h2 {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.privacy-callout p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.section-copy {
  margin: 12px auto 0;
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: center;
}

/* Apps index section (home) */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  backdrop-filter: blur(16px);
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(40, 95, 59, 0.35);
  box-shadow: var(--shadow-medium);
}

.app-card:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.app-card[data-state="coming-soon"] {
  border-style: dashed;
  opacity: 0.92;
}

.app-card[data-state="placeholder"] {
  border-style: dashed;
  border-color: var(--line);
  background: transparent;
  box-shadow: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  min-height: 240px;
}

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-card-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.app-card-icon {
  display: block;
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  border-radius: 0.875rem;
  box-shadow: var(--shadow-soft);
}

.app-card-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.app-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(201, 139, 40, 0.12);
  border: 1px solid rgba(201, 139, 40, 0.30);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}

.app-card-tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.app-card-publisher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--moss);
}

.app-card-publisher img {
  display: block;
  width: 1rem;
  height: 1rem;
}

.app-card-cta {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--leaf);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-card-cta::after {
  content: "→";
  font-weight: 600;
  transition: transform 0.18s ease;
}

.app-card:hover .app-card-cta::after {
  transform: translateX(3px);
}

.app-card--feature {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.app-card-cover {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 24px 24px;
  background: linear-gradient(160deg, var(--paper-warm), var(--paper));
  border-right: 1px solid var(--line);
}

.app-card-cover img {
  display: block;
  width: auto;
  height: 260px;
  max-width: 160px;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(40, 95, 59, 0.18),
    0 4px 14px rgba(23, 29, 20, 0.08);
  border: 1px solid rgba(23, 29, 20, 0.08);
}

.app-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 32px;
  min-width: 0;
}

.app-card--feature .app-card-title {
  font-size: 1.7rem;
}

.apps-grid-foot {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  .app-card--feature {
    flex-direction: column;
  }

  .app-card-cover {
    padding: 20px 20px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .app-card-cover img {
    height: 220px;
    max-width: 130px;
  }

  .app-card-body {
    padding: 24px 24px 26px;
  }

  .app-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-card-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .app-card--feature .app-card-title {
    font-size: 1.45rem;
  }
}

/* Legal page */

.main-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 16px 0 12px;
  color: var(--ink);
}

.legal-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.legal-section {
  margin: 36px 0;
}

.legal-section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.legal-section p,
.legal-section ul {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-section ul {
  padding-left: 22px;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section code {
  background: rgba(40, 95, 59, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  color: var(--leaf-light);
}

.legal-section a {
  color: var(--leaf);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--leaf-light);
}

/* Per-app sections: visually distinct from brand-level sections */
.legal-section-app {
  margin: 44px 0;
  padding: 28px 28px 24px;
  background: rgba(40, 95, 59, 0.04);
  border: 1px solid rgba(40, 95, 59, 0.18);
  border-radius: 16px;
}

.legal-section-app h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.legal-section-app h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 22px 0 10px;
}

.legal-app-meta {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  background: rgba(40, 95, 59, 0.10);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.legal-section-future {
  background: transparent;
  border-style: dashed;
  border-color: rgba(40, 95, 59, 0.28);
}

.legal-section-future .legal-app-meta {
  color: var(--ink-soft);
  background: rgba(40, 95, 59, 0.06);
}

@media (max-width: 720px) {
  .apps-grid,
  .screenshots {
    grid-template-columns: 1fr;
  }

  .hero-cta,
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta a,
  .cta-row a {
    width: 100%;
  }

  .hero--showcase {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .app-hero-icon {
    width: 6.5rem;
    height: 6.5rem;
    margin-right: auto;
    margin-left: auto;
    border-radius: 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-shot .shot-frame {
    max-width: 240px;
  }

  .feature-row,
  .feature-row[data-reverse] {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 24px;
    text-align: center;
  }

  .feature-row[data-reverse] .feature-text {
    order: 0;
  }

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

  .feature-shot .shot-frame {
    max-width: 240px;
  }

  .theme-showcase {
    padding: 56px 24px;
  }

  .theme-shots {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .theme-shot .shot-frame {
    max-width: 220px;
  }

  .stats-band {
    gap: 0;
  }

  .stat {
    flex: 1 1 45%;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 8px;
  }

  .stat:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 1; }
  }
}
