/* ============================================================
   Vireks — Shared Stylesheet
   Brand: deep navy background · record-dot red accent · cream highlights
   ============================================================ */

/* --- Brand tokens (single source of truth) -------------------------------- */
:root {
  --bg-deep:      #0b1736;
  --bg-mid:       #14224d;
  --bg-card:      rgba(20, 34, 77, 0.55);
  --bg-card-solid: rgba(20, 34, 77, 0.85);
  --line:         rgba(245, 236, 217, 0.10);
  --line-strong:  rgba(245, 236, 217, 0.20);
  --ink:          #f5ecd9;        /* parchment / cream — primary text on dark */
  --ink-soft:     #cbd5f5;        /* cool light for body copy */
  --ink-muted:    #94a3b8;        /* secondary text */
  --ink-faint:    #64748b;        /* footer / meta */
  --accent:       #c0392b;        /* record-dot red — primary action */
  --accent-hot:   #e74c3c;        /* lighter red for gradients / hover */
  --accent-soft:  rgba(192, 57, 43, 0.12);
  --ok:           #4ade80;        /* status: available now */
  --warn:         #facc15;        /* pill.warn — reserved for future advisory states (unused since 2026-07-09 when Vireks went live on Play) */
}

/* --- Reset & base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* System font stack — no external font CDN, GDPR-friendly (no IP leak to Google Fonts). */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
               Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
               'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  background: radial-gradient(circle at top, var(--bg-mid), var(--bg-deep) 70%);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent-hot); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Accessibility: visible focus outline ----------------------------------
   WCAG 2.4.7 (Focus Visible) / EN 301 549 V3.2.1 clause 9.2.4.7.
   See _accessibility-notes.md.
   --------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 2px;
  border-radius: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 2px;
}

/* --- Accessibility: skip-to-content link ---------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent-hot);
  color: var(--bg-deep);
  padding: 12px 18px;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--ink);
  outline-offset: 0;
}

/* --- Layout --------------------------------------------------------------- */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* --- Header / Nav --------------------------------------------------------- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 1100px;
  margin: auto;
  flex-wrap: wrap;
  gap: 12px;
}
.site-nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}
.site-nav .logo:hover { text-decoration: none; }
.site-nav .logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.site-nav .nav-links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-nav .nav-links a {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav .nav-links a:hover { color: var(--accent-hot); text-decoration: none; }

/* --- Hero ----------------------------------------------------------------- */
header.hero {
  text-align: center;
  padding: 80px 20px 60px;
}
.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-bottom: 20px;
}
header.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
header.hero .tagline {
  font-size: 1.05rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 600;
}
header.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 12px;
}
header.hero .badges {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  border: 1px solid rgba(245,236,217,0.15);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(192,57,43,0.25);
  text-decoration: none;
  filter: brightness(1.05);
}
.btn.secondary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn.secondary:hover { box-shadow: 0 10px 24px rgba(245,236,217,0.08); }

/* --- Google Play badge (shared portfolio component) ----------------------
   Standard Google Play badge PNG (646x250, unmodified per Google's brand
   guidelines). Same asset zadio.bg/mindlotus/ ships, so the two sibling
   sites are visually consistent on their primary CTA. Height is fluid:
   64px mobile, 72px desktop. `.play-badge` sits alongside `.btn` in the
   hero and final CTA blocks — flex-inline so the sibling `.btn.secondary`
   ("See pricing") lines up beside it on wide screens and stacks below on
   narrow screens.
   --------------------------------------------------------------------------- */
.play-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 25px;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.18s ease;
}
.play-badge:hover  { transform: translateY(-1px); text-decoration: none; }
.play-badge:active { transform: translateY(0); }
.play-badge img {
  height: 64px;
  width: auto;
  display: block;
}
@media (min-width: 720px) {
  .play-badge img { height: 72px; }
}
@media (forced-colors: active) {
  .play-badge { outline: 1px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  .play-badge:hover { transform: none; }
}
/* Horizontal cluster: badge + secondary "See pricing" button on the same
   baseline (wraps on narrow screens). */
.cta-row {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-row .btn,
.cta-row .play-badge { margin-top: 0; }

/* --- Status pills --------------------------------------------------------- */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(245,236,217,0.06);
}
.pill.ok      { color: var(--ok);   border-color: rgba(74,222,128,0.35);   background: rgba(74,222,128,0.08); }
.pill.warn    { color: var(--warn); border-color: rgba(250,204,21,0.35);   background: rgba(250,204,21,0.08); }
.pill.accent  { color: var(--ink);  border-color: rgba(231,76,60,0.45);    background: rgba(231,76,60,0.15); }

/* --- Sections ------------------------------------------------------------- */
.section {
  padding: 70px 20px;
  text-align: center;
}
.section.tight { padding: 50px 20px; }
.section h2 {
  font-size: 2.2rem;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--accent-hot);
  margin: 0 0 12px;
  font-weight: 700;
}
.section p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.section .section-lead-sub {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--ink-muted);
  font-size: 1rem;
}

/* --- Highlight text ------------------------------------------------------- */
.highlight { color: var(--accent-hot); font-weight: 600; }
.highlight-soft { color: var(--ok); font-weight: 600; }

/* --- Cards / Grids -------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
  text-align: left;
}
/* Single-card variant: constrains the grid to a narrow, page-centered column
   so a lone .price-card doesn't stretch full-width. Used on the pricing
   section since the site went single-product on 2026-07-06. */
