/* ================================================================
   COATTAIL — GLOBAL STYLESHEET
   coattail.co web pages
   ================================================================

   TABLE OF CONTENTS
   -----------------
   1.  Reset
   2.  Brand Tokens (colors used across all pages)
   3.  Coming Soon page (deprecated — kept for reference)
   4.  Legal pages (shared)    → web/privacy/index.html
                                  web/terms/index.html
       4a. Privacy-specific    → .highlight callout
       4b. Terms-specific      → .warning callout, .caps text
   5.  Portfolio share page    → web/p/index.html
   6.  Landing page            → web/index.html (launch marketing page)
   7.  Responsive breakpoints

   ================================================================ */


/* ================================================================
   1. RESET
   Zero out browser defaults so every page starts clean.
   ================================================================ */

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


/* ================================================================
   2. BRAND TOKENS
   Reference — not live CSS variables, just the palette used
   throughout the site so changes stay in one place.

   --brand-dark   : #00112C   (navy — primary brand color)
   --brand-green  : #56FD09   (accent — dark-mode / portfolio CTA)
   --bg           : #F8F8FC   (off-white page background)
   --text-primary : #0A0A1A   (near-black body text)
   --text-muted   : #555570   (secondary / subtitle text)
   --text-faint   : #9898BB   (placeholder / footer text)
   --border       : #E0E0EE   (light divider lines)
   ================================================================ */


/* ================================================================
   3. COMING SOON PAGE
   web/index.html — pre-launch landing page
   Centered single-column layout, email capture form, fixed footer.
   Font: Plus Jakarta Sans
   ================================================================ */

