/* ══════════════════════════════════════════════════════════
   BenitoCoin / ArcAvance  —  shared stylesheet
   Palette: #22A699 (teal) · #E4AF1E (gold)
   Supports: light · dark
══════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens — LIGHT ─────────────────────────────── */
:root {
  /* brand */
  --teal:        #22A699;
  --teal-dark:   #1a8a7f;
  --teal-deeper: #157068;
  --gold:        #E4AF1E;
  --gold-dark:   #c49619;

  /* surfaces */
  --bg:          #ffffff;
  --surface:     #f8fafc;
  --card-bg:     #ffffff;
  --border:      #e2e8f0;

  /* text */
  --text:        #0f172a;
  --text-2:      #334155;
  --muted:       #64748b;

  /* semantic */
  --accent:      var(--teal);
  --accent-dark: var(--teal-dark);
  --accent-bg:   #f0fdfa;
  --gold-bg:     #fffbeb;

  /* misc */
  --radius:  0.5rem;
  --radius-lg: 0.875rem;
  --max-w:   780px;
  --header-h: 58px;

  /* glass card */
  --glass-bg-light: rgba(255, 255, 255, 0.55);
  --glass-border:   rgba(34, 166, 153, 0.25);
  --glass-shadow:   0 20px 48px rgba(34, 166, 153, 0.14),
                    0 6px 16px rgba(0, 0, 0, 0.07);
}

/* ── Design tokens — DARK ──────────────────────────────── */
[data-theme="dark"] {
  --bg:          #0b1221;
  --surface:     #111d30;
  --card-bg:     #162032;
  --border:      #1e3048;
  --text:        #f1f5f9;
  --text-2:      #cbd5e1;
  --muted:       #94a3b8;
  --accent:      #2bbfb1;
  --accent-dark: #22A699;
  --accent-bg:   #0a2421;
  --gold:        #f0c030;
  --gold-dark:   #d4aa1a;
  --gold-bg:     #1c1a00;
  --glass-bg-light: rgba(22, 32, 50, 0.6);
  --glass-border:   rgba(43, 191, 177, 0.28);
  --glass-shadow:   0 20px 48px rgba(34, 166, 153, 0.22),
                    0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ── Base ───────────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.2s ease;
}

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

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ─────────────────────────────────────────────── */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  transition: border-color 0.2s ease, background 0.2s ease;
}

[data-theme="dark"] header {
  background: rgba(11, 18, 33, 0.92);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  flex-shrink: 0;
}

.logo:hover { text-decoration: none; }

.logo-byline {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  padding-left: 0.5rem;
  border-left: 1px solid var(--border);
  margin-left: 0.25rem;
  white-space: nowrap;
}

.logo-brand {
  height: 13px;
  width: auto;
  vertical-align: middle;
  opacity: 0.7;
  position: relative;
  top: -1px;
}

@media (max-width: 480px) {
  .logo-byline { display: none; }
}

.logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon img { width: 100%; height: 100%; display: block; }

/* Nav */
nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

nav a:hover { color: var(--accent); text-decoration: none; background: var(--accent-bg); }
nav a.active { color: var(--accent); font-weight: 600; }

/* Theme toggle */
#theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

#theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-icon { font-size: 0.9rem; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  margin-top: 4rem;
  background: var(--surface);
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  text-align: center;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--accent); text-decoration: none; }

footer p { color: var(--muted); font-size: 0.8rem; }

.footer-logo {
  height: 26px;
  width: auto;
  display: block;
  /* teal logo is legible on both light and dark backgrounds */
  opacity: 0.82;
  transition: opacity 0.15s;
}

.footer-logo:hover { opacity: 1; }

/* ── Hero (index) ───────────────────────────────────────── */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.app-icon-hero {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  margin: 0 auto 1.75rem;
  box-shadow: 0 12px 32px rgba(34, 166, 153, 0.3),
              0 4px 8px rgba(0, 0, 0, 0.12);
}

.app-icon-hero img { width: 100%; height: 100%; display: block; }

.hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  /* dual-color text trick */
  background: linear-gradient(135deg, var(--text) 40%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero-brand-logo {
  height: 16px;
  width: auto;
  vertical-align: middle;
  opacity: 0.75;
  position: relative;
  top: -1px;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text);
  color: #fff !important;
  padding: 0.8rem 1.85rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.18s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.btn-appstore:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.24);
  text-decoration: none;
}

[data-theme="dark"] .btn-appstore { background: var(--accent); }
[data-theme="dark"] .btn-appstore:hover { background: var(--accent-dark); }

/* ── App Store button — disabled state ──────────────────── */
.appstore-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.btn-appstore--disabled {
  background: #cbd5e1;
  color: #94a3b8 !important;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.btn-appstore--disabled:hover {
  background: #cbd5e1;
  transform: none;
  box-shadow: none;
}

[data-theme="dark"] .btn-appstore--disabled {
  background: #1e293b;
  color: #475569 !important;
}

[data-theme="dark"] .btn-appstore--disabled:hover {
  background: #1e293b;
}

/* full-width variant used inside pricing cards */
.appstore-wrap--full { width: 100%; }
.appstore-wrap--full .btn-appstore { width: 100%; justify-content: center; }

.appstore-soon-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: 2rem;
  background: rgba(228, 175, 30, 0.15);
  color: var(--gold-dark);
  border: 1px solid rgba(228, 175, 30, 0.45);
}

/* ── Info strip (privacy / iCloud note) ─────────────────── */
.info-strips {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 2.75rem;
}

