/* ==========================================================================
   Rockshore Technologies — site.css
   Single design system for rockshoretechnologies.com
   Light-first with automatic dark theme. Brand derived from the Ryan's Voice
   app icon: violet-white ground, #5838C8 → #7F4EDA purple gradient.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #FBFAFE;
  --surface: #F3F0FB;
  --card: #FFFFFF;
  --ink: #1B1533;
  --ink-2: #514A6E;
  --ink-3: #6E6694;
  --line: #E6E1F3;
  --line-strong: #D5CDEC;

  --brand: #5F35CE;
  --brand-deep: #5838C8;
  --brand-bright: #7F4EDA;
  --brand-soft: rgba(95, 53, 206, 0.08);
  --brand-softer: rgba(95, 53, 206, 0.045);
  --grad: linear-gradient(135deg, #5838C8 0%, #8B5CF6 100%);

  --ok: #17824F;
  --ok-soft: rgba(23, 130, 79, 0.09);
  --amber: #A36400;
  --amber-soft: rgba(163, 100, 0, 0.09);

  --nav-bg: rgba(251, 250, 254, 0.86);
  --shadow-card: 0 1px 2px rgba(27, 21, 51, 0.04), 0 8px 28px rgba(27, 21, 51, 0.06);
  --shadow-pop: 0 12px 40px rgba(88, 56, 200, 0.14);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --w-page: 1120px; --w-article: 760px; --w-copy: 66ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D0A1A;
    --surface: #141024;
    --card: #191430;
    --ink: #F1EDF9;
    --ink-2: #B6ADD3;
    --ink-3: #7F76A0;
    --line: #272045;
    --line-strong: #352C58;

    --brand: #9F7BEA;
    --brand-deep: #7F4EDA;
    --brand-bright: #B49AF0;
    --brand-soft: rgba(159, 123, 234, 0.12);
    --brand-softer: rgba(159, 123, 234, 0.06);

    --ok: #4CC98A;
    --ok-soft: rgba(76, 201, 138, 0.12);
    --amber: #E8B15E;
    --amber-soft: rgba(232, 177, 94, 0.12);

    --nav-bg: rgba(13, 10, 26, 0.84);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { color: var(--ink); }
code { background: var(--surface); border-radius: 6px; padding: 1px 6px; font-size: 0.88em; font-family: ui-monospace, "SF Mono", Menlo, monospace; }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 300;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* ---------- Type roles ---------- */
h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(2.1em, 5vw, 3.4em); font-weight: 760; }
h2 { font-size: clamp(1.55em, 3.2vw, 2.15em); font-weight: 720; }
h3 { font-size: 1.15em; font-weight: 650; letter-spacing: -0.01em; }
p { max-width: var(--w-copy); }

.eyebrow, .label {
  display: block;
  font-size: 0.76em; font-weight: 720; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--brand); margin-bottom: 14px;
}
.lede { font-size: 1.16em; color: var(--ink-2); line-height: 1.6; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ink-3); }

/* ---------- Nav ---------- */
nav.site-nav, nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.02em; font-weight: 680; color: var(--ink); letter-spacing: -0.015em;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand span { color: var(--brand); }
.nav-brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 0.9em; font-weight: 560; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  padding: 8px 18px; background: var(--brand); color: #fff !important;
  border-radius: 10px; font-weight: 650;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--brand-deep); text-decoration: none; }
@media (prefers-color-scheme: dark) { .nav-cta { color: #14102a !important; } .nav-cta:hover{ background: var(--brand-bright); } }

/* ---------- Layout shells ---------- */
.wrap { max-width: var(--w-article); margin: 0 auto; padding: 0 24px; }
.wide { max-width: var(--w-page); margin: 0 auto; padding: 0 24px; }
section.band { padding: 92px 0; }
section.band.tint { background: var(--surface); }
.container { max-width: var(--w-article); margin: 0 auto; padding: 128px 24px 80px; }

/* ---------- Hero ---------- */
.hero { padding: 168px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -240px; right: -180px; width: 640px; height: 640px;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 68%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; max-width: 15ch; }
.hero .lede { margin-bottom: 34px; }
.hero-media { position: relative; max-width: 360px; justify-self: center; }
.hero-media video, .hero-media img {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--r-xl); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop); background: var(--surface);
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Trust chips under a hero */
.chips { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; }
.chips li {
  list-style: none; font-size: 0.86em; color: var(--ink-2); font-weight: 560;
  display: inline-flex; align-items: center; gap: 7px;
}
.chips li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 12px; font-weight: 650; font-size: 0.98em;
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--brand-deep); text-decoration: none; transform: translateY(-1px); }
@media (prefers-color-scheme: dark) { .btn { color: #14102a; } .btn:hover { background: var(--brand-bright); } }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--line-strong); }
.btn.ghost:hover { background: var(--brand-softer); border-color: var(--brand); }
.btn svg { flex: none; }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card, .product-card, .guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-card);
  color: inherit; display: flex; flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
a.card:hover, a.product-card:hover, a.guide-card:hover {
  transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-pop);
  text-decoration: none;
}
.product-card h3 { margin: 0 0 8px; }
.product-card p { color: var(--ink-2); font-size: 0.94em; flex: 1; margin-bottom: 18px; }
.product-icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35em; font-weight: 760;
  background: var(--brand-soft); color: var(--brand);
}
.product-icon img { width: 52px; height: 52px; border-radius: 13px; }
.tag { display: inline-block; padding: 5px 13px; border-radius: 8px; font-size: 0.78em; font-weight: 680; width: fit-content; }
.tag.live { background: var(--ok-soft); color: var(--ok); }
.tag.soon { background: var(--surface); color: var(--ink-3); }
.card-link { color: var(--brand); font-weight: 640; font-size: 0.9em; margin-top: 14px; }
.card-link::after { content: " →"; }

