/* legal/appfetcher/layout.css
 * Layout components for AppFetcher — appfe-prefixed classes.
 * Loaded alongside base.css and brand.css on every page. */

/* ─── Hero (index page) ─── */
.appfeHero {
  background: #0b1e33;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.appfeHeroBand {
  display: flex;
  align-items: stretch;
  min-height: 480px;
}
.appfeHeroText {
  flex: 1 1 480px;
  padding: 4rem 3rem 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.appfeEyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fb7185;
  margin-bottom: 1rem;
  display: block;
}
.appfeHeroText h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.appfeHeroSub {
  font-size: 1.05rem;
  color: #fecdd3;
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 420px;
}
.appfePricePill {
  display: inline-block;
  align-self: flex-start;
  background: #0284c7;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}
.appfeHeroCtas { display: flex; gap: 1rem; flex-wrap: wrap; }
.appfeBtnPrimary {
  display: inline-block;
  background: #0284c7;
  color: #fff;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease;
}
.appfeBtnPrimary:hover { background: #0369a1; }
.appfeBtnGhost {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.25);
  color: #fecdd3;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.appfeBtnGhost:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* Geometric panel (right side of hero) */
.appfeHeroPanel {
  flex: 0 0 400px;
  background: #0284c7;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 3rem 3rem 5rem;
}
.appfePhoneMock {
  width: 160px;
  height: 280px;
  background: #0b1e33;
  border-radius: 22px;
  border: 3px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
.appfePhoneNotch {
  width: 60px;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin: 12px auto 0;
}
.appfePhoneScreen {
  margin: 12px 10px;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.appfePlayCircle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.appfePlayCircle::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.appfePhoneBars {
  width: 100%;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.appfePhoneBar {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}
.appfePhoneBar:nth-child(1) { width: 80%; }
.appfePhoneBar:nth-child(2) { width: 60%; }

/* ─── Trust bar ─── */
.appfeTrustBar {
  background: #fff;
  border-bottom: 1px solid #fecdd3;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.appfeTrustItem {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  border-right: 1px solid #e0f2fe;
}
.appfeTrustItem:last-child { border-right: none; }
.appfeTrustItem .appfeTrustIcon { font-size: 1.1rem; }

/* ─── Feature rows ─── */
.appfeFeatureSection {
  padding: 4rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.appfeFeatureSection > h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0b1e33;
  margin: 0 0 3rem;
  text-align: center;
}
.appfeFeatureRow {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid #e0f2fe;
}
.appfeFeatureRow:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.appfeFeatureRowReverse { flex-direction: row-reverse; }
.appfeFeatIconWrap {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: #f0f9ff;
  border: 2px solid #fecdd3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.appfeFeatText { flex: 1; }
.appfeFeatText h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0b1e33;
  margin: 0 0 0.6rem;
}
.appfeFeatText p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.75;
  margin: 0;
  max-width: 480px;
}

/* ─── How it works — vertical steps ─── */
.appfeStepsSection {
  background: #fff;
  padding: 4rem 2.5rem;
  border-top: 1px solid #e0f2fe;
  border-bottom: 1px solid #e0f2fe;
}
.appfeStepsInner {
  max-width: 760px;
  margin: 0 auto;
}
.appfeStepsInner > h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0b1e33;
  margin: 0 0 3rem;
  text-align: center;
}
.appfeStepsList {
  position: relative;
  padding-left: 2rem;
}
.appfeStepsList::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: #e0f2fe;
}
.appfeStepItem {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.appfeStepItem:last-child { margin-bottom: 0; }
.appfeStepMarker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.appfeStepContent { padding-top: 0.5rem; }
.appfeStepContent h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0b1e33;
  margin: 0 0 0.35rem;
}
.appfeStepContent p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

/* ─── Pricing block ─── */
.appfePricingSection {
  padding: 4rem 2.5rem;
  background: #f0f9ff;
  text-align: center;
}
.appfePricingBlock {
  display: inline-block;
  background: #fff;
  border: 2px solid #fecdd3;
  border-radius: 20px;
  padding: 2.5rem 3rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(2,132,199,0.08);
}
.appfePricingBlock h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1.25rem;
}
.appfePriceAmount {
  font-size: 4rem;
  font-weight: 900;
  color: #0b1e33;
  line-height: 1;
  margin: 0 0 0.25rem;
}
.appfePriceSub {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0 0 2rem;
}
.appfePriceChecks {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  text-align: left;
}
.appfePriceChecks li {
  font-size: 0.925rem;
  color: #374151;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0f2fe;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.appfePriceChecks li:last-child { border-bottom: none; }
.appfePriceChecks li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0284c7;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9 L7.5 12.5 L14 6' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ─── Page hero (inner pages) ─── */
.appfePageHero {
  background: linear-gradient(135deg, #0b1e33 0%, #075985 100%);
  color: #fff;
  padding: 3rem 2.5rem 2.5rem;
}
.appfePageHero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  color: #fff;
  max-width: 1100px;
}
.appfePageHero p {
  font-size: 1rem;
  opacity: 0.8;
  margin: 0.6rem 0 0;
  max-width: 560px;
  line-height: 1.6;
  color: #fecdd3;
}

/* ─── Inline anchor nav (legal pages) ─── */
.appfeAnchorNav {
  background: #fff;
  border-bottom: 1px solid #e0f2fe;
  padding: 0.85rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.appfeAnchorNav span {
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  margin-right: 0.25rem;
}
.appfeAnchorNav a {
  color: #6b7280;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  border: 1px solid #e5e7eb;
  transition: border-color 0.12s, color 0.12s;
  white-space: nowrap;
}
.appfeAnchorNav a:hover { border-color: #0284c7; color: #0284c7; }

/* ─── Legal content ─── */
.appfeLegalContent {
  max-width: 820px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.appfeLegalContent h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b1e33;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e0f2fe;
}
.appfeLegalContent h2:first-child { margin-top: 0; border-top: none; }
.appfeLegalContent p, .appfeLegalContent li {
  font-size: 0.925rem;
  color: #374151;
  line-height: 1.8;
  margin: 0 0 0.85rem;
}
.appfeLegalContent ul, .appfeLegalContent ol {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}
.appfeLegalContent a { color: #0284c7; }

/* ─── General content area ─── */
.appfeContent {
  max-width: 820px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.appfeContent h1 { font-size: 1.8rem; font-weight: 800; color: #0b1e33; margin: 0 0 1rem; }
.appfeContent h2 { font-size: 1.2rem; font-weight: 700; color: #0b1e33; margin: 2rem 0 0.6rem; }
.appfeContent p, .appfeContent li { font-size: 0.925rem; color: #374151; line-height: 1.8; margin: 0 0 0.85rem; }
.appfeContent ul, .appfeContent ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.appfeContent a { color: #0284c7; }

/* ─── Highlight cards (about, contact) ─── */
.appfeHighlightCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.appfeHighlightCard {
  background: #fff;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
}
.appfeHighlightCard .icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.appfeHighlightCard h3 { font-size: 1rem; font-weight: 700; color: #0b1e33; margin: 0 0 0.35rem; }
.appfeHighlightCard p { font-size: 0.85rem; color: #6b7280; margin: 0; }

/* ─── Footer (3-column) ─── */
.appfeSiteFooter {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 3rem 2.5rem 1.5rem;
}
.appfeFooterGrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}
.appfeFooterBrand .appfeFooterLogo {
  display: block;
  width: 48px;
  height: 48px;
  background-image: var(--logo-url);
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 0.75rem;
}
.appfeFooterBrand .appfeBrandTitle {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
.appfeFooterBrand .appfeTagline {
  font-size: 0.82rem;
  color: #fda4af;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.appfeFooterBrand .appfeDisclosure {
  font-size: 0.78rem;
  color: #fb7185;
  line-height: 1.6;
  border-left: 3px solid #0284c7;
  padding-left: 0.75rem;
}
.appfeFooterCol h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 1rem;
}
.appfeFooterCol ul { list-style: none; margin: 0; padding: 0; }
.appfeFooterCol ul li { margin-bottom: 0.55rem; }
.appfeFooterCol ul li a {
  color: #fda4af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}
.appfeFooterCol ul li a:hover { color: #fecdd3; }
.appfeFooterContact p {
  font-size: 0.875rem;
  color: #fda4af;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}
.appfeFooterContact a { color: #fb7185; text-decoration: none; }
.appfeFooterContact a:hover { text-decoration: underline; }
.appfeFooterBottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.appfeFooterBottom p { font-size: 0.78rem; color: #6b7280; margin: 0 0 0.3rem; }
.appfeFooterBottom a { color: #fda4af; text-decoration: none; }
.appfeFooterBottom a:hover { color: #fecdd3; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .appfeHeroBand { flex-direction: column; }
  .appfeHeroPanel {
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
    flex: 0 0 260px;
    padding: 2rem;
    justify-content: center;
  }
  .appfeHeroText { padding: 2.5rem 1.5rem 2rem; }
  .appfeHeroText h1 { font-size: 2rem; }
  .appfeFeatureRow { flex-direction: column !important; gap: 1.5rem; }
  .appfeFooterGrid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 580px) {
  .appfeTrustBar { flex-direction: column; align-items: flex-start; }
  .appfeTrustItem { border-right: none; border-bottom: 1px solid #e0f2fe; width: 100%; }
  .appfeTrustItem:last-child { border-bottom: none; }
  .appfeHeroText h1 { font-size: 1.7rem; }
  .appfeFooterGrid { grid-template-columns: 1fr; gap: 1.75rem; }
  .appfeSiteFooter { padding: 2.5rem 1.25rem 1.25rem; }
  .appfePricingBlock { padding: 2rem 1.5rem; }
  .appfeFeatureSection { padding: 2.5rem 1.25rem; }
  .appfeStepsSection { padding: 2.5rem 1.25rem; }
  .appfeAnchorNav { padding: 0.85rem 1.25rem; }
}
