/* ============================================================
   Silo256 — site styles
   Theme tokens come straight from the app:
   mobile/src/ui/theme.ts + tools/icon/out/icon.svg
   ============================================================ */

:root {
  --bg: #0F1216;
  --card: #181D23;
  --text: #E8ECF1;
  --muted: #8A96A3;
  --accent: #4FA3FF;
  --pro: #F2B84B;
  --border: #2A323C;
  --dot: #5A6673;
  --accent-soft: rgba(79, 163, 255, 0.12);
  --pro-soft: rgba(242, 184, 75, 0.14);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --wrap: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { font-size: 1.05rem; }

a { color: var(--accent); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 820px; }
.accent { color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 18, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.scrolled { border-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand-logo { border-radius: 8px; }

.nav { margin-left: auto; display: flex; gap: 1.4rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  font-size: 0.95rem;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-play {
  background: #fff;
  color: #14181D;
  line-height: 1.2;
  padding: 0.55rem 1rem;
}

.btn-play svg { width: 1.3rem; height: 1.3rem; fill: #0F1216; flex: none; }
.btn-play span { font-size: 0.8rem; font-weight: 600; }

.btn-ghost { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-accent { background: var(--accent); color: #0B0E12; }
.btn-accent:hover { background: #6cb2ff; }

/* "Coming soon": the app isn't on Google Play yet. Not a link, so no hover lift.
   At launch, swap these for Google's official "Get it on Google Play" badge. */
.btn-soon { cursor: default; border: 1px solid rgba(79, 163, 255, 0.45); background: var(--accent-soft); color: var(--text); }
.btn-soon:hover { transform: none; }
.btn-soon .badge-dot { flex: none; }
.btn-soon-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn-ghost.btn-soon { border-color: var(--border); background: transparent; color: var(--muted); }

.soon-tag {
  display: inline-block;
  margin-left: 0.35rem;
  vertical-align: 0.15em;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pro);
  background: var(--pro-soft);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 420px at 78% 28%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  background: var(--card);
  margin: 0 0 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 34rem; margin: 0 0 1.75rem; }

.hero-actions { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-trust li { display: flex; align-items: center; gap: 0.45rem; }
.hero-trust li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- Phone mockup ---------- */

.hero-visual { display: flex; justify-content: center; }

.phone {
  width: 300px;
  aspect-ratio: 9 / 18.5;
  background: linear-gradient(180deg, #141920, #10141A);
  border: 1px solid var(--border);
  border-radius: 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 8px #1A2029,
    0 0 70px rgba(79, 163, 255, 0.08);
}

.phone-notch {
  position: absolute;
  top: 14px;
  width: 90px;
  height: 22px;
  background: #0B0E12;
  border-radius: 999px;
}

.pattern-pad { position: relative; width: 260px; height: 260px; }

.pattern-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.pattern-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 750;
  stroke-dashoffset: 750;
  filter: drop-shadow(0 0 6px rgba(79, 163, 255, 0.7));
  animation: draw 3.2s ease-in-out infinite;
}

@keyframes draw {
  0% { stroke-dashoffset: 750; opacity: 1; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  80% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.pdot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
  transform: translate(-50%, -50%);
}

.phone-lock {
  position: absolute;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.phone-lock svg { width: 1.1rem; height: 1.1rem; fill: var(--accent); }

/* ---------- Sections ---------- */

.section { padding: 5rem 0; }
.section-alt { background: #12161C; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section-sub { color: var(--muted); max-width: 42rem; margin: 0 0 2.5rem; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 1.1rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: rgba(79, 163, 255, 0.45); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  margin-bottom: 0.9rem;
}

.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; }

/* ---------- Formats ---------- */

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 0.2rem 0 0; }

.tag-list li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

/* ---------- How it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.step h3 { margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}

.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.8rem;
  text-align: left;
}

.plan-pro {
  border-color: rgba(242, 184, 75, 0.55);
  background: linear-gradient(180deg, var(--pro-soft), transparent 45%), var(--card);
  position: relative;
}

.plan-flag {
  position: absolute;
  top: -0.7rem;
  right: 1.4rem;
  background: var(--pro);
  color: #14181D;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.plan h3 { font-size: 1.25rem; }

.price {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0 0.1rem;
}

.price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-alt { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.1rem; }
.vs-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.5rem 0 0.5rem; }
.faq-item p a { color: var(--accent); }
.price-soon { color: var(--pro); font-size: 1.6rem; margin-bottom: 1.1rem; }

.plan-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }

.plan-list li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border);
}

.plan-list li:last-child { border-bottom: none; }

.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.plan-pro .plan-list li::before { color: var(--pro); }

.plan-cta { justify-content: center; width: 100%; }

.fineprint { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 1.75rem 0 0; }


/* ---------- FAQ ---------- */

.faq { margin-top: 2rem; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 1rem 2.5rem 1rem 1.2rem;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
}

.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { color: var(--accent); }

.faq-item p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 2.5rem; background: #0D1014; }

.footer-inner { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }

.footer-tag { margin: 0; color: var(--muted); }

.android-chip {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
  color: var(--text);
  margin-left: 0.4rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-links span { color: #5A6673; font-size: 0.9rem; }

.footer-fine { margin: 0; color: #5A6673; font-size: 0.82rem; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .nav { display: none; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .header-inner { gap: 1rem; }
  .btn-play span { font-size: 0.75rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pattern-path { animation: none; stroke-dashoffset: 0; }
  .card, .btn { transition: none; }
}

