/* Ai Car Fix — legal / marketing site. Replace SUPPORT_EMAIL in HTML if needed. */

:root {
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --primary-soft: rgba(0, 102, 255, 0.09);
  --bg: #f4f7fc;
  --bg-wash: #e8eef8;
  --card: #ffffff;
  --text: #0a1628;
  --text-muted: #4a5568;
  --border: #d8e0ed;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.06);
  --max-read: 42rem;
  --max-landing: 520px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Subtle top gradient wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      120% 80% at 50% -20%,
      var(--bg-wash) 0%,
      transparent 55%
    ),
    var(--bg);
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

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

.wrap {
  width: 100%;
  max-width: var(--max-landing);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.wrap--legal {
  max-width: var(--max-read);
  padding-top: 1.5rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.back:hover {
  color: var(--primary);
}

.brand-mark {
  text-align: center;
  margin-bottom: 0.5rem;
}

.brand-mark__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #3385ff, var(--primary) 45%, #0047cc);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 102, 255, 0.28);
  margin-bottom: 1.25rem;
}

h1 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.65rem;
  text-align: center;
}

.tagline {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 2.25rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.ai-note {
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 26rem;
  margin: 0 auto 2rem;
  padding: 0.65rem 0.75rem;
  background: var(--primary-soft);
  border: 1px solid rgba(0, 102, 255, 0.12);
  border-radius: 12px;
}

.ai-note--legal {
  max-width: var(--max-read);
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.75rem;
  text-align: left;
}

.ai-note a {
  font-weight: 600;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: rgba(0, 102, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 102, 255, 0.1);
}

.card h2 {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-landing {
  text-align: center;
  margin-top: 2.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* —— Home landing cards —— */
.cards--home {
  gap: 1.25rem;
}

.card--home {
  position: relative;
  padding-left: 1.45rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfe 100%);
}

.card--home .card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0066ff 0%, #00a3ff 100%);
  border-radius: 0 3px 3px 0;
}

.card--home:hover {
  box-shadow: 0 10px 36px rgba(0, 102, 255, 0.12);
}

/* Legal pages */
.legal-title {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.legal-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.legal-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 0.65rem;
  color: var(--text);
}

.legal-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.4rem;
  color: var(--text);
}

.legal-body p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-body ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-body li {
  margin-bottom: 0.35rem;
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.contact-block {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 102, 255, 0.15);
}

.contact-block p {
  margin: 0.35rem 0;
  font-size: 0.92rem;
}

.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-legal--tight {
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.footer-legal--tight a {
  font-weight: 600;
}

/* Subscribe / pricing page */
.wrap--subscribe {
  max-width: 36rem;
}

.plans {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 560px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.plan-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem 1.15rem;
  box-shadow: var(--shadow);
}

.plan-card--featured {
  border-color: rgba(0, 102, 255, 0.45);
  box-shadow: 0 8px 28px rgba(0, 102, 255, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.plan-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.plan-card__title {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.plan-card__price {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.plan-card__price strong {
  color: var(--text);
  font-size: 1.25rem;
}

.plan-card__hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.plan-card__id {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.plan-card__id-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.plan-card code {
  font-size: 0.8rem;
  background: var(--primary-soft);
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  color: var(--text);
}

.subscribe-features {
  margin-bottom: 1.5rem;
}

.subscribe-features h2 {
  margin-top: 0;
}

.subscribe-cta {
  text-align: center;
  margin-bottom: 0.5rem;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1rem;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(145deg, #3385ff, var(--primary) 50%, #0047cc);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 102, 255, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-appstore:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 102, 255, 0.4);
  color: #fff !important;
}

.subscribe-cta__note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 28rem;
  margin: 0 auto;
}

.subscribe-cta__note code {
  font-size: 0.78rem;
  background: var(--primary-soft);
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
}
