/* ============================================================
   Pauly — Design System
   Brand: fresh green (#4CAF50), warm cream surface, soft shadows
   Type:  Nunito (matches app), system-font fallback chain
   ============================================================ */

/* -- Tokens -------------------------------------------------- */
:root {
  /* Brand */
  --green-50:  #E8F5E9;
  --green-100: #C8E6C9;
  --green-300: #81C784;
  --green-500: #4CAF50;
  --green-600: #43A047;
  --green-700: #388E3C;
  --green-900: #1B5E20;

  /* Neutrals */
  --cream:     #FAF8F5;
  --white:     #FFFFFF;
  --ink-900:   #14181F;
  --ink-700:   #2A2F38;
  --ink-500:   #5A6270;
  --ink-300:   #97A0AE;
  --ink-100:   #E5E8ED;
  --ink-50:    #F2F4F7;

  /* Category accents (mirrors the app) */
  --cat-fruits:    #66BB6A;
  --cat-bakery:    #C9A36A;
  --cat-cheese:    #F4D35E;
  --cat-coldcuts:  #F2A6B0;
  --cat-deli:      #E63946;
  --cat-fishmeat:  #B5365A;
  --cat-frozen:    #7EC4E0;
  --cat-canned:    #F08A24;
  --cat-drinks:    #2D7DD2;
  --cat-dairy:     #B8DAF0;
  --cat-staples:   #D9C8A4;
  --cat-snacks:    #9C6ADE;
  --cat-household: #94A0AC;
  --cat-other:     #B0BAC4;

  /* Surfaces */
  --bg:         var(--cream);
  --surface:    var(--white);
  --surface-2:  #F4F1EB;
  --text:       var(--ink-900);
  --text-muted: var(--ink-500);
  --border:     #E8E4DD;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(20,24,31,.04), 0 1px 3px rgba(20,24,31,.05);
  --shadow-md: 0 4px 10px rgba(20,24,31,.04), 0 8px 24px rgba(20,24,31,.06);
  --shadow-lg: 0 8px 24px rgba(20,24,31,.06), 0 24px 56px rgba(20,24,31,.10);
  --shadow-glow: 0 12px 32px rgba(76,175,80,.22);

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --container:  1180px;
  --gutter:     clamp(20px, 4vw, 40px);

  /* Type — Nunito everywhere; tabular numerals keep digits aligned. */
  --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0F1115;
    --surface:    #181B22;
    --surface-2:  #1F232C;
    --text:       #F2F4F7;
    --text-muted: #97A0AE;
    --border:     #2A2F38;
    --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
    --shadow-md:  0 4px 16px rgba(0,0,0,.4);
    --shadow-lg:  0 16px 48px rgba(0,0,0,.5);
  }
}

/* -- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--green-300);
  outline-offset: 2px;
  border-radius: 6px;
}

/* -- Type ---------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw + 1rem, 4rem); }
h2 { font-size: clamp(1.7rem, 2.2vw + 1rem, 2.6rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green-700);
  background: var(--green-50);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
@media (prefers-color-scheme: dark) {
  .eyebrow { background: rgba(76,175,80,.15); }
}

.lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 60ch;
}

/* -- Layout -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
section { padding-block: clamp(64px, 8vw, 120px); }

/* -- Header -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { text-decoration: none; opacity: .85; }
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}
@media (prefers-color-scheme: dark) {
  /* The green wordmark stays legible on dark backgrounds — slight brightness boost. */
  .brand-logo { filter: brightness(1.15) saturate(1.1); }
}
.site-footer .brand-logo { height: 48px; }
.nav-spacer { flex: 1; }
.nav-links {
  display: flex; gap: 8px;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-links a:hover { background: var(--surface-2); text-decoration: none; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  font-size: .85rem;
  font-weight: 700;
}
.lang-switch a {
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
}
.lang-switch a:hover { text-decoration: none; }
.lang-switch a.active {
  background: var(--green-500);
  color: white;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--gutter) 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 12px 14px; }
}

