/* Felty website. Tokens are copied one to one from the Felty design system
   (https://claude.ai/artifact/UiqE9PDnowA2g7MwqyWtd5, FeltyTokens.swift in the app). */

:root {
  --surface-100: #f5f0e6;
  --surface-200: #fffcf7;
  --surface-300: #ebe3d4;
  --ink: #1d1915;
  --ink-muted: #615749;
  --line: #ded4c4;
  --line-strong: #857968;
  --action: #1d1915;
  --on-action: #fffcf7;
  --brand: #2f45c4;
  --brand-soft: #e3e7fa;
  --marker-persimmon: #e8613c;
  --marker-saffron: #f2b53a;
  --marker-sage: #7fa88b;
  --marker-plum: #8e4e86;
  --on-marker: #1d1915;
  --canvas-paper: #fbf8f2;
  --canvas-outline: #2b2621;
  --scrim: rgba(22, 19, 16, 0.45);
  --shadow-paper: 0 1px 2px rgba(29, 25, 21, 0.06), 0 6px 18px rgba(29, 25, 21, 0.07);
  --shadow-float: 0 2px 6px rgba(29, 25, 21, 0.08), 0 18px 40px rgba(29, 25, 21, 0.12);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius-sm: 10px; --radius-md: 18px; --radius-lg: 28px; --radius-full: 999px;

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "PingFang SC", "Noto Sans", sans-serif;

  --gutter: 16px;
  --wrap: 1180px;
  --section: 88px;
  --mk-opacity: 0.85;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-100: #161310;
    --surface-200: #221e1a;
    --surface-300: #2d2823;
    --ink: #f4ede2;
    --ink-muted: #b0a596;
    --line: #3a332c;
    --line-strong: #827565;
    --action: #f4ede2;
    --on-action: #161310;
    --brand: #93a2ff;
    --brand-soft: #262c52;
    --marker-persimmon: #f07650;
    --marker-saffron: #f5c155;
    --marker-sage: #93bc9f;
    --marker-plum: #b57aad;
    --scrim: rgba(0, 0, 0, 0.6);
    --shadow-paper: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.35);
    --shadow-float: 0 2px 6px rgba(0, 0, 0, 0.5), 0 18px 40px rgba(0, 0, 0, 0.45);
    --mk-opacity: 0.55;
    color-scheme: dark;
  }
}

@media (min-width: 768px) { :root { --gutter: 32px; --section: 128px; } }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font: 400 17px/1.55 var(--rounded);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
/* Paper tooth over the whole page, very faint. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-size: 22px; line-height: 1.25; }
:lang(ja) h1, :lang(ko) h1, :lang(zh-Hans) h1, :lang(zh-Hant) h1 { letter-spacing: 0; line-height: 1.2; font-size: clamp(34px, 6vw, 64px); }
:lang(ja) h2, :lang(ko) h2, :lang(zh-Hans) h2, :lang(zh-Hant) h2 { letter-spacing: 0; line-height: 1.25; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0 0; }
.section-head { max-width: 760px; margin-bottom: var(--space-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-muted); }
.section-head .lead { margin-top: var(--space-4); }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--ink-muted); margin-bottom: var(--space-4); letter-spacing: 0.01em; }
.muted { color: var(--ink-muted); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--action); color: var(--on-action); padding: 8px 16px; border-radius: var(--radius-full); }
.skip:focus { left: 8px; }

/* ---------- marker highlight ---------- */
/* A felt-tip swash under a key phrase; drawn in when it scrolls into view. */
.mk {
  --mk: var(--marker-saffron);
  background-image: linear-gradient(var(--mk), var(--mk));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.38em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  border-radius: 0.3em 0.5em 0.4em 0.6em;
  padding: 0 0.06em;
  transition: background-size 0.9s cubic-bezier(.2, .7, .2, 1) 0.15s;
}
.mk { background-image: linear-gradient(color-mix(in srgb, var(--mk) calc(var(--mk-opacity) * 100%), transparent), color-mix(in srgb, var(--mk) calc(var(--mk-opacity) * 100%), transparent)); }
.mk-1 { --mk: var(--marker-persimmon); }
.mk-2 { --mk: var(--marker-saffron); }
.mk-3 { --mk: var(--marker-sage); }
.mk-4 { --mk: var(--marker-plum); }
.js .reveal .mk, .js .mk.reveal { background-size: 0% 0.38em; }
.js .reveal.in .mk, .js .mk.reveal.in { background-size: 100% 0.38em; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mk { transition: none; }
  .js .reveal .mk { background-size: 100% 0.38em; }
}

