/* ───────────────── TaraVarta — shared design system ─────────────────
   Cream + copper, with a deep "night sky" accent for cosmic moments.
   Self-contained: only dependency is the Google Fonts <link> in each page. */

:root {
  color-scheme: light;

  --cream:      #f5eee1;
  --cream-2:    #fbf6ec;     /* cards / raised surfaces */
  --cream-line: #e6d8c1;
  --ink:        #271d13;
  --ink-soft:   #6f6150;
  --copper:     #c8731e;
  --copper-deep:#9a5b16;
  --gold:       #e0a955;

  --night:      #160f23;     /* deep indigo for hero / footer */
  --night-2:    #241a38;
  --night-soft: #b9aed0;

  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1080px;
  --shadow:     0 18px 40px -20px rgba(60, 35, 8, .35);
  --shadow-sm:  0 8px 20px -12px rgba(60, 35, 8, .35);

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--copper-deep); text-decoration: none; }
a:hover { color: var(--copper); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ───────────────── nav ───────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(245, 238, 225, .82);
  border-bottom: 1px solid var(--cream-line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand b { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .2px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--copper-deep); }
@media (max-width: 680px) { .nav-links a.hide-sm { display: none; } }

/* ───────────────── buttons ───────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; font-family: var(--sans);
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--copper));
  color: #2a1804; box-shadow: var(--shadow-sm);
}
.btn-primary:hover { color: #2a1804; }
.btn-ghost { background: transparent; border-color: var(--cream-line); color: var(--ink); }
.btn-ghost.on-night { border-color: rgba(255,255,255,.22); color: #f3ecff; }
.btn-ghost.on-night:hover { background: rgba(255,255,255,.07); color: #fff; }

/* ───────────────── hero ───────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 520px at 78% -8%, rgba(224,169,85,.20), transparent 60%),
    radial-gradient(900px 600px at 8% 0%, rgba(120,90,200,.18), transparent 55%),
    linear-gradient(165deg, var(--night), var(--night-2) 70%, #2c1f33);
  color: #fff;
}
.hero::after {
  /* faint starfield */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 70% 22%, #ffe9c2, transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent),
    radial-gradient(1px 1px at 85% 60%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 55% 45%, #e9dcff, transparent),
    radial-gradient(1px 1px at 12% 80%, #fff, transparent);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 74px 24px 88px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px 64px; gap: 36px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 6vw, 60px); line-height: 1.04; letter-spacing: -.5px;
  margin: 0 0 18px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold), #f2c98a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--night-soft); font-size: 18.5px; max-width: 30em; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-weight: 600; font-size: 15px;
}
.store-pill small { display: block; font-size: 11px; font-weight: 500; color: var(--night-soft); letter-spacing: .04em; }

/* device mockup */
.device {
  justify-self: center;
  width: 280px; height: 560px; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #2c2240, #1a1330);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.12);
}
.device-screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: linear-gradient(180deg, #faf3e6, #f1e4cd);
  display: flex; flex-direction: column;
}
.ds-top { padding: 22px 20px 10px; text-align: center; }
.ds-top .k { font-family: var(--serif); font-size: 19px; color: var(--copper-deep); }
.ds-top .s { font-size: 12px; color: var(--ink-soft); }
.ds-chart { display: flex; align-items: center; justify-content: center; padding: 6px 18px 12px; }
.ds-chat { padding: 6px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.bubble { padding: 9px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.5; max-width: 84%; }
.bubble.you { align-self: flex-end; background: #e7d7bb; color: #3a2c19; border-bottom-right-radius: 4px; }
.bubble.tara { align-self: flex-start; background: #fff; color: #3a2c19; border: 1px solid var(--cream-line); border-bottom-left-radius: 4px; }
@media (max-width: 380px) { .device { width: 248px; height: 496px; } }

/* ───────────────── sections ───────────────── */
.section { padding: 78px 0; }
.section.alt { background: var(--cream-2); border-top: 1px solid var(--cream-line); border-bottom: 1px solid var(--cream-line); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 38px); margin: 0 0 12px; letter-spacing: -.3px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--cream-2); border: 1px solid var(--cream-line);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #fbe6c6, #f1cd9a); color: var(--copper-deep);
}
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 4px; }
.step .num {
  font-family: var(--serif); font-size: 15px; font-weight: 700; color: #2a1804;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold), var(--copper)); margin-bottom: 14px;
}
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 0 0 6px; }
.step p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* pricing teaser */
.cta-band {
  background: linear-gradient(160deg, var(--night), var(--night-2));
  color: #fff; border-radius: 24px; padding: 48px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; }
.cta-band p { color: var(--night-soft); max-width: 34em; margin: 0 auto 26px; }
.cta-band .price { font-family: var(--serif); color: var(--gold); }

/* ───────────────── content pages (about / legal) ───────────────── */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 24px 90px; }
.prose h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 5vw, 40px); margin: 0 0 6px; letter-spacing: -.3px; }
.prose .muted { color: var(--ink-soft); font-size: 15px; margin: 0 0 8px; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 38px 0 10px; color: var(--copper-deep); }
.prose p, .prose li { color: #3a2c1c; }
.prose strong { color: var(--ink); }
.prose table {
  width: 100%; border-collapse: collapse; margin: 26px 0;
  background: var(--cream-2); border: 1px solid var(--cream-line); border-radius: var(--radius-sm); overflow: hidden;
}
.prose th, .prose td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--cream-line); }
.prose th { background: #efe0c8; color: var(--copper-deep); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.strike { text-decoration: line-through; color: var(--ink-soft); font-size: 13px; margin-left: 6px; }
.backlink { display: inline-block; margin-top: 38px; font-weight: 600; }

/* ───────────────── footer ───────────────── */
.footer { background: var(--night); color: #cfc6df; padding: 56px 0 30px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }
.footer .brand b { color: #fff; }
.footer .brand img { border-radius: 9px; }
.footer p.tag { color: var(--night-soft); font-size: 14px; margin: 14px 0 0; max-width: 26em; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 4px 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #cfc6df; font-size: 15px; }
.footer a:hover { color: var(--gold); }
.footer-base {
  max-width: var(--maxw); margin: 38px auto 0; padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,.1); color: var(--night-soft); font-size: 13.5px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