/* -- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, var(--green-500), var(--green-600));
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--green-600), var(--green-700)); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 14px; font-size: .9rem; border-radius: 10px; }

/* App store buttons */
.store-buttons {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-900);
  color: white;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  min-width: 200px;
}
.store-btn:hover { text-decoration: none; opacity: .92; }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn .store-label {
  display: flex; flex-direction: column; line-height: 1.1;
}
.store-btn .store-label small { font-size: .7rem; font-weight: 500; opacity: .8; }
.store-btn .store-label strong { font-size: 1.05rem; }

/* -- Hero ---------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -40% 50% auto auto;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(76,175,80,.22), transparent 65%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  /* Phone column is sized to the phone (250px) plus a tiny breather so it
     doesn't drift away from the hero text at large viewports. */
  grid-template-columns: 1fr 270px;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.hero-badge svg {
  width: 18px;
  height: 18px;
  color: var(--green-600);
  flex-shrink: 0;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 32px;
}

/* Phone mockup — unified mobile-size frame on every viewport */
.phone {
  position: relative;
  width: 250px;
  height: 510px;
  margin: 0 auto;
  background: #111;
  border-radius: 34px;
  padding: 9px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.18),
    0 6px 20px rgba(0,0,0,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: #f8f9fa;
  border-radius: 26px;
  overflow: hidden;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 12px;
}

/* -- Onboarding voice-demo (mirrors Flutter widget) ----------
   Sizes use `cqw` so content scales with the phone width.
   Phone uses the mobile size on every viewport: 220×450 default,
   195×400 ≤480px. .onb-items uses flex:1 so the categories
   stretch to fill the full screen height. clamp() floors keep
   text readable inside the narrow phone screen.
   ------------------------------------------------------------ */
