/* ═══════════════════════════════════════
   Aipolis Agent Pages — Shared Styles
   ═══════════════════════════════════════ */

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f2f1ee;
  --white: #ffffff;
  --ink: #1a1a18;
  --muted: #6b6b67;
  --border: rgba(0,0,0,0.09);
  --border-md: rgba(0,0,0,0.16);
  --r: 10px;
  /* --accent, --accent-dark, --accent-light, --accent-mid defined per-agent */
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 99;
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  padding: 0 2.5rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-l { display: flex; align-items: center; gap: 1.5rem; }
.logo { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; text-decoration: none; color: var(--ink); }
.logo span { color: #1D9E75; }
.nav-sep { width: 1px; height: 18px; background: var(--border-md); }
.nav-product { font-size: 13px; font-weight: 500; color: var(--accent); }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-btn {
  background: var(--accent); color: var(--accent-light);
  border: none; border-radius: 7px;
  padding: 9px 22px; font-size: 13px; font-weight: 500;
  font-family: 'DM Sans', sans-serif; cursor: pointer; text-decoration: none;
  transition: background .15s;
}
.nav-btn:hover { background: var(--accent-dark); }

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); position: absolute;
  left: 6px; transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 15px; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 15px; transform: rotate(-45deg);
}

/* ── HERO ── */
.hero {
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  padding: 5rem 2.5rem 4.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; user-select: none;
  font-family: 'Playfair Display', serif;
  font-size: 28vw; font-weight: 700;
  color: var(--accent-light);
  line-height: 1; z-index: 0;
}
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-light); border: 0.5px solid var(--accent-mid);
  color: var(--accent-dark); border-radius: 100px;
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 14px;
  margin-bottom: 2rem;
}
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(80px, 14vw, 140px);
  font-weight: 700; letter-spacing: -4px; line-height: .9;
  color: var(--accent); margin-bottom: .5rem;
}
.hero-label {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2.25rem;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700; letter-spacing: -1px; line-height: 1.15;
  max-width: 720px; margin: 0 auto 1.25rem;
}
.hero-headline em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 17px; font-weight: 300; color: var(--muted);
  line-height: 1.75; max-width: 540px;
  margin: 0 auto 2.5rem;
}
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-big {
  padding: 14px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none; cursor: pointer;
  display: inline-block; transition: all .15s;
}
.btn-accent { background: var(--accent); color: var(--accent-light); border: none; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 0.5px solid var(--border-md); }
.btn-ghost:hover { background: var(--bg); }

.deadline-bar {
  display: inline-flex; gap: 2rem; flex-wrap: wrap; justify-content: center;
  background: var(--bg); border: 0.5px solid var(--border);
  border-radius: 10px; padding: .875rem 2rem;
}
.db-item { font-size: 12px; color: var(--muted); }
.db-item strong { color: var(--ink); font-weight: 500; }

/* ── URGENCY STRIP ── */
.strip {
  background: var(--accent-dark); color: rgba(255,255,255,.75);
  padding: 1rem 2.5rem; text-align: center;
  font-size: 13px; font-weight: 300; letter-spacing: .25px;
}
.strip strong { color: #fff; font-weight: 500; }
.strip a { color: var(--accent-mid); text-decoration: none; font-weight: 500; }

/* ── NUMBERS ── */
.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
}
.num-item {
  padding: 2.25rem 2rem;
  border-right: 0.5px solid var(--border);
  text-align: center;
}
.num-item:last-child { border-right: none; }
.num-val {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 700; color: var(--ink); line-height: 1;
  margin-bottom: 6px;
}
.num-val.accent { color: var(--accent); }
.num-label { font-size: 12px; color: var(--muted); font-weight: 300; line-height: 1.4; }

/* ── SECTION BASE ── */
.s { padding: 5rem 2.5rem; max-width: 1040px; margin: 0 auto; }
.s-label {
  font-size: 10px; font-weight: 500; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted); margin-bottom: .875rem;
}
.s-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700; letter-spacing: -.75px; line-height: 1.2;
  margin-bottom: .875rem;
}
.s-title em { font-style: italic; color: var(--accent); }
.s-sub {
  font-size: 15px; color: var(--muted); font-weight: 300;
  line-height: 1.75; max-width: 520px; margin-bottom: 2.5rem;
}

