/* ==========================================================================
   AMERICAN PRANA — PREMIUM MINIMAL UI (FINAL)
   Mobile-first · Fast · Apple-like spacing/typography · No overlap
   Palette: B/W base · Red CTA · Navy/Yellow accents
   Namespace: ap-
   ========================================================================== */

/* -----------------------------
   0) TOKENS
------------------------------ */
:root{
  --ap-bg: #ffffff;
  --ap-surface: #ffffff;
  --ap-soft: #f5f5f7;

  --ap-ink: #0b1220;
  --ap-muted: rgba(11,18,32,.68);
  --ap-faint: rgba(11,18,32,.48);

  --ap-border: rgba(11,18,32,.10);
  --ap-border-2: rgba(11,18,32,.16);

  --ap-red: #e11d48;
  --ap-navy: #0a2540;
  --ap-yellow: #f5b301;

  --ap-r1: 12px;
  --ap-r2: 16px;
  --ap-r3: 22px;

  --ap-shadow-1: 0 1px 2px rgba(11,18,32,.06);
  --ap-shadow-2: 0 14px 44px rgba(11,18,32,.12);

  --ap-1: 4px;
  --ap-2: 8px;
  --ap-3: 12px;
  --ap-4: 16px;
  --ap-5: 20px;
  --ap-6: 24px;
  --ap-7: 32px;
  --ap-8: 40px;
  --ap-9: 56px;
  --ap-10: 72px;
  --ap-11: 96px;

  --ap-max: 1200px;
  --ap-gutter: 16px;
  --ap-topbar-h: 64px;
  --ap-tap: 44px;

  --ap-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";

  --ap-fs-0: clamp(12px, 1.8vw, 13px);
  --ap-fs-1: clamp(13px, 2.0vw, 14px);
  --ap-fs-2: clamp(14px, 2.3vw, 16px);
  --ap-fs-3: clamp(16px, 2.7vw, 18px);
  --ap-fs-4: clamp(18px, 3.2vw, 22px);
  --ap-fs-5: clamp(24px, 4.6vw, 34px);
  --ap-fs-6: clamp(30px, 5.9vw, 48px);

  --ap-lh: 1.55;
  --ap-lh-tight: 1.12;

  --ap-ring: 0 0 0 3px rgba(10,37,64,.18);
}

@media (min-width: 640px){ :root{ --ap-gutter: 20px; } }
@media (min-width: 980px){ :root{ --ap-gutter: 24px; } }

