/* RYMVI product site — layer on top of styles.css.
   Dark/lavender identity, page components, accessibility helpers. */

/* ---- Identity: deep navy + lavender (dark & default) ---- */
:root:not([data-theme]), [data-theme="dark"] {
  --bg: #0b0a17;
  --bg-soft: #100e20;
  --surface: #14122a;
  --surface-2: #1a1735;
  --surface-3: #241f47;
  --line: rgba(205,195,255,.12);
  --text: #f6f4ff;
  --text-2: #d3cfe8;
  --text-3: #a6a1c4;
  --muted: #b3aed0;
  --accent: #a594ff;
  --accent-2: #7c6cff;
  --accent-soft: #c9bfff;
  --hero-gradient: linear-gradient(120deg, #ffffff 10%, #d6ccff 52%, #8fd7ff);
  --icon-tint: rgba(165,148,255,.12);
  --icon-tint-line: rgba(165,148,255,.26);
  --focus-ring: rgba(201,191,255,.75);
  --page-glow-1: rgba(124,108,255,.20);
  --page-glow-2: rgba(73,217,255,.07);
  --glow-1: rgba(124,108,255,.22);
  --glow-2: rgba(73,217,255,.10);
}
/* White text on these stays above 4.5:1. */
.button { background: linear-gradient(145deg, #6d5df5, #4c43d6); box-shadow: 0 10px 28px rgba(109,93,245,.28); }
[data-theme="light"] .button { background: linear-gradient(145deg, #5a4be6, #3f37c4); }
.button-ghost, [data-theme="light"] .button-ghost { background: var(--surface-2); color: var(--text); box-shadow: none; }

/* ---- Accessibility helpers ---- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-section a:not(.button), .prose a:not(.button) { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Private-preview markers (preview build only) ---- */
.preview-banner { background: #3a2a00; color: #ffe6a6; text-align: center; font-size: .86rem; padding: 8px 14px; border-bottom: 1px solid rgba(255,202,114,.35); position: relative; z-index: 30; }
.draft-notice { margin: 18px auto 0; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255,202,114,.45); background: rgba(255,202,114,.08); color: var(--text-2); }
.draft-notice strong { color: var(--warning); }

/* ---- Screenshots ---- */
.phone { width: min(300px, 78vw); aspect-ratio: 9 / 19.5; border-radius: 42px; padding: 10px; background: linear-gradient(160deg, #2a2550, #0f0d1f); box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; background: var(--surface-2); }
.phone-row { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.phone-row .phone { width: min(240px, 70vw); }
figure.shot { margin: 0; display: grid; gap: 12px; justify-items: center; }
figure.shot figcaption { color: var(--text-3); font-size: .86rem; text-align: center; max-width: 260px; }

/* ---- Save → Organise → Find ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: var(--accent-soft); border: 1px solid var(--icon-tint-line); background: var(--icon-tint); }
.step h3 { margin: 0 0 8px; color: var(--text); font-size: 1.25rem; }
.step p { margin: 0; color: var(--muted); }

/* ---- Tables (credit costs, limits) ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data caption { text-align: left; padding: 14px 16px 0; color: var(--text-3); font-size: .85rem; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
table.data th { color: var(--text); font-weight: 700; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 700; }

/* ---- Availability ---- */
.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.platform-card { padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); display: grid; gap: 12px; align-content: start; }
.platform-card h2, .platform-card h3 { margin: 0; color: var(--text); font-size: 1.35rem; }
.status { justify-self: start; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,202,114,.45); color: var(--warning); background: rgba(255,202,114,.08); }
.status.is-available { border-color: rgba(116,217,159,.5); color: var(--success); background: rgba(116,217,159,.08); }
.button[aria-disabled="true"], span.button { cursor: default; opacity: .75; transform: none !important; }

/* ---- Callouts ---- */
.callout { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--icon-tint-line); background: var(--icon-tint); color: var(--text-2); }
.callout strong { color: var(--text); }
.callout-warn { border-color: rgba(255,202,114,.45); background: rgba(255,202,114,.07); }
.callout-warn strong { color: var(--warning); }

/* ---- Help centre ---- */
.help-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.help-toc { position: sticky; top: 20px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.help-toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin: 0 0 10px; }
.help-toc a { display: block; padding: 7px 8px; border-radius: 9px; color: var(--text-2); font-size: .93rem; }
.help-toc a:hover { background: var(--surface-2); color: var(--text); }
.help-section { scroll-margin-top: 20px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.help-section:last-child { border-bottom: 0; }
.help-section > h2 { font-size: 1.7rem; letter-spacing: -.03em; margin: 0 0 14px; color: var(--text); }
.help-section .faq summary { font-size: 1rem; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; color: var(--muted); }
.faq details > div ul, .faq details > div ol { margin: 0 0 10px; padding-left: 20px; color: var(--muted); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary { list-style: none; justify-content: space-between; gap: 14px; }
.faq summary::after { content: "+"; color: var(--accent-soft); font-weight: 800; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }

/* ---- Small things ---- */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--icon-tint-line); background: var(--icon-tint); color: var(--accent-soft); vertical-align: middle; }
.lead-sm { font-size: 1.06rem; color: var(--text-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mt-0 { margin-top: 0 } .mt-2 { margin-top: 16px } .mt-4 { margin-top: 32px }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line); }

@media (max-width: 900px) {
  .steps, .grid-3 { grid-template-columns: 1fr; }
  .platforms, .grid-2 { grid-template-columns: 1fr; }
  .help-layout { grid-template-columns: 1fr; }
  .help-toc { position: static; }
}
.section-title{font-size:clamp(2rem,4.5vw,3.2rem);letter-spacing:-.05em;line-height:1.05;margin:0 0 14px;color:var(--text)}
/* Check lists: plain wrapping text (a flex row split sentences with links
   into unwrappable pieces and overflowed narrow screens). */
.check-list li { display: block; position: relative; padding-left: 1.6em; }
.check-list li::before { position: absolute; left: 0; top: 0; }
/* Buttons inside page sections keep button colours (the generic page-link
   rule in styles.css was turning their text lavender on lavender). */
.page-section a.button, .prose a.button { color: #fff; text-decoration: none; }
.page-section a.button.button-ghost, .prose a.button.button-ghost { color: var(--text); }
/* Light theme: a darker amber so warning labels pass 4.5:1. */
[data-theme="light"] { --warning: #7a4200; }

/* ---- Account portal (/account/) ---------------------------------------- */
[hidden] { display: none !important; }
.page-hero-compact { padding-bottom: 12px; }
.page-hero-compact h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.acct-section { padding-top: 12px; }
.acct-container { width: min(100% - 32px, 820px); margin: 0 auto; display: grid; gap: 20px; }
.acct-container > div { display: grid; gap: 20px; }
.acct-container > div[hidden] { display: none; }
.acct-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; scroll-margin-top: 90px; }
.acct-card h2 { margin: 0 0 10px; font-size: 1.5rem; color: var(--text); }
.acct-card h3 { margin: 24px 0 8px; font-size: 1.08rem; color: var(--text); }
.acct-card p, .acct-card li { color: var(--text-2); }
.acct-card ul { padding-left: 20px; }
.acct-signin { max-width: 520px; width: 100%; margin: 0 auto; }
.acct-info { max-width: 520px; width: 100%; margin: 0 auto; }
.acct-loading { margin: 0; color: var(--text-3); }
.acct-card label { display: block; font-weight: 700; color: var(--text); margin: 14px 0 6px; }
.acct-card input[type="email"], .acct-card input[type="password"], .acct-card input[type="text"] {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-size: 1rem;
}
.acct-card input:focus-visible, .acct-dialog input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; border-color: transparent; }
.acct-wide { width: 100%; margin-top: 16px; }
.button-sm { min-height: 38px; padding: 0 13px; border-radius: 11px; font-size: .9rem; }
.button-danger { background: linear-gradient(145deg, #e5484d, #b4232a) !important; box-shadow: 0 10px 28px rgba(229,72,77,.25) !important; color: #fff; margin-top: 18px; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.linklike { background: none; border: 0; padding: 6px 0; min-height: 44px; color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.acct-divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); margin: 18px 0 2px; font-size: .85rem; }
.acct-divider::before, .acct-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acct-divider[hidden] { display: none; }
.acct-status { margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--icon-tint-line); background: var(--icon-tint); color: var(--text); }
.acct-status[data-kind="error"] { border-color: rgba(229,72,77,.55); background: rgba(229,72,77,.1); }
.acct-status[data-kind="ok"] { border-color: rgba(116,217,159,.5); background: rgba(116,217,159,.09); }
.acct-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.acct-bar p { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
.acct-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-toc a { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2) !important; text-decoration: none !important; font-size: .88rem; }
.acct-toc a:hover { color: var(--text) !important; }
.acct-dl { margin: 0; display: grid; gap: 0; }
.acct-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acct-row:last-child { border-bottom: 0; }
.acct-row dt { color: var(--text-3); margin: 0; }
.acct-row dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
div.acct-dl > .acct-row > dt, div.acct-dl > .acct-row > dd { display: block; }
.acct-note { color: var(--text-3) !important; font-size: .92rem; }
.acct-note.warn { color: var(--warning) !important; }
.acct-pill { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: .78rem; font-weight: 700; border: 1px solid var(--line); vertical-align: middle; }
.acct-pill-ok { color: var(--success); border-color: rgba(116,217,159,.45); }
.acct-pill-warn { color: var(--warning); border-color: rgba(255,202,114,.45); }
.acct-id { font-size: .85rem; background: var(--surface-2); padding: 3px 7px; border-radius: 7px; overflow-wrap: anywhere; }
.acct-id-wrap { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 4px 0 8px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); min-width: 2px; }
.acct-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.acct-table th, .acct-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.acct-table th { color: var(--text-3); font-weight: 700; }
.acct-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.acct-details { margin: 6px 0 4px; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; background: var(--surface-2); }
.acct-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--text); }
.acct-danger { border-color: rgba(229,72,77,.35); }
.acct-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--text-2) !important; }
.acct-check input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: #e5484d; }
.acct-check[hidden] { display: none !important; }
.acct-legal { font-size: .82rem; color: var(--text-3) !important; }
.acct-dialog { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); padding: 26px; width: min(100% - 32px, 440px); }
.acct-dialog::backdrop { background: rgba(0,0,0,.6); }
.acct-dialog label { display: block; font-weight: 700; margin: 14px 0 6px; }
.acct-dialog input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 1rem; }
.acct-dialog p { color: var(--text-2); }
.acct-dialog [hidden] { display: none !important; }
@media (max-width: 620px) {
  .acct-card { padding: 20px; }
  .acct-row { grid-template-columns: 1fr; gap: 2px; }
}