/* ---------- buttons and badge ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-full);
  font: 600 17px/1 var(--rounded); text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-color 0.2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--action); color: var(--on-action); box-shadow: var(--shadow-paper); }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-secondary:hover { background: var(--surface-200); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }

.badge { display: inline-block; line-height: 0; border-radius: 12px; transition: transform 0.2s ease-out; }
.badge:hover { transform: translateY(-1px); }
.badge img { height: 56px; width: auto; }
.badge-lg img { height: 64px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface-100) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: var(--space-6); height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.logo img { width: 34px; height: 34px; border-radius: 8px; box-shadow: var(--shadow-paper); }
.logo span { font: 600 25px/1 var(--serif); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: var(--space-6); margin-left: auto; }
.nav a { color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px; border-radius: var(--radius-full); color: var(--ink-muted); font-weight: 500; font-size: 15px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--surface-300); color: var(--ink); }
.lang summary svg { width: 18px; height: 18px; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 220px; max-height: 70vh; overflow: auto;
  background: var(--surface-200); border-radius: var(--radius-md); box-shadow: var(--shadow-float); padding: var(--space-2);
}
.lang-list a { display: block; padding: 9px 14px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 15px; }
.lang-list a:hover { background: var(--surface-300); }
.lang-list a[aria-current="true"] { background: var(--brand-soft); font-weight: 600; }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-full); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 24px; height: 24px; }
.menu-panel {
  position: fixed; left: 0; right: 0; top: 68px; z-index: 39;
  background: var(--surface-100); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float);
  padding: var(--space-4) var(--gutter) var(--space-6);
}
.menu-panel a { display: block; padding: 14px 4px; font: 600 22px/1.2 var(--serif); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-panel .badge { margin-top: var(--space-6); border: 0; padding: 0; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 40px 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-12); align-items: center; }
.hero h1 { margin-bottom: var(--space-6); }
.hero .lead { max-width: 560px; margin-bottom: var(--space-8); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-6); color: var(--ink-muted); font-size: 15px; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-points li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--marker-sage); }
.hero-points li:nth-child(2)::before { background: var(--marker-saffron); }
.hero-points li:nth-child(3)::before { background: var(--marker-persimmon); }

.hero-media { position: relative; justify-self: center; width: min(100%, 380px); }
.phone-video {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-300); box-shadow: var(--shadow-float);
  transform: rotate(1.5deg);
}
.phone-video video, .phone-video img { width: 100%; height: 100%; object-fit: cover; }
.chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font: 700 20px/1 var(--rounded); font-variant-numeric: tabular-nums;
  color: var(--on-marker); box-shadow: var(--shadow-float), inset 0 0 0 3px var(--surface-200);
  animation: float 6s ease-in-out infinite;
}
.chip.c1 { background: var(--marker-persimmon); left: -26px; top: 18%; }
.chip.c2 { background: var(--marker-saffron); right: -22px; top: 46%; animation-delay: -2s; width: 50px; height: 50px; font-size: 18px; }
.chip.c3 { background: var(--marker-sage); left: 6%; bottom: -20px; animation-delay: -4s; width: 46px; height: 46px; font-size: 17px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .hero-media { justify-self: end; }
}

/* ---------- media frames ---------- */
.frame { border-radius: var(--radius-md); overflow: hidden; background: var(--surface-300); box-shadow: var(--shadow-paper); }
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-square { aspect-ratio: 1; }
.frame-tall { aspect-ratio: 9 / 16; }
.frame-portrait { aspect-ratio: 4 / 5; }

