/* Ryzing Star: shared styles for ryzingstar.com and consulting.ryzingstar.com.
   The source is public/site.css; consulting/site.css is a copy made by tools/sync-shared.sh.
   (The archived DeepleLens and Arjuna page keeps its own styles.css.) */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --text: #17191e;
  --muted: #5b616c;
  --line: #e4e0d8;
  --accent: #d9771f;
  --accent-ink: #9a4f0c;
  --accent-soft: #fbeedd;
  --core: #1f5f8b;
  --core-bg: #e8f1f8;
  --ok: #1d7a46;
  --ok-bg: #e5f4ea;
  --warn-bg: #fff4dc;
  --warn-line: #f0c96a;
  --ink-band: #17191e;
  --ink-band-text: #f4f2ee;
  --ink-band-muted: #b8bcc4;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 6px 20px rgba(20, 20, 30, .05);
  --shadow-lift: 0 2px 4px rgba(20, 20, 30, .06), 0 14px 36px rgba(20, 20, 30, .09);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101216; --surface: #181b21; --surface-2: #20242b; --text: #ebe9e4; --muted: #a2a8b2;
    --line: #2b3038; --accent: #f0943f; --accent-ink: #f6b26b; --accent-soft: #2e2214; --core: #8cc2ea; --core-bg: #16263a;
    --ok: #6fd39a; --ok-bg: #12291c; --warn-bg: #2c2414; --warn-line: #7a5f22;
    --ink-band: #1d2027; --ink-band-text: #ebe9e4; --ink-band-muted: #a2a8b2;
    --shadow: none; --shadow-lift: 0 0 0 1px #3a404a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101216; --surface: #181b21; --surface-2: #20242b; --text: #ebe9e4; --muted: #a2a8b2;
  --line: #2b3038; --accent: #f0943f; --accent-ink: #f6b26b; --accent-soft: #2e2214; --core: #8cc2ea; --core-bg: #16263a;
  --ok: #6fd39a; --ok-bg: #12291c; --warn-bg: #2c2414; --warn-line: #7a5f22;
  --ink-band: #1d2027; --ink-band-text: #ebe9e4; --ink-band-muted: #a2a8b2;
  --shadow: none; --shadow-lift: 0 0 0 1px #3a404a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.18; margin: 0 0 .55em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.5rem); letter-spacing: -.03em; max-width: 20ch; }
h2 { font-size: clamp(1.55rem, 3.8vw, 2.15rem); letter-spacing: -.02em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---- Header ---------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 1.06rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; padding: 14px 0; }
.brand small { font-weight: 500; color: var(--muted); font-size: .92rem; letter-spacing: 0; }
.brand svg { flex: none; }
.star { fill: var(--accent); }
.top nav { order: 3; width: 100%; display: flex; gap: 22px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.top nav a[aria-current="page"] { font-weight: 600; }
.theme { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 10px;
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; }
.theme:hover { color: var(--text); }
@media (min-width: 760px) {
  .top nav { order: 0; width: auto; margin-left: auto; padding: 0; overflow: visible; }
  .theme { margin-left: 4px; }
}

/* ---- Buttons and small parts ----------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: 1px solid transparent; border-radius: 12px; padding: 12px 20px;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.2; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); filter: none; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }
:root[data-theme="dark"] .btn:not(.ghost) { color: #1a1206; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.ghost) { color: #1a1206; } }
.btn.ghost[aria-disabled="true"] { background: transparent; color: var(--muted); border-style: dashed; cursor: default; filter: none; }
.tile > a.zoom { display: block; margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tile > a.zoom img { display: block; width: 100%; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { display: inline-block; color: var(--accent-ink); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.lead b, .lead strong { color: var(--text); font-weight: 600; }
.fine { color: var(--muted); font-size: .9rem; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  border-radius: 999px; padding: 3px 11px; background: var(--surface-2); color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { background: var(--ok-bg); color: var(--ok); }
.status.wip { background: var(--warn-bg); color: var(--accent-ink); }
.status.use { background: var(--core-bg); color: var(--core); }

/* ---- Sections -------------------------------------------------------------- */
.hero { padding-top: clamp(48px, 9vw, 104px); padding-bottom: clamp(32px, 6vw, 64px); }
.section { padding-top: clamp(48px, 8vw, 88px); padding-bottom: 8px; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Two doors on the home page */
.doors { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 820px) { .doors { grid-template-columns: 1fr 1fr; gap: 24px; } }
.door { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s, border-color .2s; overflow: hidden; }
.door:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
@media (prefers-reduced-motion: reduce) { .door, .card-link { transition: none; } .door:hover, .card-link:hover { transform: none; } }
.door .kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.door h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); margin: 4px 0 4px; }
.door p { color: var(--muted); margin: 0 0 14px; max-width: 46ch; }
.door ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.door li { display: flex; gap: 10px; align-items: baseline; }
.door li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.door .go { margin-top: auto; font-weight: 650; color: var(--accent-ink); display: inline-flex; gap: 6px; align-items: center; }
.door.consult { background: var(--ink-band); color: var(--ink-band-text); border-color: var(--ink-band); }
.door.consult p, .door.consult .kicker { color: var(--ink-band-muted); }
.door.consult .go { color: var(--accent); }
.door .mark { position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; opacity: .08; }
.door.consult .mark { opacity: .14; }