/* -----------------------------
   1) RESET / BASE
------------------------------ */
*,
*::before,
*::after{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body{
  margin:0;
  font-family:var(--ap-font);
  font-size:var(--ap-fs-2);
  line-height:var(--ap-lh);
  background:var(--ap-bg);
  color:var(--ap-ink);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

img, svg, video, canvas{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color: var(--ap-navy);
  text-decoration:none;
  text-underline-offset: 3px;
}
a:hover{ text-decoration:underline; }
a:focus-visible{ outline:none; box-shadow:var(--ap-ring); border-radius:10px; }

button, input, select, textarea{ font:inherit; color:inherit; }
button{ cursor:pointer; border:0; background:transparent; }

:where(p,h1,h2,h3,h4,h5,h6){ margin:0; overflow-wrap:anywhere; }
:where(ul,ol){ margin:0; padding-left: 1.2em; }

.ap-min0{ min-width:0; }
.ap-sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Visibility helpers (no “display:block” hacks) */
@media (max-width: 979px){ .ap-hide-mobile{ display:none !important; } }
@media (min-width: 980px){ .ap-hide-desktop{ display:none !important; } }

/* -----------------------------
   2) LAYOUT PRIMITIVES
------------------------------ */
.ap-container{
  width:100%;
  max-width:var(--ap-max);
  margin-inline:auto;
  padding-inline:var(--ap-gutter);
}

.ap-row{ display:flex; align-items:center; gap: var(--ap-4); min-width:0; }
.ap-stack{ display:flex; flex-direction:column; gap: var(--ap-4); min-width:0; }
.ap-wrap{ flex-wrap:wrap; }

.ap-divider{
  height:1px;
  background: var(--ap-border);
  margin-block: var(--ap-6);
}

/* -----------------------------
   3) TYPOGRAPHY (Apple-like)
------------------------------ */
.ap-h1{
  font-size: var(--ap-fs-6);
  line-height: var(--ap-lh-tight);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.ap-h2{
  font-size: var(--ap-fs-5);
  line-height: var(--ap-lh-tight);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.ap-h3{
  font-size: var(--ap-fs-4);
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -0.015em;
}
.ap-lead{
  font-size: var(--ap-fs-3);
  color: var(--ap-muted);
  max-width: 70ch;
}

/* -----------------------------
   4) BUTTONS (Red primary)
------------------------------ */
.ap-btn{
  height: var(--ap-tap);
  padding: 0 16px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  font-weight: 900;
  white-space:nowrap;
  border:1px solid transparent;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}
.ap-btn:focus-visible{ outline:none; box-shadow: var(--ap-ring); }

.ap-btn--primary{
  background: var(--ap-red);
  color:#fff;
  box-shadow: 0 14px 34px rgba(225,29,72,.20);
}
.ap-btn--primary:hover{ filter:brightness(.98); }
.ap-btn--primary:active{ transform: translateY(1px); }

.ap-btn--secondary{
  background: rgba(11,18,32,.04);
  border-color: rgba(11,18,32,.10);
  color: var(--ap-ink);
}
.ap-btn--secondary:hover{ background: rgba(11,18,32,.06); }

.ap-btn--navy{
  background: var(--ap-navy);
  color:#fff;
  box-shadow: 0 14px 34px rgba(10,37,64,.20);
}
.ap-btn--yellow{
  background: var(--ap-yellow);
  color:#111;
  box-shadow: 0 14px 34px rgba(245,179,1,.18);
}
.ap-btn--ghost{
  background: transparent;
  border-color: transparent;
  color: var(--ap-ink);
}
.ap-btn--ghost:hover{ background: rgba(11,18,32,.04); }
.ap-btn--block{ width:100%; }

/* -----------------------------
   5) TOPBAR / NAV
------------------------------ */
.ap-topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(11,18,32,.08);
}
@supports (backdrop-filter: blur(1px)){
  .ap-topbar{ backdrop-filter: saturate(140%) blur(14px); }
}

.ap-topbar__inner{
  min-height: var(--ap-topbar-h);
  display:flex;
  align-items:center;
  gap: 14px;
}

.ap-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width:0;
  padding: 8px 8px;
  border-radius: 14px;
  color: var(--ap-ink);
}
.ap-brand:hover{ text-decoration:none; background: rgba(11,18,32,.04); }

.ap-brand__logo{
  height: 28px;
  width:auto;
  max-width: 220px;
  object-fit: contain;
  flex: 0 0 auto;
}
.ap-brand__name{
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 15px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color: var(--ap-ink);
}
@media (max-width: 520px){
  .ap-brand__name{ display:none; }
  .ap-brand__logo{ height: 26px; max-width: 180px; }
}

.ap-topbar__spacer{ flex:1; min-width:0; }
.ap-actions{ display:flex; align-items:center; gap: 10px; }

/* Desktop nav: show only when there is room */
.ap-nav{ display:none; }
@media (min-width: 1100px){
  .ap-nav{ display:flex; align-items:center; gap: 10px; min-width:0; }
}
.ap-nav__link{
  height: 40px;
  display:inline-flex;
  align-items:center;
  padding: 0 10px;
  border-radius: 12px;
  font-weight: 850;
  font-size: var(--ap-fs-1);
  color: rgba(11,18,32,.70);
  white-space:nowrap;
}
.ap-nav__link:hover{
  color: var(--ap-ink);
  background: rgba(11,18,32,.04);
  text-decoration:none;
}

/* Mobile menu using details */
.ap-navdrop{ display:block; }
@media (min-width: 1100px){ .ap-navdrop{ display:none; } }

.ap-navdrop > summary{
  list-style:none;
  height: var(--ap-tap);
  padding: 0 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  border:1px solid rgba(11,18,32,.12);
  background: rgba(11,18,32,.03);
  font-weight: 900;
  user-select:none;
  color: var(--ap-ink);
}
.ap-navdrop > summary::-webkit-details-marker{ display:none; }
.ap-navdrop[open] > summary{ box-shadow: var(--ap-ring); }

.ap-navpanel{
  position:absolute;
  top: calc(var(--ap-topbar-h) - 2px);
  left: var(--ap-gutter);
  right: var(--ap-gutter);
  background: #fff;
  border: 1px solid rgba(11,18,32,.10);
  border-radius: var(--ap-r3);
  box-shadow: var(--ap-shadow-2);
  padding: var(--ap-4);
}

.ap-mnav{ display:flex; flex-direction:column; gap: 8px; }
.ap-mnav__link{
  height: 44px;
  display:flex;
  align-items:center;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(11,18,32,.03);
  font-weight: 900;
  color: var(--ap-ink);
}
.ap-mnav__link:hover{ text-decoration:none; background: rgba(11,18,32,.05); }

/* Trust strip */
.ap-subbar{
  border-bottom: 1px solid rgba(11,18,32,.06);
  background: rgba(245,245,247,.92);
}
.ap-subbar__inner{
  height: 40px;
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(11,18,32,.70);
  font-size: var(--ap-fs-1);
}
.ap-subbar__sep{ opacity:.6; }
.ap-subbar__link{
  color: var(--ap-navy);
  font-weight: 900;
}
.ap-subbar__link:hover{ text-decoration:underline; }

/* -----------------------------
   6) HERO
------------------------------ */
.ap-hero{
  background:
    radial-gradient(900px 520px at 18% 10%, rgba(10,37,64,.11), transparent 62%),
    radial-gradient(900px 520px at 82% 0%, rgba(225,29,72,.08), transparent 60%),
    linear-gradient(180deg, var(--ap-soft), #fff 62%);
  border-bottom: 1px solid rgba(11,18,32,.06);
  padding: var(--ap-10) 0;
}
@media (max-width: 520px){ .ap-hero{ padding: var(--ap-8) 0; } }

.ap-hero__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--ap-7);
  align-items:start;
}
@media (min-width: 1100px){
  .ap-hero__grid{
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--ap-9);
  }
}

