/* Shared site styles for Voyager-1 - refreshed to a clean Apple-like aesthetic */
:root{
    --bg: linear-gradient(180deg, #f6f7f9 0%, #edf0f3 100%); /* full-page light gradient */
    --surface:#ffffff; /* card surface */
    --text-color:#0b1220; /* primary text */
    --title-color:var(--text-color);
    --muted:#6b7280; /* neutral muted */
    --muted-weak:rgba(11,18,32,0.6);
    --kbd-bg:rgba(11,18,32,0.04);
    --accent:#0a84ff; /* system blue accent */
    --glass: rgba(255,255,255,0.6);
    --radius:16px;
    --radius-sm:10px;
    --max-width:1100px;
    --container-gap:28px;
    --container-bg: rgba(255,255,255,0.85); /* semi-transparent panel so body gradient shows through */
    --shadow-1: 0 6px 18px rgba(12,20,30,0.08);
    --shadow-2: 0 10px 30px rgba(12,20,30,0.08);
}
*{box-sizing:border-box}
/* Ensure gradient covers the entire document height smoothly */
html{min-height:100%;
    background: var(--bg) top center no-repeat;
    /* let the gradient flow with page height */
    background-attachment: scroll;
    background-size: auto; /* allow gradient to scale with content height */
}
body{min-height:100vh}
body{
    background: var(--bg);
    margin:0;
    font-family:-apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* background moved to html so it stretches with document height */
    color:var(--text-color);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    line-height:1.5;
    padding:32px;
}
.container{
    max-width:var(--max-width);
    margin:0 auto;
    padding:var(--container-gap);
    background: var(--container-bg);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius:20px;
    box-shadow: var(--shadow-2);
    border:1px solid rgba(12,20,30,0.04);
}
.header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px;
}
.brand{
    display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit
}
/* Brand logo now supports an <img> while keeping a gradient fallback */
.brand-logo{
    height:56px;width:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:var(--shadow-1);background:linear-gradient(135deg,var(--accent),#0a6fe6);
}
.brand-logo img{width:100%;height:100%;object-fit:cover;display:block}
.site-title{font-size:18px;font-weight:600}
.nav{display:flex;gap:12px;align-items:center}
/* CTAs: primary (filled) and ghost (outline) */
.cta{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;font-weight:600;text-decoration:none;cursor:pointer;border:none}
.cta.primary{background:var(--accent);color:white;box-shadow:var(--shadow-1)}
.cta.ghost{background:transparent;color:var(--accent);border:1px solid rgba(10,132,255,0.12)}
.cta:focus{outline:none}
/* Focus-visible for keyboard users */
:focus-visible{outline:3px solid rgba(10,132,255,0.16);outline-offset:3px;border-radius:8px}

.card{
    background:var(--surface);
    border-radius:var(--radius);
    padding:22px;
    box-shadow:var(--shadow-2);
    border:1px solid rgba(12,20,30,0.04);
}
.hero{
    display:flex;gap:36px;align-items:center;justify-content:space-between;margin-bottom:28px;padding:28px
}
.hero-left{flex:1}
.hero h1{margin:0 0 10px;font-size:40px;color:var(--title-color);font-weight:700}
.hero p{margin:0;color:var(--muted);font-size:16px}
.hero-cta{margin-top:18px;display:flex;gap:12px}
/* subtle mock/aside on the right */
.hero-visual{
    min-width:220px;text-align:right;color:var(--muted);font-size:15px
}
.hero-visual .lead{font-weight:700;font-size:18px;color:var(--accent)}

.features{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}
.feature{
    display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:var(--radius-sm);background:linear-gradient(180deg, rgba(10,132,255,0.02), rgba(0,0,0,0.00));border:1px solid rgba(12,20,30,0.03);box-shadow:var(--shadow-1);
}
.feature .emoji{font-size:22px}
.feature h3{margin:0;color:var(--title-color);font-size:16px}
.feature p{margin:6px 0 0;color:var(--muted);font-size:14px}
.feature:hover{transform:translateY(-6px)}
.feature{transition:transform 240ms cubic-bezier(.2,.9,.3,1)}

.setup-list{margin-top:12px;color:var(--muted)}
.legal-links{margin:26px 0;display:flex;gap:14px;justify-content:center}
.legal-links a{color:var(--muted);text-decoration:none}
.footer{margin-top:48px;text-align:center;color:var(--muted-weak);font-size:13px}

/* Support form */
.support-form{margin-top:14px}
.support-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;align-items:start}
.support-span-2{grid-column:1 / -1}
.support-form .field{display:flex;flex-direction:column;gap:6px}
.support-form label{font-size:13px;color:var(--muted);font-weight:600}
.support-form input,
.support-form textarea{
    width:100%;
    border-radius:12px;
    border:1px solid rgba(12,20,30,0.08);
    background:rgba(255,255,255,0.7);
    color:var(--text-color);
    padding:10px 12px;
    font:inherit;
    box-shadow: none;
}
body[data-theme="dark"] .support-form input,
body[data-theme="dark"] .support-form textarea{
    background:rgba(11,18,32,0.6);
    border-color:rgba(230,238,246,0.08);
}
.support-form textarea{resize:vertical;min-height:140px}
.support-form input:focus,
.support-form textarea:focus{outline:none}

