/* DestinySync marketing site — shared base layout
   Relies on CSS variables defined per-track in tokens-consumer.css / tokens-practitioner.css */

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container { padding: 0 24px; }
}

/* --- Nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--keyline);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 150ms var(--ease);
}

.nav__links a:hover { color: var(--ink); }

@media (max-width: 768px) {
  .nav__inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav__links {
    order: 3;
    flex: 0 0 100%;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .nav__links a {
    white-space: nowrap;
    font-size: 13px;
  }

  .nav .btn {
    min-height: 40px;
    padding: 9px 18px;
  }
}

/* --- Buttons --- */

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 150ms var(--ease), background 150ms var(--ease), border-color 150ms var(--ease);
  border: 1px solid transparent;
  min-height: 44px;
}

.btn--filled {
  background: var(--ink);
  color: var(--bg-flat, var(--bg));
}
.btn--filled:hover { opacity: 0.82; }
.btn--filled:active { opacity: 0.65; }

.btn--outline {
  background: transparent;
  border-color: var(--keyline);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--ink); }

/* practitioner track overrides the filled button to brand indigo */
.track-practitioner .btn--filled {
  background: var(--brand);
  color: #FFFFFF;
}
.track-practitioner .btn--filled:hover { background: var(--brand-hover); opacity: 1; }
.track-practitioner .btn--filled:active { transform: translateY(1px); }

/* --- Store badges --- */

.store-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.store-badge img {
  width: auto;
  max-width: none;
}

.store-badge--app-store img {
  height: 40px;
}

.store-badge--google-play img {
  width: 103px;
  height: 40px;
  object-fit: contain;
  margin: 0;
}

@media (max-width: 420px) {
  .store-badges {
    gap: 10px;
  }

  .store-badge--app-store img {
    height: 38px;
  }

  .store-badge--google-play img {
    width: 98px;
    height: 38px;
    margin: 0;
  }
}

/* --- Sections --- */

section { padding: 88px 0; border-bottom: 1px solid var(--keyline); }
section:last-of-type { border-bottom: none; }

@media (max-width: 640px) {
  section { padding: 56px 0; }
}

.eyebrow {
  font-family: var(--font-mono, var(--font-body));
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin: 0 0 16px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

h1 { font-size: 52px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }

@media (max-width: 640px) {
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
}

p { margin: 0 0 16px; color: var(--ink-muted); }

.lede { font-size: 20px; line-height: 1.55; color: var(--ink-muted); }

.italic-statement {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.5;
  color: var(--ink);
}

/* --- Graha dot --- */

.graha-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.graha-dot--su { background: var(--su); }
.graha-dot--mo { background: var(--mo); }
.graha-dot--ma { background: var(--ma); }
.graha-dot--me { background: var(--me); }
.graha-dot--ju { background: var(--ju); }
.graha-dot--ve { background: var(--ve); }
.graha-dot--sa { background: var(--sa); }
.graha-dot--ra { background: var(--ra); }
.graha-dot--ke { background: var(--ke); }

/* --- Cards (no shadows, ever) --- */

.card {
  border: 1px solid var(--keyline);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--surface, var(--bg));
}

/* --- Forms and contact surfaces --- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .form-layout { grid-template-columns: 1fr; }
}

.form-card {
  border: 1px solid var(--keyline);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--surface, var(--bg));
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--keyline);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--bg-flat, var(--bg));
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.fine-print {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-faint);
  margin-top: 14px;
}

.contact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--keyline);
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--keyline);
  color: var(--ink-muted);
}

.contact-list strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

/* --- Dense product grids --- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 36px;
  border: 1px solid var(--keyline);
  border-radius: var(--radius-lg);
  background: var(--keyline);
  overflow: hidden;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-cell {
  background: var(--surface, var(--bg));
  padding: 28px;
}

.feature-cell h3 {
  margin-bottom: 10px;
}

.feature-cell p {
  font-size: 15px;
  margin: 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .process-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .process-list { grid-template-columns: 1fr; }
}

.process-step {
  border-top: 1px solid var(--keyline);
  padding-top: 18px;
}

.process-step strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 8px;
}

/* --- Placeholder image box --- */

.placeholder {
  border: 1px solid var(--keyline);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--ink) 4%, var(--bg-flat, var(--bg)));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono, var(--font-body));
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  padding: 16px;
}

/* --- Footer --- */

footer {
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__wordmark { font-family: var(--font-display); font-size: 18px; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--ink-muted);
}
