/* Shodhana — shodhana.app
   Brand derived from the app: dark slate glass, four segment hues, SF type.
   Not a template: the storage bar IS the identity. */

:root {
  --bg: #12151b;
  --surface: #1a1f29;
  --card: #202634;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f4f8;
  --text-2: #9aa3b2;
  --text-3: #6b7383;
  --teal: #3ec8c0;
  --green: #54c965;
  --purple: #be6ff2;
  --amber: #f2b13e;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(62, 200, 192, 0.35); }

/* ── Nav ─────────────────────────────────────────── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
nav .links { display: flex; gap: 22px; align-items: center; font-size: 0.92rem; }
nav .links a { color: var(--text-2); }
nav .links a:hover { color: var(--text); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.98rem; transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #0b2b29; }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,0.03); }

/* ── Hero ────────────────────────────────────────── */
header.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.8rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.08;
}
.hero .sub {
  margin: 20px auto 0; max-width: 640px;
  color: var(--text-2); font-size: 1.13rem;
}
.hero .cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { margin-top: 12px; color: var(--text-3); font-size: 0.85rem; }

/* The signature: the storage bar, alive. Segments grow in, then the track
   sweeps clean — the whole product in four seconds. */
.bar-demo {
  max-width: 640px; margin: 44px auto 0;
  height: 30px; border-radius: 9px; overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  display: flex; gap: 2px; padding: 0;
}
.bar-demo span { height: 100%; width: 0; }
.bar-demo .used { background: rgba(255, 255, 255, 0.16); animation: grow-used 1.2s 0.2s ease-out forwards; }
.bar-demo .s1 { background: var(--teal);   animation: seg 0.7s 1.1s ease-out forwards, sweep 1.4s 3.2s ease-in forwards; }
.bar-demo .s2 { background: var(--green);  animation: seg2 0.7s 1.35s ease-out forwards, sweep 1.4s 3.2s ease-in forwards; }
.bar-demo .s3 { background: var(--purple); animation: seg3 0.7s 1.6s ease-out forwards, sweep 1.4s 3.2s ease-in forwards; }
.bar-demo .s4 { background: var(--amber);  animation: seg4 0.7s 1.85s ease-out forwards, sweep 1.4s 3.2s ease-in forwards; }
@keyframes grow-used { to { width: 46%; } }
@keyframes seg  { to { width: 13%; } }
@keyframes seg2 { to { width: 9%; } }
@keyframes seg3 { to { width: 6%; } }
@keyframes seg4 { to { width: 4%; } }
@keyframes sweep { to { width: 0.6%; opacity: 0.55; } }
.bar-caption { margin-top: 10px; color: var(--text-3); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .bar-demo span { animation: none !important; }
  .bar-demo .used { width: 46%; }
  .bar-demo .s1 { width: 6%; } .bar-demo .s2 { width: 4%; }
  .bar-demo .s3 { width: 3%; } .bar-demo .s4 { width: 2%; }
}

/* ── Screenshot ──────────────────────────────────── */
.shot { margin: 56px auto 0; max-width: 940px; }
.shot img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* ── Sections ────────────────────────────────────── */
section { padding: 84px 0 0; }
.kicker {
  color: var(--teal); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
section h2 {
  margin-top: 10px; font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
section .lede { margin-top: 12px; color: var(--text-2); max-width: 620px; }

/* Feature rows: one claim, one screenshot that proves it. The image is the
   evidence, so it gets the wider column; sides alternate to keep the eye
   moving down the page. */
.feature-rows { margin-top: 48px; display: flex; flex-direction: column; gap: 64px; }
.frow {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 44px; align-items: center;
}
.frow:nth-child(even) .feature { order: 2; }
.frow img {
  width: 100%; height: auto; display: block; border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
/* The review sheet is a narrow window — don't stretch it to the column. */
.frow img[src*="review"] { max-width: 480px; justify-self: center; }

/* Features: rows, not cards — each row states a fact about the product. */
.features { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 44px; }
.feature h3 { font-size: 1.03rem; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.feature .dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.feature p { margin-top: 6px; color: var(--text-2); font-size: 0.95rem; }

/* Dev terminal-style mock: real paths, real sizes, monospace honesty. */
.devlist {
  margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #14181f; padding: 20px 24px; max-width: 640px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86rem; line-height: 1.9; color: var(--text-2);
  overflow-x: auto;
}
.devlist .path { color: var(--text); }
.devlist .size { color: var(--amber); }
.devlist .old { color: var(--text-3); }

/* ── Pricing ─────────────────────────────────────── */
.price-card {
  margin: 44px auto 0; max-width: 460px; text-align: center;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, var(--card), var(--surface));
  padding: 38px 34px;
}
.price-card .amount { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-card .amount small { font-size: 1rem; color: var(--text-2); font-weight: 500; letter-spacing: 0; }
.price-card ul { list-style: none; margin: 22px 0 26px; color: var(--text-2); font-size: 0.95rem; }
.price-card li + li { margin-top: 8px; }
.price-card .fine { margin-top: 14px; color: var(--text-3); font-size: 0.82rem; }

/* ── FAQ ─────────────────────────────────────────── */
.faq { margin-top: 40px; max-width: 720px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 4px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--text-2); font-size: 0.95rem; }

/* ── Footer ──────────────────────────────────────── */
footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 34px 0 48px; }
footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer, footer a { color: var(--text-3); font-size: 0.88rem; }
footer a:hover { color: var(--text-2); }
footer .made { margin-top: 6px; }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.legal h1 { font-size: 1.8rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.legal .updated { color: var(--text-3); font-size: 0.85rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 0.96rem; }
.legal ul { padding-left: 22px; margin: 8px 0; }

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; gap: 18px; }
  .frow:nth-child(even) .feature { order: 0; }
  nav .links { gap: 14px; }
}