.onb-screen {
  background: #FFFFFF;
  container-type: inline-size;
  container-name: phonescreen;
  padding: 2.5cqw 2.5cqw 2.5cqw;
  gap: 0;
  color: #1F1F1F;
  font-size: clamp(12px, 4.8cqw, 16px);
}
.onb-title {
  font-size: clamp(20px, 9.6cqw, 28px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 2.4cqw;
  color: #1F1F1F;
}
.onb-grad {
  background: linear-gradient(90deg, #4ADE80, #22C55E);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.onb-sub {
  margin: 0;
  font-size: clamp(11px, 4.4cqw, 15px);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(0,0,0,0.55);
}
.onb-sub + .onb-sub { margin-top: .3cqw; }
.onb-bubble {
  margin-top: 2.8cqw;
  background: #FFFFFF;
  border-radius: 5.4cqw;
  padding: 3cqw 3.6cqw 3.4cqw;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}
.onb-bubble-head {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  margin-bottom: 2.2cqw;
}
.onb-mic {
  width: 7.6cqw; min-width: 18px;
  height: 7.6cqw; min-height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFA15A, #FF6B35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.onb-mic svg {
  width: 60%;
  height: 60%;
}
.onb-saying {
  font-size: clamp(7px, 2.8cqw, 10px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.42);
}
.onb-quote {
  margin: 0;
  font-size: clamp(13px, 5.6cqw, 19px);
  font-weight: 700;
  line-height: 1.35;
  color: #1F1F1F;
}
.onb-typed {
  display: inline;
  opacity: 0;
  animation: onbFadeIn 0.5s ease 0.9s forwards;
}
@keyframes onbFadeIn {
  to { opacity: 1; }
}

.onb-items {
  margin-top: 2.8cqw;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}
.onb-group { color: var(--cc); }
.onb-cat {
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  padding-left: .9cqw;
  margin-bottom: 2cqw;
  font-size: clamp(11px, 4.4cqw, 14px);
  font-weight: 700;
}
.onb-cat-icon {
  width: 9cqw; min-width: 22px;
  height: 9cqw; min-height: 22px;
  border-radius: 2.2cqw;
  background: color-mix(in srgb, var(--cc) 15%, transparent);
  display: grid;
  place-items: center;
}
.onb-cat-icon svg { width: 60%; height: 60%; }

.onb-item {
  background: #FFFFFF;
  border-radius: 3.4cqw;
  border-left: 1.2cqw solid var(--cc);
  padding: 3.4cqw 3.8cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.onb-item-name {
  font-size: clamp(13px, 5.4cqw, 17px);
  font-weight: 700;
  color: #1F1F1F;
}
.onb-item-qty {
  background: color-mix(in srgb, var(--cc) 12%, transparent);
  color: var(--cc);
  font-size: clamp(11px, 4.6cqw, 15px);
  font-weight: 800;
  padding: .8cqw 2.6cqw;
  border-radius: 2.2cqw;
  font-variant-numeric: tabular-nums;
}

/* Staggered fade-in / slide-up, mirrors the Flutter AnimationController. */
.onb-anim {
  opacity: 0;
  transform: translateY(10px);
  animation: onbIn .5s ease forwards;
}
.onb-anim-1 { animation-delay: 0.00s; }
.onb-anim-2 { animation-delay: 0.20s; }
.onb-anim-3 { animation-delay: 0.32s; }
.onb-anim-4 { animation-delay: 0.44s; }
.onb-anim-5 { animation-delay: 0.70s; }
.onb-anim-6 { animation-delay: 2.60s; }
.onb-anim-7 { animation-delay: 2.78s; }
.onb-anim-8 { animation-delay: 2.96s; }
@keyframes onbIn {
  to { opacity: 1; transform: translateY(0); }
}
.phone-notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 23px;
  background: #111;
  border-radius: 0 0 13px 13px;
  z-index: 10;
}
.phone-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
}
.phone-title {
  font-weight: 900; font-size: 1.4rem; color: var(--ink-900);
}
.phone-items {
  display: flex; flex-direction: column; gap: 10px; margin-top: 6px;
}
.list-item {
  display: flex; align-items: center; gap: 12px;
  background: white;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  font-size: .95rem;
  color: var(--ink-900);
  position: relative;
  border-left: 4px solid var(--cat-dairy);
}
.list-item.fruits   { border-left-color: var(--cat-fruits); }
.list-item.bakery   { border-left-color: var(--cat-bakery); }
.list-item.fishmeat { border-left-color: var(--cat-fishmeat); }
.list-item.dairy    { border-left-color: var(--cat-dairy); }
.list-item.drinks   { border-left-color: var(--cat-drinks); }
.list-item.checked  { opacity: .55; text-decoration: line-through; }
.list-item .qty {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
  color: var(--text-muted);
  min-width: 38px;
}
.list-item .name { flex: 1; font-weight: 700; }
.list-item .check {
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 2px solid var(--ink-300);
  flex-shrink: 0;
}
.list-item.checked .check {
  background: var(--green-500);
  border-color: var(--green-500);
  position: relative;
}
.list-item.checked .check::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) translate(-1px, -2px);
}

.phone-mic {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--green-500), var(--green-700));
  box-shadow: 0 12px 30px rgba(76,175,80,.45);
  display: grid; place-items: center;
  z-index: 1;
  animation: pulse 2.2s ease-in-out infinite;
}
.phone-mic svg { width: 28px; height: 28px; }
@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.06); }
}

/* -- Voice demo (transcript card) ---------------------------- */
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.demo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: center;
}
@media (max-width: 800px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-quote {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}
.demo-quote::before {
  content: '“';
  font-size: 3rem;
  line-height: 0;
  color: var(--green-500);
  margin-right: 4px;
  vertical-align: -.4em;
}
.demo-mic-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.demo-mic {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--green-500), var(--green-700));
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}
.demo-mic svg { width: 22px; height: 22px; }
.demo-waveform { display: flex; gap: 3px; align-items: center; height: 32px; }
.demo-waveform span {
  display: block; width: 3px; border-radius: 2px;
  background: var(--green-300);
  animation: bar 1.2s ease-in-out infinite;
}
.demo-waveform span:nth-child(1) { height: 30%; animation-delay: 0s; }
.demo-waveform span:nth-child(2) { height: 60%; animation-delay: .1s; }
.demo-waveform span:nth-child(3) { height: 100%; animation-delay: .2s; }
.demo-waveform span:nth-child(4) { height: 70%; animation-delay: .3s; }
.demo-waveform span:nth-child(5) { height: 45%; animation-delay: .4s; }
.demo-waveform span:nth-child(6) { height: 85%; animation-delay: .5s; }
.demo-waveform span:nth-child(7) { height: 30%; animation-delay: .6s; }
@keyframes bar { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.demo-output-title {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* -- Features carousel (copied/adapted from mini-marvin) ----- */
.features-carousel {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--bg);
  overflow: hidden;
}
.fc-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  position: relative;
}
.fc-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}
.fc-arrow:hover {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
  transform: scale(1.05);
}
.fc-arrow:active { transform: scale(0.95); }
.fc-arrow svg { width: 18px; height: 18px; }