/* ---------- steps ---------- */
.steps { display: grid; gap: var(--space-8); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.step { counter-increment: step; }
.step .frame { margin-bottom: var(--space-6); aspect-ratio: 4 / 5; }
.step h3 { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.step h3::before {
  content: counter(step); flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font: 700 17px/1 var(--rounded); color: var(--on-marker); background: var(--marker-saffron);
}
.step:nth-child(3n+1) h3::before { background: var(--marker-persimmon); }
.step:nth-child(3n+3) h3::before { background: var(--marker-sage); }
.step p { color: var(--ink-muted); }
.more-link { margin-top: var(--space-8); }

/* long steps (how-it-works page): alternating media and text */
.flow { display: grid; gap: 72px; counter-reset: step; }
.flow-item { display: grid; gap: var(--space-8); align-items: center; counter-increment: step; }
.flow-item h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: var(--space-4); }
.flow-item .num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--space-4);
  font: 700 19px/1 var(--rounded); color: var(--on-marker); background: var(--marker-saffron);
}
.flow-item:nth-child(3n+1) .num { background: var(--marker-persimmon); }
.flow-item:nth-child(3n+3) .num { background: var(--marker-sage); }
.flow-item p { font-size: 18px; color: var(--ink-muted); max-width: 520px; }
.flow-item .frame { max-width: 520px; width: 100%; }
@media (min-width: 860px) {
  .flow-item { grid-template-columns: 1fr 1fr; gap: 64px; }
  .flow-item:nth-child(even) .flow-media { order: 2; }
}

/* ---------- feature cards ---------- */
.cards { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.card { background: var(--surface-200); border-radius: var(--radius-md); box-shadow: var(--shadow-paper); padding: var(--space-6); }
.card h3 { margin: var(--space-4) 0 var(--space-2); }
.card p { color: var(--ink-muted); margin: 0; }
.card .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--marker-saffron); color: var(--on-marker); }
.card .dot svg { width: 22px; height: 22px; }
.cards > :nth-child(4n+1) .dot { background: var(--marker-persimmon); }
.cards > :nth-child(4n+3) .dot { background: var(--marker-sage); }
.cards > :nth-child(4n+4) .dot { background: var(--brand-soft); color: var(--brand); }
.card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media .frame { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
.card-media .card-body { padding: var(--space-6); }
.card-media .card-body h3 { margin-top: 0; }

/* ---------- gallery marquee ---------- */
.marquee { overflow: hidden; padding: var(--space-4) 0 var(--space-8); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: var(--space-6); width: max-content; animation: marquee 70s linear infinite; }
.marquee-track.rev { animation-direction: reverse; margin-top: var(--space-6); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--space-6) / 2)); } }
.pic { width: 240px; flex: 0 0 auto; }
.pic .frame { aspect-ratio: 1; transform: rotate(var(--r, 0deg)); transition: transform 0.3s ease-out; }
.pic:hover .frame { transform: rotate(0deg) scale(1.03); }
.pic figcaption { margin-top: var(--space-3); font-size: 15px; font-weight: 500; color: var(--ink-muted); }
@media (min-width: 768px) { .pic { width: 280px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-track .dup { display: none; }
}

/* ---------- devices ---------- */
.split { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } .split.flip > :first-child { order: 2; } }
.seg { display: inline-flex; padding: 4px; border-radius: var(--radius-full); background: var(--surface-300); margin-top: var(--space-6); }
.seg button { border: 0; background: transparent; padding: 10px 18px; border-radius: var(--radius-full); font-weight: 600; font-size: 15px; color: var(--ink-muted); cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--surface-200); color: var(--ink); box-shadow: var(--shadow-paper); }
.tablet {
  border-radius: 36px; padding: 14px; background: #1b1916; box-shadow: var(--shadow-float);
}
.tablet img { border-radius: 24px; width: 100%; }
.device-list { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.device-list li { display: flex; gap: var(--space-3); align-items: baseline; }
.device-list li::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); transform: translateY(-1px); }

