/* Uvva AI — site styles. Values from the Astryx-derived token set
   (uvva-ai-android/lib/theme/tokens.dart): teal accent #0F766E,
   warm off-white body, Astryx spacing/radius/type/motion scales. */

:root {
  --accent: #0F766E;
  --accent-strong: #0B5A54;
  --accent-muted: rgba(15, 118, 110, 0.12);
  --accent-soft: rgba(15, 118, 110, 0.07);
  --bg-body: #F6F4F1;
  --bg-surface: #FFFFFF;
  --text-primary: #0A1317;
  --text-secondary: #4E606F;
  --border: rgba(5, 54, 89, 0.10);
  --radius-element: 8px;
  --radius-container: 12px;
  --radius-page: 28px;
  --radius-full: 9999px;
  --shadow-low: 0 1px 1px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-med: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.07);
  --ease: cubic-bezier(0.24, 1, 0.4, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2DD4BF;
    --accent-strong: #5EEAD4;
    --accent-muted: rgba(45, 212, 191, 0.14);
    --accent-soft: rgba(45, 212, 191, 0.07);
    --bg-body: #111112;
    --bg-surface: #1F1F22;
    --text-primary: #DFE2E5;
    --text-secondary: #AAAFB5;
    --border: rgba(242, 244, 246, 0.10);
    --shadow-low: none;
    --shadow-med: none;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 24px 20px 64px; }

header.site {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 0 28px;
}
.orb {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--accent-muted);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.orb::after {
  content: ""; width: 22px; height: 22px; border-radius: var(--radius-full);
  background: var(--accent);
}
.brand { font-weight: 700; font-size: 20px; letter-spacing: 0.2px; }
.brand a { color: var(--text-primary); text-decoration: none; }

h1 { font-size: 29px; line-height: 1.25; margin: 8px 0 16px; }
h2 { font-size: 20px; margin: 32px 0 8px; color: var(--accent); }
p, li { color: var(--text-secondary); margin-bottom: 12px; }
strong { color: var(--text-primary); }
ul { padding-left: 22px; }
a { color: var(--accent); }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-container);
  padding: 20px 24px;
  margin: 16px 0;
}

.notice {
  border-left: 4px solid var(--accent);
  background: var(--accent-muted);
  border-radius: var(--radius-element);
  padding: 14px 18px;
  margin: 20px 0;
  color: var(--text-primary);
  font-size: 15px;
}

nav.policies { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
nav.policies a {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 175ms var(--ease), color 175ms var(--ease);
}
nav.policies a:hover { border-color: var(--accent); color: var(--accent); }

footer.site {
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-secondary);
}
footer.site a { color: var(--text-secondary); }

table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
th, td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; color: var(--text-secondary); }
th { color: var(--text-primary); background: var(--accent-muted); }
.updated { font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; }

/* ---------- Homepage components ---------- */

.hero { text-align: center; padding: 40px 0 16px; }
.hero-orb {
  width: 120px; height: 120px; margin: 0 auto 28px;
  border-radius: var(--radius-full);
  background: var(--accent-muted);
  display: flex; align-items: center; justify-content: center;
  animation: breathe 3.9s var(--ease) infinite;
}
.hero-orb::after {
  content: ""; width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: var(--accent);
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .hero-orb { animation: none; } }

.hero h1 { font-size: 35px; letter-spacing: -0.3px; }
.hero .sub { font-size: 18px; max-width: 560px; margin: 0 auto 20px; }

.privacy-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  font-size: 14px; color: var(--text-secondary);
  box-shadow: var(--shadow-low);
}

section { margin: 52px 0; }
section > h2 { font-size: 24px; color: var(--text-primary); margin-bottom: 20px; }
section > h2 span { color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feature {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-container);
  padding: 22px;
  box-shadow: var(--shadow-low);
}
.feature .ico {
  width: 40px; height: 40px; border-radius: var(--radius-element);
  background: var(--accent-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
}
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 14px; margin: 0; }

.steps { counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-container);
  padding: 16px 20px;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 30px; height: 30px; flex: none;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.step p { margin: 0; font-size: 15px; }
.step strong { display: block; margin-bottom: 2px; }

.pricing {
  background: var(--bg-surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-page);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-med);
}
.pricing .price { font-size: 44px; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
.pricing .price small { font-size: 17px; font-weight: 500; color: var(--text-secondary); }
.pricing .trial {
  display: inline-block; margin: 12px 0 4px;
  padding: 6px 16px;
  background: var(--accent-muted); color: var(--accent-strong);
  border-radius: var(--radius-full);
  font-weight: 600; font-size: 14px;
}
.pricing ul { list-style: none; padding: 0; margin: 18px auto 0; max-width: 420px; text-align: left; }
.pricing li {
  padding-left: 28px; position: relative; font-size: 15px; margin-bottom: 10px;
}
.pricing li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

.faq details {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-container);
  padding: 4px 20px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; padding: 12px 0;
  font-weight: 600; color: var(--text-primary); font-size: 15px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { font-size: 14.5px; padding-bottom: 14px; margin: 0; }

@media (max-width: 560px) {
  .hero h1 { font-size: 28px; }
  .pricing { padding: 24px 18px; }
}
