/* Lumio marketing site — single-page landing.
   Brand : Cream #F7F3EE, Clay #C97B5A, Sand #E8E1D6, Ink #1F1B16.
   Fonts : Fraunces (serif, headings) + Inter (sans, body).
   No framework, mobile-first, accessible. */

:root {
  --cream: #f7f3ee;
  --paper: #fdfaf5;
  --sand: #e8e1d6;
  --clay: #c97b5a;
  --clay-deep: #a8593b;
  --ink: #1f1b16;
  --ink-2: #4a4339;
  --ink-3: #7a7164;
  --brick: #b35a3a;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 0 rgba(31, 27, 22, 0.04), 0 8px 24px rgba(31, 27, 22, 0.05);

  --maxw: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0; }

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

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--clay);
  text-transform: uppercase;
}

.alt {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--clay);
}

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(31, 27, 22, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
}
.brand img { width: 26px; height: 26px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
}
.nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--clay); }
.nav .btn { padding: 8px 16px; }

@media (max-width: 720px) {
  .nav a.nav-link { display: none; }
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--clay);
  color: var(--cream);
}
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--sand);
}
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); }

.btn-disabled {
  background: var(--sand);
  color: var(--ink-3);
  cursor: not-allowed;
}
.btn-disabled:hover { transform: none; }

/* Store badges (Apple / Google Play). The Play badge is dimmed and
   tagged "Soon" because the Android release isn't published yet. */
.store-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { display: block; height: 60px; width: auto; }
.store-badge--soon {
  position: relative;
  opacity: 0.78;
  cursor: not-allowed;
}
.store-badge--soon:hover { transform: none; opacity: 0.78; }
.store-badge--soon::after {
  content: attr(data-soon-label);
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--clay);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: clamp(48px, 9vw, 96px) 0 clamp(56px, 9vw, 104px);
  text-align: center;
}
.hero .sparkle {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: block;
}
.hero h1 { margin-bottom: 12px; }
.hero .subtitle {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.55;
}
.hero .ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero .trust-line {
  margin-top: 22px;
  color: var(--ink-3);
  font-size: 0.92rem;
}

/* ─── Section base ───────────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt-bg { background: var(--paper); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.section-head .eyebrow { margin-bottom: 10px; display: inline-block; }
.section-head .intro {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ─── Audience ───────────────────────────────────────────────── */
.audience-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
}
.audience-card {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}
.audience-card .icon { font-size: 30px; line-height: 1; margin-bottom: 14px; }
.audience-card h3 { margin-bottom: 8px; }
.audience-card p { color: var(--ink-2); font-size: 0.98rem; }

/* ─── Use cases ──────────────────────────────────────────────── */
.usecases-list {
  display: grid;
  gap: 24px;
}
.usecase {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
@media (max-width: 640px) {
  .usecase { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
}
.usecase .number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--clay);
  line-height: 1;
}
.usecase h3 { margin-bottom: 10px; }
.usecase p { color: var(--ink-2); margin-bottom: 14px; }
.usecase blockquote {
  margin: 16px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--clay);
  color: var(--ink-2);
  font-style: italic;
  font-size: 0.97rem;
}

/* ─── Memory ─────────────────────────────────────────────────── */
.memory {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.memory p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; margin-top: 16px; }
.memory ul {
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 460px;
}
.memory li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-weight: 500;
}
.memory li::before {
  content: '✓';
  color: var(--clay);
  font-weight: 700;
}

/* ─── Trust ──────────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
.trust-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--clay);
}
.trust-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.trust-card p { color: var(--ink-2); font-size: 0.97rem; }

/* ─── Pricing ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.plan.highlight {
  border-color: var(--clay);
  border-width: 2px;
  position: relative;
  background: linear-gradient(180deg, #fff8f0 0%, var(--paper) 60%);
}
.plan.highlight::after {
  content: '★';
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--clay);
  font-size: 18px;
}
.plan-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.plan-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  margin: 6px 0 2px;
}
.plan-period { color: var(--ink-3); font-size: 0.95rem; margin-bottom: 4px; }
.plan-annual { color: var(--clay-deep); font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; min-height: 1.2em; }
.plan-annual:empty { margin-bottom: 0; min-height: 0; }
.plan-monthly-alt { color: var(--ink-3); font-size: 0.82rem; margin-bottom: 10px; }
.plan-monthly-alt:empty { margin-bottom: 0; }
.pricing-vat-note {
  max-width: 640px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.plan-tagline {
  color: var(--ink-2);
  font-size: 0.97rem;
  margin-bottom: 18px;
  min-height: 2.6em;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.plan-features li::before {
  content: '✓';
  color: var(--clay);
  font-weight: 700;
  flex-shrink: 0;
}
.plan .btn { width: 100%; margin-top: auto; }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 500;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--clay);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .a {
  padding: 0 22px 20px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ─── Final CTA ──────────────────────────────────────────────── */
