/* ─── THE APP PAGE — app-page.css ─── */

/* Hero */
.ap-hero { min-height: 80vh; background: linear-gradient(155deg, #111B30 0%, var(--navy) 55%, #1A2E45 100%); display: flex; align-items: center; padding: 8rem 2rem 5rem; position: relative; overflow: hidden; }
.ap-hero::before { content: ''; position: absolute; top: -120px; right: -120px; width: 580px; height: 580px; background: radial-gradient(circle, rgba(192,39,45,0.12) 0%, transparent 70%); pointer-events: none; }
.ap-hero::after  { content: ''; position: absolute; bottom: -80px; left: -80px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(192,39,45,0.07) 0%, transparent 70%); pointer-events: none; }
.ap-hero-inner { max-width: 1060px; margin: 0 auto; width: 100%; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 280px; gap: 5rem; align-items: center; }

.ap-breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem; }
.ap-breadcrumb strong { color: #F2979A; }
.ap-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(192,39,45,0.18); border: 1px solid rgba(192,39,45,0.35); border-radius: 100px; padding: 0.4rem 1.1rem; font-size: 0.8rem; font-weight: 600; color: #F2979A; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.4rem; }
.ap-hero h1 { font-family: 'Lora', serif; font-size: clamp(2.3rem, 4.8vw, 3.6rem); font-weight: 700; color: white; line-height: 1.13; margin-bottom: 1.4rem; letter-spacing: -0.02em; }
.ap-hero h1 em { font-style: italic; color: #F2979A; }
.ap-hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.68); line-height: 1.8; font-weight: 300; margin-bottom: 2.5rem; max-width: 560px; }
.ap-hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.ap-stat { display: flex; flex-direction: column; gap: 3px; }
.ap-stat-num { font-family: 'Lora', serif; font-size: 1.75rem; font-weight: 700; color: white; line-height: 1; }
.ap-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.42); text-transform: uppercase; letter-spacing: 0.07em; }
.ap-divider { width: 1px; background: rgba(255,255,255,0.13); align-self: stretch; }

