/* ============================================================
   TRKD — Landing Page Styles
   Light mode only. No preprocessor. CSS custom properties.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* ——— Design tokens ——— */
:root {
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-text-primary: #0f172a;
  --color-text-secondary: #64748b;
  --color-brand: #7c3aed;
  --color-brand-light: #ede9fe;
  --color-border: #e2e8f0;

  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:
    0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);

  --max-width: 1120px;
  --section-padding: 96px 24px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  background-image: radial-gradient(ellipse 100vw 600px at 50% 0%, var(--color-brand-light) 0%, transparent 70%);
  background-repeat: no-repeat;
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ——— Utility ——— */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ——— Navbar ——— */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
  padding: 0 24px;
}

.navbar.scrolled {
  background: var(--color-bg);
  border-bottom-color: var(--color-border);
}

.navbar-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

/* ——— Buttons ——— */
.btn-ios {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--color-brand);
  color: #fff;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

.btn-ios:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}

.btn-ios:active {
  transform: translateY(0);
}

.btn-ios.coming-soon {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

/* ——— Hero ——— */
.hero {
  padding: var(--section-padding);
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-brand-light);
  color: var(--color-brand);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--color-text-primary);
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 20px;
}

.hero-subheading {
  font-size: clamp(1rem, 2vw, 1.175rem);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 40px;
  line-height: 1.65;
}

.kit-form-wrapper {
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 20px;
}

/* ——— Kit embed overrides ——— */
/* Inline layout: input + button side by side */
.formkit-fields,
.seva-fields,
[data-element="fields"] {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: stretch !important;
}

.formkit-field,
[data-element="fields"] .formkit-field {
  flex: 1 1 200px !important;
  min-width: 0 !important;
}

/* Strips Kit's default card/background so the form sits flush on the page */
.formkit-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.formkit-form * {
  font-family: var(--font-sans) !important;
}

/* Email input */
.formkit-input {
  width: 100% !important;
  padding: 12px 16px !important;
  font-size: 1rem !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  background: #fff !important;
  color: var(--color-text-primary) !important;
  outline: none !important;
  transition: border-color 0.15s ease !important;
}

.formkit-input:focus {
  border-color: var(--color-brand) !important;
}

.formkit-input::placeholder {
  color: var(--color-text-secondary) !important;
}

/* Submit button */
.formkit-submit {
  width: auto !important;
  margin-top: 0 !important;
  padding: 10px 24px !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  background: var(--color-brand) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.formkit-submit span {
  background: transparent !important;
  color: #fff !important;
  padding: 0 !important;
}

.formkit-submit:hover,
.formkit-submit:hover span {
  background: #6d28d9 !important;
}

/* Hide Kit's default header/description inside the embed (we have our own) */
.formkit-form [data-element="header"],
.formkit-form [data-element="subheader"] {
  display: none !important;
}

.hero-secondary-cta {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.hero-secondary-cta a {
  color: var(--color-brand);
  font-weight: 500;
}

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

/* ——— Features ——— */
.features {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 12px;
  text-align: center;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

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

.footer-links a:hover {
  color: var(--color-text-primary);
}

/* ——— Legal pages ——— */
.legal-page {
  min-height: 100vh;
}

.legal-content {
  max-width: 720px;
  margin-inline: auto;
  padding: 64px 24px 96px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: 36px;
  transition: opacity 0.15s ease;
}

.back-link:hover {
  opacity: 0.75;
}

.legal-content h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-section p {
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.25em;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.legal-section ul li {
  margin-bottom: 6px;
}

.legal-section a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  opacity: 0.8;
}

/* ——— Responsive ——— */
@media (max-width: 640px) {
  :root {
    --section-padding: 64px 20px;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-content {
    padding-top: 40px;
  }
}
