/* Sapida — shared site styles. No external dependencies. */

:root {
  --accent: #34c89b;          /* app asset-catalog AccentColor (light) */
  --accent-deep: #17805f;     /* darker accent for text/links on light bg */
  --accent-soft: #e6f7f1;
  --hero-blue: #a9cbe8;       /* soft blue from the app icon */
  --hero-blue-soft: #eaf3fb;
  --bg: #ffffff;
  --bg-alt: #f6f9f8;
  --card: #ffffff;
  --card-border: #e3ebe8;
  --text: #1e2a27;
  --text-soft: #55665f;
  --badge-bg: #000000;
  --badge-fg: #ffffff;
  --badge-border: #a6a6a6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4cd7ad;        /* app asset-catalog AccentColor (dark) */
    --accent-deep: #4cd7ad;
    --accent-soft: #123229;
    --hero-blue: #33506b;
    --hero-blue-soft: #14202c;
    --bg: #0e1513;
    --bg-alt: #121b18;
    --card: #16211d;
    --card-border: #24332e;
    --text: #e8efec;
    --text-soft: #9db0a8;
    --badge-bg: #000000;
    --badge-fg: #ffffff;
    --badge-border: #5c5c5c;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--accent-deep); }
a:hover { opacity: 0.85; }

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

.site-header {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand svg { display: block; }

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a { text-decoration: none; font-weight: 500; }

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

.hero {
  text-align: center;
  padding: 3.5rem 1.25rem 3rem;
  background:
    radial-gradient(60rem 28rem at 50% -12rem, var(--hero-blue-soft), transparent),
    radial-gradient(48rem 24rem at 85% 4rem, var(--accent-soft), transparent);
}

.hero .mark { margin-bottom: 1.25rem; }

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
}

.hero .tagline {
  margin: 0 auto 2rem;
  max-width: 34rem;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  color: var(--text-soft);
}

.hero .subnote {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* App Store badge — drawn inline, no remote image */
.appstore-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  transition: transform 0.12s ease;
}
.appstore-badge:hover { transform: scale(1.03); opacity: 1; }
.appstore-badge svg { border-radius: 12px; }

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

.section {
  max-width: 68rem;
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

.section .lede {
  color: var(--text-soft);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: 1.1rem;
}

.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.4rem 1.3rem;
}

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

.feature .icon svg { stroke: var(--accent-deep); }

.feature h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.feature p { margin: 0; font-size: 0.95rem; color: var(--text-soft); }

/* Privacy band */
.privacy-band { background: var(--bg-alt); }

.privacy-band .inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.privacy-band .shield {
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-band .shield svg { stroke: var(--accent-deep); }

.privacy-band .copy { flex: 1 1 22rem; }
.privacy-band p { color: var(--text-soft); max-width: 44rem; }

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

.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 2rem 1.25rem 2.5rem;
}

.site-footer .inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- Text pages (privacy / support / terms) ---------- */

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.page h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0.3rem;
}

.page .meta { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 2rem; }

.page h2 { font-size: 1.35rem; margin: 2.4rem 0 0.6rem; letter-spacing: -0.01em; }
.page h3 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
.page p, .page li { color: var(--text); }
.page ul { padding-left: 1.3rem; }
.page li { margin: 0.35rem 0; }

.summary-box {
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.summary-box ul { margin: 0.4rem 0 0; }

.service {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin: 0.9rem 0;
}
.service h3 { margin: 0 0 0.3rem; }
.service p { margin: 0.25rem 0; font-size: 0.95rem; }
.service .why { color: var(--text-soft); }

.confirm {
  background: #fff3cd;
  color: #6b5200;
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
  font-size: 0.85em;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .confirm { background: #4a3d10; color: #ffe08a; }
}

/* FAQ */
details.faq {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card);
  padding: 0.9rem 1.2rem;
  margin: 0.7rem 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent-deep);
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq div { padding-top: 0.6rem; color: var(--text-soft); font-size: 0.97rem; }
details.faq div p { margin: 0 0 0.6rem; color: inherit; }

.back-links { margin-top: 3rem; font-size: 0.95rem; }