/* ── STEPS ── */
.steps {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}
.step {
  padding: 2rem 1.5rem;
  border-right: 0.5px solid var(--border);
}
.step:last-child { border-right: none; }
.step-tag {
  display: inline-block; font-size: 10px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  background: var(--accent-light); color: var(--accent-dark);
  border: 0.5px solid var(--accent-mid);
  padding: 3px 9px; border-radius: 100px; margin-bottom: 1.1rem;
}
.step-n {
  font-family: 'Playfair Display', serif;
  font-size: 38px; font-weight: 700;
  color: #dddbd5; line-height: 1; margin-bottom: .875rem;
}
.step-t { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.step-d { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.65; }

/* ── PLANS ── */
.plans {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 14px;
  margin-bottom: 2.5rem;
}
.plan {
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: var(--r); padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.plan:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.plan.star { border: 2px solid var(--accent); }
.plan-tag {
  display: inline-block; font-size: 9px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px; margin-bottom: 1.1rem; width: fit-content;
}
.pt-pop  { background: var(--accent-light); color: var(--accent-dark); border: 0.5px solid var(--accent-mid); }
.pt-std  { background: var(--bg); color: var(--muted); border: 0.5px solid var(--border); }
.plan-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.plan-price {
  font-family: 'Playfair Display', serif;
  font-size: 38px; font-weight: 700; line-height: 1;
  margin-bottom: 3px;
}
.plan-period { font-size: 11px; color: var(--muted); font-weight: 300; margin-bottom: 1rem; }
.plan-desc { font-size: 12px; color: var(--muted); font-weight: 300; line-height: 1.65; margin-bottom: 1.25rem; }
.plan-list { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 7px; margin-bottom: 1.5rem; }
.plan-list li {
  font-size: 12px; color: var(--muted); font-weight: 300;
  padding-left: 16px; position: relative; line-height: 1.4;
}
.plan-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-size: 11px; }
.plan-btn {
  display: block; text-align: center; padding: 10px 16px;
  border-radius: 7px; font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  font-family: 'DM Sans', sans-serif; transition: all .15s;
}
.pb-accent { background: var(--accent); color: var(--accent-light); border: none; }
.pb-accent:hover { background: var(--accent-dark); }
.pb-ghost { background: transparent; color: var(--ink); border: 0.5px solid var(--border-md); }
.pb-ghost:hover { background: var(--bg); }

.plans-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 2.5rem; }

.legal-row {
  background: var(--white); border: 0.5px solid var(--border);
  border-radius: var(--r); padding: 1.75rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem; flex-wrap: wrap;
}
.legal-tag {
  display: inline-block; font-size: 9px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
  background: var(--accent-light); color: var(--accent-dark);
  border: 0.5px solid var(--accent-mid); margin-bottom: .875rem;
}
.legal-name { font-size: 15px; font-weight: 500; margin-bottom: 3px; }
.legal-price { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; }
.legal-desc { font-size: 12px; color: var(--muted); font-weight: 300; line-height: 1.6; max-width: 380px; margin-top: 6px; }
.legal-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.legal-list li { font-size: 12px; color: var(--muted); font-weight: 300; padding-left: 16px; position: relative; }
.legal-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-size: 11px; }

/* ── DISCLOSURE ── */
.disclosure {
  background: var(--bg);
  border-top: 0.5px solid var(--border);
  padding: 2.5rem;
}
.disc-inner {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
}
.disc-title {
  font-size: 10px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 7px; margin-bottom: .75rem;
}
.disc-icon {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-light); border: 0.5px solid var(--accent-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: var(--accent-dark);
}
.disc-body { font-size: 12px; color: var(--muted); font-weight: 300; line-height: 1.7; margin-bottom: .625rem; }
.disc-link { font-size: 11px; color: var(--accent); font-weight: 500; text-decoration: none; }

/* ── CTA CLOSE ── */
.cta-close {
  background: var(--white);
  border-top: 0.5px solid var(--border);
  padding: 5.5rem 2rem; text-align: center;
}
.cta-close .pill { margin-bottom: 1.75rem; }
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700; letter-spacing: -1.5px;
  line-height: 1.1; margin-bottom: 1rem;
}
.cta-title em { font-style: italic; color: var(--accent); }
.cta-sub {
  font-size: 16px; color: var(--muted); font-weight: 300;
  line-height: 1.7; max-width: 460px;
  margin: 0 auto 2.5rem;
}
.cta-fine {
  margin-top: 1.5rem; font-size: 11px; color: var(--muted);
  font-weight: 300; max-width: 500px;
  margin-left: auto; margin-right: auto; line-height: 1.6;
}
.cta-fine a { color: var(--accent); text-decoration: none; }

/* ── FOOTER ── */
footer {
  background: var(--white); border-top: 0.5px solid var(--border);
  padding: 1.75rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; text-decoration: none; color: var(--ink); }
.footer-logo span { color: #1D9E75; }
.footer-links { display: flex; gap: 1.75rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 11px; color: var(--muted); text-decoration: none; }
.footer-copy { font-size: 11px; color: var(--muted); }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--accent); color: #fff;
  padding: 8px 16px; z-index: 10000;
  font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── FOCUS ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--white); padding: 1rem 1.25rem; gap: 1rem;
    border-bottom: 0.5px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .num-item:nth-child(2) { border-right: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; }
  .plans { grid-template-columns: 1fr; }
  .plans-2 { grid-template-columns: 1fr; }
  .disc-inner { grid-template-columns: 1fr; }
  .s { padding: 3.5rem 1.25rem; }
  footer { padding: 1.5rem 1.25rem; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 0.5px solid var(--border); }
  .step:last-child { border-bottom: none; }
  .hero-bg { font-size: 52vw; }
  .legal-row { flex-direction: column; }
}