/* Product cards */
.products { display: grid; gap: 20px; }
@media (min-width: 900px) { .products { grid-template-columns: 1fr 1fr; gap: 24px; } }
.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.product .shot { display: block; background: var(--surface-2); border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; overflow: hidden; }
.product .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.product .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.product .meta .for { color: var(--muted); font-size: .9rem; }
.product h3 { font-size: 1.45rem; margin-bottom: .35em; }
.product p { color: var(--muted); }
.product .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.product .links .btn { padding: 10px 16px; font-size: .95rem; }
.wordmark-shot { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--core-bg), var(--surface-2)); }
.wordmark-shot span { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 750; letter-spacing: -.02em; color: var(--core); }
.earlier { margin-top: 24px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.earlier p { margin: 0; }

/* Principles grid */
.grid3 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; gap: 20px; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.tile h3 { margin-bottom: .4em; }
.tile p { color: var(--muted); margin: 0; font-size: .97rem; }
.tile p + p { margin-top: .7em; }
.tile .icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; }
.tile .icon svg { width: 22px; height: 22px; }
.tile ul { margin: .6em 0 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.tile li { margin: .25em 0; }

/* Feature rows with a screenshot */
.feature { display: grid; gap: 18px 48px; align-items: center; margin: 0 0 56px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.3fr 1fr; }
  .feature.flip > .shot { order: 2; }
  .feature.flip { grid-template-columns: 1fr 1.3fr; }
}
.feature .shot { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.feature .shot img { display: block; width: 100%; height: auto; }
.feature h3 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
.feature p { color: var(--muted); max-width: 50ch; }
.feature .num { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 750; margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; margin-bottom: .35em; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Lists of fit, a quiet check list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { position: relative; padding: 14px 16px 14px 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.checks li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 16px; height: 9px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Notice and callout */
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.notice p { margin: 0; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow); }
.callout p:last-child { margin: 0; }

/* Contact band */
.band { margin-top: clamp(56px, 9vw, 96px); background: var(--ink-band); color: var(--ink-band-text); }
.band .wrap { padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(40px, 7vw, 72px); display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .band .wrap { grid-template-columns: 1.4fr 1fr; } }
.band h2 { margin-bottom: .3em; }
.band p { color: var(--ink-band-muted); margin: 0; max-width: 56ch; }
.band .cta { margin-top: 0; }
@media (min-width: 860px) { .band .cta { justify-content: flex-end; } }
.band .btn.ghost { background: transparent; color: var(--ink-band-text); border-color: color-mix(in srgb, var(--ink-band-text) 30%, transparent); }

/* Footer */
.foot { padding-top: 40px; padding-bottom: 40px; color: var(--muted); font-size: .9rem; }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: .8em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }
.foot .legal p { margin: 0 0 .4em; }

/* Screenshot gallery and lightbox */
.gallery { display: grid; gap: 18px; }
@media (min-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.gallery .shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.gallery figcaption { padding: 12px 14px 14px; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.gallery figcaption b { color: var(--text); }
#lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; overflow: visible; }
#lightbox::backdrop { background: rgba(10, 12, 16, .86); }
#lightbox img { display: block; max-width: min(96vw, 1600px); max-height: 84vh; width: auto; height: auto; border-radius: 10px; background: #fff; }
#lightbox p { color: #e9e7e2; text-align: center; margin: 10px 0 0; font-size: .95rem; }
.lb-close { position: absolute; top: -14px; right: -6px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #111;
  font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); }

/* A browser-frame look for the hero screenshot */
.frame { margin: 40px 0 0; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lift); overflow: hidden; }
.frame .bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame .bar span { margin-left: 10px; font-size: .8rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.frame img { display: block; width: 100%; height: auto; }
.frame-cap { color: var(--muted); font-size: .88rem; margin-top: 10px; }

/* 404 */
.lost { min-height: 60vh; display: grid; align-content: center; }
.grid2 .checks { grid-template-columns: 1fr; }
.door h2 + ul { margin-top: 12px; }