.ap-hero__copy{ max-width: 70ch; }
.ap-hero__cta{ margin-top: var(--ap-6); display:flex; gap: 12px; flex-wrap:wrap; }

/* Bullets: not boxes */
.ap-bullets{
  list-style:none;
  padding:0;
  margin: var(--ap-6) 0 0 0;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.ap-bullet{ display:flex; align-items:flex-start; gap: 12px; }
.ap-bullet__icon{
  width: 28px; height: 28px;
  border-radius: 999px;
  display:grid; place-items:center;
  flex:0 0 auto;
  background: rgba(10,37,64,.10);
  color: rgba(10,37,64,.95);
}
.ap-bullet__text{
  color: rgba(11,18,32,.72);
  font-size: var(--ap-fs-2);
  line-height: 1.55;
  max-width: 64ch;
}

/* -----------------------------
   7) CARDS (premium stripe)
------------------------------ */
.ap-path{
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--ap-4);
  min-width:0;
}
@media (min-width: 720px){
  .ap-path{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1200px){
  .ap-path{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.ap-card{
  position:relative;
  border-radius: var(--ap-r3);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
  border: 1px solid rgba(11,18,32,.08);
  box-shadow: var(--ap-shadow-1);
  min-width:0;
  overflow:hidden;
}

.ap-card::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 3px;
  background: rgba(10,37,64,.55);
}
.ap-card--danger::before{ background: rgba(225,29,72,.70); }
.ap-card--yellow::before{ background: rgba(245,179,1,.78); }

.ap-card--link{
  display:grid;
  gap: 12px;
  padding: var(--ap-6);
  padding-left: calc(var(--ap-6) + 3px);
  text-decoration:none;
  color: var(--ap-ink);
  -webkit-tap-highlight-color: transparent;
}

@media (hover:hover) and (pointer:fine){
  .ap-card--link{
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  }
  .ap-card--link:hover{
    transform: translateY(-3px);
    box-shadow: var(--ap-shadow-2);
    border-color: rgba(11,18,32,.12);
    text-decoration:none;
  }
}
@media (prefers-reduced-motion: reduce){ .ap-card--link{ transition:none; } }

.ap-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  min-width:0;
}

/* Pills: no truncation */
.ap-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(11,18,32,.03);
  font-weight: 950;
  font-size: 12px;
  line-height: 1.2;
  max-width: calc(100% - 22px);
  white-space: normal;
  flex-wrap:wrap;
}

