/* Revyo landing: hero, product mock, night timeline, Discord DM, setup band, security demo, own bot,
   pricing, calculator, FAQ, closer. Tokens, base, buttons, nav, forms, footer and cookie bar live in rv.css, loaded first.
   Motif: ruled ledger rows with tabular numbers, because the product is a record of members. */

/* ---------- section rhythm ---------- */
.sec { padding-top: clamp(88px, 10vw, 132px); }
.head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 760px; }

/* ---------- hero ---------- */
/* one light source, above the product shot, so the eye lands on the restore job */
.hero { position: relative; background: radial-gradient(900px 500px at 80% -6%, rgba(37, 87, 245, .24), transparent 64%), linear-gradient(180deg, #06102a 0%, var(--bg) 74%); padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 104px); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(143, 176, 255, .35) 50%, transparent); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
/* 56px is the size at which each Polish sentence holds one line in the copy column: statement, then promise */
.hero h1 { font-size: clamp(40px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.hero h1 > span { display: block; }
/* the second line is the promise, so it carries the brand blue */
.hero h1 .h1-2 { color: var(--blue-ink); }
.lede { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 52ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--muted); }

/* product mock: one raised card, the restore job is the focal point */
.mock { margin: 0; display: grid; gap: 10px; }
.mock-card { position: relative; background: linear-gradient(180deg, #0e1833, var(--panel) 45%); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95); overflow: hidden; }
/* the top edge catches the light */
.mock-card::before, .plan-pro::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(143, 176, 255, .6), transparent); }
.mock figcaption, .alert-fig figcaption { font-size: 13px; color: var(--faint); justify-self: end; }
.mock-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.mock-head b { font-size: 15px; }
.mock-head .tag { margin-left: auto; }
.srv { width: 32px; height: 32px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; }
.mock-job { padding: 18px; display: grid; gap: 14px; border-bottom: 1px solid var(--line); }
.mock-job .row span { color: var(--muted); font-size: 14px; font-weight: 600; }
.mock-job .row b { font-size: 15px; }
.bar { display: block; height: 8px; border-radius: 4px; background: rgba(110, 140, 220, .14); overflow: hidden; }
.bar > i { display: block; height: 100%; width: var(--p, 90%); background: linear-gradient(90deg, var(--blue-lo), #4f7dff); border-radius: inherit; transition: width .9s linear; }
.ledger3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-sm); }
/* figures sit on one line even when a label wraps (German "Zustimmung entzogen") */
.ledger3 > div { padding: 12px 14px; display: grid; gap: 2px; align-content: space-between; }
.ledger3 > div + div { border-left: 1px solid var(--line); }
.ledger3 dt { font-size: 12.5px; color: var(--muted); }
.ledger3 dd { font-family: var(--head); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.mock-feed { padding: 14px 18px 18px; display: grid; }
.mock-label { font-size: 12.5px; color: var(--muted); font-weight: 600; padding-bottom: 6px; }
.fr { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 12px; align-items: center; font-size: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.fr .muted { font-size: 13px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--blue-ink); background: #142142; flex: none; }

/* ---------- after a nuke: the night as a timeline, the alert it sends pinned beside it ---------- */
.night { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.timeline { display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding-bottom: 36px; }
.timeline li:last-child { padding-bottom: 0; }
/* the rail runs red (attack) to blue (Revyo acting) to green (members back): the server's state over the night.
   Drawn per step, node to node, so it stops at the last node instead of running under the text. */
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--blue); opacity: .55; }
.timeline li.t-bad::before { background: linear-gradient(180deg, var(--bad), var(--blue)); }
.timeline li:has(+ .t-ok)::before { background: linear-gradient(180deg, var(--blue), var(--ok)); }
.node { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 13.5px; color: var(--blue-ink); background: #08112a; border: 1.5px solid var(--blue); }
.t-bad .node { color: var(--bad); border-color: var(--bad); background: #1a0b12; }
.t-ok .node { color: var(--ok); border-color: var(--ok); background: #07181a; }
.timeline h3 { font-size: 20px; margin: 7px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.timeline p { color: var(--muted); max-width: 56ch; }

/* the DM as Discord shows it; Discord's own colors (blurple badge, red embed edge) stay because this depicts the real message */
.alert-fig { margin: 0; position: sticky; top: 100px; display: grid; gap: 10px; }
.dm { padding: 18px 18px 20px; border-radius: var(--r); background: #0a0f1d; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95); }
.dm-row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.dm-body { min-width: 0; }
.av.bot { width: 40px; height: 40px; background: var(--blue); color: #fff; font-size: 15px; }
.dm-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.dm-meta b { font-size: 15px; }
.dm-meta time { font-size: 12px; color: var(--faint); }
.botb { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 3px; background: #4752c4; color: #fff; letter-spacing: .02em; }
/* Discord embeds have a colored left edge: drawn because these depict real Discord messages */
.embed { border-left: 4px solid var(--blue); }
.embed.alert { border-left-color: #f87171; border-radius: 4px; padding: 12px 16px 14px; background: rgba(110, 140, 220, .07); display: grid; gap: 8px; font-size: 14px; }
.embed.alert p { color: #c6cfe0; }
.em-title { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.warn-ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.mention { padding: 0 3px; border-radius: 3px; background: rgba(88, 101, 242, .3); color: #c9cdfb; font-weight: 600; }
.lnk { color: #6ea8ff; }
.em-foot { font-size: 12px; color: var(--faint); }

/* the demo's switches brighten with their whole row, so the label is part of the target */
.field.sw:hover .switch input:not(:checked) + span { box-shadow: inset 0 0 0 1px #717e9c; }
.field.sw:hover .switch input:checked + span { background: var(--blue-hi); }

/* ---------- setup band ---------- */
.band { margin-top: clamp(88px, 10vw, 132px); padding: clamp(64px, 8vw, 100px) 0; background: linear-gradient(180deg, #050b1d, #04070f); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.cols > li { padding: 0 28px; display: flex; flex-direction: column; gap: 10px; }
.cols > li:first-child { padding-left: 0; }
.cols > li:last-child { padding-right: 0; }
.cols > li + li { border-left: 1px solid var(--line); }
.idx { font-family: var(--head); font-weight: 700; color: var(--blue-ink); font-size: 15px; }
.cols h3 { font-size: 20px; }
.cols p { color: var(--muted); font-size: 15px; padding-bottom: 14px; }
.vis { padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; font-size: 14px; }
/* each step ends with what you see at that step; the three screens share one top and one bottom edge */
.cols .vis { margin-top: auto; }
@media (min-width: 901px) {
  @supports (grid-template-rows: subgrid) {
    .cols { grid-template-rows: repeat(4, auto); }
    .cols > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
    .cols .vis { margin-top: 0; }
  }
}
.vis.embed { border-left: 4px solid var(--blue); border-radius: 4px; }
.vis.embed > span:not(.dc-btn) { color: var(--muted); }
.dc-btn { justify-self: start; display: inline-flex; padding: 7px 14px; border-radius: 4px; background: #4752c4; font-weight: 700; font-size: 13.5px; color: #fff; }
.vlabel { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tok { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--r-xs); background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.tok .dots { font-family: var(--mono); letter-spacing: .12em; color: var(--faint); overflow: hidden; white-space: nowrap; min-width: 0; }
.oa-head { display: flex; align-items: center; gap: 10px; }
.oa-head b { font-size: 13.5px; line-height: 1.35; }
.oa-perm { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.oa-perm svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- security demo ---------- */
.secgrid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.tabs { display: grid; border-top: 1px solid var(--line); }
.tabs button { position: relative; text-align: left; padding: 16px 64px 16px 18px; border: 0; border-bottom: 1px solid var(--line); background: none; display: grid; gap: 2px; transition: background-color .15s; }
.tabs button b { font-size: 16px; }
.tabs button span:not(.tag) { color: var(--muted); font-size: 14px; }
.tabs button .tag { position: absolute; right: 14px; top: 17px; }
.tabs button:hover { background: rgba(110, 140, 220, .07); }
.tabs button:active { background: rgba(110, 140, 220, .12); }
/* the left edge marks the pressed rule: a real state, not decoration */
.tabs button[aria-pressed="true"] { background: rgba(37, 87, 245, .11); box-shadow: inset 3px 0 0 var(--blue); }
.demo { padding: 24px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.rules { display: grid; gap: 18px; align-content: start; }
.field.sw { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.field.hl { box-shadow: 0 0 0 2px var(--blue), 0 0 0 8px rgba(37, 87, 245, .2); }
.verdicts { display: grid; align-content: start; }
.vh { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); padding-bottom: 8px; }
.vh b { color: var(--ink); }
/* hold the six sample rows' height until home.js draws them, so the summary under the list does not jump */
#vlist:empty { min-height: 385px; }
.vr { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.vr b { display: block; font-size: 14.5px; }
.vr small { display: block; color: var(--faint); font-size: 12.5px; }
.vr.blocked b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 133, 147, .6); }
.vsum { font-size: 13.5px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }
.privacy-note { margin-top: 20px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14.5px; }
.privacy-note svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--blue-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* ---------- own bot: the argument, drawn as two chains that share nothing ---------- */
.own { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.own-copy { display: grid; gap: 18px; }
.iso { margin-top: 8px; padding: 20px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 14px; }
.iso-row { display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr; align-items: center; }
.iso-row > i { height: 2px; background: var(--blue); opacity: .65; }
.inode { min-width: 0; min-height: 58px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line-2); display: grid; gap: 2px; align-content: center; }
.inode small { font-size: 12px; line-height: 1.3; color: var(--muted); }
.inode b { font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
/* your bot is the point of the section, so it is the one node in blue */
.inode.me { border-color: rgba(79, 125, 255, .6); background: linear-gradient(180deg, rgba(37, 87, 245, .22), rgba(37, 87, 245, .08)); }
.iso-row.dim > i { background: var(--line-2); opacity: 1; }
.iso-row.dim .inode { background: transparent; border-style: dashed; }
.iso-row.dim .inode small { font-size: 13px; font-weight: 600; color: var(--faint); }
.iso-sep { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; color: var(--faint); }
.iso-sep::before, .iso-sep::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.own-list h3 { font-size: 18px; margin-bottom: 12px; }

/* ---------- pricing ---------- */
.price-head { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.price-head > div:first-child { display: grid; gap: 14px; }
.period { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); }
.period button { min-height: 40px; border: 0; background: none; padding: 0 14px; border-radius: var(--r-xs); font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; transition: background-color .15s, color .15s; }
.period button:hover { color: var(--ink); background: rgba(110, 140, 220, .09); }
.period button:not([aria-pressed="true"]):active { background: rgba(110, 140, 220, .15); }
.period button em { font-style: normal; color: var(--blue-ink); font-size: 12.5px; }
.period button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.period button[aria-pressed="true"] em { color: #2a4fc4; }
.plans { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; align-items: stretch; }
.plan { position: relative; padding: 32px; border-radius: var(--r); border: 1px solid var(--line); display: grid; gap: 16px; align-content: start; }
/* Pro is the plan the business sells, so it gets the lit blue surface and the solid button */
.plan-pro { background: linear-gradient(180deg, rgba(37, 87, 245, .16), rgba(37, 87, 245, .02) 42%), var(--panel); border-color: rgba(79, 125, 255, .45); overflow: hidden; }
.plan h3 { font-size: 24px; }
.pdesc { color: var(--muted); font-size: 15px; }
.pprice { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pprice b { font-family: var(--head); font-size: 46px; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.pprice > span { color: var(--muted); font-size: 14.5px; }
.plan .btn { justify-self: start; }

.plist.two { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.calc { margin-top: 20px; display: grid; grid-template-columns: 1fr 200px 1.2fr; gap: 28px; align-items: center; padding: 24px 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); }
.calc h3 { font-size: 19px; margin-bottom: 4px; }
.calc .pdesc { display: block; }
.input.big { font-family: var(--head); font-size: 26px; font-weight: 700; min-height: 56px; }
.calc output { display: block; font-size: 16.5px; line-height: 1.5; }
.calc output b { color: var(--ink); }
.calc output.err { color: var(--bad); }
.pnote { color: var(--faint); font-size: 13.5px; margin-top: 4px; }

/* ---------- faq ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-head { display: grid; gap: 16px; }
.split-head.sticky { position: sticky; top: 100px; }
.faq-more { color: var(--muted); font-size: 15px; max-width: 34ch; }
.faq-more a { color: var(--blue-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(143, 176, 255, .45); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.faq-more a:hover { color: var(--ink); text-decoration-color: currentColor; }
.faq-more a:active { opacity: .72; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; padding: 20px 48px 20px 0; font-weight: 700; font-size: 17px; position: relative; transition: color .15s; }
.faq summary:hover { color: #fff; }
.faq summary:active { opacity: .72; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fabc3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 22px 0; color: var(--muted); }

/* ---------- closing cta: the page's one deep-blue surface ---------- */
.closer { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; padding: clamp(36px, 5vw, 60px); border-radius: 18px; background: radial-gradient(700px 320px at 92% -10%, rgba(47, 98, 255, .34), transparent 65%), linear-gradient(180deg, #0b1840, #070e26); border: 1px solid rgba(143, 176, 255, .22); }
.closer > div:first-child { display: grid; gap: 14px; }
.closer .h2 { max-width: 20ch; }
.closer .sub { color: #b4c0d8; }
.closer .btn-ghost { border-color: rgba(190, 205, 240, .32); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero-in { grid-template-columns: 1fr; }
  .mock { max-width: 640px; }
  .secgrid { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .tabs button:nth-child(odd) { border-right: 1px solid var(--line); }
  .calc { grid-template-columns: 1fr 200px; }
  .calc-out { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .split, .night, .own { grid-template-columns: 1fr; }
  .split-head.sticky, .alert-fig { position: static; }
  .plans { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 36px; }
  .cols > li { padding: 0; }
  .cols > li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: 36px; }
  .demo { grid-template-columns: 1fr; }
  .price-head { grid-template-columns: 1fr; }
  .closer { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 600px) {
  .ledger3 dd { font-size: 20px; }
  .ledger3 > div { padding: 10px; }
  .fr { grid-template-columns: 30px 1fr auto; }
  .fr .muted { display: none; }
  .tabs { grid-template-columns: 1fr; }
  .tabs button:nth-child(odd) { border-right: 0; }
  .plist.two { grid-template-columns: 1fr; }
  .period { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .calc { grid-template-columns: 1fr; padding: 22px; }
  .plan { padding: 22px; }
  .demo { padding: 18px; }
  .cta-row .btn { flex: 1 1 100%; }
  .timeline li:not(:last-child)::before { left: 16px; top: 34px; }
  .timeline li { grid-template-columns: 34px 1fr; gap: 16px; }
  .node { width: 34px; height: 34px; font-size: 12.5px; }
  .timeline h3 { margin-top: 4px; font-size: 19px; }
  .dm { padding: 14px; }
  .dm-row { grid-template-columns: 32px 1fr; gap: 10px; }
  .av.bot { width: 32px; height: 32px; font-size: 13px; }
  .iso { padding: 14px; }
  .iso-row { grid-template-columns: 1fr 10px 1fr 10px 1fr; }
  .inode { padding: 8px; }
  .inode b { font-size: 13px; }
  .inode small { font-size: 11.5px; }
}
