/* Plotux landing — styles
   Breakpoints: ≤1024px (tablet), ≤720px (phone). */

:root {
  --orange: #fe6903;        /* decorative fills: icons, bars, chapter tiles */
  --orange-text: #b54708;   /* orange text on light backgrounds (AA contrast) */
  --orange-btn: #c4500a;    /* button fill, white text passes AA */
  --orange-btn-hover: #a8430a;
  --orange-soft: #fef4ee;
  --orange-line: #fae2d8;
  --orange-on-dark: #ff8a3d;
  --ink: #181d27;
  --ink-2: #414651;
  --ink-3: #535862;
  --muted: #667085;
  --line: #e9eaeb;
  --line-strong: #d5d7da;
  --bg-soft: #fafafa;
  --bg-hero: #fef9f7;
  --dark-field: #252b37;
  --dark-muted: #a4a7ae;
  --green-bg: #ecfdf3;
  --green-text: #067647;
  --green-dot: #12b76a;
  --radius-panel: 20px;
  --shadow-panel: 0 12px 32px rgba(10, 13, 18, 0.06), 0 1px 3px rgba(10, 13, 18, 0.06);
  --shadow-cover: 0 8px 18px rgba(10, 13, 18, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #ffffff; color: var(--ink); font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
a { color: var(--orange-text); text-decoration: none; }
a:hover { color: #8a3505; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Layout & type ---------- */
.wrap { max-width: 1120px; margin: 0 auto; }
.sec { padding: 104px 40px; border-top: 1px solid var(--line); }
.sec--soft { background: var(--bg-soft); }
.head { display: flex; flex-direction: column; gap: 16px; }
.head--center { align-items: center; gap: 14px; text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); }
.h1 { font-size: 58px; line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.h2 { font-size: 42px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.cap { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Components ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--orange-btn); background: var(--orange-btn); color: #ffffff; font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--orange-btn-hover); border-color: var(--orange-btn-hover); color: #ffffff; }
.btn--ghost { background: #ffffff; border-color: var(--line-strong); color: var(--ink-2); }
.btn--ghost:hover { background: #ffffff; border-color: var(--orange-btn); color: var(--orange-text); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }

.ic { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--orange-soft); border: 1px solid var(--orange-line); display: flex; align-items: center; justify-content: center; }
.ic svg { width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.panel { border-radius: var(--radius-panel); background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow-panel); }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: var(--shadow-cover); }
.pill { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.perk { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 500; color: var(--ink-2); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.22, .61, .36, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.cover, .serial__cover, .edition img, .series img { transition: transform 260ms cubic-bezier(.22, .61, .36, 1), box-shadow 260ms ease, filter 260ms ease; will-change: transform; }
.shelf li:hover .cover, .recs li:hover .cover { transform: translateY(-8px) scale(1.025); box-shadow: 0 16px 26px rgba(10, 13, 18, 0.22); }
.serial:hover .serial__cover, .edition:hover img, .series:hover img { transform: translateY(-4px) scale(1.035); box-shadow: 0 12px 20px rgba(10, 13, 18, 0.24); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .cover, .serial__cover, .edition img, .series img { transition: none; }
}

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 40px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); }
.hdr__logo { height: 36px; width: auto; display: block; }
.hdr__nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.hdr__nav a { color: var(--ink-2); }
.hdr__nav a:hover { color: var(--orange-text); }
.hdr__tools { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13px; font-weight: 600; }
.lang a { padding: 10px; color: var(--ink-2); }
.lang a[aria-current="page"] { background: var(--ink); color: #ffffff; }

/* ---------- 1. Hero ---------- */
.hero { padding: 80px 40px 72px; background: var(--bg-hero); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: #ffffff; border: 1px solid var(--orange-line); color: var(--orange-text); font-size: 13px; font-weight: 600; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.langs { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.langs li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: #ffffff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.langs b { font-size: 11px; color: var(--orange-text); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__art { display: flex; justify-content: center; }
.plotux-book { position: relative; isolation: isolate; display: block; width: 125%; max-width: 675px; aspect-ratio: 1030 / 1000; margin: 0; overflow: hidden; transform: translateY(36px); }
.plotux-book__art, .plotux-book__particles { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.plotux-book__art { object-fit: contain; }

/* ---------- 2. Catalogue shelf ---------- */
.shelf-sec { padding-top: 64px; padding-bottom: 64px; }
.shelf-sec .wrap { display: flex; flex-direction: column; gap: 28px; }
.shelf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.shelf-head h2 { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin-top: 10px; }
.shelf-head p { font-size: 14px; color: var(--muted); }
.shelf { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.shelf li { display: flex; flex-direction: column; gap: 10px; }
.shelf__title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.shelf__author { font-size: 13px; color: var(--muted); margin-top: 2px; }
.genres { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }

/* ---------- Two-column rows ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }

/* ---------- 3. Chapter-by-chapter mockup ---------- */
.serial { padding: 28px; }
.serial__top { display: flex; gap: 20px; align-items: center; }
.serial__cover { flex: none; width: 84px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 7px 7px 3px; box-shadow: var(--shadow-cover); }
.serial__title { font-size: 19px; font-weight: 700; }
.serial__meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.status { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--green-bg); color: var(--green-text); font-size: 12px; font-weight: 600; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-dot); }
.chapters { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 5px; margin: 24px 0 10px; }
.chapters span { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--orange); }
.chapters .is-new { background: #ffffff; border: 1.5px dashed var(--orange); }
.chapters .is-next { background: var(--line); }
.ch-legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.ch-legend b { color: var(--ink); }
.comment { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.comment__avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.comment__who { font-size: 12px; color: var(--muted); }
.comment__text { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 2px; }
.comment__meta { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.comment__meta .reply { color: var(--orange-text); }

/* ---------- 4. Recommendations mockup ---------- */
.recs-panel { padding: 32px; }
.taste { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; list-style: none; padding: 0; }
.taste li { padding: 8px 14px; border-radius: 999px; background: #ffffff; border: 1px solid var(--line); color: var(--ink-3); font-size: 14px; font-weight: 500; }
.taste li.is-on { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.recs-label { text-align: center; margin-bottom: 18px; }
.recs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.recs li { display: flex; flex-direction: column; gap: 10px; }
.recs__title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.recs__why { font-size: 12px; line-height: 1.4; color: var(--muted); margin-top: -6px; }
.recs__why b { color: var(--orange-text); font-weight: 600; }
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }

/* ---------- 5. Edition diagram ---------- */
.diagram { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto minmax(0, 0.8fr); gap: 20px; align-items: center; padding: 40px; }
.diagram .cap { margin-bottom: 10px; }
.edition { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.edition img { flex: none; width: 56px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 4px 10px rgba(10, 13, 18, 0.2); }
.edition__title { font-size: 16px; font-weight: 600; }
.edition__meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.ticket { padding: 18px 20px; border-radius: 14px; background: #ffffff; border: 1.5px dashed var(--orange); text-align: center; }
.ticket__label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-text); }
.ticket__num { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.ticket__of { font-size: 13px; color: var(--muted); }
.arrow { color: #98a2b3; display: flex; justify-content: center; }
.reader { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.reader .cap { margin-bottom: 2px; }
.reader__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--orange-soft); border: 1px solid var(--orange-line); display: flex; align-items: center; justify-content: center; }
.reader__name { font-size: 16px; font-weight: 600; }
.reader__meta { font-size: 13px; color: var(--muted); }

/* ---------- 6. Authors: funnel ---------- */
.funnel { padding: 28px; }
.funnel__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.funnel__title { font-size: 16px; font-weight: 700; }
.funnel__title .cap { margin-left: 6px; }
.chip { white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-text); font-size: 12px; font-weight: 600; }
.bars { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--ink-2); list-style: none; margin: 0; padding: 0; }
.bar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 56px; gap: 14px; align-items: center; }
.bar__fill { display: block; height: 30px; border-radius: 6px; background: var(--orange); width: var(--w, 0%); }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
.funnel__foot { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.funnel__foot b { font-size: 15px; color: var(--ink); }
.aperks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 8px; }

/* ---------- 7. Publishers: dashboard ---------- */
.dash { overflow: hidden; }
.dash__top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.dash__top p { font-size: 15px; font-weight: 700; }
.dash__scroll { overflow-x: auto; }
.dash table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash th { text-align: left; padding: 12px; }
.dash th:first-child, .dash td:first-child { padding-left: 20px; }
.dash th:last-child, .dash td:last-child { padding-right: 20px; }
.dash td { padding: 12px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.series { display: flex; align-items: center; gap: 12px; }
.series img { flex: none; width: 32px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 4px 4px 2px; }
.series__name { font-weight: 600; color: var(--ink); }
.series__author { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mk { display: flex; gap: 4px; flex-wrap: wrap; }
.mk span { padding: 2px 7px; border-radius: 5px; background: #ffffff; border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--ink-3); }
.spark polyline { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- 8. Roadmap ---------- */
.road { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.road__card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 16px; border: 1px dashed var(--line-strong); background: #ffffff; }
.road__top { display: flex; justify-content: space-between; align-items: center; }
.soon { padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 5px 10px; border-radius: 6px; background: var(--bg-soft); font-size: 13px; color: var(--ink-3); }

/* ---------- 9. Early access ---------- */
.join { padding: 104px 40px; background: var(--ink); color: #ffffff; }
.join__inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.join .eyebrow { color: var(--orange-on-dark); }
.join .h2 { color: #ffffff; }
.join .lead { color: var(--dark-muted); }
.join form { width: 100%; margin-top: 8px; }
.roles { border: 0; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.roles legend { width: 100%; margin-bottom: 12px; color: var(--dark-muted); }
.role { position: relative; display: inline-flex; cursor: pointer; }
.role input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role span { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink-2); color: #ffffff; font-size: 14px; font-weight: 600; }
.role input:checked + span { background: var(--orange-btn); border-color: var(--orange-btn); }
.role input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.join-row { display: flex; gap: 12px; margin-top: 24px; }
.join-row input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--ink-3); background: var(--dark-field); color: #ffffff; font: inherit; font-size: 16px; }
.join-row input::placeholder { color: var(--dark-muted); }
.form-status { margin-top: 12px; font-size: 14px; }
.fine { font-size: 13px; color: var(--dark-muted); }
.fine a { color: var(--line-strong); text-decoration: underline; }

/* ---------- Footer ---------- */
.foot { padding: 48px 40px; border-top: 1px solid var(--line); }
.foot__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot__logo { height: 32px; width: auto; display: block; }
.foot__tagline { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 320px; margin-top: 12px; }
.foot__links { display: flex; gap: 48px; flex-wrap: wrap; font-size: 14px; }
.foot__links div { display: flex; flex-direction: column; gap: 10px; }
.foot__links a { color: var(--ink-3); }
.foot__links a:hover { color: var(--orange-text); }
.foot__copy { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .hdr__nav { display: none; }
  .hero__grid, .split, .split--flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .plotux-book { width: 100%; max-width: 540px; transform: none; }
  .split--flip > .head { order: -1; }
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .recs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recs > :nth-child(n+4) { display: none; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road { grid-template-columns: minmax(0, 1fr); }
  .diagram { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .diagram > div { width: 100%; max-width: 360px; }
  .arrow { transform: rotate(90deg); }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  .sec, .join { padding: 64px 20px; }
  .shelf-sec { padding-top: 48px; padding-bottom: 48px; }
  .hero { padding: 48px 20px 56px; }
  .hdr { padding: 12px 20px; }
  .hdr .btn { display: none; }
  .foot { padding: 40px 20px; }
  .h1 { font-size: 38px; }
  .h2 { font-size: 30px; }
  .lead { font-size: 17px; }
  .head--center { margin-bottom: 32px; }
  .cta-row, .join-row { flex-direction: column; align-items: stretch; width: 100%; }
  .join-row input, .join-row .btn { flex: none; }
  .shelf { gap: 12px; }
  .serial, .recs-panel, .funnel, .diagram { padding: 20px 16px; }
  .chapters { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
  .recs { gap: 12px; }
  .perks, .aperks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .perk { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
  .bar { grid-template-columns: 112px minmax(0, 1fr) 44px; gap: 8px; font-size: 13px; }
  .hide-sm { display: none; }
  .spark { width: 56px; height: 17px; }
  .dash th, .dash td { padding-left: 8px; padding-right: 8px; }
  .dash th:first-child, .dash td:first-child { padding-left: 14px; }
  .dash th:last-child, .dash td:last-child { padding-right: 14px; }
}