.grid.grid-single {
  grid-template-columns: minmax(280px, 360px);
  justify-content: center;
  max-width: 100%;
}
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  text-align: left;
}
.card h3 {
  color: var(--ink);
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.card p, .card ul { color: var(--ink-muted); font-size: 0.95rem; }
.card ul { padding-left: 18px; margin: 10px 0 0; }
.card ul li { margin-bottom: 4px; }
.card .lead-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hot);
  font-weight: 800;
  margin-bottom: 14px;
  border: 1px solid rgba(231,76,60,0.35);
}

/* --- Pricing -------------------------------------------------------------- */
.price-card {
  background: var(--bg-card-solid);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  text-align: left;
  display: flex;
  flex-direction: column;
}
.price-card h3 { color: var(--ink); margin: 0 0 4px; }
.price-card .col-tagline {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 4px;
}
.price-card .price {
  font-size: 2rem;
  color: var(--accent-hot);
  margin: 6px 0 12px;
  font-weight: 700;
}
.price-card .price small {
  font-size: 0.55em;
  color: var(--ink-muted);
  font-weight: 500;
}
.price-card .includes {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.price-card ul {
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding-left: 18px;
  margin: 8px 0 0;
}
.price-card ul li { margin-bottom: 4px; }
.price-card .price-foot {
  margin-top: auto;
  padding-top: 18px;
}
.price-card.featured {
  border-color: rgba(231,76,60,0.4);
  box-shadow: 0 0 30px rgba(231,76,60,0.08);
}

/* --- Divider -------------------------------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* --- Screenshots gallery (section#screenshots) --------------------------
   Fixed CSS grid: 1 column on mobile, 2 on small tablets, 3 on desktop.
   With 5 phones and 3 columns, the second row naturally has 2 phones
   (row 1 = [1, 2, 3], row 2 = [4, 5]) as requested.
   --------------------------------------------------------------------------- */
.shots-strip {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 32px;
}
.shots-strip > li { margin: 0; }
.shots-strip figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shot-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1560;
  border-radius: 18px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}
.shots-strip figcaption {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.shots-strip figcaption strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
@media (min-width: 720px)  { .shots-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shots-strip { grid-template-columns: repeat(3, 1fr); } }

/* --- FAQ accordion -------------------------------------------------------- */
.faq {
  max-width: 820px;
  margin: 40px auto 0;
  text-align: left;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq details[open] {
  border-color: rgba(231,76,60,0.35);
  background: var(--bg-card-solid);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent-hot);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p,
.faq details ul {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin: 14px 0 0;
}
.faq details ul { padding-left: 20px; }

/* --- Footer --------------------------------------------------------------- */
footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-faint);
  font-size: 0.9rem;
  max-width: 1100px;
  margin: 0 auto;
}
footer .footer-imprint {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--ink-faint);
  font-size: 0.8rem;
  line-height: 1.7;
}
footer .footer-imprint strong { color: var(--ink-muted); }
footer .footer-imprint a { color: var(--ink-muted); }
footer .footer-imprint a:hover { color: var(--accent-hot); }
footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-bottom: 16px;
}
footer .footer-links a {
  color: var(--ink-muted);
  font-size: 0.9rem;
  /* WCAG 2.5.5 target size: lift each footer link past the 24x24 CSS-pixel
     minimum without affecting the visual density of the row. */
  padding: 6px 4px;
  display: inline-block;
}
footer .footer-links a:hover { color: var(--accent-hot); }
footer .copyright { margin: 0; color: var(--ink-faint); font-size: 0.8rem; }

/* --- Disclaimer bar ------------------------------------------------------- */
.disclaimer-bar {
  text-align: center;
  padding: 20px;
  color: var(--ink-faint);
  font-size: 0.8rem;
  max-width: 760px;
  margin: 0 auto;
}

/* ============================================================
   Legal Pages
   ============================================================ */
.legal-page {
  max-width: 820px;
  margin: auto;
  padding: 40px 20px 80px;
}
.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
.legal-page .meta {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 1.4rem;
  color: var(--ink);
  margin: 36px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.legal-page h3 {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 20px 0 6px;
}
.legal-page h4 {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 16px 0 4px;
}
.legal-page p, .legal-page li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}
.legal-page ul, .legal-page ol {
  padding-left: 20px;
  margin: 8px 0;
}
.legal-page li { margin-bottom: 4px; }
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.9rem;
}
.legal-page table th,
.legal-page table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-page table th { color: var(--ink); font-weight: 600; }
.legal-page table td { color: var(--ink-soft); }
.legal-page .notice {
  background: rgba(231,76,60,0.08);
  border-left: 3px solid var(--accent-hot);
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.legal-page .notice strong { color: var(--ink); }
.legal-page .back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--accent-hot);
  font-size: 0.9rem;
}
.legal-page code {
  background: rgba(245,236,217,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--ink);
}

/* --- Table of contents (legal pages) -------------------------------------- */
.toc {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
}
.toc h4 {
  color: var(--ink);
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.toc ol {
  padding-left: 18px;
  margin: 0;
}
.toc li {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.toc a { color: var(--accent-hot); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 640px) {
  header.hero { padding: 60px 16px 40px; }
  header.hero h1 { font-size: 2.2rem; }
  .section { padding: 56px 16px; }
  .section h2 { font-size: 1.6rem; }
  .site-nav { flex-direction: column; gap: 12px; align-items: flex-start; }
  .site-nav .nav-links { gap: 14px; }
  .legal-page h1 { font-size: 1.5rem; }
}

/* --- Accessibility: reduced motion ----------------------------------------
   WCAG 2.3.3 (Animation from Interactions).
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}