.guide-card strong { display: block; margin-bottom: 6px; font-size: 1.02em; }
.guide-card span { color: var(--ink-2); font-size: 0.9em; }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; text-align: center; }
.stat-number { font-size: 1.9em; font-weight: 740; color: var(--brand); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-number.ok { color: var(--ok); }
.stat-label { font-size: 0.84em; color: var(--ink-3); }

/* ---------- Feature rows (pain → answer) ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow-card);
}
.feature-row .pain { padding: 26px 28px; border-right: 1px solid var(--line); }
.feature-row .answer { padding: 26px 28px; background: var(--brand-softer); }
.feature-row .kicker { font-size: 0.72em; font-weight: 740; text-transform: uppercase; letter-spacing: 0.11em; margin-bottom: 8px; display: block; }
.feature-row .pain .kicker { color: var(--ink-3); }
.feature-row .answer .kicker { color: var(--brand); }
.feature-row h3 { margin-bottom: 6px; font-size: 1.04em; }
.feature-row p { font-size: 0.92em; color: var(--ink-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 740; font-size: 1.05em;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.93em; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px 28px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-pop); }
.badge-popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 0.72em; font-weight: 720;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-weight: 700; font-size: 1.12em; margin-bottom: 4px; }
.price-name.free { color: var(--ok); }
.price-name.smart { color: var(--brand); }
.price-name.author { color: var(--amber); }
.price-amount { font-size: 2.15em; font-weight: 760; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-term { color: var(--ink-3); font-size: 0.86em; margin-bottom: 6px; }
.price-blurb { color: var(--ink-2); font-size: 0.92em; margin: 10px 0 18px; }
.price-list { list-style: none; margin: 0 0 24px; flex: 1; }
.price-list li { font-size: 0.9em; color: var(--ink-2); padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 9px; }
.price-list li:last-child { border-bottom: none; }
.price-list li::before { content: "✓"; color: var(--ok); font-weight: 800; flex: none; }
.price-list li.na { color: var(--ink-3); }
.price-list li.na::before { content: "—"; color: var(--ink-3); }
.price-foot { text-align: center; color: var(--ink-3); font-size: 0.88em; margin-top: 26px; }

/* ---------- Article pages (guides) ---------- */
.article { padding: 138px 0 84px; }
.breadcrumb { font-size: 0.82em; color: var(--ink-3); margin-bottom: 22px; }
.breadcrumb a { color: var(--ink-2); }
.article h1 { font-size: clamp(1.9em, 4.2vw, 2.7em); margin-bottom: 18px; }
.article h2 { margin: 52px 0 14px; }
.article h3 { margin: 30px 0 8px; color: var(--brand); }
.article p { color: var(--ink-2); margin-bottom: 16px; }
.article ul, .article ol { color: var(--ink-2); margin: 0 0 18px 24px; max-width: var(--w-copy); }
.article li { margin-bottom: 8px; }
a.inline { color: var(--brand); border-bottom: 1px solid var(--brand-soft); }

.table-scroll { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 13px 17px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.93em; vertical-align: top; }
thead th { background: var(--surface); color: var(--ink); font-weight: 700; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.05em; }
tbody tr:last-child td { border-bottom: none; }
td:first-child { color: var(--ink-3); font-weight: 620; }
td, th { color: var(--ink-2); }
.rv { color: var(--brand); font-weight: 640; }

.callout {
  background: var(--brand-softer); border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 20px 24px; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.verdict { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; margin: 40px 0; }
.checklist { list-style: none; margin-left: 0 !important; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

.faq details { border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 20px; margin-bottom: 12px; background: var(--card); }
.faq summary { cursor: pointer; font-weight: 640; color: var(--ink); padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 14px; }

.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0; }
.related a { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; color: var(--ink); font-weight: 620; font-size: 0.92em; transition: border-color 0.2s; }
.related a:hover { border-color: var(--brand); text-decoration: none; }
.related a small, .related a span { display: block; color: var(--ink-3); font-weight: 460; margin-top: 4px; }
.related a strong { display: block; }

.cta, .cta-band {
  text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 46px 28px; margin: 52px 0 0;
}
.cta h2, .cta-band h2 { margin: 0 0 8px; }
.cta p, .cta-band p { color: var(--ink-2); margin: 0 auto 22px; }
.disclaimer { font-size: 0.8em; color: var(--ink-3); margin-top: 34px; }

/* ---------- Support & legal pages ---------- */
.subtitle { color: var(--ink-3); font-size: 0.95em; margin-bottom: 34px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 0.95em; margin-bottom: 10px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 640; margin-bottom: 8px; }
.faq-a { color: var(--ink-2); font-size: 0.93em; line-height: 1.7; }
.contact-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
  background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--brand); font-weight: 640; font-size: 0.95em; margin-top: 8px;
}
.contact-badge:hover { border-color: var(--brand); text-decoration: none; }
.tier-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
.tier-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 24px; }
.tier-name { font-weight: 660; margin-bottom: 3px; }
.tier-name.free { color: var(--ok); }
.tier-name.smart { color: var(--brand); }
.tier-name.author { color: var(--amber); }
.tier-price { font-size: 0.85em; color: var(--ink-3); margin-bottom: 8px; }
.tier-desc { font-size: 0.9em; color: var(--ink-2); }
.highlight-box {
  background: var(--brand-softer); border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 18px 22px; margin: 22px 0;
}

