/* Browsers keep this file 7 days (deploy/nginx): when it changes, bump the
   ?v= on its <link> in index.html, en/index.html and 404.html. */
/* Lumix landing: shared styles for / and /en/ (and the 404 page).
   Tokens match the app (src/app/globals.css): cream paper, serif
   headlines, mono details, forest accent. System fonts only. */

:root {
  --bg: #f7f6f2;
  --paper: #ffffff;
  --paper-2: #efece4;
  --paper-3: #e8e5db;
  --line: #e5e1d6;
  --line-strong: #cfc9bd;
  --ink-900: #1a1a1a;
  --ink-800: #2a2825;
  --ink-700: #3a3935;
  --ink-500: #5f5c56;
  --forest: #3d5a3a;
  --forest-2: #4d6e48;
  --forest-soft: #e5ebde;
  --on-forest: #ffffff;
  --bezel: #1d1f1c;
  --bezel-edge: #1d1f1c;
  --shadow: 0 28px 50px -30px rgba(40, 36, 28, .5), 0 2px 8px rgba(40, 36, 28, .08);
  --f-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --f-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
  --f-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111412;
    --paper: #1b1f1c;
    --paper-2: #242925;
    --paper-3: #2d332e;
    --line: #333a34;
    --line-strong: #4a524b;
    --ink-900: #f5f5f1;
    --ink-800: #e8e7e2;
    --ink-700: #d3d1ca;
    --ink-500: #b3b0a7;
    --forest: #8fbf88;
    --forest-2: #a6cf9f;
    --forest-soft: #1e3320;
    --on-forest: #0f1a0e;
    --bezel: #2a2e2a;
    --bezel-edge: #4a524b;
    --shadow: 0 28px 50px -30px rgba(0, 0, 0, .8), 0 2px 8px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-800);
  font: 16px/1.6 var(--f-sans);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-2); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-serif); font-weight: 600; color: var(--ink-900); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 500; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.eyebrow {
  font: 600 .75rem/1.4 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 .75rem;
}
.lead { font-size: 1.125rem; color: var(--ink-700); max-width: 40rem; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); text-decoration: none; font: 400 1.4rem/1 var(--f-serif); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink-900); }
.brand svg { width: 26px; height: 26px; }
.nav { display: none; gap: 20px; margin-left: 24px; }
.nav a { color: var(--ink-700); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--forest); text-decoration: underline; }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.head-tools a { font-size: .9rem; text-decoration: none; padding: 8px 8px; color: var(--ink-700); white-space: nowrap; }
.head-tools a:hover { color: var(--forest); text-decoration: underline; }
.head-tools .lang { font: 600 .8rem/1 var(--f-mono); letter-spacing: .08em; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 10px; }
.head-tools .btn { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .head-tools .btn { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  font: 600 1rem/1.2 var(--f-sans); text-decoration: none; text-align: center;
  border: 1px solid transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--forest); color: var(--on-forest); }
.btn-primary:hover { background: var(--forest-2); color: var(--on-forest); }
.btn-ghost { background: var(--paper); color: var(--ink-900); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--forest); border-color: var(--forest); }
.head-tools .btn { min-height: 40px; padding: 8px 16px; font-size: .9rem; color: var(--on-forest); }
.head-tools .btn:hover { color: var(--on-forest); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.actions .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .actions .btn { flex: 0 0 auto; } }

/* Device frames (CSS only). Screenshots are never shown above their
   natural size: every frame is narrower than the 1600px source. */
.dev-tablet, .dev-phone {
  background: var(--bezel); border: 1px solid var(--bezel-edge);
  box-shadow: var(--shadow);
}
.dev-tablet { border-radius: 18px; padding: 9px; }
.dev-tablet img { border-radius: 9px; width: 100%; }
@media (min-width: 760px) { .dev-tablet { border-radius: 22px; padding: 12px; } }
.dev-phone { border-radius: 30px; padding: 8px; }
.dev-phone img { border-radius: 23px; width: 100%; }
.dev-browser {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow);
}
.dev-browser img { width: 100%; }
.bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.bar i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.bar span {
  min-width: 0; margin: 0 auto; padding: 2px 14px; border-radius: 999px; background: var(--paper);
  font: .7rem/1.5 var(--f-mono); color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Hero */
.hero { padding: 40px 0 56px; }
.hero-top { display: grid; gap: 8px; }
@media (min-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero-top { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; }
  .hero-top h1 { margin: 0; }
}
.hero-note { font-size: .9rem; color: var(--ink-500); margin: 0; }
.hero-note a { white-space: nowrap; }
.showcase { position: relative; max-width: 1000px; margin: 40px auto 0; padding-bottom: 16%; }
.showcase .dev-browser { width: 86%; margin-left: auto; }
.showcase .dev-tablet { position: absolute; left: 0; bottom: 0; width: 48%; padding: 1.2%; border-radius: clamp(10px, 2.2vw, 22px); }
.showcase .dev-tablet img { border-radius: clamp(4px, .9vw, 9px); }
@media (max-width: 639px) { .showcase { padding-bottom: 30%; } .showcase .dev-browser { width: 90%; } .showcase .dev-tablet { width: 64%; } .showcase .bar { height: 20px; padding: 0 8px; gap: 4px; } .showcase .bar i { width: 6px; height: 6px; } .showcase .bar span { display: none; } }
@media (min-width: 960px) { .showcase { margin-top: 56px; } }

/* Sections */
section { padding: 56px 0; scroll-margin-top: 64px; }
@media (min-width: 960px) { section { padding: 88px 0; } }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 32px; }
.section-head .lead { margin-bottom: 0; }

