/* TruePlans "Clear Perspective" brand system 1.0 — see /brand-kit.
   Token names kept as --color-* (not the brand kit's --tp-* names) since
   invite.html has inline styles already depending on these; values match
   brand-kit/Color-Tokens.css exactly in both themes. */
:root {
  --color-bg: #F8F9FC;
  --color-surface: #FFFFFF;
  --color-border: #DCE2ED;
  --color-border-control: #52617A;
  --color-text: #172340;
  --color-text-muted: #52617A;
  --color-primary: #304FCC;
  --color-primary-text: #FFFFFF;
  --color-accent: #304FCC;
  --color-tint: #E9EEFF;
  --color-highlight: #FFD5AD;
  --color-on-highlight: #172340;
  --color-success: #216444;
  --color-attention: #805000;
  --color-error: #B03938;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121A2B;
    --color-surface: #1D2940;
    --color-border: #34415B;
    --color-border-control: #8395B6;
    --color-text: #F8F9FC;
    --color-text-muted: #BBC6DD;
    --color-primary: #B7C5FF;
    --color-primary-text: #121A2B;
    --color-accent: #B7C5FF;
    --color-tint: #1D2940;
    --color-highlight: #1D2940;
    --color-on-highlight: #FFD5AD;
    --color-success: #9BD8B5;
    --color-attention: #FFD5AD;
    --color-error: #FFB5AF;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: 9px;
  background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-border);
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
}

/* Main content */

main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Hero (coming-soon page) */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 72px 16px 88px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-phones {
  position: relative;
  height: clamp(380px, 42vw, 520px);
}

.phone {
  position: absolute;
  top: 0;
  width: auto;
  height: 100%;
  border-radius: 32px;
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 48px rgba(23, 35, 64, 0.18);
}

.phone-front {
  left: 50%;
  transform: translateX(-62%);
  z-index: 1;
}

.phone-back {
  left: 50%;
  transform: translateX(-10%) translateY(36px) rotate(6deg) scale(0.9);
  opacity: 0.95;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--color-tint);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  margin: 0;
  max-width: 700px;
}

@media (min-width: 801px) {
  .hero h1 .nowrap {
    white-space: nowrap;
  }
}

.hero p {
  font-size: 19px;
  color: var(--color-text-muted);
  max-width: 460px;
  margin: 0;
}

.hero-kicker {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--color-highlight);
  color: var(--color-on-highlight);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 100%;
}

.hero-kicker em {
  font-style: italic;
  font-weight: 700;
}

.badge-highlight {
  background: var(--color-highlight);
  color: var(--color-on-highlight);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* Official App Store / Google Play badges, shown at the same height */

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

.store-badges a {
  display: block;
  line-height: 0;
  transition: opacity 0.15s;
}

.store-badges a:hover {
  opacity: 0.85;
}

.store-badges img {
  height: 48px;
  width: auto;
}

.pricing-card .store-badges {
  justify-content: center;
  margin-top: 12px;
}

.pricing-cta {
  margin: 0;
  text-align: center;
  font-weight: 600;
}

.fineprint,
.hero .fineprint {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Marketing sections (mission / FAQ / pricing / contact) */

.section {
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
}

.section-inner {
  max-width: 720px;
}

.section-inner.wide {
  max-width: 100%;
}

.eyebrow {
  display: block;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  margin: 0 0 16px;
}

.section .lead {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 0 40px;
}

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

.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 16px 16px 20px;
}

.feature-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 12px;
  border-radius: 14px;
  background: var(--color-tint);
  overflow: hidden;
  margin-bottom: 16px;
}

.feature-shot img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(23, 35, 64, 0.12);
}

.client-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: #E9EEFF;
  box-shadow: 0 6px 16px rgba(23, 35, 64, 0.12);
  text-align: left;
}

.client-note-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #304FCC;
}

.client-note-text {
  font-size: 14px;
  line-height: 1.4;
  color: #172340;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 4px;
}

.feature p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mission-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 8px;
}

.mission-item p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  font-size: 15px;
  position: relative;
}

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

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 20px;
  color: var(--color-primary);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  max-width: 560px;
}

.pricing-card-head {
  margin-bottom: 24px;
}

.pricing-note {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.plan-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.plan-option {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-option-featured {
  border: 2px solid var(--color-primary);
  padding: 19px;
}

.plan-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 15px;
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
}

.plan-price span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-muted);
}

.plan-detail {
  font-size: 13px;
  color: var(--color-text-muted);
}

.pricing-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-perks li {
  padding-left: 26px;
  position: relative;
  font-size: 15px;
}

.pricing-perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-tint);
  box-shadow: inset 0 0 0 4px var(--color-primary);
}

/* Legal / support pages */

.page {
  padding: 24px 0 96px;
}

.page h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 4px;
}

.page .updated {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.page h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.page p, .page li {
  color: var(--color-text);
  font-size: 16px;
}

.page ul {
  padding-left: 20px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
}

.support-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.support-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text);
}

.support-link strong {
  display: block;
  font-size: 16px;
}

.support-link span {
  color: var(--color-text-muted);
  font-size: 14px;
}

.support-link .arrow {
  color: var(--color-primary);
  font-weight: 700;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 24px 32px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

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

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

/* Forms (contact page) */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 11px 14px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

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

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
}

.form-status-success {
  color: #1D7A4C;
}

.form-status-error {
  color: #B3261E;
}

.btn-block {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: default;
}

.btn[aria-disabled="true"]:hover {
  opacity: 0.6;
}

/* Badges */

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 48px;
  }

  .hero-copy {
    align-items: center;
  }

  .hero-actions {
    align-items: center;
  }

  .hero-actions .store-badges {
    justify-content: center;
  }

  .hero-phones {
    height: 400px;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px 20px;
    padding-top: 4px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .plan-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header, .site-footer, main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding: 40px 0 64px;
    gap: 32px;
  }

  .hero-phones {
    height: 340px;
  }

  .features {
    grid-template-columns: 1fr;
  }

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