.info-strip {
  border-radius: var(--radius);
  padding: 0.875rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.info-strip.teal {
  background: var(--accent-bg);
  border: 1px solid rgba(34, 166, 153, 0.3);
}

.info-strip.gold {
  background: var(--gold-bg);
  border: 1px solid rgba(228, 175, 30, 0.35);
}

.info-strip .strip-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.info-strip.teal  .strip-icon { color: var(--teal); }
.info-strip.gold  .strip-icon { color: var(--gold); }

.info-strip .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
  margin-left: 0.4rem;
  vertical-align: middle;
  background: rgba(228, 175, 30, 0.18);
  color: var(--gold-dark);
  border: 1px solid rgba(228, 175, 30, 0.4);
}

/* ── Feature grid ───────────────────────────────────────── */
.features {
  padding: 2.5rem 0 4rem;
}

.features h2 {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

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

/* ── Feature card + liquid-glass hover ──────────────────── */
.feature-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem 1.25rem;
  background: var(--card-bg);
  transition:
    transform      0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow     0.28s ease,
    border-color   0.22s ease,
    background     0.22s ease;
  cursor: default;
  overflow: hidden;
}

/* glass shimmer pseudo-element */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(34, 166, 153, 0.06) 50%,
    rgba(228, 175, 30, 0.06) 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--glass-shadow);
  border-color: var(--glass-border);
  background: var(--glass-bg-light);
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
}

.feature-card:hover::before { opacity: 1; }

.feature-card .icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* "coming soon" ribbon on card */
.feature-card .coming-soon {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.15rem 0.55rem;
  border-radius: 2rem;
  background: rgba(228, 175, 30, 0.15);
  color: var(--gold-dark);
  border: 1px solid rgba(228, 175, 30, 0.4);
  margin-left: 0.4rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ── Pricing grid ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

@media (max-width: 620px) {
  .pricing-grid { align-items: start; }
}

.pricing-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform      0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow     0.28s ease,
    border-color   0.22s ease,
    background     0.22s ease;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(34, 166, 153, 0.06) 50%,
    rgba(228, 175, 30, 0.06) 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--glass-shadow);
  border-color: var(--glass-border);
  background: var(--glass-bg-light);
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
}

.pricing-card:hover::before { opacity: 1; }

/* Pro card — accent styling */
.pricing-card--pro {
  border-color: var(--accent);
  border-width: 2px;
}


.pricing-header {
  padding: 1.75rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-plan {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.pricing-card--pro .pricing-plan {
  color: var(--accent);
}

.pricing-price {
  margin-bottom: 1.25rem;
}

.price-amount {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}


.price-period {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Plan option rows (Pro card) */
.plan-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.plan-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  background: var(--surface);
}

.plan-option-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.plan-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.plan-price {
  font-size: 0.75rem;
  color: var(--muted);
}

.plan-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.plan-badge--teal {
  background: rgba(34, 166, 153, 0.15);
  color: var(--accent);
  border: 1px solid rgba(34, 166, 153, 0.35);
}

.plan-badge--gold {
  background: rgba(228, 175, 30, 0.15);
  color: var(--gold-dark);
  border: 1px solid rgba(228, 175, 30, 0.4);
}

/* CTA buttons inside pricing cards */
.pricing-cta {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.18s, transform 0.15s, box-shadow 0.15s;
}

.pricing-cta:hover { text-decoration: none; transform: translateY(-1px); }

.pricing-cta--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.pricing-cta--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pricing-cta--primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(34, 166, 153, 0.3);
}

.pricing-cta--primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(34, 166, 153, 0.4);
}

/* Feature list */
.pricing-features {
  list-style: none;
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.feat-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.feat-icon {
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}

.feat-yes  { color: var(--accent); }
.feat-no   { color: var(--muted);  opacity: 0.5; }
.feat-soon { color: var(--gold);   font-size: 0.75rem; }

.feat-locked { color: var(--muted); }

.pricing-footnote {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.pricing-footnote a { color: var(--accent); }

@media (max-width: 620px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--pro { order: -1; }
}

/* ── Page hero (inner pages) ────────────────────────────── */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-hero .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--text);
}

.page-hero .meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ── Prose (legal pages) ────────────────────────────────── */
.prose { padding-bottom: 3rem; }

.prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.25rem 0 0.6rem;
  color: var(--text);
}

.prose h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.4rem 0 0.4rem;
  color: var(--text-2);
}

.prose p, .prose li {
  font-size: 0.925rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose a { color: var(--accent); }

.prose .highlight-box {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.15rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

.prose .gold-box {
  background: var(--gold-bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.15rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── FAQ (support page) ─────────────────────────────────── */
.faq { padding-bottom: 3rem; }

.faq h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.25rem 0 1rem;
  color: var(--text);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  background: var(--card-bg);
}

.faq-item[open] {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(34, 166, 153, 0.1);
}

.faq-item summary {
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

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

.faq-answer {
  padding: 0 1.1rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

.faq-answer a { color: var(--accent); }

/* ── Contact card ───────────────────────────────────────── */
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-top: 2.5rem;
  background: var(--surface);
}

.contact-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.contact-card a.email-link {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.75rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.18s, transform 0.15s;
}

.contact-card a.email-link:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.1rem; }
  nav a { font-size: 0.8rem; padding: 0.3rem 0.45rem; }
  .feature-grid { grid-template-columns: 1fr; }
  #theme-toggle .theme-label { display: none; }
}

@media (max-width: 420px) {
  nav { gap: 0; }
  nav a { padding: 0.3rem 0.35rem; font-size: 0.75rem; }
}