.ico { width: 40px; height: 40px; border-radius: 10px; background: var(--forest-soft); color: var(--forest); display: grid; place-items: center; flex: none; }
.ico svg { width: 22px; height: 22px; }

/* How it connects */
.flow { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.flow li { position: relative; display: grid; align-content: start; grid-template-columns: 40px 1fr; gap: 0 16px; padding-bottom: 28px; counter-increment: flow; }
.flow li:last-child { padding-bottom: 0; }
.flow li:not(:last-child)::before { content: ''; position: absolute; left: 19px; top: 48px; bottom: 8px; border-left: 2px dotted var(--line-strong); }
.flow h3 { margin: 6px 0 4px; font-size: 1.1rem; }
.flow h3::before { content: counter(flow) '. '; font: 600 .85rem/1 var(--f-mono); color: var(--forest); }
.flow p { margin: 0; color: var(--ink-700); font-size: .95rem; grid-column: 2; }
.flow li.end .ico { background: var(--forest); color: var(--on-forest); }
@media (min-width: 860px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .flow li { grid-template-columns: 1fr; padding: 0 12px 0 0; }
  .flow li:not(:last-child)::before { left: 52px; right: 12px; top: 19px; bottom: auto; border-left: 0; border-top: 2px dotted var(--line-strong); }
  .flow li:not(:last-child)::after { content: '\2192'; position: absolute; right: 2px; top: 8px; font: 1rem/1 var(--f-mono); color: var(--forest); }
  .flow h3 { margin-top: 16px; }
  .flow p { grid-column: 1; }
}

/* Product sections: a featured visual with bullets, then a gallery */
.feature { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) {
  .feature { grid-template-columns: 1.75fr 1fr; gap: 48px; }
  .feature.flip { grid-template-columns: 1fr 1.75fr; }
  .feature.flip .feature-visual { order: 2; }
}
.duo { position: relative; }
.duo .dev-phone { width: 62%; max-width: 260px; margin: 20px auto 0; }
@media (min-width: 640px) {
  .duo { padding: 0 0 7% 17%; }
  .duo .dev-phone { position: absolute; left: 0; bottom: 0; width: 27%; max-width: none; margin: 0; padding: 1.2%; border-radius: clamp(16px, 3.4vw, 30px); }
  .duo .dev-phone img { border-radius: clamp(11px, 2.6vw, 23px); }
}

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-700); font-size: .95rem; line-height: 1.55; }
.ticks li::before {
  content: ''; position: absolute; left: 4px; top: .35em; width: 6px; height: 11px;
  border: solid var(--forest); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ticks b { color: var(--ink-900); font-weight: 600; }
.ticks .note { display: block; margin-top: 4px; font-size: .9rem; color: var(--ink-500); }

.gallery { display: grid; gap: 32px 24px; margin: 56px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .wide, .gallery .wide-md { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .wide-md { grid-column: auto; }
}
.shot { margin: 0; }
.shot figcaption { margin-top: 14px; font-size: .95rem; color: var(--ink-700); max-width: 34rem; }
.shot figcaption b { display: block; font: 600 1.05rem/1.3 var(--f-serif); color: var(--ink-900); margin-bottom: 2px; }

/* Who it's for */
.audience { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .audience { grid-template-columns: repeat(2, 1fr); } }
.audience li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.audience h3 { margin-bottom: 6px; }
.audience p { margin: 0; color: var(--ink-700); }

/* How a demo works + FAQ */
.steps { counter-reset: step; display: grid; gap: 16px; margin: 0 0 48px; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 20px 20px 20px 64px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: var(--on-forest); display: grid; place-items: center; font: 600 .9rem/1 var(--f-mono); }
.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-700); font-size: .95rem; }

.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 600 1.05rem/1.4 var(--f-serif); color: var(--ink-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font: 400 1.5rem/1 var(--f-mono); color: var(--forest); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--ink-700); margin: 0 0 18px; }

/* Contact */
.contact-card { background: var(--forest); color: var(--on-forest); border-radius: 20px; padding: 32px 20px; display: grid; gap: 24px; }
@media (min-width: 760px) { .contact-card { padding: 48px; grid-template-columns: 1.2fr 1fr; align-items: center; } }
.contact-card h2, .contact-card .eyebrow { color: var(--on-forest); }
.contact-card p { margin: 0; opacity: .92; }
.contact-list { display: grid; gap: 12px; }
.contact-card .btn { width: 100%; }
.contact-card .btn-primary { background: var(--paper); color: var(--ink-900); }
.contact-card .btn-primary:hover { background: var(--paper-2); color: var(--ink-900); }
.contact-card .btn-ghost { background: transparent; color: var(--on-forest); border-color: currentColor; }
.contact-card .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--on-forest); }
.contact-card :focus-visible { outline-color: var(--on-forest); }
.contact-card .phone { font: 600 1rem/1.4 var(--f-mono); letter-spacing: .02em; text-align: center; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .9rem; color: var(--ink-500); }
.site-foot .wrap { display: grid; gap: 16px; }
@media (min-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot p { margin: 0; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound .code { font: 600 .8rem/1 var(--f-mono); letter-spacing: .2em; color: var(--forest); }
.notfound .actions { justify-content: center; }

/* The SVG symbol sprite: defined, never drawn. */
.sprite { position: absolute; }
