/*
Theme Name: Aphinity Care
Theme URI: https://aphinitycare.com
Author: Aphinity Care
Description: Custom stealth landing page theme for Aphinity Care — Advanced Practice. Integrated Care.
Version: 1.0
License: Proprietary
Text Domain: aphinity-care
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --teal-50: #e1f5ee; --teal-100: #9fe1cb; --teal-300: #3dbf90;
  --teal-500: #1d9e75; --teal-700: #0f6e56; --teal-900: #04342c;
  --navy: #0c2340; --navy-mid: #143252; --navy-light: #1e4a72;
  --slate: #4a6278; --slate-light: #7a95ab; --ice: #f0f7f5;
  --white: #ffffff; --border: rgba(15,110,86,0.15);
  --border-light: rgba(15,110,86,0.08); --text-muted: #5a7080;
  --radius: 12px; --radius-lg: 20px;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.7; color: var(--navy); background: var(--white); -webkit-font-smoothing: antialiased; }

/* ── NAV ── */
nav {
  position: fixed; top: auto; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 64px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--navy); text-decoration: none; letter-spacing: -0.3px; }
.nav-logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--teal-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 400; color: var(--slate); transition: color 0.2s; }
.nav-links a:hover { color: var(--teal-700); }
.nav-cta { background: var(--teal-500) !important; color: #fff !important; padding: 8px 20px !important; border-radius: 8px !important; font-weight: 500 !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--teal-700) !important; }

/* ── SHARED ── */
section { padding: 100px 5%; }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal-500); margin-bottom: 16px; }
.section-label::before { content: ''; display: block; width: 20px; height: 2px; background: var(--teal-500); }
h1, h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; letter-spacing: -0.5px; color: var(--navy); }
p { color: var(--slate); }
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── HERO ── */
.hero {
  padding-top: 140px; padding-bottom: 100px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; min-height: 100vh;
  background: linear-gradient(160deg, var(--white) 55%, var(--ice) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,158,117,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.stealth-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); border-radius: 100px;
  padding: 5px 14px 5px 8px; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.65); margin-bottom: 24px;
}
.stealth-badge span { background: var(--teal-500); color: #fff; border-radius: 100px; padding: 2px 10px; font-size: 11px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -1.5px; color: var(--navy); margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--teal-500); }
.hero-sub { font-size: 18px; line-height: 1.7; color: var(--slate); max-width: 480px; margin-bottom: 14px; }
.hero-disclaimer { font-size: 13px; color: var(--slate-light); margin-bottom: 40px; font-style: italic; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary { background: var(--teal-500); color: #fff; padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 500; text-decoration: none; transition: background 0.2s, transform 0.15s; display: inline-block; border: none; cursor: pointer; font-family: inherit; }
.btn-primary:hover { background: var(--teal-700); transform: translateY(-1px); }
.btn-ghost { color: var(--navy); padding: 14px 24px; border-radius: 10px; font-size: 15px; font-weight: 400; text-decoration: none; border: 1px solid var(--border); transition: border-color 0.2s, background 0.2s; display: inline-block; }
.btn-ghost:hover { border-color: var(--teal-300); background: var(--teal-50); }

/* Hero illustration */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center;}
.illus-wrap { width: 100%; max-width: 480px; background: var(--ice); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: 0 4px 32px rgba(15,110,86,0.08), 0 1px 4px rgba(0,0,0,0.03); height: 400px; background-image: url('images/Aphinity Care 1.png'); background-repeat: no-repeat; background-size: cover; }
.stealth-label-bar { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: rgba(12,35,64,0.9); border-radius: 10px; padding: 10px 22px; text-align: center; white-space: nowrap; border: 1px solid rgba(29,158,117,0.3); }
.stealth-label-bar p { font-size: 12px; color: var(--teal-300); font-weight: 500; letter-spacing: 0.5px; margin: 0; }

/* ── MISSION ── */
.mission { background: var(--ice); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.mission-text h2 { margin-bottom: 20px; }
.mission-text p { font-size: 16px; margin-bottom: 16px; }
.mission-stats { display: flex; flex-direction: column; gap: 20px; }
.mission-stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; align-items: flex-start; gap: 20px; transition: box-shadow 0.2s; }
.mission-stat:hover { box-shadow: 0 4px 16px rgba(15,110,86,0.08); }
.mission-stat-num { font-family: 'DM Serif Display', serif; font-size: 42px; color: var(--teal-500); line-height: 1; flex-shrink: 0; min-width: 80px; }
.mission-stat-num em { font-style: italic; }
.mission-stat-text { font-size: 14px; color: var(--text-muted); line-height: 1.65; padding-top: 6px; }

/* ── WHAT WE'RE BUILDING ── */
.building { background: var(--navy); }
.building .section-label { color: var(--teal-300); }
.building .section-label::before { background: var(--teal-300); }
.building h2 { color: #fff; margin-bottom: 16px; }
.building-lead { color: rgba(255,255,255,0.5); font-size: 17px; max-width: 600px; margin-bottom: 52px; line-height: 1.7; }
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.teaser-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(29,158,117,0.18); border-radius: var(--radius); padding: 30px 24px; transition: background 0.2s, border-color 0.2s; }
.teaser-card:hover { background: rgba(29,158,117,0.07); border-color: rgba(29,158,117,0.35); }
.teaser-icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(29,158,117,0.12); border: 1px solid rgba(29,158,117,0.25); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.teaser-card h3 { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 15px; color: #fff; margin-bottom: 8px; }
.teaser-card p { font-size: 13px; color: rgba(255,255,255,0.42); line-height: 1.65; }
.stealth-note { margin-top: 44px; padding: 22px 28px; border: 1px solid rgba(29,158,117,0.18); border-radius: var(--radius); background: rgba(29,158,117,0.05); display: flex; align-items: center; gap: 16px; }
.stealth-note-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(29,158,117,0.18); display: flex; align-items: center; justify-content: center; }
.stealth-note p { font-size: 14px; color: rgba(255,255,255,0.45); font-style: italic; margin: 0; }

/* ── CAELESTINUS ── */
.incubator { background: var(--white); }
.incubator-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.incubator-left h2 { margin-bottom: 16px; }
.incubator-left p { font-size: 15px; margin-bottom: 16px; }
.incubator-quote { margin-top: 32px; padding: 24px 28px; background: var(--ice); border: 1px solid var(--border); border-left: 3px solid var(--teal-500); border-radius: 0 var(--radius) var(--radius) 0; }
.incubator-quote p { font-size: 15px; font-style: italic; color: var(--navy); margin: 0; line-height: 1.7; }
.incubator-quote cite { display: block; margin-top: 10px; font-size: 13px; color: var(--text-muted); font-style: normal; }

/* ── CAELESTINUS LOGO CARD ── */
.cael-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 20px rgba(15,110,86,0.07); }

/* Logo header strip */
.cael-header {
  background: var(--navy); padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
/* The actual *caelestinus logotype — faithful recreation */
.cael-logotype {
  display: flex; align-items: baseline; gap: 0;
  text-decoration: none; transition: opacity 0.2s;
}
.cael-logotype:hover { opacity: 0.85; }
.cael-asterisk {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px; font-weight: 400;
  color: var(--teal-300); line-height: 1;
  margin-right: 2px; position: relative; top: -3px;
}
.cael-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px; font-weight: 400; font-style: italic;
  color: #fff; letter-spacing: -0.3px; line-height: 1;
}
.cael-ext-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,0.45);
  text-decoration: none; border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 12px; border-radius: 8px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-weight: 400;
}
.cael-ext-link:hover { border-color: var(--teal-300); color: var(--teal-300); background: rgba(29,158,117,0.08); }
.cael-ext-link svg { display: block; flex-shrink: 0; }