.fc-phone {
  border-radius: 36px;
  background: #111;
  padding: 10px;
  position: relative;
  flex-shrink: 0;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.18),
    0 6px 20px rgba(0,0,0,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}
.fc-phone::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #111;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}
.fc-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #f8f9fa;
}
.fc-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.97);
  will-change: opacity, transform;
}
.fc-screen img.active {
  opacity: 1;
  transform: scale(1);
}
.fc-phone-center {
  width: 260px;
  height: 530px;
  z-index: 3;
  transition: box-shadow 0.5s;
}
.fc-phone-side {
  width: 200px;
  height: 408px;
  border-radius: 30px;
  padding: 8px;
  opacity: 0.45;
  transform: scale(0.88);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}
.fc-phone-side::before {
  width: 68px;
  height: 18px;
  top: 8px;
  border-radius: 0 0 10px 10px;
}
.fc-phone-side .fc-screen { border-radius: 24px; }
.fc-phone-side .fc-screen img { opacity: 1; transform: scale(1); }
.fc-phone-side:hover { opacity: 0.65; transform: scale(0.91); }
.fc-side-left  { margin-right: -12px; }
.fc-side-right { margin-left: -12px; }

.fc-phone-center.glow-green {
  box-shadow: 0 0 50px rgba(76,175,80,0.30),
              0 20px 60px rgba(0,0,0,0.14);
}
.fc-phone-center.glow-blue {
  box-shadow: 0 0 50px rgba(66,165,245,0.25),
              0 20px 60px rgba(0,0,0,0.14);
}
.fc-phone-center.glow-amber {
  box-shadow: 0 0 50px rgba(245,158,11,0.25),
              0 20px 60px rgba(0,0,0,0.14);
}
.fc-phone-center.glow-pink {
  box-shadow: 0 0 50px rgba(236,64,122,0.25),
              0 20px 60px rgba(0,0,0,0.14);
}

