/* MangoCut — official website. Colors of a ripe mango (golden, orange, red blush) on graphite,
   with the leaf green only in small touches. Same colors as the app (src/renderer/src/theme/tokens.css). */
:root {
  --ink: #0b0b0e;
  --ink-2: #111115;
  --panel: #16161b;
  --panel-2: #1c1c22;
  --line: #2a2a31;
  --line-2: #3a3a42;
  --text: #f4f2ef;
  --muted: #aaa49e;
  --dim: #6f6a66;
  --gold: #ffc93c;
  --orange: #ff8a1f;
  --blush: #ff5a4e;
  --ripe: #d93a6a;
  --leaf: #2fa65c;
  --lilac: #a98bff;
  --on-mango: #2a1405;
  --grad: linear-gradient(120deg, var(--gold) 0%, var(--orange) 52%, var(--blush) 100%);
  --grad-ripe: linear-gradient(120deg, var(--orange) 0%, var(--blush) 50%, var(--ripe) 100%);
  --radius: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 124px; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 16px/1.6 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin: 0 auto; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.25s, border-color 0.25s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(11, 11, 14, 0.78); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }

/* ---------- "under construction" notice, at the top of every page ---------- */
.notice {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 10px; min-height: 34px; padding: 6px 16px;
  background: linear-gradient(90deg, #ffc93c24, #ff8a1f2e 50%, #ff5a4e24), var(--ink-2); border-bottom: 1px solid #ff8a1f40;
  font-size: 13.5px; line-height: 1.35; text-align: center; color: var(--text);
}
.notice b { color: var(--gold); font-weight: 700; }
.notice-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: notice-pulse 2s ease-out infinite; }
@keyframes notice-pulse { 0% { box-shadow: 0 0 0 0 #ffc93c99; } 70%, 100% { box-shadow: 0 0 0 7px #ffc93c00; } }
@media (prefers-reduced-motion: reduce) { .notice-dot, .float-chip { animation: none; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.2px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header nav { display: flex; gap: 4px; margin-left: 18px; }
.header nav a { white-space: nowrap; text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.header nav a:hover { color: var(--text); background: #ffffff0d; }
.header .grow { flex: 1; }
.languages { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: #ffffff06; }
.languages button { min-width: 40px; min-height: 34px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-family: inherit; font-weight: 600; font-size: 12.5px; line-height: 1; cursor: pointer; transition: background 0.2s, color 0.2s; }
.languages button:hover { color: var(--text); }
.languages button[aria-pressed='true'] { background: var(--grad); color: var(--on-mango); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: #ffffff08; color: var(--text); cursor: pointer; place-items: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 17px; height: 2px; border-radius: 2px; background: currentColor; position: relative; content: ''; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* ---------- buttons ---------- */
.button {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; border-radius: 999px;
  font-family: inherit; font-weight: 650; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.button svg { width: 20px; height: 20px; transition: transform 0.2s; }
.button::before { content: ''; position: absolute; inset: 0; transform: translateX(-125%) skewX(-18deg); background: linear-gradient(90deg, transparent, #ffffff55, transparent); transition: transform 0.7s; pointer-events: none; }
.button:hover::before { transform: translateX(125%) skewX(-18deg); }
.button:hover svg { transform: translateX(3px); }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--grad); color: var(--on-mango); box-shadow: inset 0 1px 0 #ffffff80, 0 8px 30px #ff8a1f40; }
.button.primary:hover { box-shadow: inset 0 1px 0 #ffffffa0, 0 10px 40px #ff8a1f66; }
.button.secondary { background: linear-gradient(130deg, #ffffff12, #ffffff05); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.button.secondary:hover { border-color: var(--orange); background: #ff8a1f14; }
.button.small { padding: 10px 16px; font-size: 14px; gap: 8px; }
.button[aria-disabled='true'] { cursor: default; opacity: 0.85; }
.button[aria-disabled='true']:hover::before { transform: translateX(-125%) skewX(-18deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 180px 0 70px; overflow: hidden; }
.hero-light { position: absolute; inset: -120px -80px auto; height: 900px; width: calc(100% + 160px); filter: blur(90px); opacity: 0.55; pointer-events: none; z-index: -1; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 240px; background: linear-gradient(transparent, var(--ink)); z-index: -1; pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: 54px; align-items: center; }
/* grid columns may shrink below their content (the drawn app is wide): no sideways scroll on phones */
.hero .wrap > *, .split > * { min-width: 0; }
/* "free": a mango sticker on the drawn app, a highlighted badge, a short note under the buttons, a small button in the menu */
.free-tag { position: absolute; z-index: 3; top: -30px; left: -26px; padding: 8px 16px; border-radius: 12px; transform: rotate(-7deg); background: var(--grad); color: var(--on-mango); font-size: 17px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 12px 30px #ff8a1f55; }
.badge.free { border-color: transparent; background: var(--grad); color: var(--on-mango); font-weight: 700; }
.hero-note { margin: 14px 0 0; color: var(--gold); font-size: 14.5px; font-weight: 600; }
.button.header-free { padding: 10px 16px; font-size: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; border: 1px solid #ffc93c40; background: #ffc93c0d; color: var(--gold); font-size: 12.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 10px var(--leaf); }
h1 { margin: 0; font-size: clamp(44px, 6.4vw, 82px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; }
h1 .accent { display: block; padding-bottom: 0.1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 24px 0 32px; max-width: 34ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #ffffff05; color: var(--muted); font-size: 13.5px; }
.badge svg { width: 15px; height: 15px; color: var(--gold); }

/* the app, drawn (illustration of the real screens) */
.app-mock {
  position: relative; border-radius: 20px; border: 1px solid #ffffff1c; background: linear-gradient(160deg, #1b1b21, #121216);
  box-shadow: 0 40px 120px #00000080, 0 0 0 1px #00000060, 0 30px 80px #ff8a1f1f; overflow: hidden; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform 0.6s;
}
.app-mock:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.mock-top { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-bottom: 1px solid #ffffff10; background: #141418; font-size: 11px; color: var(--muted); }
.mock-top img { width: 18px; height: 18px; border-radius: 5px; }
.mock-top .tabs { display: flex; gap: 4px; margin-left: 10px; }
.mock-top .tabs span { padding: 3px 8px; border-radius: 6px; }
.mock-top .tabs span.on { background: #ff8a1f22; color: var(--gold); }
.mock-top .export { margin-left: auto; padding: 4px 10px; border-radius: 6px; background: var(--grad); color: var(--on-mango); font-weight: 700; }
.mock-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; padding: 12px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shot { border-radius: 10px; border: 1px solid #ffffff12; background: #18181d; overflow: hidden; font-size: 10px; }
.shot .pic { aspect-ratio: 16 / 10; position: relative; }
.shot .meta { display: flex; justify-content: space-between; align-items: center; padding: 5px 7px; color: var(--muted); font-family: Consolas, monospace; }
.shot .meta b { color: var(--gold); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.dot.ok { background: var(--leaf); box-shadow: 0 0 6px var(--leaf); }
.dot.wait { background: var(--gold); }
.pic.p1 { background: radial-gradient(circle at 70% 30%, #ffd98a 0 8%, transparent 9%), linear-gradient(180deg, #1d2b53 0%, #ff9a3c 75%, #2a1a3a 100%); }
.pic.p2 { background: radial-gradient(circle at 30% 70%, #fff3 0 12%, transparent 13%), linear-gradient(200deg, #0f2027, #2c5364 60%, #4ca1af); }
.pic.p3 { background: linear-gradient(160deg, #2c1a3a, #d93a6a 60%, #ffc93c); }
.pic.p4 { background: radial-gradient(ellipse at 50% 90%, #ffb35c 0 20%, transparent 50%), linear-gradient(180deg, #0b1023, #283e69); }
.pic.p5 { background: linear-gradient(135deg, #3b2a1a, #a0612b 50%, #ffc93c); }
.pic.p6 { background: repeating-linear-gradient(90deg, #18181d 0 8px, #1f1f25 8px 16px); }
.pic.p6::after { content: ''; position: absolute; inset: 35% 40%; border-radius: 50%; border: 2px solid #ffc93c88; border-top-color: transparent; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.director { border-radius: 12px; border: 1px solid #ffc93c40; background: linear-gradient(160deg, #ff8a1f14, #ffffff04); padding: 10px; font-size: 11px; }
.director h4 { margin: 0 0 8px; font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
.director .ask { padding: 7px 8px; border-radius: 8px; background: #0e0e12; color: var(--muted); margin-bottom: 8px; line-height: 1.35; }
.director ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 5px; }
.director li { display: flex; gap: 6px; align-items: flex-start; color: var(--text); line-height: 1.3; }
.director li::before { content: '✓'; color: var(--leaf); font-weight: 700; }
.director .apply { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--grad); color: var(--on-mango); font-weight: 700; }
.timeline { grid-column: 1 / -1; position: relative; display: grid; gap: 5px; padding: 10px 10px 8px; border-radius: 10px; background: #0f0f13; border: 1px solid #ffffff0d; }
.track { display: flex; gap: 3px; height: 18px; }
.track span { border-radius: 4px; }
.track.v span { background: linear-gradient(180deg, #3a7898, #2b5d78); }
/* clip widths of the drawn timeline (classes: the site's security rules allow no inline styles) */
.track .w12 { width: 12%; }
.track .w14 { width: 14%; }
.track .w16 { width: 16%; }
.track .w18 { width: 18%; }
.track .w20 { width: 20%; }
.track .w22 { width: 22%; }
.track .w34 { width: 34%; }
.track .w62 { width: 62%; }
.track .ml30 { margin-left: 30%; }
.track.a span { background: linear-gradient(180deg, #379372, #2a7559); height: 14px; align-self: center; }
.track.t span { background: #6d55c7; height: 12px; align-self: center; }
.playhead { position: absolute; top: 2px; bottom: 2px; left: 38%; width: 2px; background: var(--gold); }
.playhead::before { content: '✂'; position: absolute; top: -6px; left: -9px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--on-mango); font-size: 11px; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 14px; font-size: 12.5px; white-space: nowrap;
  background: rgba(22, 22, 27, 0.92); border: 1px solid #ffffff1c; box-shadow: 0 14px 40px #00000070; backdrop-filter: blur(10px); animation: float 6s ease-in-out infinite;
}
.float-chip b { color: var(--gold); font-weight: 650; font-family: Consolas, monospace; }
.float-chip.c1 { left: -26px; bottom: -22px; }
.float-chip.c2 { right: -18px; bottom: -22px; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- sections ---------- */
section { position: relative; padding: 96px 0; }
.kicker { margin: 0 0 12px; color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
h2 { margin: 0 0 14px; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; max-width: 18ch; text-wrap: balance; }
h2 .accent { padding-bottom: 0.08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 0 0 44px; color: var(--muted); font-size: 18px; max-width: 52ch; text-wrap: pretty; }
.center h2:last-child { margin-bottom: 40px; }
.center { text-align: center; }
.center h2, .center .sub { margin-left: auto; margin-right: auto; }

/* the 5 steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step { position: relative; padding: 24px 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel-2), var(--ink-2)); transition: border-color 0.25s, transform 0.25s; }
.step:hover { border-color: #ff8a1f80; transform: translateY(-4px); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; right: 18px; font-size: 38px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.35; }
.icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: var(--grad); color: var(--on-mango); box-shadow: 0 8px 24px #ff8a1f30; }
.icon svg { width: 22px; height: 22px; }
.icon.ripe { background: var(--grad-ripe); color: #fff6ef; }
.icon.leaf { background: linear-gradient(135deg, #1e7a4a, var(--leaf)); color: #fff6ef; box-shadow: 0 8px 24px #2fa65c30; }
.step h3, .card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.2px; }
.step p, .card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* two columns: text + visual */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: 1.05fr 1fr; }
.split.flip .visual { order: -1; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 16.5px; }
.checks li::before { content: ''; flex: none; margin-top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); -webkit-mask: radial-gradient(circle, #000 40%, transparent 42%) , linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.visual { position: relative; }
.glass { border-radius: 22px; border: 1px solid #ffffff16; background: linear-gradient(160deg, #1b1b21, #111115); box-shadow: 0 30px 90px #0000007a; padding: 20px; }

/* director proposal card */
.proposal .request { padding: 14px 16px; border-radius: 14px; background: #0d0d10; border: 1px solid var(--line); color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.proposal .request b { color: var(--text); font-weight: 600; }
.proposal ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.proposal li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #ffffff06; border: 1px solid var(--line); font-size: 15px; }
.proposal li span.tick { width: 22px; height: 22px; flex: none; border-radius: 6px; display: grid; place-items: center; background: var(--grad); color: var(--on-mango); font-weight: 800; font-size: 13px; }
.proposal .foot { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13px; }
.proposal .foot .apply { margin-left: auto; padding: 9px 16px; border-radius: 999px; background: var(--grad); color: var(--on-mango); font-weight: 700; font-size: 14px; }

/* series: folders become videos */
.series { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.series .col { display: grid; gap: 10px; }
.folder, .video { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: #ffffff06; font-size: 15px; }
.folder svg, .video svg { width: 20px; height: 20px; flex: none; }
.folder svg { color: var(--gold); }
.video { border-color: #ff8a1f55; background: #ff8a1f0d; }
.video svg { color: var(--orange); }
.series .arrow { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-mango); box-shadow: 0 10px 30px #ff8a1f40; }
.series .arrow svg { width: 26px; height: 26px; }

/* AI tools */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel-2), var(--ink-2)); transition: border-color 0.25s, transform 0.25s; }
.card:hover { border-color: #ff8a1f80; transform: translateY(-3px); }
.note-line { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* extension */
.ext-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: ext; }
.ext-steps li { display: flex; gap: 14px; align-items: center; font-size: 16px; }
.ext-steps li::before { counter-increment: ext; content: counter(ext); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #ff8a1f80; color: var(--gold); font-weight: 700; font-size: 14px; }
.browsers { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.popup { width: min(360px, 100%); margin: 0 auto; border-radius: 18px; border: 1px solid #ffffff1a; background: #18191c; overflow: hidden; box-shadow: 0 30px 90px #0000008a, 0 0 70px #ff8a1f1c; font-size: 14px; }
.popup-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #131417; border-bottom: 1px solid #ffffff10; font-weight: 650; }
.popup-head img { width: 22px; height: 22px; border-radius: 6px; }
.popup-head b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.popup-body { padding: 16px; display: grid; gap: 12px; }
.popup .prod { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.popup .target { border-radius: 14px; border: 1px solid #ffb22488; background: #ffb22414; padding: 12px 14px; }
.popup .target small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.popup .target code { color: var(--gold); font: 700 18px Consolas, monospace; }
.popup .row { display: flex; gap: 8px; }
.popup .row span { flex: 1; text-align: center; padding: 8px; border-radius: 9px; border: 1px solid #ffffff1a; background: #212226; font-size: 13px; }
.popup .row span.go { background: var(--grad); border-color: transparent; color: var(--on-mango); font-weight: 700; }
.toast { display: flex; align-items: center; gap: 10px; margin: 16px auto 0; width: fit-content; padding: 10px 16px; border-radius: 999px; background: #2fa65c1f; border: 1px solid #2fa65c66; color: #bdf0d0; font-size: 13.5px; }
.toast code { color: var(--text); }

/* the full editor */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.chip { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #ffffff06; font-size: 15px; transition: border-color 0.2s, background 0.2s; }
.chip:hover { border-color: var(--orange); background: #ff8a1f12; }

/* beta */
.beta-box { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 40px; text-align: center; background: var(--grad-ripe); color: #fff6ef; box-shadow: 0 30px 100px #d93a6a40; }
.beta-box::before { content: ''; position: absolute; inset: -40%; background: radial-gradient(circle at 30% 30%, #ffffff40, transparent 40%), radial-gradient(circle at 75% 70%, #ffc93c66, transparent 45%); animation: drift 16s linear infinite; }
@keyframes drift { to { transform: rotate(360deg); } }
.beta-box > * { position: relative; }
.beta-box h2 { margin: 0 auto 12px; color: #fff; }
.beta-box p { margin: 0 auto 28px; max-width: 46ch; font-size: 18px; color: #fff3ea; }
.beta-box .button.primary { background: #fff6ef; color: var(--on-mango); box-shadow: 0 10px 30px #00000033; }
.beta-box .button.secondary { border-color: #ffffff66; color: #fff; background: #ffffff1a; }
.beta-box .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.beta-box .dl-info { margin: 18px 0 0; color: #fff6ef; font-size: 14px; font-weight: 600; }
.beta-box .dl-warn { margin: 6px auto 0; max-width: 62ch; color: #fff6efc4; font-size: 13px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); padding: 0 20px; transition: border-color 0.2s; }
.faq details[open] { border-color: #ff8a1f66; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 650; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--orange); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* footer */
footer { padding: 46px 0 60px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
footer .brand { font-size: 16px; color: var(--text); }
footer .brand img { width: 26px; height: 26px; }
footer .grow { flex: 1; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* small page (buy, 404) */
.page { min-height: 100vh; display: grid; place-items: center; padding: 150px 16px 60px; text-align: center; position: relative; overflow: hidden; }
.page .hero-light { inset: -200px -100px auto; }
.page h1 { font-size: clamp(40px, 6vw, 68px); }
.page .lead { margin-left: auto; margin-right: auto; }
.page .hero-actions { justify-content: center; }

/* ---------- community page ---------- */
.com { position: relative; overflow: hidden; padding: 160px 0 90px; }
.com .com-light { inset: -220px -120px auto; height: 620px; opacity: 0.55; }
.wrap.narrow { position: relative; max-width: 860px; }
.com-head { text-align: center; margin-bottom: 34px; }
.com-head h1 { font-size: clamp(38px, 5.6vw, 64px); }
.com-head .lead { margin: 18px auto 0; max-width: 46ch; text-wrap: pretty; }
.card { border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, #1b1b21, var(--panel)); box-shadow: 0 24px 70px #00000059; }
.com-form { padding: 26px; }
.com-form h2 { margin: 0 0 16px; font-size: 22px; max-width: none; }
.com-form fieldset { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.com-form fieldset:disabled { opacity: 0.5; }
.kind-pick, .com-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.kind-pick button, .com-filters button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #ffffff06; color: var(--muted); font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.kind-pick button:hover, .com-filters button:hover { color: var(--text); }
.kind-pick button[aria-pressed='true'], .com-filters button[aria-pressed='true'] { color: var(--text); border-color: var(--orange); background: #ff8a1f1f; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.bug { background: var(--blush); }
.dot.idea { background: var(--gold); }
.dot.question { background: var(--lilac); }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 650; color: var(--muted); }
.field input, .field textarea, .reply-form textarea, .reply-form input, .com-sort select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--text);
  font-family: inherit; font-weight: 400; font-size: 15.5px; line-height: 1.45; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .reply-form textarea:focus, .reply-form input:focus, .com-sort select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px #ff8a1f2e; }
.com ::placeholder { color: var(--dim); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.com-note { margin: 0; font-size: 13px; color: var(--dim); }
.com-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px; }
.com-status { margin: 0 auto 0 0; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.com-status.ok { color: var(--leaf); }
.com-status.err { color: var(--blush); }
.com-closed { margin: 0 0 20px; padding: 14px 18px; border-radius: 14px; border: 1px solid #ffc93c40; background: #ffc93c10; color: var(--gold); font-weight: 650; text-align: center; }
.team-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--grad); color: var(--on-mango); font-size: 14px; font-weight: 650; }
.team-exit { padding: 7px 14px; border: 0; border-radius: 999px; background: #2a14051f; color: var(--on-mango); font-family: inherit; font-weight: 700; font-size: 13.5px; line-height: 1; cursor: pointer; }
.team-exit:hover { background: #2a140533; }
.com-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 46px 0 16px; }
.com-sort select {
  width: auto; padding: 9px 38px 9px 15px; border-radius: 999px; font-size: 14px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa49e' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.posts { display: grid; gap: 14px; }
.post { padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.post.is-hidden { opacity: 0.6; border-style: dashed; }
.post-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.kind, .seen, .hid { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.kind::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kind-bug { color: var(--blush); background: #ff5a4e1c; }
.kind-idea { color: var(--gold); background: #ffc93c17; }
.kind-question { color: var(--lilac); background: #a98bff1c; }
.seen { color: var(--leaf); background: #2fa65c1f; }
.hid { color: var(--muted); border: 1px dashed var(--line-2); }
.post-title { margin: 0 0 6px; font-size: 18.5px; line-height: 1.3; overflow-wrap: anywhere; }
.post-body, .reply-body { margin: 0; color: #d9d5d1; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body { font-size: 15.5px; }
.post-meta { margin: 12px 0 0; color: var(--dim); font-size: 13px; overflow-wrap: anywhere; }
.post-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.post-actions button, .reply .team-act {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #ffffff06; color: var(--muted); font-family: inherit; font-weight: 600; font-size: 13.5px; line-height: 1; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.post-actions button:hover:not(:disabled), .reply .team-act:hover { color: var(--text); border-color: var(--orange); }
.post-actions button:disabled { cursor: default; opacity: 0.5; }
.vote b { font-weight: 800; }
.vote[aria-pressed='true'] { border-color: transparent; background: var(--grad); color: var(--on-mango); }
.post-actions .team-act, .reply .team-act { border-style: dashed; color: var(--gold); }
.replies { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.reply { padding: 12px 14px; border-radius: 14px; background: var(--panel-2); }
.reply.team { border: 1px solid #ffc93c55; background: linear-gradient(135deg, #ffc93c14, #ff8a1f0d); }
.reply.is-hidden { opacity: 0.6; }
.reply .team-act { margin-top: 8px; }
.reply-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--dim); font-size: 12.5px; }
.reply-meta b { color: var(--muted); }
.reply-body { font-size: 15px; }
.team-badge { padding: 3px 9px; border-radius: 999px; background: var(--grad); color: var(--on-mango); font-size: 12px; font-weight: 700; }
.reply-form { display: grid; gap: 10px; }
.reply-form textarea { min-height: 84px; resize: vertical; }
.reply-form .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.reply-form .row input { flex: 1 1 180px; width: auto; }
.reply-form .row .team-badge { margin-right: auto; }
.button.small { padding: 11px 18px; font-size: 14px; }
.com-muted { margin: 0; color: var(--dim); font-size: 14px; }
.com-empty { padding: 30px 0; color: var(--muted); text-align: center; }
.com-more { display: flex; justify-content: center; margin-top: 20px; }
.com-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100% - 32px); margin: 0; padding: 12px 18px; transform: translateX(-50%); border-radius: 12px; border: 1px solid var(--line-2); background: #1c1c22; color: var(--text); font-size: 14px; box-shadow: 0 20px 60px #00000099; }
.link-btn { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.link-btn:hover { color: var(--gold); }
.com-dialog { width: min(420px, calc(100% - 32px)); padding: 24px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); box-shadow: 0 30px 90px #000000aa; }
.com-dialog::backdrop { background: #000000a6; backdrop-filter: blur(4px); }
.com-dialog form { display: grid; gap: 14px; }
.com-dialog h2 { margin: 0; font-size: 22px; max-width: none; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.faq-more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 36px; color: var(--muted); text-align: center; }
.faq-more p { margin: 0; font-size: 17px; }

/* ---------- launch countdown ---------- */
.launch { padding: 30px 0 80px; }
.countdown { display: flex; justify-content: center; align-items: stretch; gap: clamp(8px, 1.8vw, 22px); margin: 30px auto 20px; }
.cd-unit {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: clamp(74px, 14vw, 176px);
  padding: clamp(16px, 2.6vw, 30px) clamp(8px, 1.6vw, 18px); border-radius: 24px; border: 1px solid #ff8a1f55;
  background: linear-gradient(180deg, #1d1a1f, #111015); box-shadow: 0 24px 70px #00000088, inset 0 1px 0 #ffffff14;
}
.cd-num { font-size: clamp(46px, 9vw, 120px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-label { font-size: clamp(11px, 1.2vw, 14px); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cd-sep { align-self: center; margin-top: -0.4em; font-size: clamp(30px, 6vw, 84px); font-weight: 800; color: #ff8a1f66; }
.cd-date { margin: 0; color: var(--gold); font-size: 17px; font-weight: 600; }
.cd-date::first-letter { text-transform: uppercase; }
.cd-done { margin: 26px 0 0; font-size: clamp(38px, 6vw, 76px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero .wrap, .split, .split.flip { grid-template-columns: 1fr; gap: 44px; }
  .split.flip .visual { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .app-mock { transform: none; }
  .float-chip.c1 { left: 10px; }
  .float-chip.c2 { right: 10px; }
}
/* the menu button comes in before the six links stop fitting on one line */
@media (max-width: 1100px) {
  .header nav { display: none; position: absolute; top: calc(100% + 6px); left: 16px; right: 16px; flex-direction: column; margin: 0; padding: 10px; border-radius: 18px; border: 1px solid var(--line-2); background: #111115; box-shadow: 0 24px 60px #000000b0; }
  .header nav.open { display: flex; }
  .header nav a { padding: 12px 14px; font-size: 16px; }
  .menu-toggle { display: grid; }
}
@media (max-width: 640px) {
  section { padding: 72px 0; }
  /* the drawn app header on phones: no project name, smaller tabs, so the button stays inside */
  .mock-top > span:not(.export) { display: none; }
  .mock-top .tabs { margin-left: 4px; gap: 2px; }
  .mock-top .tabs span { padding: 3px 5px; }
  .mock-top .export { padding: 4px 8px; }
  .hero { padding-top: 156px; }
  .notice { font-size: 12.5px; }
  .countdown { gap: 6px; }
  .cd-sep { display: none; }
  .cd-unit { flex: 1; min-width: 0; padding: 14px 4px; border-radius: 16px; gap: 8px; }
  .cd-label { font-size: 9.5px; letter-spacing: 0.04em; }
  .button.header-free { display: none; }
  .free-tag { top: -14px; left: 4px; font-size: 14px; padding: 6px 12px; }
  .com { padding-top: 160px; }
  .com-form { padding: 20px 16px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .post { padding: 16px; }
  .header .wrap { gap: 10px; }
  .brand span { display: none; }
  .steps, .tools { grid-template-columns: 1fr; }
  .series { grid-template-columns: 1fr; }
  .series .arrow { transform: rotate(90deg); margin: 0 auto; }
  .mock-body { grid-template-columns: 1fr; }
  .director { display: none; }
  .float-chip { font-size: 11.5px; padding: 7px 10px; }
  .float-chip.c2 { display: none; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  .beta-box { padding: 48px 22px; border-radius: 22px; }
  .languages button { min-width: 34px; }
}