.cael-tagline-strip { background: rgba(29,158,117,0.12); padding: 10px 32px; border-bottom: 1px solid rgba(29,158,117,0.15); }
.cael-tagline-strip p { font-size: 12px; font-weight: 500; color: var(--teal-300); letter-spacing: 0.5px; margin: 0; }

.cael-body { padding: 28px 32px; }
.cael-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cael-badge { font-size: 12px; padding: 5px 12px; border-radius: 100px; font-weight: 500; }
.cael-badge.teal { background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100); }
.cael-badge.navy { background: rgba(12,35,64,0.06); color: var(--navy); border: 1px solid rgba(12,35,64,0.12); }
.cael-details { display: flex; flex-direction: column; gap: 11px; }
.cael-detail-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.cael-check { width: 18px; height: 18px; border-radius: 50%; background: var(--teal-50); border: 1px solid var(--teal-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.cael-check::after { content: '✓'; font-size: 9px; color: var(--teal-500); font-weight: 700; }

/* Partners strip */
.cael-partners { margin-top: 20px; border-top: 1px solid var(--border-light); padding-top: 20px; }
.cael-partners-label { font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.cael-partners-logos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cael-partner-pill { background: var(--ice); border: 1px solid var(--border-light); border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 500; color: var(--slate); }

/* Powered-by InterSystems note */
.intersystems-note {
  margin-top: 16px; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 10px;
}
.intersystems-note p { font-size: 12px; color: var(--teal-700); margin: 0; line-height: 1.5; }
.intersystems-note strong { color: var(--teal-900); }

/* ── FOUNDER ── */
.founder { background: var(--ice); padding: 80px 5%; }
.founder-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.founder-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.founder-avatar { width: 68px; height: 68px; border-radius: 50%; background: var(--teal-500); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.founder-card h3 { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.founder-role { font-size: 12px; color: var(--teal-500); font-weight: 500; margin-bottom: 20px; letter-spacing: 0.5px; text-transform: uppercase; }
.founder-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.founder-traits { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; }
.founder-trait { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--slate); }
.trait-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); flex-shrink: 0; }
.founder-right h2 { margin-bottom: 16px; }
.founder-right p { font-size: 16px; margin-bottom: 16px; }
.advisory-callout { margin-top: 28px; padding: 20px 24px; background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--radius); font-size: 14px; color: var(--teal-700); line-height: 1.7; }
.advisory-callout a { color: var(--teal-700); font-weight: 500; text-decoration: underline; }

/* ── WAITLIST ── */
.waitlist { background: var(--navy); text-align: center; padding: 100px 5%; }
.waitlist .section-label { color: var(--teal-300); justify-content: center; }
.waitlist .section-label::before { background: var(--teal-300); }
.waitlist h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); max-width: 600px; margin: 0 auto 14px; }
.waitlist-sub { color: rgba(255,255,255,0.45); margin-bottom: 48px; font-size: 17px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.waitlist-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto 16px; }
.waitlist-form input[type="email"] { flex: 1; padding: 14px 18px; border-radius: 10px; border: 1px solid rgba(29,158,117,0.3); background: rgba(255,255,255,0.07); font-size: 15px; color: #fff; font-family: inherit; outline: none; transition: border-color 0.2s, background 0.2s; }
.waitlist-form input[type="email"]::placeholder { color: rgba(255,255,255,0.28); }
.waitlist-form input[type="email"]:focus { border-color: var(--teal-300); background: rgba(255,255,255,0.11); }
.waitlist-form button { background: var(--teal-500); color: #fff; padding: 14px 24px; border-radius: 10px; font-size: 15px; font-weight: 500; border: none; cursor: pointer; font-family: inherit; transition: background 0.2s, transform 0.15s; white-space: nowrap; }
.waitlist-form button:hover { background: var(--teal-300); color: var(--navy); transform: translateY(-1px); }
.success-msg { display: none; padding: 16px 28px; background: rgba(29,158,117,0.12); border: 1px solid rgba(29,158,117,0.3); border-radius: 10px; color: var(--teal-300); font-size: 15px; max-width: 500px; margin: 0 auto; }
.waitlist-privacy { font-size: 12px; color: rgba(255,255,255,0.28); }
.waitlist-privacy a { color: rgba(255,255,255,0.38); text-decoration: underline; }
.waitlist-numbers { display: flex; justify-content: center; gap: 48px; margin-top: 60px; flex-wrap: wrap; padding-top: 48px; border-top: 1px solid rgba(255,255,255,0.07); }
.waitlist-num-item { text-align: center; }
.waitlist-num { font-family: 'DM Serif Display', serif; font-size: 34px; color: #fff; line-height: 1; }
.waitlist-num em { font-style: italic; color: var(--teal-300); }
.waitlist-num-label { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 5px; max-width: 130px; }

/* ── FOOTER ── */
footer { background: var(--teal-900); padding: 36px 5%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-logo { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.7); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.65); }
/* Caelestinus link in footer — slightly more prominent */
.footer-cael-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--teal-300) !important;
  text-decoration: none; padding: 4px 10px;
  border: 1px solid rgba(29,158,117,0.3); border-radius: 6px;
  transition: border-color 0.2s, background 0.2s !important;
}
.footer-cael-link:hover { border-color: var(--teal-300); background: rgba(29,158,117,0.1) !important; color: var(--teal-100) !important; }

@media (max-width: 900px) {
  .hero, .mission-grid, .incubator-inner, .founder-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; }
  .hero-visual { display: none; }
  .teaser-grid { grid-template-columns: 1fr 1fr; }
  nav .nav-links { display: none; }
  .waitlist-form { flex-direction: column; }
  .waitlist-numbers { gap: 28px; }
}
@media (max-width: 600px) {
  .teaser-grid { grid-template-columns: 1fr; }
}
