/* AI-boken v2 – premium-omgången. Varm off-white "papper", djup teal-grön,
   dämpad salvie som accent, sajtens gröna ENDAST på knappar. Mobile-first. */

:root {
  --aib-ink: #14231f;
  --aib-ink-soft: #4c5a53;
  --aib-paper: #f7f5f1;
  --aib-paper-2: #efece3;
  --aib-teal: #0c3330;
  --aib-teal-2: #12433d;
  --aib-sage: #9fc3ab;
  --aib-sage-deep: #5e8a73;
  --aib-cream: #f2efe6;
  --aib-green: #5fd086;
  --aib-green-dk: #0d8a44;
  --aib-line: rgba(20, 35, 31, 0.13);
  --aib-line-dark: rgba(255, 255, 255, 0.16);
  --aib-wrap: 68rem;
  --aib-r: 14px;
}

/* Semplice gör .is-frontend #content-holder absolut → body höjd 0. Normalt flöde: */
.aib-body { background: var(--aib-paper); }
.is-frontend #content-holder.aib,
.aib-body #content-holder.aib {
  position: static; width: auto; min-height: 100vh; top: auto; left: auto;
}
.aib {
  background: var(--aib-paper);
  color: var(--aib-ink);
  font-family: 'Neue-Plak-Regular', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.72;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.aib * { box-sizing: border-box; }
.aib h1, .aib h2, .aib h3 { margin: 0; }
.aib p { margin: 0; }

.aib-wrap { max-width: var(--aib-wrap); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

.aib-eyebrow, .aib-section-label, .aib-proof-label {
  font-family: 'Neue-Plak-SemiBold', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--aib-sage-deep);
}
.aib-section-label { display: block; margin-bottom: 0.9rem; }
.aib-on-dark { color: var(--aib-sage); }

/* id-scopade (#content-holder.aib) för att slå Semplices #content-holder h1/h2/h3 */
#content-holder.aib h1 {
  font-family: 'Neue-Plak-Extended-SemiBold', sans-serif;
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
#content-holder.aib h2 {
  font-family: 'Neue-Plak-Extended-SemiBold', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
#content-holder.aib h3 { font-family: 'Neue-Plak-SemiBold', sans-serif; font-size: 1.16rem; line-height: 1.3; }

/* Knappar – grön bara här, för varumärkeskonsistens */
.aib-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: 'Neue-Plak-SemiBold', sans-serif; font-size: 1.02rem;
  text-decoration: none; padding: 0.95rem 1.8rem; border-radius: 8px; border: 0; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.aib-btn:active { transform: translateY(1px); }
.aib-btn-primary { background: var(--aib-green); color: #08211d; }
.aib-btn-primary:hover { background: #55c47b; box-shadow: 0 10px 26px -12px rgba(13, 138, 68, 0.55); }
.aib-btn-block { width: 100%; }
.aib-btn-ghost { background: transparent; color: var(--aib-cream); border: 1px solid var(--aib-line-dark); }
.aib-btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--aib-sage); }

/* ---------- HERO ---------- */
.aib-hero {
  background:
    radial-gradient(120% 100% at 85% -10%, var(--aib-teal-2) 0%, var(--aib-teal) 58%);
  color: var(--aib-cream);
  padding: calc(6rem + 3vw) 0 3.5rem;
}
.aib-hero-inner { max-width: var(--aib-wrap); margin: 0 auto; padding: 0 1.5rem; display: grid; gap: 2.4rem; }
.aib-hero h1 { color: #fff; }
.aib-h1-accent { color: var(--aib-sage); }
.aib-subhead { margin-top: 1.5rem; font-size: 1.2rem; line-height: 1.55; color: #e4ede6; max-width: 32ch; }
.aib-cred { margin-top: 1.6rem; font-size: 0.95rem; line-height: 1.6; color: #a9c4b3; max-width: 44ch; }

.aib-proofstrip { margin-top: 2rem; border-top: 1px solid var(--aib-line-dark); padding-top: 1.3rem; }
.aib-proof-label { display: block; margin-bottom: 0.7rem; }
.aib-proof-logos { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; padding: 0; margin: 0; }
.aib-proof-logos li { font-family: 'Neue-Plak-SemiBold', sans-serif; font-size: 0.95rem; color: #cdddd2; }
.aib-proof-logos li.aib-proof-more { font-family: 'Neue-Plak-Regular', sans-serif; color: var(--aib-sage-deep); }

/* Beställningskort */
.aib-order {
  background: var(--aib-paper);
  color: var(--aib-ink);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.5);
}
.aib-order-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.3rem; }
.aib-order-cover { width: 88px; height: auto; border-radius: 4px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5); flex: 0 0 auto; }
#content-holder.aib .aib-order-head h2 { font-size: 1.5rem; line-height: 1.08; }
.aib-price { margin-top: 0.35rem; font-family: 'Neue-Plak-SemiBold', sans-serif; font-size: 0.98rem; }
.aib-price-sub { font-size: 0.86rem; color: var(--aib-ink-soft); margin-top: 0.15rem; }

.aib-row { display: grid; gap: 0.8rem; }
.aib-field { margin-bottom: 0.8rem; }
.aib-field label { display: block; font-family: 'Neue-Plak-SemiBold', sans-serif; font-size: 0.85rem; margin-bottom: 0.3rem; }
.aib-opt { font-family: 'Neue-Plak-Regular', sans-serif; color: var(--aib-ink-soft); font-weight: 400; }
.aib-field input {
  width: 100%; font: inherit; padding: 0.75rem 0.85rem;
  border: 1px solid #d6ddd6; border-radius: 8px; background: #fff;
}
.aib-field input:focus { outline: 2px solid var(--aib-green); border-color: var(--aib-green); }
.aib-err { color: #b23b2e; font-size: 0.82rem; margin-top: 0.25rem; }
.aib-err:empty { display: none; }
.aib-err-block { margin: -0.2rem 0 0.7rem; }
.aib-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aib-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; color: var(--aib-ink-soft); margin: 0.4rem 0 0.9rem; }
/* Semplice-temat sätter global input{appearance:none;width:100%;height:40px} vilket
   dödar den nativa kryssrutan. Återställ den med hög specificitet. */
#content-holder.aib .aib-consent input[type='checkbox'] {
  -webkit-appearance: auto; -moz-appearance: auto; appearance: auto;
  width: 1.2rem; height: 1.2rem; min-height: 0; padding: 0; margin: 0.15rem 0 0;
  flex: 0 0 auto; background: #fff; accent-color: var(--aib-green-dk); cursor: pointer;
}
.aib-consent a { color: var(--aib-green-dk); }
.aib-order-fine { margin-top: 0.85rem; font-size: 0.76rem; color: #7c877f; text-align: center; }

.aib-checkout { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px dashed #cdd6ce; text-align: center; }
.aib-checkout-thanks { font-family: 'Neue-Plak-SemiBold', sans-serif; margin-bottom: 0.9rem; }
.aib-publit { display: flex; justify-content: center; }

/* ---------- UTFALL ---------- */
.aib-outcomes { padding: 4rem 0 1rem; }
.aib-outcome-grid { display: grid; gap: 1.6rem; }
.aib-outcome { border-top: 2px solid var(--aib-line); padding-top: 1.1rem; }
.aib-outcome-n { font-family: 'Neue-Plak-Extended-SemiBold', sans-serif; font-size: 0.95rem; color: var(--aib-sage-deep); }
#content-holder.aib .aib-outcome h3 { margin: 0.5rem 0 0.5rem; font-size: 1.26rem; }
.aib-outcome p { color: var(--aib-ink-soft); }

/* ---------- INNEHÅLL ---------- */
.aib-contents { padding: 4rem 0; }
.aib-contents-head { margin-bottom: 2rem; max-width: 40ch; }
.aib-contents-head h2 { margin-top: 0.3rem; }
.aib-parts { list-style: none; padding: 0; margin: 0; }
.aib-part { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; padding: 1.3rem 0; border-top: 1px solid var(--aib-line); }
.aib-part:last-child { border-bottom: 1px solid var(--aib-line); }
.aib-part-n { font-family: 'Neue-Plak-Extended-SemiBold', sans-serif; font-size: 1.1rem; color: var(--aib-sage-deep); }
.aib-part h3 { margin-bottom: 0.2rem; }
.aib-part p { color: var(--aib-ink-soft); font-size: 1rem; }
.aib-contents-foot { margin-top: 1.6rem; color: var(--aib-ink-soft); font-size: 0.98rem; }

/* ---------- FÖRFATTARE ---------- */
.aib-authors { padding: 4rem 0; background: var(--aib-paper-2); }
.aib-authors-head { max-width: 44ch; margin-bottom: 2.2rem; }
.aib-authors-head h2 { margin-top: 0.3rem; }
.aib-authors-intro { margin-top: 0.9rem; color: var(--aib-ink-soft); }
.aib-authors-grid { display: grid; gap: 1.2rem; }
.aib-author { background: var(--aib-paper); border: 1px solid var(--aib-line); border-radius: var(--aib-r); padding: 1.5rem; }
#content-holder.aib .aib-author h3 { font-size: 1.2rem; }
.aib-author-role { font-family: 'Neue-Plak-SemiBold', sans-serif; color: var(--aib-sage-deep); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0.25rem 0 0.7rem; }
.aib-author p { color: var(--aib-ink-soft); font-size: 0.98rem; }
.aib-author-meta { margin-top: 0.7rem; font-style: italic; font-size: 0.86rem; color: #7c877f; }

.aib-authenticity { margin: 2.4rem 0 0; display: grid; gap: 0.8rem; justify-items: start; }
.aib-authenticity img { width: 100%; max-width: 360px; height: auto; border-radius: var(--aib-r); }
.aib-authenticity figcaption { font-size: 0.9rem; color: var(--aib-ink-soft); font-style: italic; }

/* ---------- MELLAN-CTA ---------- */
.aib-midcta { padding: 3.5rem 0; }
.aib-midcta-inner {
  background: var(--aib-teal); color: var(--aib-cream); border-radius: 20px;
  padding: 2.2rem 1.8rem; display: grid; gap: 1.4rem;
}
.aib-midcta-inner h2 { color: #fff; }
.aib-midcta-inner p { margin-top: 0.5rem; color: #cdddd2; }

/* ---------- UPSELL ---------- */
.aib-more { padding: 0 0 4.5rem; }
.aib-more-grid { background: radial-gradient(120% 130% at 12% 0%, var(--aib-teal-2), var(--aib-teal)); color: var(--aib-cream); border-radius: 22px; padding: 2.2rem 1.8rem; display: grid; gap: 2rem; }
.aib-more-copy h2 { color: #fff; margin-top: 0.4rem; }
.aib-more-copy > p { margin: 1rem 0 1.6rem; color: #cdddd2; max-width: 46ch; }
.aib-more-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.aib-more-list li { border-top: 1px solid var(--aib-line-dark); padding-top: 1rem; }
.aib-more-list h3 { color: var(--aib-sage); }
.aib-more-list p { color: #cdddd2; font-size: 0.98rem; margin-top: 0.25rem; }

/* ---------- STICKY CTA ---------- */
.aib-sticky {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
  bottom: 1rem; z-index: 60;
  background: var(--aib-green); color: #08211d;
  font-family: 'Neue-Plak-SemiBold', sans-serif; text-decoration: none;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.28s ease; opacity: 0.98;
}
.aib-sticky.is-shown { transform: translateX(-50%) translateY(0); }

/* ============ TABLET / DESKTOP ============ */
@media (min-width: 768px) {
  .aib-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .aib-outcome-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .aib-authors-grid { grid-template-columns: repeat(3, 1fr); }
  .aib-midcta-inner { grid-template-columns: 1fr auto; align-items: center; padding: 2.6rem 2.6rem; }
  .aib-more-grid { grid-template-columns: 1fr 1fr; padding: 3rem 2.8rem; align-items: center; }
}

@media (min-width: 960px) {
  .aib-hero { padding-top: calc(7rem + 1vw); }
  .aib-hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: start; }
  .aib-hero-copy { padding-top: 1rem; }
  .aib-order { position: sticky; top: 6rem; }
  .aib-order-cover { width: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .aib-btn, .aib-sticky { transition: none; }
}