.fc-text {
  text-align: center;
  margin-top: 32px;
  min-height: 110px;
}
.fc-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.fc-tag svg { width: 14px; height: 14px; }
.fc-tag.t-green { background: rgba(76,175,80,0.14); color: var(--green-700); }
.fc-tag.t-blue  { background: rgba(66,165,245,0.14); color: #1976D2; }
.fc-tag.t-amber { background: rgba(245,158,11,0.14); color: #D97706; }
.fc-tag.t-pink  { background: rgba(236,64,122,0.14); color: #EC407A; }

.fc-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.fc-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto;
}
.fc-text-inner { animation: fcFadeIn 0.3s ease both; }
@keyframes fcFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.fc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.fc-dot.active {
  background: var(--text);
  width: 28px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .features-carousel { padding: 48px 0 40px; }
  .fc-stage { margin-top: 32px; }
  .fc-phone-side { display: none; }
  .fc-phone-center {
    width: 220px; height: 450px;
    border-radius: 30px; padding: 8px; margin: 0 14px;
  }
  .fc-phone-center::before { width: 76px; height: 20px; top: 8px; }
  .fc-phone-center .fc-screen { border-radius: 24px; }
  .fc-arrow { width: 44px; height: 44px; font-size: 1rem; }
  .fc-title { font-size: 1.15rem; }
  .fc-desc  { font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .fc-phone-center {
    width: 195px; height: 400px;
    border-radius: 26px; padding: 7px; margin: 0 8px;
  }
  .fc-phone-center::before { width: 66px; height: 17px; top: 7px; }
  .fc-phone-center .fc-screen { border-radius: 21px; }
  .fc-arrow { width: 38px; height: 38px; font-size: 0.9rem; }

  .phone { width: 195px; height: 400px; border-radius: 26px; padding: 7px; }
  .phone-screen { border-radius: 21px; }
  .phone-notch { width: 66px; height: 17px; top: 7px; }
}

/* -- Features grid ------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-100);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--green-50);
  color: var(--green-700);
  margin-bottom: 18px;
}
@media (prefers-color-scheme: dark) {
  .feature-icon { background: rgba(76,175,80,.15); color: var(--green-300); }
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: .98rem; }

/* -- Categories ---------------------------------------------- */
.categories {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 44px;
  justify-content: center;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.cat-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--cat-other);
}

/* -- Pricing ------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.pricing-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .pricing-grid--3 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured {
  background: linear-gradient(180deg, var(--green-50), var(--surface));
  border-color: var(--green-300);
  box-shadow: var(--shadow-lg);
}
@media (prefers-color-scheme: dark) {
  .price-card.featured {
    background: linear-gradient(180deg, rgba(76,175,80,.12), var(--surface));
    border-color: var(--green-700);
  }
}
.price-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--green-600);
  color: white;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.price-name {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 8px;
}
.price-amount {
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.price-amount small {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 4px;
}
.price-tagline {
  color: var(--text-muted);
  margin-bottom: 28px;
}
.price-list {
  list-style: none;
  padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.price-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .98rem;
}
.price-list li::before {
  content: '';
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.price-list li.muted::before {
  background: var(--ink-300);
}
.price-list li.muted { color: var(--text-muted); }

.price-disclaimer {
  margin-top: 32px;
  font-size: .85rem;
  color: var(--text-muted);
  max-width: 70ch;
}

/* -- FAQ ----------------------------------------------------- */
.faq {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex; flex-direction: column; gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--green-300); }
.faq summary {
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--green-700);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; color: var(--text-muted); }

/* -- Final CTA ----------------------------------------------- */
.cta-final {
  position: relative;
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  color: white;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: auto -10% -60% auto;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.cta-final h2 { color: white; }
.cta-final p {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 50ch;
  margin: 0 auto 32px;
}
.cta-final .store-buttons { justify-content: center; }
.cta-final .store-btn { background: white; color: var(--ink-900); }

/* -- Footer -------------------------------------------------- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding-block: 56px 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text); font-weight: 600; }
.footer-col a:hover { color: var(--green-700); text-decoration: none; }
.footer-tagline {
  color: var(--text-muted);
  margin: 12px 0 0;
  font-size: .95rem;
  max-width: 32ch;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: .9rem;
  color: var(--text-muted);
}

/* -- Legal pages --------------------------------------------- */
.legal-page {
  padding-block: clamp(48px, 8vw, 96px);
}
.legal-page .container { max-width: 820px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .updated { color: var(--text-muted); margin-bottom: 40px; }
.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-page h3 { font-size: 1.1rem; margin-top: 28px; }
.legal-page p, .legal-page li { color: var(--text); }
.legal-page p, .legal-page ul, .legal-page ol { margin: 0 0 16px; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page address {
  font-style: normal;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}
/* Imprint info shipped as an image — prevents plain-text scraping of
   address / phone / email. Used in imprint, privacy and terms. */
.imprint-image {
  display: block;
  max-width: 480px;
  width: 100%;
  height: auto;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}
@media (prefers-color-scheme: dark) {
  /* Image is dark-on-transparent; invert in dark mode so it stays readable. */
  .imprint-image { filter: invert(0.92) hue-rotate(180deg); }
}

/* -- Support page -------------------------------------------- */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
}
@media (max-width: 700px) { .support-grid { grid-template-columns: 1fr; } }
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.support-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.support-card .feature-icon { margin: 0 auto 16px; }

/* -- 404 ----------------------------------------------------- */
.not-found {
  padding-block: 120px;
  text-align: center;
}
.not-found .big { font-size: 6rem; line-height: 1; color: var(--green-500); margin: 0; }

/* -- Utilities ----------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.center-block { margin-inline: auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 16px; }
.section-head .lead { margin-inline: auto; }