/* ---------- Waitlist form ---------- */
.waitlist-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.waitlist-form input[type="email"] {
  padding: 13px 18px; min-width: 300px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink);
  font-size: 0.98em; font-family: inherit;
}
.waitlist-form input[type="email"]:focus { outline: 2.5px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.waitlist-form input[type="email"]::placeholder { color: var(--ink-3); }
.waitlist-msg { margin-top: 14px; font-size: 0.92em; }
.waitlist-msg.ok { color: var(--ok); }
.waitlist-msg.err { color: #C0392B; }

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--line); padding: 52px 24px 44px; background: var(--surface); }
.footer-grid { max-width: var(--w-page); margin: 0 auto 30px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--ink-3); font-size: 0.88em; margin-top: 10px; max-width: 34ch; }
.footer-col h4 { font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--ink-2); font-size: 0.9em; padding: 4px 0; }
.footer-col a:hover { color: var(--brand); text-decoration: none; }
.footer-legal { max-width: var(--w-page); margin: 0 auto; border-top: 1px solid var(--line); padding-top: 22px; color: var(--ink-3); font-size: 0.82em; }
.footer-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 14px; }
.footer-links a { color: var(--ink-2); font-size: 0.9em; }

/* ---------- Animation ---------- */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .btn:hover, a.card:hover, a.product-card:hover, a.guide-card:hover { transform: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: none; }
  .hero-media { max-width: 300px; }
  .grid-3, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row .pain { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav.site-nav, nav { padding: 12px 18px; }
  .nav-links { gap: 16px; }
  .nav-links li.hide-sm, .hide-sm { display: none; }
  section.band { padding: 64px 0; }
  .hero { padding: 138px 0 64px; }
  .grid-2, .related { grid-template-columns: 1fr; }
  .waitlist-form input[type="email"] { min-width: 0; width: 100%; }
}

/* Legacy aliases (older inline styles reference these) */
:root { --text-muted: var(--ink-3); --text-secondary: var(--ink-2); --violet-bright: var(--brand); --teal-bright: var(--brand); --violet: var(--brand); --teal: var(--brand); }

/* ---------- Tap targets (WCAG 2.5.5 / Apple HIG: 44px minimum) ----------
   Standalone controls get a 44px hit area on touch-sized screens. Inline
   links inside sentences are exempt and keep their natural line height. */
@media (max-width: 900px) {
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .nav-cta { min-height: 44px; padding: 10px 18px; }
  .nav-brand { min-height: 44px; }
  .footer-col a { min-height: 44px; display: flex; align-items: center; padding: 2px 0; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .card-link { display: inline-flex; align-items: center; min-height: 44px; }
  .faq summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
  .faq summary::after { float: none; margin-left: 12px; }
}
