/* Awal AI — matches app LightPalette (Color.kt): bg #F6F8FC, brand #3BA5F9, purple #6D4AFF */
:root {
  --bg-base: #f6f8fc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #64748b;
  --brand: #3ba5f9;
  --brand-deep: #0ea5e9;
  --brand-hover: #0284c7;
  --purple: #6d4aff;
  --purple-soft: #8b7cff;
  --border: rgba(148, 163, 184, 0.35);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 12px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, 0.15);
  --max: 720px;
  --max-wide: 920px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(59, 165, 249, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 10%, rgba(109, 74, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(14, 165, 233, 0.08), transparent 45%);
  background-attachment: fixed;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

/* Adaptive-icon foreground: large safe-zone canvas; cover crops transparent margin so no frosted-header “halo” */
.logo__img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  object-position: center;
  margin: 0;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.nav a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--brand-deep);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--brand-deep);
}

/* Main */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

/* Home hero */
.hero-wrap {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple-soft);
  background: linear-gradient(135deg, rgba(109, 74, 255, 0.12), rgba(59, 165, 249, 0.1));
  border: 1px solid rgba(109, 74, 255, 0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-wrap h1 {
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-wrap .lead {
  font-size: 1.125rem;
  color: var(--text-soft);
  margin: 0 0 1.5rem;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

/* Official “Get it on Google Play” badge — do not crop, recolor, or rotate (Google Play badge guidelines). */
.play-store-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.play-store-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none !important;
  border-radius: 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.play-store-link:hover {
  opacity: 0.92;
  text-decoration: none !important;
}

.play-store-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.play-store-badge {
  width: min(200px, 70vw);
  height: auto;
  max-width: 100%;
  display: block;
  /* Intrinsic size from official asset (646×250); width scales, aspect ratio preserved */
}

.play-store-attribution {
  margin: 0;
  max-width: 22rem;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

/* Home: feature grid & steps */
.section-block {
  margin: 3rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.section-title {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow);
}

.feature-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.feature-tile p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(145deg, var(--purple), var(--brand));
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 12px rgba(59, 165, 249, 0.35);
}

.step-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.step-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.section-cta {
  text-align: center;
  margin: 1.75rem 0 0;
  font-weight: 600;
}

.section-cta a {
  text-decoration: none;
}

.section-cta a:hover {
  text-decoration: underline;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

/* Home: Premium summary (aligned with in-app entitlements) */
.premium-box {
  margin-top: 2.25rem;
  padding: 1.5rem 1.35rem 1.35rem;
  background: linear-gradient(135deg, rgba(109, 74, 255, 0.06), rgba(59, 165, 249, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.premium-box__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.premium-box__intro {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.premium-box__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.premium-box__list li {
  margin-bottom: 0.65rem;
}

.premium-box__list li:last-child {
  margin-bottom: 0;
}

.premium-box__list strong {
  color: var(--text);
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

/* Guide: table of contents */
.prose--wide {
  max-width: 820px;
}

.prose.prose--wide h2[id] {
  scroll-margin-top: 5rem;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
  margin: 0 0 2rem;
  box-shadow: var(--shadow);
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.toc ul {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.35rem;
  color: var(--text-soft);
}

.prose ol {
  padding-left: 1.35rem;
}

.prose ol li {
  margin-bottom: 0.5rem;
  color: var(--text-soft);
}

/* Legal / prose pages */
.prose {
  max-width: var(--max);
  margin: 0 auto;
}

.prose h1 {
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.prose h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.25rem 0 0.65rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.35rem 0 0.45rem;
  color: var(--text);
}

.prose p,
.prose li {
  color: var(--text-soft);
}

.prose ul {
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose .meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}

/* FAQ */
details.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  margin-bottom: 0.65rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

details.faq summary {
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

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

details.faq summary::after {
  content: "+";
  float: right;
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 1.1rem;
}

details.faq[open] summary::after {
  content: "−";
}

details.faq .answer {
  padding: 0 1.2rem 1.1rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

details.faq[open] summary {
  border-bottom: 1px solid var(--border);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--text-soft);
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--brand-deep);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.5rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 520px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }
}