/* ---------- Felty+ ---------- */
.plus {
  display: grid; gap: var(--space-8); align-items: center;
  background: var(--surface-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-paper);
  padding: clamp(28px, 5vw, 56px);
  position: relative; overflow: hidden;
}
@media (min-width: 860px) { .plus { grid-template-columns: 1.2fr 1fr; } }
.plus h2 { margin-bottom: var(--space-4); }
.plus ul { display: grid; gap: var(--space-3); }
.plus li { display: flex; gap: var(--space-3); align-items: center; font-weight: 500; font-size: 18px; }
.plus li svg { flex: 0 0 auto; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--marker-sage); color: var(--on-marker); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-3); max-width: 860px; }
.faq details { background: var(--surface-200); border-radius: var(--radius-md); box-shadow: var(--shadow-paper); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; position: relative;
  font: 600 19px/1.35 var(--rounded);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--surface-300) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23857968' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform 0.25s ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--ink-muted); font-size: 17px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- final CTA ---------- */
.final {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface-200); box-shadow: var(--shadow-paper);
  padding: clamp(36px, 7vw, 88px) clamp(24px, 5vw, 64px);
  display: grid; gap: var(--space-8); align-items: center;
}
@media (min-width: 900px) { .final { grid-template-columns: 1.1fr 0.9fr; } }
.final h2 { margin-bottom: var(--space-4); }
.final-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.final-pics .frame { aspect-ratio: 1; }
.final-pics .frame:nth-child(odd) { transform: translateY(14px) rotate(-2deg); }
.final-pics .frame:nth-child(even) { transform: rotate(2deg); }

/* ---------- demo ---------- */
.demo { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 960px) { .demo { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; } }
.demo .lead { margin-top: var(--space-4); }
.demo-hints { display: grid; gap: var(--space-3); margin-top: var(--space-6); color: var(--ink-muted); }
.demo-hints li { display: flex; gap: var(--space-3); }
.demo-hints li::before { content: ""; flex: 0 0 auto; margin-top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--marker-persimmon); }
.demo-hints li:nth-child(2)::before { background: var(--marker-saffron); }
.demo-hints li:nth-child(3)::before { background: var(--marker-sage); }
.demo-app { width: min(100%, 600px, calc(100svh - 190px)); min-width: min(100%, 340px); justify-self: center; background: var(--surface-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); overflow: hidden; }
.demo-stage { position: relative; aspect-ratio: 1; background: var(--canvas-paper); }
.demo-stage canvas { width: 100%; height: 100%; touch-action: auto; cursor: crosshair; }
.demo-stage.live canvas { touch-action: none; }
.demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-start {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-3);
  background: color-mix(in srgb, var(--canvas-paper) 35%, transparent); border: 0; cursor: pointer; padding: var(--space-6);
  color: #1d1915; text-align: center;
}
.demo-start .btn { pointer-events: none; background: #1d1915; color: #fffcf7; }
.demo-start small { font-size: 15px; font-weight: 500; color: #3b342c; background: rgba(251, 248, 242, 0.85); padding: 4px 12px; border-radius: var(--radius-full); }
.demo-bar { border-top: 1px solid var(--line); padding: var(--space-3) var(--space-4) var(--space-4); display: grid; gap: var(--space-3); }
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: 15px; color: var(--ink-muted); }
.demo-row .seg { margin: 0; }
.demo-row .seg button { padding: 6px 14px; min-height: 34px; font-size: 14px; }
.palette { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; scroll-snap-type: x proximity; }
.palette::-webkit-scrollbar { display: none; }
.swatch {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; scroll-snap-align: center;
  background: conic-gradient(var(--line) var(--p, 0%), transparent 0); display: grid; place-items: center; position: relative;
  transition: transform 0.2s ease-out;
}
.swatch span {
  width: 40px; height: 40px; border-radius: 50%; background: var(--sw); display: grid; place-items: center;
  font: 700 15px/1 var(--rounded); font-variant-numeric: tabular-nums; color: var(--tx);
}
.swatch[aria-pressed="true"] { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--surface-200), 0 0 0 6px var(--brand); }
.swatch.done span { opacity: 0.45; }
.swatch.done span::after { content: "✓"; }
.swatch.done span b { display: none; }
.demo-done {
  position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-6);
  background: var(--scrim);
}
.demo-done .card { max-width: 380px; text-align: center; box-shadow: var(--shadow-float); }
.demo-done h3 { font-size: 28px; margin: 0 0 var(--space-3); }
.demo-done .cta-row { justify-content: center; margin-top: var(--space-4); }

