/* Ridgewake: the website, in the app's own look.
   The dark theme is the Unity app's Ridgewake.uss to the colour (soil, bone
   and moss; clay red for what is wrong, amber for what needs a look). The
   light theme is the same palette turned over: bone paper, soil ink, a deeper
   moss so links and buttons still read. Light is the default for everybody
   (the owner, 2026-10-26: "have the bright mode on by default"); dark only
   when the visitor picks it (the moon/sun button: html[data-theme]).
   Every page in this folder uses this one sheet. */
:root {
  --bg: #F6F2E9;
  --surface: #FFFCF5;
  --surface-2: #EEE7D8;
  --line: #DAD1BF;
  --text: #1E1B16;
  --muted: #5F584B;
  --accent: #4C6F31;
  --accent-hover: #3E5D27;
  --accent-soft: #E3EDD6;
  --accent-ink: #FFFFFF;
  --danger: #A63A22;
  --warn: #8F5208;
  --ok: #3F6A22;
  --head-bg: rgba(246, 242, 233, 0.92);
  --hero-glow: #DCE8CC;
  --shadow: 0 18px 40px rgba(30, 27, 22, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --wrap: 1140px;
  color-scheme: light;
}
/* the app's own colours, when the visitor picks dark */
:root[data-theme="dark"] {
  --bg: #14120E; --surface: #1E1B16; --surface-2: #2A261F; --line: #3B352B;
  --text: #EFE9DC; --muted: #A59C8A; --accent: #8DB36B; --accent-hover: #A2C483;
  --accent-soft: #26331C; --accent-ink: #161A10; --danger: #D65A3C; --warn: #E8963A; --ok: #9CC46B;
  --head-bg: rgba(20, 18, 14, 0.92); --hero-glow: #2E3B23; --shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.55; overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; }
p { margin: 0 0 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 10px; z-index: 60; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── header: the app's top bar ─────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--head-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 10px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.1em; font-size: 15px; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 11px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.head-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.menu-btn { display: none; }
.theme-light-icon { display: none; }
:root[data-theme="dark"] .theme-light-icon { display: block; }
:root[data-theme="dark"] .theme-dark-icon { display: none; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .head-tools { margin-left: auto; }
}
@media (max-width: 400px) { .brand-word { display: none; } }

/* ── footer ────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 0 50px; color: var(--muted); font-size: 15px; background: var(--surface); }
.site-foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.site-foot h2 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.site-foot a:not(.brand) { color: var(--muted); text-decoration: none; display: block; padding: 4px 0; }
.site-foot a:not(.brand):hover { color: var(--text); }
.site-foot button.linkish { background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; cursor: pointer; text-align: left; }
.site-foot .fine { margin-top: 28px; font-size: 13px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .cols > :first-child { grid-column: 1 / -1; } }

/* ── sections ──────────────────────────────────────────────────────── */
section { padding: 64px 0 0; }
.hero { padding: 60px 0 20px; background: radial-gradient(ellipse at 15% 0%, var(--hero-glow) 0%, rgba(0, 0, 0, 0) 62%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero.solo .wrap { grid-template-columns: 1fr; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 36em; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.section-head { max-width: 46em; margin-bottom: 22px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 16px; text-decoration: none; border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); background: var(--surface-2); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.btn-block { width: 100%; }

.phone { width: 100%; max-width: 320px; justify-self: center; border-radius: 40px; background: #05070a; border: 3px solid #2e3540; padding: 9px; box-shadow: var(--shadow); }
.phone img { border-radius: 32px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
a.card { color: var(--text); text-decoration: none; display: block; }
a.card:hover { border-color: var(--accent); color: var(--text); }
.icon { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--accent); }
.icon svg { width: 26px; height: 26px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 0 0 14px; }
.ticks li { padding: 6px 0 6px 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 60px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 24px; top: 22px; width: 42px; height: 42px; border-radius: 21px; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step.card { padding-top: 78px; }

/* the vehicle tiles, as in the app's picker */
.vehicles { display: flex; flex-wrap: wrap; gap: 14px; }
.vtile { position: relative; flex: 1 1 150px; background: var(--surface); border: 2px solid var(--line); border-radius: 22px; padding: 16px; text-align: center; }
.vtile svg { width: 100%; max-width: 170px; height: auto; margin: 0 auto 6px; display: block; }
.vtile b { display: block; }
.vtile span { color: var(--muted); font-size: 14px; }
.badges { position: absolute; top: 10px; right: 10px; display: flex; gap: 5px; }
.badge { width: 28px; height: 28px; border-radius: 14px; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: #fff; border: 2px solid var(--surface); }
.badge.bad { background: #C0492D; }
.badge.warn { background: #E8963A; color: #241505; }
.car-body { fill: #EFE9DC; stroke: #14120E; }
.car-fuel { fill: #8DB36B; }

/* stats strip, as the app's stat boxes */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; }
.stat b { display: block; font-size: 30px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* products */
.product-hero { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .product-hero { grid-template-columns: 1fr; } }
.art { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; justify-content: center; }
.art svg { width: 100%; max-width: 420px; height: auto; }
.art-box { fill: var(--surface-2); stroke: var(--line); }
.art-lid { fill: var(--bg); stroke: var(--line); }
.art-mark { fill: var(--accent); }
.art-ink { fill: var(--muted); }
.price { font-size: 32px; font-weight: 800; margin: 8px 0 2px; }
.stock { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.stock.ok { color: var(--ok); }
.stock.bad { color: var(--danger); }
.pill { display: inline-block; font-size: 13px; padding: 3px 12px; border-radius: 20px; background: var(--surface-2); color: var(--muted); margin: 0 6px 6px 0; }
.pill.accent { background: var(--accent); color: var(--accent-ink); }
.pill.warn { background: var(--surface-2); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
table.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
table.facts th, table.facts td { text-align: left; padding: 11px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts th { color: var(--muted); font-weight: 600; width: 36%; }
.table-scroll { overflow-x: auto; }
.notice { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 18px; margin: 16px 0; }
.notice.draft { background: var(--surface-2); border-color: var(--warn); }
.notice.draft b { color: var(--warn); }
.buy { margin-top: 10px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qty { width: 72px; min-height: 50px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; padding: 0 10px; }
.shop-card { display: flex; flex-direction: column; }
.shop-card .grow { flex: 1; }
.shop-card .art { padding: 14px; margin-bottom: 16px; }
.shop-card .art svg { max-width: 260px; }

/* notify me */
.notify { margin-top: 14px; }
.notify form { display: flex; flex-wrap: wrap; gap: 10px; }
.notify input[type="email"] { flex: 1 1 200px; min-width: 0; }
input[type="email"], input[type="search"], input[type="text"], textarea, select {
  min-height: 50px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; padding: 0 14px;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; }
.form-msg { font-size: 14px; margin-top: 8px; min-height: 1.2em; }
/* the waitlist forms: the news is its own box, and .hp is a field people never see */
.notify form .check, .signup .check { flex: 1 1 100%; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.notify form .check input, .signup .check input { margin-top: 3px; flex: none; }
.notify form .fine, .signup .fine { flex: 1 1 100%; margin: 0; }
.signup { display: grid; gap: 12px; margin-top: 12px; max-width: 560px; }
.signup .picks { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; min-width: 0; }
.signup .picks legend { font-size: 14px; font-weight: 600; margin-bottom: 4px; padding: 0; }
.signup [data-news-products] { display: grid; gap: 6px; }
.signup button { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg.ok { color: var(--ok); }
.form-msg.bad { color: var(--danger); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan.featured { border: 2px solid var(--accent); }
.plan .amount { font-size: 30px; font-weight: 800; margin: 8px 0; }

/* FAQ */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 14px 26px 14px 0; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; color: var(--accent); font-size: 22px; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { color: var(--muted); }
.faq-search { width: 100%; max-width: 560px; margin: 8px 0 6px; }
.faq-group h2 { margin-top: 36px; }

/* screenshots */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 210px; scroll-snap-align: start; }
.shots img { border-radius: 26px; border: 1px solid var(--line); }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 14px; padding: 10px 18px; color: var(--text); text-decoration: none; background: var(--surface); }
.store svg { width: 26px; height: 26px; }
.store small { display: block; color: var(--muted); font-size: 12px; }
.store b { display: block; font-size: 17px; }
a.store[href]:hover { border-color: var(--accent); color: var(--text); }
.store:not([href]) { cursor: default; }

/* placeholder blocks the owner fills before launch */
.placeholder { border: 2px dashed var(--warn); background: transparent; }
.placeholder .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); margin-bottom: 8px; }

/* ── the cart drawer ───────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 40; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); border-left: 1px solid var(--line); z-index: 50; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 22px; margin: 0; }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 18px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line .name { font-weight: 700; }
.cart-line .meta { color: var(--muted); font-size: 14px; }
.cart-line .ctrl { display: flex; align-items: center; gap: 6px; grid-column: 1 / -1; }
.cart-line .ctrl button { min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.cart-line .ctrl .remove { margin-left: auto; padding: 0 12px; }
.cart-foot { padding: 16px 18px 20px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin-bottom: 4px; }
.cart-empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* ── consent banner ────────────────────────────────────────────────── */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.consent p { margin: 0 0 10px; font-size: 15px; }
.consent .btns { margin: 0; }
.consent .btn { min-height: 44px; }

.prose h2 { margin-top: 34px; }
.prose h3 { margin-top: 22px; }
.prose ol, .prose ul:not(.ticks) { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.big404 { font-size: clamp(80px, 18vw, 160px); font-weight: 800; color: var(--accent); line-height: 1; margin: 0 0 10px; }

/* ── the sign-up page (signup.html) and the pages an emailed link opens ── */
.lead-ticks { max-width: 36em; margin-top: 4px; }
.signup-card { max-width: 980px; margin: 0 auto; }
.signup-full { display: grid; gap: 22px; margin-top: 8px; }
.signup-full fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.signup-full legend { font-weight: 800; font-size: 18px; padding: 0; margin-bottom: 12px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
@media (max-width: 600px) { .pick-grid { grid-template-columns: 1fr; } }
.pick { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pick-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; min-width: 0; }
.pick-card:hover { border-color: var(--accent); }
.pick-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.pick-card input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); grid-row: 1; grid-column: 1; }
.pick-card .pick-art { grid-column: 2; grid-row: 1; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.pick-card .pick-art img { width: 100%; max-width: 220px; margin: 0 auto; }
.pick-card .pick-text { grid-column: 2; display: grid; gap: 2px; }
.pick-card .pick-text b { line-height: 1.3; }
.pick-more { align-self: flex-start; margin-left: 4px; }
.pick-all { margin-top: 14px; grid-template-columns: auto 1fr; }
.pick-all .pick-text { grid-row: 1; }
.news-check { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; }
.news-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.news-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.signup-full .field { display: grid; gap: 6px; max-width: 520px; }
.signup-full .field label { font-weight: 700; }
.signup-full .btns { margin: 0; }
.signup-full .fine { margin: 0; max-width: 46em; }
.form-msg.warn { color: var(--warn); }
.signup-done { padding: 6px 0 0; }
.signup-done h3 { font-size: clamp(24px, 4vw, 32px); color: var(--ok); }
.signup-done h3:focus { outline: none; }
.steps-4 { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps-4 { grid-template-columns: 1fr; } }
.list-link .wrap { max-width: 720px; }
.list-card h1 { font-size: clamp(30px, 5vw, 44px); }
.list-card h1:focus { outline: none; }
.list-card h1.ok { color: var(--ok); }
.list-card h1.bad { color: var(--danger); }
.list-card .lead { font-size: 19px; color: var(--muted); }

/* ── accounts (js/account.js): create one, sign in, the account page ── */
.hero.solo .wrap.auth-wrap { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 24px; }
.hero.solo .wrap.auth-wrap.one { grid-template-columns: minmax(0, 560px); justify-content: center; }
.auth-card h1 { font-size: clamp(30px, 5vw, 44px); }
.auth-form { display: grid; gap: 8px; margin-top: 16px; min-width: 0; }
.auth-form > label:not(.check), .auth-form div > label { font-weight: 600; font-size: 15px; margin-top: 6px; display: block; }
.auth-form .btn { margin-top: 10px; justify-self: start; }
.auth-form .btn-block { justify-self: stretch; }
.auth-form h3 { margin: 10px 0 0; }
input[type="password"], .auth-form input[type="text"], .auth-form input[type="email"], .auth-form select { width: 100%; min-width: 0; }
input[type="password"] { min-height: 50px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; padding: 0 14px; }
.auth-form .check { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; margin-top: 6px; }
.auth-form .check input { margin-top: 4px; flex: none; width: 18px; height: 18px; }
.pw-row { display: flex; gap: 8px; align-items: stretch; }
.pw-row input { flex: 1 1 auto; }
.pw-row .btn { margin-top: 0; }
.pw-hints { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.pw-hints li::before { content: "\25CB\00A0"; }
.pw-hints li.met { color: var(--ok); }
.pw-hints li.met::before { content: "\2713\00A0"; }
.btn-small { min-height: 42px; padding: 0 14px; border-radius: 12px; font-size: 15px; }
.btn-danger { background: var(--danger); color: var(--bg); }
.btn-danger:hover { filter: brightness(1.08); color: var(--bg); }
.same-login h2 { font-size: 24px; }
.same-login .stores { margin: 14px 0; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.account-grid .span2 { grid-column: 1 / -1; }
.account-grid .card h2 { font-size: 24px; }
.account-grid table.facts td { word-break: break-word; }
.sessions { list-style: none; margin: 10px 0 0; padding: 0; }
.sessions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sessions li > div { min-width: 0; overflow-wrap: anywhere; }
.secret code { font-size: 18px; letter-spacing: 0.06em; overflow-wrap: anywhere; background: var(--surface-2); padding: 6px 10px; border-radius: 10px; display: inline-block; }
.codes { columns: 2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; }
.danger-zone { border-color: var(--danger); }
@media (max-width: 900px) {
  .hero.solo .wrap.auth-wrap, .account-grid { grid-template-columns: 1fr; }
}

/* ── languages: the header's picker, the suggestion bar, the note ─────
 * The picker is a <details> of plain links (build/build.js), so it works
 * with no script; js/ridgewake.js closes it on a tap outside and draws the
 * suggestion bar once, in the visitor's own language. */
.lang-pick { position: relative; }
.lang-pick > summary { list-style: none; gap: 6px; }
.lang-pick > summary::-webkit-details-marker { display: none; }
.lang-code { font-size: 12px; letter-spacing: 0.04em; }
.lang-list { position: absolute; top: 48px; right: 0; z-index: 40; list-style: none; margin: 0; padding: 6px; min-width: 190px; max-height: min(70vh, 520px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lang-list a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.lang-list a:hover, .lang-list a[aria-current="true"] { background: var(--surface-2); }
.lang-list a[aria-current="true"] { box-shadow: inset 3px 0 0 var(--accent); }
@media (max-width: 400px) { .lang-code { display: none; } }
.lang-suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 15px; }
.lang-suggest p { margin: 0; }
.lang-suggest .btns { display: flex; gap: 8px; margin: 0; }
.mt-note { margin-top: 8px; font-size: 13px; }

/* Right to left (Arabic): the same page, mirrored where a side is named. */
[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .hp { left: auto; right: -9999px; }
[dir="rtl"] .skip:focus { right: 8px; left: auto; }
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .count { right: auto; left: -6px; }
[dir="rtl"] .site-foot button.linkish, [dir="rtl"] table.facts th, [dir="rtl"] table.facts td { text-align: right; }
[dir="rtl"] .ticks li { padding: 6px 30px 6px 0; }
[dir="rtl"] .ticks li::before { left: auto; right: 4px; }
[dir="rtl"] .step::before { left: auto; right: 24px; }
[dir="rtl"] .badges { right: auto; left: 10px; }
[dir="rtl"] details.faq summary { padding: 14px 0 14px 26px; }
[dir="rtl"] details.faq summary::after { right: auto; left: 0; }
[dir="rtl"] .cart { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .cart-line .ctrl .remove { margin-left: 0; margin-right: auto; }
[dir="rtl"] .prose ol, [dir="rtl"] .prose ul:not(.ticks) { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .pick-more { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .lang-list { right: auto; left: 0; }
[dir="rtl"] .lang-list a[aria-current="true"] { box-shadow: inset -3px 0 0 var(--accent); }
@media (max-width: 980px) { [dir="rtl"] .head-tools { margin-left: 0; margin-right: auto; } }