/* Page layout — vertically and horizontally centered */
body.page-coming-soon {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: #F8F8FC;
  color: #0A0A1A;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Coattail logo lockup */
.page-coming-soon .wordmark {
  height: 32px;
  width: auto;
  margin-bottom: 48px;
}

/* "Coming Soon" pill badge above the headline */
.page-coming-soon .badge {
  display: inline-block;
  background: rgba(0,17,44,0.06);
  color: #555570;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

/* Primary headline */
.page-coming-soon h1 {
  font-size: clamp(30px, 5.5vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 20px;
}

.page-coming-soon h1 span { color: inherit; }

/* Subtitle / value-prop sentence */
.page-coming-soon .sub {
  font-size: clamp(15px, 2vw, 18px);
  color: #555570;
  text-align: center;
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* Email capture form — flex row that wraps on small screens */
.page-coming-soon .email-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-coming-soon .email-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 6px;
  border: 1.5px solid #E0E0EE;
  background: #FFFFFF;
  color: #0A0A1A;
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none;
}

.page-coming-soon .email-form input::placeholder { color: #9898BB; }
.page-coming-soon .email-form input:focus { border-color: #00112C; }

.page-coming-soon .email-form button {
  padding: 14px 24px;
  border-radius: 6px;
  border: none;
  background: #00112C;
  color: #F8F8FC;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.page-coming-soon .email-form button:hover { opacity: 0.85; }

/* Inline success / error message shown after form submit */
.page-coming-soon .confirm {
  display: none;
  font-size: 14px;
  color: #16A34A;
  margin-top: 16px;
  font-weight: 500;
}

/* Fixed footer with Privacy / Terms / Contact links */
.page-coming-soon footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 20px 24px;
  font-size: 12px;
  color: #9898BB;
}

.page-coming-soon footer a {
  color: #9898BB;
  text-decoration: none;
}

.page-coming-soon footer a:hover { color: #555570; }


/* ================================================================
   4. LEGAL PAGES — SHARED
   web/privacy/index.html and web/terms/index.html
   Both pages are long-form legal docs with the same layout:
   dark navbar → max-width content container → sticky footer.
   Font: Plus Jakarta Sans
   ================================================================ */

/* Base typography for legal pages */
body.page-legal {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: #F8F8FC;
  color: #0A0A1A;
  line-height: 1.7;
  font-size: 15px;
}

/* Dark navy top navigation bar */
.page-legal header {
  background: #00112C;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-legal header a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.page-legal header a img {
  height: 28px;
  width: auto;
}

/* Tagline beside the logo in the nav */
.page-legal header span {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* Centered reading column */
.page-legal .container {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* "Legal" pill label above the page title */
.page-legal .badge {
  display: inline-block;
  background: #00112C18;
  color: #00112C;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* Page title */
.page-legal h1 {
  font-size: 36px;
  font-weight: 800;
  color: #00112C;
  letter-spacing: -1px;
  margin-bottom: 8px;
  line-height: 1.2;
}

/* Effective date / last-updated line */
.page-legal .meta {
  color: #888;
  font-size: 13px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E0E0EE;
}

/* Section headings */
.page-legal h2 {
  font-size: 20px;
  font-weight: 700;
  color: #00112C;
  margin-top: 48px;
  margin-bottom: 16px;
}

/* Sub-section headings */
.page-legal h3 {
  font-size: 16px;
  font-weight: 600;
  color: #00112C;
  margin-top: 28px;
  margin-bottom: 10px;
}

.page-legal p { margin-bottom: 14px; color: #333; }

.page-legal ul,
.page-legal ol {
  padding-left: 20px;
  margin-bottom: 14px;
  color: #333;
}

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

.page-legal strong { color: #00112C; font-weight: 600; }

.page-legal a { color: #00112C; font-weight: 600; }

/* Horizontal rule between major sections */
.page-legal hr {
  border: none;
  border-top: 1px solid #E0E0EE;
  margin: 40px 0;
}

/* Small grey note at the very bottom of the content area */
.page-legal .legal-footer-note {
  font-size: 13px;
  color: #aaa;
}

/* Sticky bottom footer with links */
.page-legal footer {
  text-align: center;
  padding: 40px 24px;
  color: #aaa;
  font-size: 13px;
  border-top: 1px solid #E0E0EE;
}

.page-legal footer a { color: #00112C; font-weight: 500; }


/* ----------------------------------------------------------------
   4a. PRIVACY PAGE — SPECIFIC
   web/privacy/index.html
   .highlight — info callout block with navy left accent
   ---------------------------------------------------------------- */

.highlight {
  background: #fff;
  border: 1px solid #E0E0EE;
  border-left: 4px solid #00112C;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
}


/* ----------------------------------------------------------------
   4b. TERMS PAGE — SPECIFIC
   web/terms/index.html
   .warning — amber callout for financial disclaimers
   .caps    — all-caps disclaimer text (legal boilerplate)
   ---------------------------------------------------------------- */

/* Amber warning block used for the financial disclaimer section */
.warning {
  background: #FFF8F0;
  border: 1px solid #FFD8A8;
  border-left: 4px solid #FF8C00;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  font-weight: 500;
  color: #7A3A00;
}

/* All-caps paragraphs for warranty / liability disclaimer text */
.caps {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  color: #444;
}


/* ================================================================
   5. PORTFOLIO SHARE PAGE
   web/p/index.html — deep-link landing page for shared portfolios
   Dark brand background, centered content, App Store CTA button.
   Font: Poppins (matches the mobile app)
   ================================================================ */

body.page-portfolio {
  font-family: 'Poppins', sans-serif;
  background: #00112C;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

/* Text wordmark in the absence of the logo image */
.page-portfolio .wordmark {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

/* "Conviction Portfolio" eyebrow label */
.page-portfolio .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Dynamic portfolio name injected by JS */
.page-portfolio h1 {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

/* Portfolio description or fallback copy */
.page-portfolio .sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* App Store download button — green on dark */
.page-portfolio .cta {
  display: inline-block;
  background: #56FD09;
  color: #00112C;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 14px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: opacity 0.15s;
}

.page-portfolio .cta:hover { opacity: 0.85; }

/* Fine-print disclaimer below the CTA */
.page-portfolio .disclaimer {
  margin-top: 40px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  max-width: 380px;
  line-height: 1.6;
}

/* Footer link row (Privacy / Terms / Contact) */
.page-portfolio footer {
  margin-top: 60px;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

.page-portfolio footer a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  margin: 0 8px;
}


/* ================================================================
   6. LANDING PAGE  (web/index.html — launch marketing page)
   Full marketing page: nav, hero, benefits grid, legitimacy,
   how-it-works, final CTA, footer.
   Font: Plus Jakarta Sans
   ================================================================ */

body.page-landing {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: #F8F8FC;
  color: #0A0A1A;
}

/* Nav */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(248,248,252,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E0E0EE;
}
.landing-nav-logo { height: 26px; width: auto; }
.nav-cta {
  background: #00112C;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.82; }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
}
.hero-inner { max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: #00112C0E;
  color: #00112C;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.hero-headline {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.05;
  color: #00112C;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: #555570;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 40px;
}

/* App Store button */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #00112C;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.15s;
  margin-bottom: 14px;
}
.appstore-btn:hover { opacity: 0.85; }
.appstore-btn--large { font-size: 18px; padding: 18px 40px; border-radius: 14px; }
.hero-fine { font-size: 13px; color: #9898BB; }

/* Trust strip */
.trust-strip {
  background: #fff;
  border-top: 1px solid #E0E0EE;
  border-bottom: 1px solid #E0E0EE;
  padding: 28px 24px;
}
.trust-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}
.trust-num {
  font-size: 28px;
  font-weight: 800;
  color: #00112C;
  letter-spacing: -0.5px;
}
.trust-label { font-size: 12px; color: #888; margin-top: 2px; text-align: center; }
.trust-divider { width: 1px; height: 40px; background: #E0E0EE; }

/* Shared section layout */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9898BB;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #00112C;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 56px;
  max-width: 600px;
}

/* Benefits */
.benefits { padding: 100px 0; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.benefit-card {
  background: #fff;
  border: 1px solid #E0E0EE;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #00112C;
}
.benefit-card p {
  font-size: 15px;
  color: #555570;
  line-height: 1.65;
  flex: 1;
}
.benefit-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
}

/* Legitimacy section */
.legitimacy {
  background: #00112C;
  padding: 100px 0;
  text-align: center;
}
.legit-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.legit-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(86,253,9,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.legit-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.2;
  max-width: 600px;
}
.legit-body {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 580px;
}
.legit-link {
  color: #56FD09;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.legit-link:hover { opacity: 0.8; }

/* How it works */
.how { padding: 100px 0; background: #fff; }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.step { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 12px; }
.step-num {
  font-size: 13px;
  font-weight: 800;
  color: #9898BB;
  letter-spacing: 1px;
}
.step h3 { font-size: 20px; font-weight: 700; color: #00112C; }
.step p { font-size: 15px; color: #555570; line-height: 1.65; }
.step-arrow {
  font-size: 24px;
  color: #E0E0EE;
  align-self: center;
  padding-top: 8px;
  flex-shrink: 0;
}

/* Final CTA */
.final-cta {
  padding: 100px 0;
  background: #F8F8FC;
}
.final-cta-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  color: #00112C;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.final-cta-sub {
  font-size: 17px;
  color: #9898BB;
  margin-bottom: 36px;
}

/* Footer */
.landing-footer {
  background: #00112C;
  padding: 48px 24px;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-logo { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; }
.footer-fine { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.7; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }


/* ================================================================
   7. RESPONSIVE BREAKPOINTS
   ================================================================ */

/* Legal pages: tighten header padding and font sizes on mobile */
@media (max-width: 600px) {
  .page-legal header { padding: 16px 20px; }
  .page-legal h1 { font-size: 28px; }
  .page-legal .container { padding: 40px 20px 80px; }
}