.final-cta {
  text-align: center;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 56px);
  margin: 0 var(--gutter);
}
.final-cta .container { padding: 0; }
.final-cta .eyebrow { color: var(--clay); }
.final-cta h2 { color: var(--cream); margin-top: 10px; }
.final-cta p { color: rgba(247, 243, 238, 0.78); margin-top: 16px; max-width: 540px; margin-left: auto; margin-right: auto; }
.final-cta .ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(247, 243, 238, 0.75);
  margin-top: clamp(56px, 9vw, 96px);
  padding: clamp(40px, 5vw, 64px) 0 32px;
}
.site-footer a {
  color: rgba(247, 243, 238, 0.75);
  text-decoration: none;
}
.site-footer a:hover { color: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand img { width: 32px; height: 32px; margin-bottom: 10px; }
.footer-brand h3 { color: var(--cream); margin-bottom: 8px; font-size: 1.2rem; }
.footer-brand p { font-size: 0.92rem; max-width: 280px; line-height: 1.5; }

.footer-col h4 {
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col li { font-size: 0.94rem; }

.lang-switch {
  position: relative;
}
.lang-switch select {
  background: rgba(247, 243, 238, 0.08);
  color: var(--cream);
  border: 1px solid rgba(247, 243, 238, 0.18);
  border-radius: var(--radius-sm);
  padding: 9px 32px 9px 12px;
  font-family: inherit;
  font-size: 0.92rem;
  appearance: none;
  cursor: pointer;
  width: 100%;
  max-width: 220px;
}
.lang-switch::after {
  content: '⌄';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-60%);
  color: rgba(247, 243, 238, 0.6);
  pointer-events: none;
}

/* Header variant — on Cream background, compact, with a globe icon
   to make the affordance obvious even before reading the language. */
.lang-switch--header {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.lang-switch--header .lang-switch__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  pointer-events: none;
  line-height: 1;
}
.lang-switch--header select {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 8px 30px 8px 32px;
  font-size: 0.88rem;
  font-weight: 500;
  width: auto;
  max-width: 160px;
  transition: border-color 0.15s ease;
}
.lang-switch--header select:hover { border-color: var(--clay); }
.lang-switch--header::after {
  color: var(--ink-3);
  right: 12px;
}
@media (max-width: 720px) {
  .lang-switch--header select { max-width: 110px; font-size: 0.82rem; }
}

.footer-bottom {
  border-top: 1px solid rgba(247, 243, 238, 0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.86rem;
  color: rgba(247, 243, 238, 0.55);
}

/* ─── Accessibility helpers ──────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ─── Comparison section ──────────────────────────────────── */
.compare-wrap {
  margin-top: 32px;
  /* Horizontal scroll fallback on very narrow phones — gives a hint of
     swipeability rather than truncating */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--sand);
  overflow: hidden;
  font-size: 0.95rem;
  min-width: 720px; /* triggers horizontal scroll on small mobiles */
}
.compare th,
.compare td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--sand);
}
.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}
.compare thead th {
  background: rgba(161, 136, 90, 0.06);
  vertical-align: top;
  text-align: center;
  padding: 18px 12px;
}
.compare-feat {
  color: var(--ink-1);
  font-weight: 500;
  width: 26%;
  font-size: 0.92rem;
}
.compare-app {
  width: 14.8%;
}
.compare-app--us {
  background: rgba(161, 136, 90, 0.14) !important;
  border-left: 2px solid var(--clay);
  border-right: 2px solid var(--clay);
}
.compare-app-name {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-1);
  margin-bottom: 4px;
}
.compare-app-price {
  display: block;
  font-size: 0.86rem;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 2px;
}
.compare-app-flag {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-3);
}
.compare td {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.compare td.yes {
  color: #6FA277;
  font-weight: 600;
}
.compare td.partial {
  color: var(--ink-3);
  font-style: italic;
  font-size: 0.82rem;
}
.compare td.no {
  color: var(--ink-3);
}
.compare-foot {
  margin-top: 24px;
  color: var(--ink-3);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 720px;
}

/* Mobile-first reflow: at ≤640px we stack the columns into cards instead
   of forcing horizontal scroll. The .compare table reverts to display:block
   and each app becomes a separate "card" below the feature list. */
@media (max-width: 640px) {
  .compare {
    min-width: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .compare-app-name { font-size: 0.95rem; }
  .compare-app-price { font-size: 0.8rem; }
  .compare-app-flag { font-size: 0.72rem; }
  .compare th, .compare td { padding: 10px 6px; font-size: 0.82rem; }
  .compare-feat { font-size: 0.82rem; width: 28%; }
}