/* Phone mockup */
.ap-phone-wrap { display: flex; justify-content: center; align-items: center; }
.ap-phone-frame { width: 240px; background: #0A0F1E; border-radius: 36px; padding: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(192,39,45,0.15); position: relative; }
.ap-phone-notch { width: 80px; height: 22px; background: #0A0F1E; border-radius: 0 0 16px 16px; margin: 0 auto -4px; position: relative; z-index: 2; }
.ap-phone-screen { border-radius: 28px; overflow: hidden; background: #fff; }
.ap-phone-screen img { width: 100%; display: block; }

/* Shared helpers */
.ap-container { max-width: 1060px; margin: 0 auto; }
.ap-section-label { font-size: 0.83rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 0.7rem; }
.ap-section-title { font-family: 'Lora', serif; font-size: clamp(1.85rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.02em; }
.ap-section-sub { font-size: 1.08rem; color: var(--text-mid); max-width: 640px; line-height: 1.8; margin-bottom: 3rem; }

/* Button walkthrough */
.ap-walkthrough { background: var(--off-white); padding: 5rem 2rem; }
.ap-wt-intro { text-align: center; margin-bottom: 3.5rem; }
.ap-btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ap-btn-card { background: white; border-radius: 16px; border: 1px solid var(--border); padding: 2rem; display: flex; flex-direction: column; gap: 1.1rem; transition: box-shadow 0.2s, transform 0.2s; }
.ap-btn-card:hover { box-shadow: 0 8px 32px rgba(30,43,74,0.1); transform: translateY(-2px); }
.ap-btn-card-top { display: flex; align-items: center; gap: 1rem; }
.ap-btn-icon { width: 64px; height: 64px; flex-shrink: 0; background: var(--navy); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 4px 16px rgba(30,43,74,0.25); }
.ap-btn-name { font-family: 'Lora', serif; font-size: 1.2rem; font-weight: 700; color: var(--navy); line-height: 1.25; }
.ap-action-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; margin-top: 4px; white-space: nowrap; }
.ap-tag-call    { background: #E0F2FE; color: #0369A1; }
.ap-tag-submit  { background: #DCFCE7; color: #166534; }
.ap-tag-appt    { background: var(--red-light); color: var(--red); }
.ap-tag-view    { background: #EDE9FE; color: #5B21B6; }
.ap-tag-manage  { background: var(--navy-light); color: var(--navy); }
.ap-tag-records { background: #FEF9C3; color: #854D0E; }
.ap-tag-message { background: #F0FDF4; color: #15803D; }
.ap-tag-support { background: #FFF7ED; color: #C2410C; }
.ap-btn-desc { font-size: 0.97rem; color: var(--text-mid); line-height: 1.72; }
.ap-btn-desc strong { color: var(--navy); font-weight: 600; }
.ap-btn-highlight { background: var(--navy-light); border-radius: 8px; padding: 0.65rem 0.9rem; font-size: 0.87rem; color: var(--text-mid); line-height: 1.55; }
.ap-btn-highlight strong { color: var(--navy); font-weight: 600; }
.ap-row-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0 0.25rem; }
.ap-row-label-text { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-muted); white-space: nowrap; }
.ap-row-label-line { flex: 1; height: 1px; background: var(--border); }

/* Connected section */
.ap-connected { background: var(--navy); padding: 5rem 2rem; }
.ap-connection-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.ap-connection-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 1.75rem 1.5rem; }
.ap-cc-icon { font-size: 1.75rem; margin-bottom: 0.9rem; display: block; }
.ap-connection-card h4 { font-size: 1rem; font-weight: 600; color: white; margin-bottom: 0.5rem; line-height: 1.3; }
.ap-connection-card p { font-size: 0.9rem; color: rgba(255,255,255,0.58); line-height: 1.65; }

/* Overview */
.ap-overview { background: var(--off-white); padding: 5rem 2rem; border-top: 1px solid var(--border); }
.ap-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.ap-overview-text p { font-size: 0.98rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 1.2rem; }
.ap-overview-text strong { color: var(--navy); font-weight: 600; }
.ap-store-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.ap-store-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: white; border-radius: 10px; padding: 0.75rem 1.25rem; text-decoration: none; transition: background 0.2s; }
.ap-store-btn:hover { background: var(--navy-mid); }
.ap-store-icon { font-size: 1.4rem; }
.ap-store-text { display: flex; flex-direction: column; gap: 1px; }
.ap-store-small { font-size: 0.65rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; }
.ap-store-big { font-size: 0.95rem; font-weight: 600; color: white; line-height: 1; }
.ap-overview-phone { display: flex; justify-content: center; }
.ap-overview-frame { width: 220px; background: #0A0F1E; border-radius: 34px; padding: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 60px rgba(0,0,0,0.35); }
.ap-overview-screen { border-radius: 26px; overflow: hidden; }
.ap-overview-screen img { width: 100%; display: block; }

/* Member note */
.ap-member-note-section { background: var(--navy-light); padding: 3rem 2rem; }
.ap-member-note { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; max-width: 1060px; margin: 0 auto; }
.ap-member-note h4 { font-family: 'Lora', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.6rem; }
.ap-member-note p { font-size: 0.97rem; color: var(--text-mid); line-height: 1.7; }

/* Responsive */
@media (max-width: 900px) {
  .ap-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .ap-phone-wrap { display: none; }
  .ap-overview-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ap-overview-phone { display: none; }
}
@media (max-width: 700px) {
  .ap-btn-grid { grid-template-columns: 1fr; }
  .ap-connection-grid { grid-template-columns: 1fr; }
  .ap-walkthrough, .ap-connected, .ap-overview { padding: 3.5rem 1.5rem; }
  .ap-hero { padding: 7rem 1.5rem 4rem; }
}