.support-actions{margin-top:12px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.support-actions .cta{user-select:none}
.support-actions .cta[disabled]{opacity:0.7;cursor:not-allowed}
.support-fineprint{color:var(--muted);font-size:12px}
.support-fineprint a{color:var(--accent);text-decoration:none}
.support-fineprint a:hover{text-decoration:underline}

.support-status{margin-top:10px;min-height:20px;font-size:13px}
.support-status.is-success{color:#0f7a2f}
.support-status.is-error{color:#b42318}
body[data-theme="dark"] .support-status.is-success{color:#7ee787}
body[data-theme="dark"] .support-status.is-error{color:#ff7b72}

/* Honeypot: keep it in DOM for bots but hide for users */
.hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

@media (max-width:1100px){
    .features{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:720px){
    body{padding:18px}
    .hero{flex-direction:column;align-items:flex-start}
    .features{grid-template-columns:1fr}
    .brand-logo{height:48px;width:48px}
    .hero h1{font-size:28px}
    .support-grid{grid-template-columns:1fr}
    .support-span-2{grid-column:auto}
}

/* Pages: privacy/terms content */
.document{padding:28px}
.document h1{color:var(--accent)}
.document h2{color:var(--accent);margin-top:20px}
.document p, .document li{color:var(--muted)}
.back-home{display:inline-block;margin-top:14px;color:var(--muted);text-decoration:none}

/* small utilities */
.kv{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;background:var(--kbd-bg);padding:4px 8px;border-radius:6px}
/* Visually-hidden utility for accessibility */
.sr-only{border:0!important;clip:rect(1px,1px,1px,1px)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}

/* Theme override: dark theme variables applied to body via data-theme="dark" */
body[data-theme="dark"]{
    --bg: linear-gradient(180deg,#071026 0%, #07182b 100%);
    --container-bg: rgba(11,18,32,0.6);
    --surface: #0b1220;
    --text-color: #e6eef6;
    --title-color: #e6eef6;
    --muted: #93a0b7;
    --muted-weak: rgba(230,238,246,0.6);
    --kbd-bg: rgba(230,238,246,0.04);
    --accent: #5865F2;
    --shadow-1: 0 6px 20px rgba(2,6,12,0.6);
    --shadow-2: 0 12px 40px rgba(2,6,12,0.6);
}

/* Theme toggle button */
.theme-toggle{
    display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;font-weight:600;background:transparent;border:1px solid rgba(11,18,32,0.06);color:var(--accent);cursor:pointer}
.theme-toggle:focus{outline:none}
.theme-toggle[aria-pressed="true"]{background:var(--accent);color:white;border-color:transparent;box-shadow:var(--shadow-1)}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
    .feature, .feature:hover{transition:none;transform:none}
}

/* --- Timeline (GitHub-like) --- */
.timeline{
  position: relative;
  padding-left: 18px;
}

.timeline:before{
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.08);
}

.timeline-item{
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 14px;
  margin: 0 0 14px 0;
}

.timeline-item.is-newest .timeline-comment,
.timeline-item.is-newest .timeline-header{
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
  border-radius: 12px;
}

.timeline-item:target .timeline-comment,
.timeline-item:target .timeline-header{
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.20);
  border-radius: 12px;
}

.timeline-item.is-highlight .timeline-comment,
.timeline-item.is-highlight .timeline-header{
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.20);
  border-radius: 12px;
}

.timeline-dot{
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(10,132,255,0.18);
  z-index: 2;
}

.timeline-dot.is-opened{ background: #1f883d; box-shadow: 0 0 0 4px rgba(31,136,61,0.18); }
.timeline-dot.is-status{ background: #8250df; box-shadow: 0 0 0 4px rgba(130,80,223,0.18); }
.timeline-dot.is-comment{ background: var(--accent); box-shadow: 0 0 0 4px rgba(10,132,255,0.18); }

.timeline-body{ min-width: 0; }

.timeline-header{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
  color: var(--muted);
}

.timeline-title{ font-weight: 600; color: var(--text-color); }
.timeline-time{ font-size: 12px; color: var(--muted); }

.timeline-comment{
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.timeline-comment-body{
  padding: 12px 14px;
  color: var(--text-color);
  line-height: 1.45;
}

.timeline-anchor{
  color: inherit;
  text-decoration: none;
}

.timeline-anchor:hover{
  text-decoration: underline;
}

/* markdown subset */
.md-link{ color: var(--accent); text-decoration: underline; word-break: break-word; }
.md-inline{ background: rgba(127,127,127,0.15); padding: 2px 6px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace; font-size: 0.95em; }
.md-block{ margin: 10px 0 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.22); overflow-x:auto; }
.md-block code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace; font-size: 0.92em; }

.md-list{ margin: 8px 0 0 18px; padding: 0; }
.md-list li{ margin: 4px 0; }

/* PR-like comment box */
.timeline-editor{
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  padding: 12px;
}

.timeline-editor textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(12,20,30,0.08);
  background: rgba(255,255,255,0.7);
  color: var(--text-color);
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
  min-height: 110px;
}

body[data-theme="dark"] .timeline-editor textarea{
  background: rgba(11,18,32,0.6);
  border-color: rgba(230,238,246,0.08);
}

.timeline-header-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.activity-banner{
  display:none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  background: rgba(16, 185, 129, 0.08);
  color: var(--text-color);
}

.activity-banner .cta{
  padding: 8px 12px;
}

.activity-banner .badge{
  display:inline-flex;
  align-items:center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.10);
  font-size: 12px;
  color: var(--text-color);
}

.activity-banner .actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* Inputs / selects */
input[type="text"],
input[type="search"],
input[type="email"],
select{
  border-radius: 12px;
  border: 1px solid rgba(12,20,30,0.10);
  background: rgba(255,255,255,0.75);
  color: var(--text-color);
  padding: 10px 12px;
  font: inherit;
  box-shadow: none;
}

input[type="search"]{
  -webkit-appearance: none;
  appearance: none;
}

select{
  cursor: pointer;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
select:focus{
  outline: none;
  border-color: rgba(10,132,255,0.35);
  box-shadow: 0 0 0 3px rgba(10,132,255,0.12);
}

body[data-theme="dark"] input[type="text"],
body[data-theme="dark"] input[type="search"],
body[data-theme="dark"] input[type="email"],
body[data-theme="dark"] select{
  background: rgba(11,18,32,0.60);
  border-color: rgba(230,238,246,0.10);
  color: var(--text-color);
}
