/* Oryva, « lumière de projection »: night background, warm amber light, Sora titles, Figtree text. */
:root {
  color-scheme: dark;
  --night: #070B14;
  --night2: #0B1120;
  --slate: #121A2C;
  --slate-high: #1A2338;
  --line: rgba(255, 255, 255, .08);
  --ink: #EEF1F7;
  --soft: #C9D0DE;
  --muted: #A3ACBF;
  --faint: #8A93A8;
  --amber: #F2A65A;
  --amber-hi: #FFC891;
  --on-amber: #1A1206;
  --danger: #F07A7A;
  --danger-hi: #F7A3A3;
  --sage: #7CCB9A;
  --sage-hi: #9FE0B8;
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(70% 45% at 75% 0%, rgba(255, 200, 145, .10), transparent 70%), var(--night);
  color: var(--ink);
  font: 17px/1.6 "Figtree", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--amber-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { font-family: "Sora", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.1rem; line-height: 1.3; }
p { margin: 0; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 "Sora", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-hi); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 38rem; }
.muted { color: var(--muted); }
.fine { font-size: 14px; color: var(--faint); }
.center { text-align: center; margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; gap: 16px 28px; width: min(1180px, 100% - 32px); margin: 0 auto; padding: 20px 0; }
.brand img { display: block; width: 108px; }
.nav { display: flex; gap: 24px; flex: 1; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.top-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { display: flex; padding: 3px; border-radius: 10px; background: var(--slate); border: 1px solid var(--line); }
.lang a { min-width: 36px; min-height: 32px; display: grid; place-items: center; border-radius: 7px; font: 600 13px "Sora", sans-serif; color: var(--muted); }
.lang a.on { background: var(--slate-high); color: var(--ink); }
.lang a:hover { text-decoration: none; color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--slate); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 52px; z-index: 10; min-width: 220px; padding: 8px; display: grid; border-radius: 14px; background: var(--slate-high); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.menu-panel a { padding: 12px 14px; border-radius: 10px; color: var(--ink); }
.menu-panel a:hover { background: var(--slate); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: var(--slate-high); color: var(--ink); font: 600 16px/1 "Figtree", sans-serif; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; background: #222c45; }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn.primary { background: var(--amber); color: var(--on-amber); border-color: transparent; box-shadow: 0 10px 30px rgba(242, 166, 90, .22); }
.btn.primary:hover { background: var(--amber-hi); }
.btn.danger { background: #C2453F; color: #FFFFFF; border-color: transparent; }
.btn.danger:hover { background: #D4554E; }
.btn.ghost { background: transparent; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero .copy { display: grid; gap: 22px; }
.tv { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--night); border: 10px solid #0d1220; outline: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 120px rgba(242, 166, 90, .08); }
.tv .backdrop { position: absolute; inset: 0 0 30% 34%; background: radial-gradient(80% 90% at 70% 30%, #3b2a1f, #1b2440 60%, transparent), linear-gradient(135deg, #1e2c52, #0b1120); }
.tv .backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(7, 11, 20, .6) 35%, transparent 70%), linear-gradient(180deg, transparent 40%, var(--night) 100%); }
.tv .ui { position: absolute; inset: 0; padding: 4.2% 4.4%; display: grid; grid-template-rows: auto auto 1fr; gap: 3%; font-size: clamp(7px, 1.25vw, 12px); }
.tv .bar { display: flex; justify-content: space-between; color: var(--muted); }
.tv .bar b { color: var(--ink); font-family: "Sora", sans-serif; }
.tv .bill { display: grid; gap: .5em; max-width: 52%; }
.tv .pill { color: var(--amber-hi); font: 600 .8em/1 "Sora", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.tv .title { font: 600 2.1em/1.1 "Sora", sans-serif; }
.tv .meta { color: var(--muted); }
.tv .bar-time { height: 3px; width: 60%; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.tv .bar-time i { display: block; height: 100%; width: 62%; background: var(--amber); }
.tv .rail { align-self: end; display: grid; gap: .8em; }
.tv .rail span { color: var(--muted); font-family: "Sora", sans-serif; }
.tv .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3%; }
.tv .card-tv { aspect-ratio: 16 / 9; border-radius: 7px; background: linear-gradient(135deg, var(--slate-high), var(--night2)); display: grid; place-items: center; color: var(--faint); font: 600 1.1em "Sora", sans-serif; position: relative; overflow: hidden; }
.tv .card-tv.focus { outline: 2px solid var(--amber-hi); transform: scale(1.05); box-shadow: 0 0 24px rgba(242, 166, 90, .35); color: var(--ink); }
.tv .card-tv .p { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--amber); }
.tv .card-tv.a { background: linear-gradient(135deg, #2a3b6b, #121a2c); }
.tv .card-tv.b { background: linear-gradient(135deg, #4a3020, #1a1206); }
.tv .card-tv.c { background: linear-gradient(135deg, #1f4a3a, #0b1120); }

/* Bands and sections */
.promises { border-block: 1px solid var(--line); background: var(--night2); }
.promises .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px 0; font-size: 15px; color: var(--soft); }
.promises span { display: flex; gap: 10px; align-items: center; }
.promises svg { flex: none; color: var(--amber); }
section.band { padding: 80px 0; border-top: 1px solid var(--line); }
section.band.alt { background: var(--night2); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 46rem; }
.section-head.row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; max-width: none; gap: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.tile { background: var(--slate); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.tile p { color: var(--muted); font-size: 15px; }
.tile .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(242, 166, 90, .14); color: var(--amber); }
.tile .icon svg { width: 22px; height: 22px; }
.tile .step { font: 600 32px "Sora", sans-serif; color: var(--amber); line-height: 1; }
ol.grid { list-style: none; margin: 0; padding: 0; }

/* Period switch and plans */
.period { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--slate); border: 1px solid var(--line); }
.period button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 10px; cursor: pointer; font: 600 15px "Figtree", sans-serif; background: transparent; color: var(--muted); }
.period button[aria-pressed="true"] { background: var(--slate-high); color: var(--ink); }
.period small { color: var(--sage-hi); font-size: 12px; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--slate); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.plan.premium { border-color: rgba(242, 166, 90, .5); background: linear-gradient(160deg, #1e2846, #121a2c 65%); box-shadow: 0 30px 80px rgba(242, 166, 90, .10); }
.plan h3 { font-size: 22px; }
.plan.premium h3 { color: var(--amber-hi); }
.plan .badge { position: absolute; top: 24px; right: 24px; font: 600 11px "Sora", sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(242, 166, 90, .16); color: var(--amber-hi); }
.plan .price { font: 600 40px/1.1 "Sora", sans-serif; }
.plan .price small { font: 400 16px "Figtree", sans-serif; color: var(--muted); margin-left: 6px; }
.plan .saving { font-size: 14px; color: var(--sage-hi); margin-top: -10px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.plan li svg { flex: none; margin-top: 3px; }
.plan li.off { color: var(--faint); }
.plan .btn { margin-top: auto; }
.plan .fine { text-align: center; }

/* Comparison table */
.compare { background: var(--night2); border: 1px solid var(--line); border-radius: 22px; padding: 8px; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-top: 1px solid rgba(255, 255, 255, .07); vertical-align: middle; }
.compare thead th { border-top: 0; font: 600 15px "Sora", sans-serif; }
.compare .c { text-align: center; width: 22%; }
.compare .p { background: rgba(242, 166, 90, .05); }
.compare thead .p { color: var(--amber-hi); border-radius: 14px 14px 0 0; background: rgba(242, 166, 90, .08); }
.compare thead .amount { display: block; font: 600 22px "Sora", sans-serif; color: var(--ink); margin-top: 6px; }
.compare thead .per { display: block; font: 400 13px "Figtree", sans-serif; color: var(--muted); }
.compare tr.group td { font: 600 12px "Sora", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding-top: 26px; }
.compare .yes { color: var(--sage-hi); font-weight: 600; }
.compare .no { color: #5A6378; }
.compare strong { font-weight: 600; }

/* FAQ and help */
.faq details { background: var(--slate); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin-top: 10px; }
.search { display: flex; align-items: center; gap: 12px; width: min(640px, 100%); min-height: 56px; padding: 0 18px; border-radius: 16px; background: var(--slate); border: 1px solid rgba(255, 255, 255, .12); color: var(--muted); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: 17px "Figtree", sans-serif; outline: none; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.topics button { min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; font: 600 15px "Figtree", sans-serif; background: transparent; border: 1px solid rgba(255, 255, 255, .14); color: var(--muted); }
.topics button[aria-pressed="true"] { background: rgba(242, 166, 90, .14); border-color: var(--amber); color: var(--amber-hi); }
.status { display: flex; align-items: center; gap: 8px; color: var(--sage-hi); }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
.status.down { color: var(--danger-hi); }
.status.down i { background: var(--danger); }
.split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.split > .side { flex: 1 1 300px; display: grid; gap: 14px; }
.split > .main { flex: 1.4 1 420px; }

/* Forms */
.form-wrap { width: min(560px, 100% - 32px); margin: 16px auto 56px; display: grid; gap: 18px; }
.card { background: var(--slate); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; }
.card label { font-size: 14px; color: var(--muted); }
.card input:not([type=radio]):not([type=checkbox]), .card select, .card textarea { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: var(--night2); color: var(--ink); font: 16px "Figtree", sans-serif; }
.card textarea { padding: 12px 14px; min-height: 140px; resize: vertical; }
.card input:focus, .card select:focus, .card textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.card .btn { margin-top: 8px; }
.row2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.row2 > div { display: grid; gap: 6px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#code { font: 600 1.5rem "Sora", sans-serif; letter-spacing: .14em; text-align: center; }
[data-kind] { display: grid; gap: 10px; }
.kinds { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.kinds legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.kinds label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.kinds label span { margin-left: auto; color: var(--faint); font-size: 13px; }
.kinds label:has(input:checked) { border-color: var(--amber); background: rgba(242, 166, 90, .08); }
.kinds input { accent-color: var(--amber); }
.target { color: var(--muted); }
.target b { color: var(--ink); }
.card label.certify { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; line-height: 1.5; }
.certify input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--amber); }
.error { color: var(--danger-hi); font-size: 15px; }
.done h2 { color: var(--sage-hi); }
.ok-mark { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(124, 203, 154, .16); color: var(--sage-hi); }
.notice { padding: 14px 16px; border-radius: 12px; background: rgba(242, 166, 90, .10); border: 1px solid rgba(242, 166, 90, .35); color: #FFD9B0; font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.steps li { flex: 1; text-align: center; padding: 8px 6px; border-radius: 10px; font: 600 13px "Figtree", sans-serif; background: var(--night2); color: var(--faint); }
.steps li.now { background: rgba(242, 166, 90, .16); color: var(--amber-hi); }
.steps li.done { background: rgba(124, 203, 154, .12); color: var(--sage-hi); }
.list { display: grid; gap: 10px; }
.list div { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--soft); }
.list svg { flex: none; margin-top: 3px; }
.list b { flex: none; min-width: 72px; color: var(--ink); }

/* oryva.org/premium */
.summary { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--night2); color: var(--muted); font-size: 15px; }
.pay { position: relative; display: grid; gap: 12px; margin-top: 6px; padding: 18px; border-radius: 16px; background: #FFFFFF; color: #141A27; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; color: #3A4256; }
.pay-head b { color: #141A27; font-family: "Sora", sans-serif; }
.pay-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #2E7D52; font-weight: 600; }
.pay-button { min-height: 48px; }
.pay-or { display: flex; align-items: center; gap: 12px; color: #6B748A; font-size: 13px; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: #E4E7EE; }
.pay-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: #5A6378; }
.pay-loading { margin: 0; font-size: 13px; color: #6B748A; text-align: center; }
.pay.locked .pay-button { opacity: .45; }
.pay-lockout { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 24px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .7); color: #141A27; font: 600 15px "Figtree", sans-serif; cursor: pointer; text-align: center; }
.pay-lockout span { padding: 10px 16px; border-radius: 999px; background: #141A27; color: #FFFFFF; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.receipts { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); }
#account { display: grid; gap: 18px; }
#cancel-confirm { display: grid; gap: 10px; }

/* Support conversation */
.thread { display: grid; gap: 12px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; white-space: normal; }
.msg.you { justify-self: end; background: var(--slate-high); border-radius: 14px 14px 4px 14px; }
.msg.oryva { justify-self: start; background: rgba(242, 166, 90, .10); border: 1px solid rgba(242, 166, 90, .3); border-radius: 14px 14px 14px 4px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(163, 172, 191, .16); color: var(--soft); }
.pill.open { background: rgba(242, 166, 90, .16); color: var(--amber-hi); }
.pill.closed { background: rgba(124, 203, 154, .14); color: var(--sage-hi); }

/* Download */
.release { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 24px; align-items: center; background: linear-gradient(160deg, #1e2846, #121a2c 65%); border: 1px solid rgba(242, 166, 90, .4); border-radius: 22px; padding: 28px; }
.release .apk { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: rgba(242, 166, 90, .16); color: var(--amber); }
.release h2 { font-size: 26px; }
.release .meta { color: var(--muted); font-size: 15px; }
.release .notes { grid-column: 1 / -1; color: var(--soft); white-space: pre-line; font-size: 15px; }
.hash { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--faint); overflow-wrap: anywhere; }
.versions { width: 100%; border-collapse: collapse; font-size: 15px; }
.versions th, .versions td { text-align: left; padding: 12px; border-top: 1px solid var(--line); }
.versions th { font: 600 12px "Sora", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border-top: 0; }
.code-url { display: inline-block; padding: 6px 12px; border-radius: 10px; background: var(--night2); border: 1px solid var(--line); font: 600 18px "Sora", sans-serif; color: var(--amber-hi); letter-spacing: .02em; }

/* Legal pages */
.legal { max-width: 780px; padding: 24px 0 56px; display: grid; gap: 18px; }
.legal section { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal h2 { font-size: 1.15rem; }
.legal p { color: var(--muted); }

/* Footer */
.foot { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 40px 0 48px; border-top: 1px solid var(--line); display: grid; gap: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; font-size: 14px; color: var(--faint); }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col b { color: var(--soft); }
.foot-col a { color: var(--muted); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .grid, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .promises .wrap { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) {
  .top-end > .btn { display: none; }
  .grid, .grid.two, .grid.four, .plans, .row2 { grid-template-columns: 1fr; }
  .promises .wrap { grid-template-columns: 1fr; }
  section.band { padding: 56px 0; }
  .tv { border-width: 6px; }
  .release { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
