/* fluxapp.io — one stylesheet for every page. Dark theme only (the app is dark). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #070707;
  --bg-2: #0d0d0e;
  --surface: #131315;
  --surface-2: #1a1a1d;
  --surface-3: #232327;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.16);
  --text: #f5f5f2;
  --muted: #a6a6a1;
  --dim: #85857f;
  --accent: #f5f500;
  --accent-hover: #ffff5c;
  --accent-ink: #0a0a0a;
  --accent-soft: rgb(245 245 0 / 0.1);
  --accent-line: rgb(245 245 0 / 0.38);
  --glow: 0 0 28px rgb(245 245 0 / 0.32);
  --danger: #ff7a6b;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
  -webkit-tap-highlight-color: rgb(245 245 0 / 0.18);
}
@media (pointer: fine) { html { overscroll-behavior: none; } }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 50% -180px, rgb(214 222 0 / 0.17), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, summary, label { touch-action: manipulation; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 0.5em;
  text-wrap: balance;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
h1 { font-size: clamp(2.35rem, 5.6vw, 4.35rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.22rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.012em; }
h4 { font-size: 1.02rem; line-height: 1.35; font-weight: 700; }
p, li { text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(780px + var(--gutter) * 2); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-s);
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { top: 12px; }

.glow { color: var(--accent); text-shadow: var(--glow); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(7 7 7 / 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.brand span { font: 800 1.15rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand span b { color: var(--accent); font-weight: 800; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-size: 0.94rem; font-weight: 500;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-cta { flex-shrink: 0; }
.menu { display: none; position: relative; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  transition: background-color 0.15s var(--ease);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--surface-2); }
.menu summary svg { width: 20px; height: 20px; }
.menu[open] summary { background: var(--surface-2); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px));
  padding: 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55); overscroll-behavior: contain;
}
.menu-panel a {
  display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 500;
}
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--surface-2); }
.menu-panel .btn { width: 100%; margin-top: 6px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu { display: block; margin-left: 0; }
  .site-header .brand { margin-right: auto; }
}

/* ───────── Buttons & store CTAs ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 1rem/1 var(--font-display); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgb(245 245 0 / 0); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--glow); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgb(255 255 255 / 0.28); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.06rem; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
/* A button row after text, a note or a grid gets room to breathe (it used to touch the caption above). */
* + p.cta-row { margin-top: 24px; }
.play-badge { display: inline-block; border-radius: 10px; line-height: 0; transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.play-badge img { width: 188px; height: auto; }
.play-badge:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgb(0 0 0 / 0.5); }
.cta-rating { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.35; }
.cta-rating b { font: 800 1.05rem/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.cta-rating-sub { display: block; font-size: 0.82rem; color: var(--dim); }
.cta-note { margin: 12px 0 0; font-size: 0.88rem; color: var(--dim); }
.cta-note a { color: var(--muted); }
.ios-note {
  display: none; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); max-width: 520px;
}
.is-ios .ios-note { display: block; }

/* ───────── Sections ───────── */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font: 700 0.78rem/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.lede { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--muted); max-width: 620px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
/* A grid that mixes image cards with text-only cards flows as balanced columns instead of rows, so a text card is
   never stretched to the height of the image card beside it. */
.grid:has(> .prompt-card--text):has(> .prompt-card:not(.prompt-card--text)) { display: block; columns: 2; column-gap: 20px; }
.grid-3:has(> .prompt-card--text):has(> .prompt-card:not(.prompt-card--text)) { columns: 3; }
.grid:has(> .prompt-card--text):has(> .prompt-card:not(.prompt-card--text)) > * { break-inside: avoid; margin-bottom: 20px; }
@media (max-width: 960px) { .grid-3:has(> .prompt-card--text):has(> .prompt-card:not(.prompt-card--text)) { columns: 2; } }
@media (max-width: 620px) { .grid:has(> .prompt-card--text):has(> .prompt-card:not(.prompt-card--text)) { columns: 1; } }