.ap-pill--primary{
  border-color: rgba(10,37,64,.18);
  background: rgba(10,37,64,.06);
}
.ap-pill--danger{
  border-color: rgba(225,29,72,.22);
  background: rgba(225,29,72,.08);
}

/* Arrow: minimal, not a square button */
.ap-arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: rgba(11,18,32,.32);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

.ap-card__h{
  font-size: 18px;
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.02em;
}
.ap-card__p{
  color: rgba(11,18,32,.68);
  font-size: 14px;
  line-height: 1.6;
}

/* -----------------------------
   8) FOOTER (real premium)
------------------------------ */
.ap-footer{
  background:
    radial-gradient(1000px 560px at 18% 0%, rgba(10,37,64,.42), transparent 62%),
    radial-gradient(900px 560px at 85% 0%, rgba(225,29,72,.24), transparent 60%),
    #0b0f14;
  color: rgba(255,255,255,.82);
  border-top: 1px solid rgba(255,255,255,.10);
}
.ap-footer::before{
  content:"";
  display:block;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(225,29,72,.70),
    rgba(10,37,64,.70),
    rgba(245,179,1,.55)
  );
  opacity:.55;
}

.ap-footer a{ color: rgba(255,255,255,.74); text-decoration:none; }
.ap-footer a:hover{ color:#fff; text-decoration:underline; text-underline-offset:3px; }

.ap-footer__top{
  padding: 54px 0 26px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
@media (min-width: 980px){
  .ap-footer__top{
    grid-template-columns: 1.15fr 1.85fr;
    gap: 36px;
    align-items:start;
  }
}

.ap-footer__brandlink{
  display:flex;
  align-items:center;
  gap: 12px;
  color:#fff;
}
.ap-footer__brandlink:hover{ text-decoration:none; }

.ap-footer__logo{
  height: 30px; width:auto;
  max-width: 220px;
  object-fit: contain;
  flex:0 0 auto;
}

.ap-footer__brandname{
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color:#fff;
}
.ap-footer__brandtag{
  margin-top: 2px;
  font-size: 12px;
  letter-spacing:.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.ap-footer__desc{
  margin-top: 14px;
  max-width: 60ch;
  color: rgba(255,255,255,.68);
  line-height: 1.65;
}

.ap-footer__cta{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.ap-footer .ap-btn--primary{ box-shadow: 0 14px 34px rgba(225,29,72,.24); }
.ap-footer .ap-btn--secondary{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  color:#fff;
}
.ap-footer .ap-btn--secondary:hover{ background: rgba(255,255,255,.10); }

.ap-footer__meta{
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.58);
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.ap-footer__metaLink{ color:#fff; font-weight: 900; }
.ap-footer__dot{ opacity:.55; }

/* Social as text links (no icon fonts = no empty circles) */
.ap-footer__social{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.ap-footer__social a{
  display:inline-flex;
  align-items:center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  text-decoration:none;
  font-weight: 850;
  font-size: 13px;
}
.ap-footer__social a:hover{
  background: rgba(255,255,255,.10);
  text-decoration:none;
}

/* Footer nav sections: single markup using details */
.ap-footer__nav{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width:0;
}
@media (min-width: 980px){
  .ap-footer__nav{
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 26px;
  }
}

.ap-footer__section{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  overflow:hidden;
}

.ap-footer__section > summary{
  list-style:none;
  cursor:pointer;
  padding: 14px 14px;
  font-weight: 950;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  letter-spacing: .02em;
}
.ap-footer__section > summary::-webkit-details-marker{ display:none; }

.ap-footer__section > summary::after{
  content:"+";
  width: 28px; height: 28px;
  display:grid; place-items:center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);
  flex: 0 0 auto;
}
.ap-footer__section[open] > summary::after{ content:"–"; }

.ap-footer__panel{
  padding: 0 14px 14px 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.ap-footer__panel a{
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  text-decoration:none;
}
.ap-footer__panel a:hover{ background: rgba(255,255,255,.07); text-decoration:none; }

/* Desktop: show panels as columns without requiring [open] */
@media (min-width: 980px){
  .ap-footer__section{
    border: 0;
    background: transparent;
    border-radius: 0;
  }
  .ap-footer__section > summary{
    padding: 0 0 12px 0;
    cursor: default;
  }
  .ap-footer__section > summary::after{ content:none; }

  /* Override UA rule: details:not([open]) hides content */
  details.ap-footer__section:not([open]) > .ap-footer__panel{ display:grid; }

  .ap-footer__panel{
    padding: 0;
    background: transparent;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px 18px;
  }
  .ap-footer__panel a{
    padding: 6px 0;
    border: 0;
    background: transparent;
  }
  .ap-footer__panel a:hover{ background: transparent; }
}

.ap-footer__bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 16px 0 18px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  color: rgba(255,255,255,.58);
  font-size: 13px;
}
@media (min-width: 860px){
  .ap-footer__bottom{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
  }
}
.ap-footer__policies{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* -----------------------------
   9) GUARD RAILS
------------------------------ */
.ap-ellipsis{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.ap-break{ overflow-wrap:anywhere; word-break:break-word; }

/* ==========================================================================
   AP — Inner pages components + FAQ + Contact + Legacy includes
   Append at END of assets/css/style.css
   ========================================================================== */

html{ scroll-padding-top: calc(var(--ap-topbar-h) + 14px); }

/* Sections */
.ap-page{ display:block; }
.ap-section{ padding: var(--ap-10) 0; }
.ap-section--tight{ padding: var(--ap-8) 0; }
.ap-section--soft{
  background: var(--ap-soft);
  border-top: 1px solid rgba(11,18,32,.06);
  border-bottom: 1px solid rgba(11,18,32,.06);
}

.ap-head{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-bottom: var(--ap-6);
}
.ap-kicker{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 950;
  color: rgba(11,18,32,.55);
}
.ap-subhead{
  color: var(--ap-muted);
  max-width: 74ch;
}

/* Grid utility */
.ap-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--ap-4);
  min-width:0;
}
@media (min-width: 720px){
  .ap-grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px){
  .ap-grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Page hero variant */
.ap-hero--page{ padding: var(--ap-9) 0; }
@media (max-width: 520px){
  .ap-hero--page{ padding: var(--ap-7) 0; }
}

/* Callout */
.ap-callout{
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(11,18,32,.03);
  border-radius: var(--ap-r3);
  padding: var(--ap-6);
  min-width:0;
}

/* Spacing helpers (no inline styles) */
.ap-mt-4{ margin-top: var(--ap-4); }
.ap-mt-6{ margin-top: var(--ap-6); }
.ap-mb-6{ margin-bottom: var(--ap-6); }

/* Inputs (FAQ search) */
.ap-input{
  width:100%;
  height: var(--ap-tap);
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.92);
  padding: 0 14px;
  outline:none;
  color: var(--ap-ink);
}
.ap-input:focus{
  box-shadow: var(--ap-ring);
  border-color: rgba(10,37,64,.22);
}

/* Logo wall (no slider, no JS) */
.ap-logoWall{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  align-items:center;
}
@media (min-width: 720px){
  .ap-logoWall{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 1100px){
  .ap-logoWall{ grid-template-columns: repeat(6, minmax(0,1fr)); }
}
.ap-logoWall__item{
  border: 1px solid rgba(11,18,32,.08);
  background: rgba(255,255,255,.85);
  border-radius: 16px;
  padding: 14px;
  display:grid;
  place-items:center;
  min-height: 62px;
}
.ap-logoWall__item img{
  max-height: 26px;
  width:auto;
  opacity:.78;
  filter: grayscale(1);
}
.ap-logoWall__item:hover img{
  opacity:.95;
  filter: grayscale(0);
}

/* FAQ layout */
.ap-faq{
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--ap-6);
  min-width:0;
}
@media (min-width: 1100px){
  .ap-faq{
    grid-template-columns: 360px 1fr;
    align-items:start;
    gap: var(--ap-8);
  }
}
.ap-toc{
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.92);
  border-radius: var(--ap-r3);
  padding: var(--ap-6);
  position: sticky;
  top: calc(var(--ap-topbar-h) + 14px);
}
.ap-toc__title{
  font-weight: 950;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.ap-toc__list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.ap-toc__list a{
  display:block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,.08);
  background: rgba(11,18,32,.02);
  color: rgba(11,18,32,.78);
  font-weight: 850;
  text-decoration:none;
}
.ap-toc__list a:hover{
  background: rgba(11,18,32,.04);
  color: var(--ap-ink);
}

.ap-qaList{ display:flex; flex-direction:column; gap: 12px; min-width:0; }
.ap-qa{
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(255,255,255,.92);
  border-radius: var(--ap-r3);
  overflow:hidden;
}
.ap-qa > summary{
  list-style:none;
  cursor:pointer;
  padding: 16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  font-weight: 950;
  letter-spacing: -0.01em;
}
.ap-qa > summary::-webkit-details-marker{ display:none; }
.ap-qa > summary::after{
  content:"+";
  width: 30px;
  height: 30px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(11,18,32,.03);
  color: rgba(11,18,32,.70);
  flex: 0 0 auto;
}
.ap-qa[open] > summary{ background: rgba(11,18,32,.03); }
.ap-qa[open] > summary::after{ content:"–"; }

.ap-qa__panel{
  padding: 0 16px 16px 16px;
  color: rgba(11,18,32,.78);
  line-height: 1.65;
}
.ap-qa__panel p{ margin-top: 10px; }
.ap-qa__panel ul{ margin-top: 10px; }
.ap-qa__panel li{ margin-top: 6px; }

/* ==========================================================================
   Legacy compatibility wrapper (so your existing include() modules render)
   Scope ONLY inside .ap-legacy
   ========================================================================== */
.ap-legacy{
  color: var(--ap-ink);
  font-family: var(--ap-font);
}
.ap-legacy a{ color: var(--ap-navy); }
.ap-legacy img{ max-width:100%; height:auto; display:block; }

.ap-legacy .container{
  width:100%;
  max-width: var(--ap-max);
  margin-inline:auto;
  padding-inline: var(--ap-gutter);
}
.ap-legacy .row{
  display:flex;
  flex-wrap:wrap;
  margin-left: -12px;
  margin-right: -12px;
}
.ap-legacy [class^="col-"], .ap-legacy [class*=" col-"]{
  padding-left: 12px;
  padding-right: 12px;
  width: 100%;
  min-width:0;
}

/* base columns */
.ap-legacy .col-12{ flex:0 0 100%; max-width:100%; }
.ap-legacy .col-6{ flex:0 0 50%; max-width:50%; }
.ap-legacy .col-4{ flex:0 0 33.333%; max-width:33.333%; }
.ap-legacy .col-3{ flex:0 0 25%; max-width:25%; }
.ap-legacy .col-2{ flex:0 0 16.666%; max-width:16.666%; }

@media (min-width: 992px){
  .ap-legacy .col-lg-4{ flex:0 0 33.333%; max-width:33.333%; }
  .ap-legacy .col-lg-8{ flex:0 0 66.666%; max-width:66.666%; }
}
@media (min-width: 1200px){
  .ap-legacy .col-xl-2{ flex:0 0 16.666%; max-width:16.666%; }
  .ap-legacy .col-xl-3{ flex:0 0 25%; max-width:25%; }
  .ap-legacy .col-xl-4{ flex:0 0 33.333%; max-width:33.333%; }
  .ap-legacy .col-xl-5{ flex:0 0 41.666%; max-width:41.666%; }
  .ap-legacy .col-xl-7{ flex:0 0 58.333%; max-width:58.333%; }
}

/* Basic buttons inside legacy blocks */
.ap-legacy .theme-btn,
.ap-legacy .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: var(--ap-tap);
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(11,18,32,.03);
  color: var(--ap-ink);
  font-weight: 900;
  text-decoration:none;
}
.ap-legacy .theme-btn:hover,
.ap-legacy .btn:hover{
  background: rgba(11,18,32,.05);
  text-decoration:none;
}
.ap-legacy .btn-primary,
.ap-legacy .btn-red,
.ap-legacy .theme-btn.btn-red{
  background: var(--ap-red);
  color:#fff;
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(225,29,72,.20);
}
.ap-legacy .btn-primary:hover,
.ap-legacy .btn-red:hover,
.ap-legacy .theme-btn.btn-red:hover{ filter: brightness(.98); }

/* Cards in legacy */
.ap-legacy .card{
  border-radius: var(--ap-r3);
  border: 1px solid rgba(11,18,32,.10);
  box-shadow: var(--ap-shadow-1);
}
/* ==========================================================================
   AP — Premium Pricing Tables (scoped)
   Prefix: ap-pricing, ap-pcard, ap-seg, ap-features
   Goal: "caro" / moderno / aire / jerarquía / no amontonado
   ========================================================================== */

/* --- Fix: botones nunca subrayados (tu base subraya todos los <a>) --- */
.ap-btn,
.ap-btn:hover,
.ap-btn:active,
.ap-btn:visited{
  text-decoration: none;
}

/* --- Fix: botón rojo SIEMPRE texto blanco (por conflictos de template/Bootstrap) --- */
.ap-btn--red,
.ap-btn--red:visited,
.ap-btn--red:hover,
.ap-btn--red:active{
  color:#fff !important;
}
.ap-btn--red i,
.ap-btn--red svg{
  color:#fff !important;
}

/* ==========================================================================
   Pricing section shell
   ========================================================================== */
.ap-pricing{
  padding-block: clamp(44px, 6vw, 92px);
  border-top: 1px solid var(--ap-border);
  border-bottom: 1px solid var(--ap-border);

  /* “Apple-like”: fondo blanco, sombras limpias, acentos sutiles */
  background:
    radial-gradient(1000px 520px at 14% -10%, rgba(11,42,91,.09), transparent 62%),
    radial-gradient(900px 420px at 88% -8%, rgba(239,68,68,.08), transparent 60%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--ap-bg) 96%, #f3f4f6 4%),
      var(--ap-bg)
    );
}

.ap-pricing .ap-container{
  /* un poco más ancho SOLO en pricing para que no se vea “apretado” */
  max-width: 1200px;
}

.ap-pricing__head{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 14px;
  margin-bottom: 22px;
}

.ap-pricing__title{
  margin:0;
  font-size: var(--ap-fs-6);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.ap-pricing__sub{
  margin:0;
  max-width: 72ch;
  color: var(--ap-muted);
  font-size: var(--ap-fs-3);
}

.ap-pricing__meta{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 10px;
  margin-top: 4px;
}

/* ==========================================================================
   Segmented control (tabs) — premium
   ========================================================================== */
.ap-seg{
  display:inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--ap-border);
  background: color-mix(in srgb, var(--ap-surface) 92%, #f3f4f6 8%);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  max-width: 100%;
}

.ap-seg__btn{
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--ap-muted);
  background: transparent;
  border: 0;
  white-space: nowrap;
}

.ap-seg__btn:hover{
  color: var(--ap-text);
}

.ap-seg__btn.is-active{
  background: #0b0f14;     /* negro “caro” */
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

@media (max-width: 520px){
  .ap-seg{
    width:100%;
    justify-content:space-between;
  }
  .ap-seg__btn{
    width: 50%;
    padding: 0 10px;
  }
}

/* ==========================================================================
   Pricing grid — evita “amontonado” en desktop
   1 col móvil → 2 cols tablet/desktop → 3 cols solo en pantallas grandes
   ========================================================================== */
.ap-pricing__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 860px){
  .ap-pricing__grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
  }
}
@media (min-width: 1240px){
  .ap-pricing__grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 20px;
  }
}