/* ---------- compare (photo page) ---------- */
.compare { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-float); aspect-ratio: 720 / 478; --pos: 50%; background: var(--surface-300); }
.compare picture, .compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fffcf7; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.compare .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: #fffcf7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1915' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center/22px no-repeat;
  box-shadow: var(--shadow-float);
}
.compare input:focus-visible + .handle::after { outline: 3px solid var(--brand); outline-offset: 3px; }
.compare .tag { position: absolute; top: 14px; padding: 4px 12px; border-radius: var(--radius-full); background: rgba(29,25,21,0.7); color: #fffcf7; font-size: 14px; font-weight: 600; pointer-events: none; }
.compare .tag-l { left: 14px; }
.compare .tag-r { right: 14px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 48px 0 0; }
.page-hero .lead { max-width: 720px; margin-top: var(--space-6); }
.page-hero .cta-row { margin-top: var(--space-8); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: 14px; color: var(--ink-muted); margin-bottom: var(--space-6); }
.crumbs a { color: var(--ink-muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-2); opacity: 0.6; }

/* ---------- facts table (press) ---------- */
.facts { width: 100%; border-collapse: collapse; background: var(--surface-200); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-paper); }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 34%; color: var(--ink-muted); font-weight: 500; }
.assets { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.asset { text-decoration: none; color: var(--ink); }
.asset .frame { aspect-ratio: 4 / 3; margin-bottom: var(--space-3); }
.asset .frame img { object-fit: contain; background: var(--surface-300); }
.asset span { font-weight: 500; font-size: 15px; }
.quote { font: 400 clamp(20px, 2.4vw, 26px)/1.5 var(--serif); max-width: 860px; }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 760px; padding-top: 48px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: var(--space-6); }
.prose h2 { font-size: 28px; margin: 48px 0 var(--space-3); }
.prose h3 { font-size: 20px; margin: 32px 0 var(--space-2); }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--ink-muted); font-size: 15px; }
.prose address { font-style: normal; margin-bottom: var(--space-4); }
.prose .lead { margin-bottom: var(--space-6); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 96px 0 0; }
.nf .pics { display: flex; justify-content: center; gap: var(--space-4); margin: var(--space-8) 0; }
.nf .pics .frame { width: 120px; aspect-ratio: 1; }
.nf .links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }

/* ---------- footer ---------- */
.site-footer { margin-top: var(--section); padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 15px; }
.foot-grid { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.6fr; } }
.site-footer h2 { font: 600 14px/1.2 var(--rounded); color: var(--ink); margin-bottom: var(--space-3); letter-spacing: 0.02em; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.foot-langs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.foot-brand .logo { margin-bottom: var(--space-3); }
.foot-legal { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; display: grid; gap: var(--space-2); }
.linklike { background: none; border: 0; padding: 0; color: var(--ink-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---------- cookie banner ---------- */
.consent {
  position: fixed; z-index: 60; left: var(--space-4); right: var(--space-4); bottom: var(--space-4);
  max-width: 520px; margin: 0 auto;
  background: var(--surface-200); border-radius: var(--radius-md); box-shadow: var(--shadow-float), 0 0 0 1px var(--line);
  padding: 18px 20px; display: grid; gap: var(--space-3);
  animation: rise 0.35s ease-out;
}
@media (min-width: 760px) { .consent { left: auto; right: 24px; bottom: 24px; margin: 0; } }
.consent p { margin: 0; font-size: 15px; line-height: 1.45; }
.consent .cta-row { gap: var(--space-2); }
.consent .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