.card {
  position: relative; min-width: 0;
  padding: 24px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--line);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card p + p { margin-top: 0.75em; }
.card--link { transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), transform 0.18s var(--ease); }
.card--link:hover { border-color: var(--accent-line); background: var(--surface-2); transform: translateY(-2px); }
.card--link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link a { text-decoration: none; }
.card--link a:focus-visible { outline: none; }
.card--link:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.card--media { padding: 0; overflow: hidden; }
.card--media .card-body { padding: 20px 22px 24px; }
.icon-chip {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.icon-chip svg { width: 22px; height: 22px; }

/* Media frames */
.media { position: relative; overflow: hidden; background: var(--surface-2); }
.media > img, .media > video, .media > picture, .media > picture > img { width: 100%; height: 100%; object-fit: cover; }
.media--9x16 { aspect-ratio: 9 / 16; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--1x1 { aspect-ratio: 1; }
.rounded { border-radius: var(--radius-l); }
.media-label {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 6px 10px; border-radius: 999px; font: 700 0.74rem/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase;
  background: rgb(0 0 0 / 0.62); color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.media-label--accent { background: var(--accent); color: var(--accent-ink); }
.fig-note { margin: 14px 0 0; font-size: 0.84rem; color: var(--dim); }

/* Small "original photo" inset over a result */
.inset {
  position: absolute; left: 10px; bottom: 10px; z-index: 3; width: 30%; max-width: 110px; margin: 0;
  border-radius: 10px; border: 2px solid var(--accent); overflow: hidden; background: var(--surface-2);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.55);
}
.inset img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.inset span {
  position: absolute; left: 4px; top: 4px; padding: 3px 6px; border-radius: 999px;
  font: 700 0.58rem/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; background: rgb(0 0 0 / 0.72);
}

/* Video play/pause toggle */
.vid-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.25); background: rgb(0 0 0 / 0.55); color: #fff; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.vid-toggle:hover { background: rgb(0 0 0 / 0.78); transform: scale(1.05); }
.vid-toggle svg { width: 18px; height: 18px; }
.vid-toggle .i-play { display: none; }
.vid-toggle[aria-pressed="false"] .i-play { display: block; }
.vid-toggle[aria-pressed="false"] .i-pause { display: none; }
.no-js .vid-toggle { display: none; }

/* ───────── Hero ───────── */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.hero-points svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; }
.stats b { font: 800 1.35rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stats span { font-size: 0.84rem; color: var(--dim); }
.stars { color: var(--accent); letter-spacing: 1px; }

/* Page hero for inner pages */
.page-hero { padding-block: clamp(28px, 4vw, 52px) clamp(40px, 6vw, 72px); }
.page-hero .lede { margin-bottom: 26px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } }

.breadcrumbs { margin: 0 0 22px; font-size: 0.88rem; color: var(--dim); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--surface-3); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }

/* ───────── Demo (photo → video) ───────── */
.demo {
  position: relative; width: 100%; max-width: 480px; justify-self: end; padding: 16px; border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(245 245 0 / 0.04);
}
.demo-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.demo-video { border-radius: 22px; aspect-ratio: 4 / 5; }
.demo-video video, .demo-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-before {
  position: absolute; left: -14px; bottom: 74px; z-index: 4; width: 30%; max-width: 132px;
  border-radius: 14px; border: 3px solid var(--accent); overflow: hidden; transform: rotate(-5deg);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.6); background: var(--surface-2);
}
.demo-before img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.demo-before span {
  position: absolute; left: 6px; top: 6px; padding: 4px 7px; border-radius: 999px;
  font: 700 0.62rem/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; background: rgb(0 0 0 / 0.7);
}
.demo-arrow { position: absolute; left: 22%; bottom: 210px; z-index: 4; width: 64px; color: var(--accent); filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.6)); }
.demo-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tabs [role="tab"] {
  flex-shrink: 0; scroll-snap-align: start;
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  font: 600 0.9rem/1 var(--font); white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.demo-tabs [role="tab"]:hover { color: var(--text); border-color: rgb(255 255 255 / 0.3); }
.demo-tabs [role="tab"][aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.demo-prompt { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.demo-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.demo-prompt-head > span { font: 700 0.78rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.demo-prompt p { margin: 0; font-size: 0.93rem; line-height: 1.55; color: var(--muted); min-height: 4.65em; }
.demo-cta { margin-top: 12px; width: 100%; }
@media (max-width: 900px) {
  .demo { max-width: 460px; margin-inline: auto; }
  .demo-before { left: -6px; }
}

/* ───────── Copy buttons & prompt cards ───────── */
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  min-height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  font: 600 0.82rem/1 var(--font);
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.copy-btn:hover { background: var(--surface-3); border-color: rgb(255 255 255 / 0.3); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn.is-copied { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.no-js .copy-btn { display: none; }

.prompt-card { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.prompt-card .media { border-bottom: 1px solid var(--line); }
.prompt-card-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; flex: 1; }
.prompt-card h3 { margin: 0; font-size: 1.08rem; }
.prompt-text {
  margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
  font-size: 0.92rem; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere;
}
.prompt-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.prompt-actions .use-link { font-size: 0.88rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.prompt-actions .use-link:hover { text-decoration: underline; }
.prompt-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
}
.tag--accent { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }

/* Prompt list (text-only prompts) */
.prompt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: prompt; }
.prompt-list > li {
  counter-increment: prompt; position: relative; min-width: 0;
  padding: 18px 20px 18px 64px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.prompt-list > li::before {
  content: counter(prompt); position: absolute; left: 18px; top: 18px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  font: 800 0.88rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--accent); background: var(--accent-soft);
}
.prompt-list h3 { font-size: 1.04rem; margin: 2px 0 8px; }
.prompt-list .prompt-text { margin-bottom: 10px; }
.prompt-list p.why { margin: 0 0 10px; font-size: 0.92rem; color: var(--dim); }

/* ───────── Steps ───────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 26px 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.steps > li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: 800 1.1rem/1 var(--font-display);
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ───────── Showcase: one selfie → many photos ───────── */
.starring { display: grid; grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 2.4fr); gap: 20px; align-items: center; }
.starring-source { position: relative; }
.starring-source .media { border: 3px solid var(--accent); border-radius: 20px; }
.starring-arrow { color: var(--accent); width: 44px; }
.starring-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.starring-results figure { margin: 0; }
.starring-results .media { border-radius: 16px; }
.starring-results figcaption { margin-top: 8px; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 900px) {
  .starring { grid-template-columns: minmax(0, 1fr); }
  .starring-source { max-width: 220px; }
  .starring-arrow { transform: rotate(90deg); }
  .starring-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Gallery (text to image) */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; min-width: 0; border-radius: var(--radius-l); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery figcaption { padding: 14px 16px 16px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.gallery figcaption b { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* Video wall */
.video-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.video-wall figure { margin: 0; min-width: 0; }
.video-wall .media { border-radius: var(--radius-l); }
.video-wall figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.video-wall figcaption b { color: var(--text); }
@media (max-width: 860px) { .video-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Phones with real app screenshots */
.phones { display: flex; justify-content: center; gap: clamp(16px, 4vw, 40px); flex-wrap: wrap; }
.phone { margin: 0; width: min(300px, 44vw); }
.phone .media { border-radius: 28px; border: 1px solid var(--line-strong); box-shadow: 0 30px 70px rgb(0 0 0 / 0.55); }
.phone figcaption { margin-top: 12px; text-align: center; font-size: 0.9rem; color: var(--muted); }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split--rev > :first-child { order: 0; } }

/* Check list */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f500' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--accent-line);
}
.checks li strong { color: var(--text); }

/* Pricing / honesty box */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-radius: var(--radius-l); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.facts div { padding: 22px; background: var(--surface); }
.facts dt { font-size: 0.84rem; color: var(--dim); margin-bottom: 6px; }
.facts dd { margin: 0; font: 700 1.1rem/1.3 var(--font-display); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ───────── FAQ ───────── */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.15s var(--ease); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font: 700 1.05rem/1.35 var(--font-display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f500' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a { color: var(--text); }

/* ───────── Final CTA ───────── */
.final-cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-xl);
  background: radial-gradient(600px 300px at 0% 0%, rgb(245 245 0 / 0.14), transparent 70%), var(--surface);
  border: 1px solid var(--accent-line);
}
.final-cta h2 { margin-bottom: 12px; }
.final-cta p { color: var(--muted); margin-bottom: 24px; max-width: 560px; }
.qr { display: none; margin: 0; padding: 14px; border-radius: 20px; background: #fff; width: 176px; text-align: center; }
.qr img { width: 148px; height: 148px; image-rendering: pixelated; }
.qr figcaption { margin-top: 8px; color: #222; font-size: 0.78rem; line-height: 1.3; font-weight: 600; }
.is-desktop .qr { display: block; }
/* Compact QR in the first install row (desktop only). */
.hero-qr { display: none; flex-basis: 100%; margin: 0; align-items: center; gap: 12px; }
.hero-qr img { width: 84px; height: 84px; padding: 6px; border-radius: 12px; background: #fff; image-rendering: pixelated; }
.hero-qr figcaption { max-width: 9.5em; color: var(--muted); font-size: 0.82rem; line-height: 1.3; font-weight: 600; }
.is-desktop .hero-qr { display: flex; }
@media (max-width: 760px) { .hero-qr { display: none !important; } }
.no-js .qr { display: block; }
@media (max-width: 760px) { .final-cta { grid-template-columns: minmax(0, 1fr); } .qr { display: none !important; } }
/* The download page's QR is the whole point on a computer, whatever the window width. */
.is-desktop .qr.qr--always, .no-js .qr.qr--always { display: block !important; }

/* ───────── Articles (guides, prompt pages) ───────── */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .article-aside { position: static; } }

.prose { max-width: 740px; font-size: 1.07rem; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.22rem; margin: 1.7em 0 0.5em; }
.prose p, .prose li { color: #d2d2cd; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--text); text-decoration-color: var(--accent); }
.prose a:hover { color: var(--accent); }
.prose figure { margin: 1.8em 0; }
.prose figure .media { border-radius: var(--radius-l); }
.prose figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--dim); }
.prose .prompt-list { padding-left: 0; }
.prose .prompt-list > li { margin-bottom: 0; }
.prose .prompt-list > li::marker { content: none; }
.prose .prompt-list h3 { margin: 2px 0 8px; font-size: 1.04rem; }
.prose .prompt-list p.why { color: var(--dim); }
.prose .prompt-text { color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 700 0.9rem/1.3 var(--font-display); color: var(--text); background: var(--surface); }
.prose td { color: var(--muted); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.note {
  margin: 1.6em 0; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.97rem;
}
.note strong { color: var(--text); }
.note--accent { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent), var(--surface); }
.answer-box {
  margin: 0 0 2em; padding: 20px 22px; border-radius: var(--radius-l);
  background: var(--surface); border: 1px solid var(--accent-line); font-size: 1.06rem;
}
.answer-box p { margin: 0; color: #dcdcd6; }
.answer-box p + p { margin-top: 0.7em; }
.answer-box .answer-cta { margin-top: 12px; }
.answer-box .answer-cta a { color: var(--accent); font-weight: 700; text-decoration: none; }
.answer-box .answer-cta a:hover { text-decoration: underline; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 24px; font-size: 0.88rem; color: var(--dim); }

.toc { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.toc h2 { font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 0.93rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
.toc li::marker { color: var(--dim); }

.app-card { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--accent-line); }
.app-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.app-card-head img { width: 52px; height: 52px; border-radius: 13px; }
.app-card-head b { display: block; font: 800 1.02rem/1.2 var(--font-display); }
.app-card-head span { font-size: 0.84rem; color: var(--dim); }
.app-card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 14px; }
.app-card .btn { width: 100%; }
.app-card .cta-note { margin-top: 10px; font-size: 0.8rem; }

.related { margin-top: 56px; }
.related h2 { font-size: 1.5rem; }

/* ───────── Legal pages ───────── */
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin: 2em 0 0.5em; }
.legal p, .legal li { color: #cfcfca; }
.legal ul { padding-left: 1.3em; }
.legal address { font-style: normal; color: #cfcfca; line-height: 1.7; }

/* ───────── Footer ───────── */
.site-footer { margin-top: clamp(48px, 8vw, 96px); padding-block: 56px calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-grid h2 { font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin: 6px 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid > * { min-width: 0; }
.footer-grid ul + h2 { margin-top: 28px; }
.footer-grid a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-about p { color: var(--dim); margin: 14px 0 16px; max-width: 360px; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.82rem; display: grid; gap: 8px; }
.footer-legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }

/* ───────── Sticky install bar (phones) ───────── */
/* Floating install bar (like cloudvideo.si): a centered pill up to 440px wide. Shown on Android phones and on
   desktops (where the button opens the QR page to install on a phone); hidden on iPhone, as the app is Android-only. */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  max-width: 440px; margin-inline: auto;
  display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px;
  background: rgb(19 19 21 / 0.92); border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.6);
  transform: translateY(140%); opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); opacity: 1; }
.sticky-cta img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.sticky-cta-text { min-width: 0; flex: 1; line-height: 1.25; }
.sticky-cta-text b { display: block; font: 800 0.98rem/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta-text span { font-size: 0.8rem; color: var(--dim); white-space: nowrap; }
.sticky-cta .btn { min-height: 44px; padding: 0 18px; }
@media (max-width: 760px) { .is-android .sticky-cta, .is-other-mobile .sticky-cta { display: flex; } body.has-sticky { padding-bottom: 84px; } }
.is-desktop .sticky-cta { display: flex; }

/* 404 */
.not-found { text-align: center; padding-block: clamp(72px, 12vw, 140px); }
.not-found h1 { font-size: clamp(4rem, 14vw, 9rem); }


/* ───────── Mid-article install card ───────── */
.inline-cta {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  margin: 2.2em 0; padding: 20px 22px; border-radius: var(--radius-l);
  background: radial-gradient(420px 180px at 0% 0%, rgb(245 245 0 / 0.1), transparent 70%), var(--surface);
  border: 1px solid var(--accent-line);
}
.inline-cta-icon { width: 56px; height: 56px; border-radius: 14px; }
.inline-cta-body { min-width: 0; }
.inline-cta p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.prose .inline-cta p { color: var(--muted); }
.inline-cta .inline-cta-title { font: 800 1.12rem/1.25 var(--font-display); color: var(--text); margin-bottom: 4px; letter-spacing: -0.01em; }
.inline-cta .inline-cta-meta { margin-top: 6px; font-size: 0.8rem; color: var(--dim); }
.inline-cta .play-badge img { width: 170px; }
@media (max-width: 640px) {
  .inline-cta { grid-template-columns: auto minmax(0, 1fr); }
  .inline-cta .play-badge { grid-column: 1 / -1; justify-self: start; }
}

/* ───────── Language menu, footer languages, "also in your language" hint ───────── */
.lang-menu { position: relative; flex-shrink: 0; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font: 600 0.82rem/1 var(--font); letter-spacing: 0.04em;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--surface-2); color: var(--text); }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; min-width: 200px; padding: 6px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55); overscroll-behavior: contain;
}
.lang-panel a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.lang-panel a:hover { background: var(--surface-2); }
.lang-panel a[aria-current="page"] { color: var(--accent); }
.footer-langs { margin: 32px 0 0; color: var(--dim); font-size: 0.88rem; line-height: 1.9; }
.footer-langs a { color: var(--muted); text-decoration: none; }
.footer-langs a:hover { color: var(--text); text-decoration: underline; }

.lang-hint {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px;
  padding: 10px 48px 10px 16px; position: relative; font-size: 0.92rem;
  background: var(--accent); color: var(--accent-ink);
}
.lang-hint a { color: var(--accent-ink); font-weight: 700; }
.lang-hint button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--accent-ink); cursor: pointer; font-size: 1.3rem; line-height: 1;
}
.lang-hint button:hover { background: rgb(0 0 0 / 0.1); }

/* ───────── "Prompt copied → open the app" toast ───────── */
.copy-toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; align-items: center; gap: 12px; width: min(460px, calc(100vw - 24px));
  padding: 12px 12px 12px 16px; border-radius: 18px;
  background: rgb(19 19 21 / 0.96); border: 1px solid var(--accent-line); box-shadow: 0 20px 50px rgb(0 0 0 / 0.6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.copy-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.copy-toast p { margin: 0; flex: 1; min-width: 0; font-size: 0.9rem; line-height: 1.35; }
.copy-toast p b { display: block; color: var(--accent); font-weight: 700; }
.copy-toast .btn { min-height: 42px; padding: 0 16px; font-size: 0.92rem; flex-shrink: 0; }
.copy-toast .toast-close {
  display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; font-size: 1.2rem;
}
.copy-toast .toast-close:hover { background: var(--surface-2); color: var(--text); }
.is-ios .copy-toast .btn { display: none; }
.has-sticky .copy-toast.is-visible { bottom: calc(96px + env(safe-area-inset-bottom)); }
/* iPhone has no install bar: the toast sits at the bottom edge there. */
.is-ios .has-sticky .copy-toast.is-visible { bottom: calc(20px + env(safe-area-inset-bottom)); }

.is-ios .site-header .header-cta { display: none; }
@media (max-width: 420px) {
  .site-header .wrap { gap: 10px; }
  .brand span { font-size: 1.05rem; }
  .site-header .header-cta { padding: 0 12px; font-size: 0.86rem; }
  .lang-menu summary span { display: none; }
  .lang-menu summary { padding: 0 10px; }
}

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

/* CJK and Thai pages. Inter covers Latin only, so these scripts get their own system fonts (Latin text stays Inter);
   tight Latin tracking and line height are relaxed, and lines break the way each language expects. */
html:lang(ja) { --font: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif; --font-display: "Inter Tight", "Inter", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif; line-break: strict; }
html:lang(ko) { --font: "Inter", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; --font-display: "Inter Tight", "Inter", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; word-break: keep-all; }
html:lang(zh-TW) { --font: "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; --font-display: "Inter Tight", "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; line-break: strict; }
html:lang(th) { --font: "Inter", "Noto Sans Thai", Thonburi, "Leelawadee UI", system-ui, sans-serif; --font-display: "Inter Tight", "Inter", "Noto Sans Thai", Thonburi, "Leelawadee UI", system-ui, sans-serif; }
:is(:lang(ja), :lang(ko), :lang(zh-TW), :lang(th)) :is(h1, h2, h3) { letter-spacing: 0; }
:is(:lang(ja), :lang(ko), :lang(zh-TW)) :is(h1, h2) { line-height: 1.25; }
:lang(th) :is(h1, h2) { line-height: 1.35; }
:lang(th) body { line-height: 1.8; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }

/* Home: chips linking the idea and comparison pages. */
.idea-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.idea-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease); }
.idea-chips a:hover { border-color: var(--accent); background: var(--surface-2); }

/* Prompt text and its Copy / Use buttons outside a prompt card (FLUX page card, guides): keep them apart. */
.prompt-text + .prompt-actions { margin-top: 12px; }
.prompt-actions + :not(.prompt-actions) { margin-top: 18px; }