/* ==========================================================================
   Pricing card — premium
   ========================================================================== */
.ap-pcard{
  --ap-accent: var(--ap-border);
  --ap-glow: rgba(11,42,91,.10);
  --ap-icon: rgba(11,42,91,.9);

  position:relative;
  overflow:hidden;
  border-radius: 22px;
  border: 1px solid var(--ap-accent);
  background: color-mix(in srgb, var(--ap-surface) 96%, #f8fafc 4%);
  box-shadow:
    0 16px 44px rgba(0,0,0,.10),
    0 1px 0 rgba(255,255,255,.7) inset;

  padding: 22px;
  min-width:0;

  display:flex;
  flex-direction:column;
  gap: 14px;
}

@media (min-width: 860px){
  .ap-pcard{ padding: 24px; }
}

.ap-pcard::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  opacity:.9;
  background:
    radial-gradient(900px 360px at 10% 0%, var(--ap-glow), transparent 60%),
    radial-gradient(900px 360px at 92% 0%, rgba(239,68,68,.08), transparent 60%);
}

.ap-pcard > *{ position:relative; z-index:1; }

.ap-pcard__badges{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.ap-pcard__name{
  margin:0;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.ap-pcard__priceRow{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  min-width:0;
}

.ap-pcard__price{
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.ap-pcard__priceNote{
  color: var(--ap-muted);
  font-weight: 850;
  font-size: var(--ap-fs-1);
  letter-spacing: -0.01em;
}

.ap-pcard__desc{
  margin:0;
  color: var(--ap-muted);
  font-size: var(--ap-fs-2);
  overflow-wrap:anywhere;
}

.ap-pcard__divider{
  height:1px;
  width:100%;
  background: color-mix(in srgb, var(--ap-border) 72%, transparent);
  margin-top: 4px;
}

.ap-pcard__cta{
  margin-top:auto;
  padding-top: 6px;
}

/* Featured “caro” */
.ap-pcard--featured{
  border-color: color-mix(in srgb, var(--ap-primary) 28%, var(--ap-border));
  box-shadow:
    0 24px 70px rgba(0,0,0,.14),
    0 1px 0 rgba(255,255,255,.75) inset;
}

.ap-pcard--featured::after{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 4px;
  background: linear-gradient(90deg, #0a84ff, #0b2a5b, #ef4444);
  z-index: 2;
}

/* Variantes por color (sin tocar el resto del sitio) */
.ap-pcard--primary{
  --ap-accent: color-mix(in srgb, var(--ap-primary) 25%, var(--ap-border));
  --ap-glow: rgba(10,132,255,.16);
  --ap-icon: rgba(10,132,255,.95);
}

.ap-pcard--danger{
  --ap-accent: color-mix(in srgb, var(--ap-danger) 28%, var(--ap-border));
  --ap-glow: rgba(239,68,68,.16);
  --ap-icon: rgba(239,68,68,.95);
}

/* ==========================================================================
   Feature list — limpia y con checks “premium”
   ========================================================================== */
.ap-features{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-width:0;
}

.ap-features li{
  position:relative;
  padding-left: 28px;
  color: var(--ap-text);
  font-size: var(--ap-fs-2);
  line-height: 1.35;
  overflow-wrap:anywhere;
  min-width:0;
}

.ap-features li::before{
  content:"✓";
  position:absolute;
  left:0; top: 0.05em;
  width: 18px; height: 18px;
  border-radius: 7px;
  display:grid;
  place-items:center;
  font-weight: 950;
  font-size: 12px;

  background: color-mix(in srgb, var(--ap-icon) 14%, transparent);
  color: var(--ap-icon);
  border: 1px solid color-mix(in srgb, var(--ap-icon) 18%, transparent);
}

.ap-features li.ap-feat--off{
  color: var(--ap-muted);
  opacity: .95;
}
.ap-features li.ap-feat--off::before{
  content:"×";
  background: transparent;
  color: var(--ap-muted);
  border-color: color-mix(in srgb, var(--ap-border) 75%, transparent);
}

/* ==========================================================================
   Panels hidden spacing (avoid jumps)
   ========================================================================== */
.ap-pricing__panel[hidden]{ display:none !important; }

/* Dark mode polish (optional, uses your tokens) */
@media (prefers-color-scheme: dark){
  .ap-pricing{
    background:
      radial-gradient(1000px 520px at 14% -10%, rgba(10,132,255,.10), transparent 62%),
      radial-gradient(900px 420px at 88% -8%, rgba(239,68,68,.10), transparent 60%),
      linear-gradient(180deg, var(--ap-bg), var(--ap-bg));
  }

  .ap-seg__btn.is-active{
    background: #fff;
    color: #0b0f14;
  }

  .ap-pcard{
    background: color-mix(in srgb, var(--ap-surface) 92%, #0b0f14 8%);
    box-shadow: 0 18px 60px rgba(0,0,0,.55);
  }
}
