/* Tagdot Website Styles */
/* CSS variables synchronized with iOS Assets.xcassets (AppPrimary/AppSecondary/Accent) */
:root {
  /* Primary/Secondary from AppPrimary/AppSecondary (light) */
  --brand-blue: #3380CC;      /* AppPrimary light */
  --brand-purple: #E5804D;    /* AppSecondary light */
  --accent: #4DB380;          /* Accent light */
  --brand-gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  --brand-gradient-animated: linear-gradient(135deg, var(--brand-blue), var(--brand-purple), var(--brand-blue) 70%);
  --bg: #ffffff;
  --bg-elev: #f6f7fb;
  --card: #ffffff;
  --text: #0f1222;
  --muted: #5b6178;
  --border: #e6e8ef;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
}

[data-theme="dark"] {
  /* neutrals */
  --bg: #0b0d16;
  --bg-elev: #121427;
  --card: #0f1326;
  --text: #eef1ff;
  --muted: #a7afc9;
  --border: #1b2142;
  --shadow: 0 10px 30px rgba(2,6,23,.6);
  /* brand in dark from AppPrimary/AppSecondary dark */
  --brand-blue: #4D99E6;
  --brand-purple: #F29966;
  --accent: #66CC99;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% -10%, rgba(67,97,238,.12), transparent 55%),
              radial-gradient(900px 600px at 110% 10%, rgba(58,12,163,.14), transparent 45%),
              var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-md); background: transparent; }
.icon-btn:hover { border-color: color-mix(in oklab, var(--border) 50%, var(--brand-blue)); }

.nav-links { display: none; gap: 18px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

@media (min-width: 900px) { .nav-links { display: flex; } }

.primary-btn, .secondary-btn, .ghost-btn { 
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; border-radius: var(--radius-md);
  padding: 10px 16px; font-weight: 700; transition: all .25s ease;
  border: 1px solid transparent; cursor: pointer; color: var(--text);
}
.primary-btn { background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow); }
.primary-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.secondary-btn { background: color-mix(in oklab, var(--card) 85%, transparent); border-color: var(--border); }
.secondary-btn:hover { border-color: color-mix(in oklab, var(--border) 50%, var(--brand-blue)); }
.ghost-btn { background: transparent; border-color: var(--border); color: var(--muted); }
.ghost-btn:hover { color: var(--text); border-color: color-mix(in oklab, var(--border) 50%, var(--brand-blue)); }
.lg { padding: 14px 20px; }

.hero { padding: 56px 0 32px; }
.hero-inner { display: grid; gap: 20px; align-items: center; }
.hero-copy { padding: 28px; border: 1px solid var(--border); position: relative; overflow: hidden; }
.brand-slot { margin-bottom: 8px; }
.slogan { font-weight: 800; letter-spacing: .2px; margin: 0 0 6px; font-size: clamp(18px, 2.5vw, 22px); background: var(--brand-gradient-animated); -webkit-background-clip: text; background-clip: text; color: transparent; animation: hue 10s ease-in-out infinite; }
@keyframes hue { 0%,100% { filter: hue-rotate(0); } 50% { filter: hue-rotate(20deg); } }
.hero-copy h1 { font-size: clamp(32px, 6vw, 48px); margin: 0 0 10px; line-height: 1.1; }
.lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); }
.hero-ctas { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.2fr 1fr; }
}

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.glass { background: color-mix(in oklab, var(--card) 73%, transparent); backdrop-filter: blur(16px) saturate(140%); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Phone screen placeholder overlay (replace src later) */
.phone-map { position: relative; }
.phone-map .phone-screen {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9;
}

.phone-frame { aspect-ratio: 9/19.5; width: min(360px, 90vw); margin: 0 auto; border-radius: 28px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.16), inset 0 0 0 8px rgba(0,0,0,.05); background: #0b1027; display: grid; grid-template-rows: 20px 1fr 58px; }
.phone-status { background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,0)); }
.phone-map { position: relative; background: radial-gradient(1200px 700px at -10% -20%, rgba(67,97,238,.18), transparent 50%), radial-gradient(900px 600px at 120% 10%, rgba(58,12,163,.22), transparent 45%), #0b1027; }
.pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #ff5d8f; box-shadow: 0 0 0 6px rgba(255,93,143,.22), 0 12px 30px rgba(255,93,143,.35); animation: float 3.5s ease-in-out infinite; }
.pin-a { left: 18%; top: 28%; }
.pin-b { left: 58%; top: 44%; animation-delay: .4s; background: #ffd166; box-shadow: 0 0 0 6px rgba(255,209,102,.22), 0 12px 30px rgba(255,209,102,.35); }
.pin-c { left: 34%; top: 68%; animation-delay: .9s; background: #4cd4a8; box-shadow: 0 0 0 6px rgba(76,212,168,.22), 0 12px 30px rgba(76,212,168,.35); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.phone-toolbar { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.08); background: rgba(9,14,31,.7); color: #9fb0ff; }
.phone-toolbar .tab { display: grid; place-items: center; font-size: 18px; }
.phone-toolbar .active { color: #fff; text-shadow: 0 0 18px rgba(67,97,238,.7); }

.section { padding: 54px 0; }
.section-title { font-size: 28px; margin: 0 0 18px; }
.features-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .features-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.feature { padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: color-mix(in oklab, var(--card) 85%, transparent); }
.feature .icon { font-size: 22px; }
.feature h3 { margin: 8px 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); }

/* How it works */
.steps-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .steps-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.step { padding: 18px; display: grid; gap: 8px; align-content: start; }
.badge {
  width: 28px; height: 28px; display: inline-grid; place-items: center; font-weight: 800;
  color: #fff; background: var(--brand-gradient); border-radius: 999px; box-shadow: var(--shadow);
}
.step:hover { transform: translateY(-2px); transition: transform .25s ease; }

.emphasis { background: linear-gradient(180deg, color-mix(in oklab, var(--brand-blue) 16%, transparent), transparent), color-mix(in oklab, var(--bg-elev) 85%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta .muted { color: var(--muted); }
.cta-actions { display: flex; gap: 12px; }

#preview .preview-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { #preview .preview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; background: color-mix(in oklab, var(--bg) 85%, transparent); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; align-items: center; }

/* Utilities */
.muted { color: var(--muted); }
.card.pad { padding: 20px; }

/* Focus styles */
:focus-visible { outline: 2px solid color-mix(in oklab, var(--brand-blue) 80%, #fff); outline-offset: 2px; border-radius: 8px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: -9999px; top: -9999px;
  background: var(--brand-gradient); color: #fff; padding: 10px 14px;
  border-radius: var(--radius-md); text-decoration: none; box-shadow: var(--shadow);
}
.skip-link:focus { left: 10px; top: 10px; z-index: 100; }

/* Prose for long-form content (legal/support) */
.prose { line-height: 1.7; }
.prose h1 { font-size: 28px; margin: 0 0 10px; line-height: 1.2; }
.prose h2 { font-size: 20px; margin: 18px 0 8px; }
.prose p { margin: 10px 0; color: var(--text); }
.prose ul { padding-left: 20px; margin: 10px 0; color: var(--muted); }
.prose li { margin: 6px 0; }
.prose a { color: color-mix(in oklab, var(--brand-blue) 80%, #000); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in oklab, var(--card) 85%, transparent); color: var(--text); font-weight: 600; }
.chip .emoji { margin-right: 6px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq .answer { padding: 0 16px 14px; color: var(--muted); }

/* Anchor offset for sticky header */
h2, h3, [id] { scroll-margin-top: 76px; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

