/* =======================
   Foundation Page (foundation.html)
   Scoped overrides for body.foundation-page
   Cleaned: removed unused sections not present in current HTML
======================= */

/* Design tokens */
:root {
  --sf-black: #000;
  --sf-white: #fff;
  --sf-ink: #0b0b0b;
  --sf-gray: rgb(150, 149, 149);
  --sf-border: rgba(0, 0, 0, 0.6);
}

/* Page base */
body.foundation-page {
  background: var(--sf-white) !important;
  background-image: none !important;
}

/* Disable any global overlay used on other pages */
body.foundation-page::before {
  content: none !important;
}

/* Layout: match fixed sidebar width (desktop) */
body.foundation-page .site-main {
  margin-left: 100px;                 /* matches the fixed sidebar width */
  width: calc(100% - 100px);          /* prevents centering under the sidebar */
  padding: 40px;
  box-sizing: border-box;
}

/* Single authoritative column for foundation page */
body.foundation-page .foundation-column {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Hero spacing + centering */
body.foundation-page .hero {
  padding: 0 0 10px;
  text-align: center;
}

/* Hero label + title */
body.foundation-page .hero-label {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 12px;
  color: var(--sf-black);
}



body.foundation-page .hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  margin-bottom: 1rem;
  padding: 0;
  color: var(--sf-black);
  text-shadow: none;
  animation: fadeInUp 1s ease-out;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  overflow: hidden;
}

/* (If present) generic hero subtitle */
body.foundation-page .hero-subtitle {
  font-family: 'Oswald', serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--sf-gray);
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fadeInUp 1.2s ease-out both;
}

/* (If present) foundation-specific subtitle line */
body.foundation-page .foundation-hero-subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #777;
  margin: 0.75rem auto 2.25rem;
  text-align: center;
}

/* Accent lines */
body.foundation-page .accent-line-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  margin-bottom: 20px;
}

body.foundation-page .accent-line {
  height: 3px;
  width: 100px;
  background-color: var(--sf-black);
  opacity: 1;
  transition: all 0.3s ease;
  border: none;
  animation: expandLine 1.2s ease forwards, fadeInUp 1s ease-out both;
}

/* Intro block */
body.foundation-page .foundation-intro-block {
  margin: 0 auto;
  text-align: center;
}

body.foundation-page .foundation-intro-block .hero-title {
  margin-top: 0;
}

body.foundation-page .foundation-intro {
  font-family: 'Spectral', serif;
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Links (scoped)
   Keep link styling neutral ONLY inside the foundation page content column.
   Do NOT override sidebar/header navigation link colors. */
body.foundation-page .foundation-column a,
body.foundation-page .foundation-column a:visited {
  color: inherit;
}
/* =========================================
   FOUNDATION — PRODUCT HERO (IMAGE + CARD)
   Styles ONLY the product image and purchase card
   Uses your existing HTML class names
========================================= */

/* Section spacing */
body.foundation-page .foundation-product-hero {
  margin: 18px auto 44px;
}

/* Grid: image left, card right */
body.foundation-page .foundation-product-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 92px;
  align-items: center; /* ensures vertical alignment matches mock */
}

/* Image frame */
body.foundation-page .foundation-hero-media {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);

  margin: 0; /* reset default figure margin */
}

/* Mock-like crop behavior */
body.foundation-page .foundation-hero-media img {
  display: block;
  width: 100%;
  height: clamp(240px, 28vw, 340px); /* controls “crop factor” */
  object-fit: cover;
  object-position: 50% 40%; /* lifts framing slightly like your mock */
}

/* Purchase card frame */
body.foundation-page .foundation-purchase-card {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  align-self: center;

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);

  padding: 28px 28px 22px;
}

/* Price row: "$495" + "one-time payment" */
body.foundation-page .foundation-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
}

body.foundation-page .foundation-price-amount {
  font-family: 'Spectral', serif;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

body.foundation-page .foundation-price-term {
  font-family: 'Spectral', serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Lock line */
body.foundation-page .foundation-purchase-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;

  font-family: 'Spectral', serif;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.70);
}

body.foundation-page .foundation-purchase-meta i {
  color: rgb(0, 0, 0);
}

/* CTA button — mock-like “light plate” */
body.foundation-page .foundation-purchase-button {
  display: block;
  width: 100%;
  text-align: center;

  font-family: 'Spectral', serif;
  font-size: 1.25rem;
  font-weight: 400;

  padding: 16px 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.35);

  background: rgb(0, 0, 0);
  color: #ffffff;

  text-decoration: none;

  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 8px 22px rgba(0, 0, 0, 0.35);  
}
/* Center the CTA button inside the purchase card */
body.foundation-page .foundation-purchase-card .foundation-purchase-button{
  width: 300px;   /* gives it room to actually center */
  margin: 16px auto 0;       /* centers horizontally */
  text-align: center;
}

body.foundation-page .foundation-purchase-button:hover {
  background: rgba(255, 255, 255, 0.98);
  color: #000;
}

/* Guarantee line */
body.foundation-page .foundation-guarantee {
  margin: 14px 0 0;
  text-align: center;

  font-family: 'Spectral', serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}
/* FORCE button text color (beats style.css) */
body.foundation-page .foundation-purchase-card a.foundation-purchase-button {
  background: #000;
  color: #fff !important;
  border: 1px solid #000;
}
body.foundation-page .foundation-purchase-card a.foundation-purchase-button:hover {
  background: #fff;
  color: #000 !important;
  border-color: #000;
}

/* Responsive: stack image over card */
@media (max-width: 980px) {
  body.foundation-page .foundation-product-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  body.foundation-page .foundation-purchase-card {
    justify-self: start;
    max-width: 560px;
  }

  body.foundation-page .foundation-hero-media img {
    height: clamp(240px, 42vw, 360px);
  }
}

/* Responsive: convert layout to full width + mobile header behavior */
@media (max-width: 767px) {
  body.foundation-page .site-main {
    margin-left: 0;
    width: 100%;
    padding: 28px 22px 70px;
  }

  /* Turn the fixed sidebar into a top bar on foundation page */
  body.foundation-page .site-sidebar {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    padding: 20px;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }

  /* Enable hamburger at this breakpoint */
  body.foundation-page .hamburger {
    display: flex;
  }

  /* Collapse menu until toggled */
  body.foundation-page .nav-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    margin-top: 20px;
  }

  body.foundation-page .nav-menu.active {
    display: flex;
  }

  /* Hide social icons in the top-bar layout */
  body.foundation-page .social-icons {
    display: none;
  }

  /* Un-rotate / normalize logo in the top-bar layout */
  body.foundation-page .logo img {
    transform: none;
    position: static;
    width: 140px;
    height: auto;
    margin: 0;
  }
}
/* --- Purchase card text color correction --- */
body.foundation-page .foundation-purchase-card {
  color: rgb(0, 0, 0);
}

/* Price stays dominant */
body.foundation-page .foundation-price-amount {
  color: #000000;
}

/* Secondary price text */
body.foundation-page .foundation-price-term {
  color: rgb(0, 0, 0);
}

/* Lock line text */
body.foundation-page .foundation-purchase-meta {
  color: rgb(0, 0, 0);
  margin-left: 40px;
}

/* Guarantee text should be quieter */
body.foundation-page .foundation-guarantee {
  color: rgb(0, 0, 0);
}
/* --- Purchase card lock line alignment fix --- */
body.foundation-page .foundation-purchase-meta {
  display: flex;
  align-items: center;
  gap: 10px;              /* space between icon and text */
  padding-left: 4px;     /* nudges entire line slightly right */
}

/* Lock icon sizing + alignment */
body.foundation-page .foundation-purchase-meta i {
  font-size: 0.9rem;
  opacity: 0.75;
  transform: translateY(-1px); /* optical vertical correction */
}
/* Explicitly color the lock icon */
.foundation-purchase-meta i {
  color: #000;
  font-size: 0.9rem;
  margin-right: 6px;
}
/* =========================================
   FOUNDATION — BELOW SECTION (COPY + PILLARS)
   Styles ONLY the section shown in your screenshot.
========================================= */

body.foundation-page .foundation-below{
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 72px;
  align-items: start;
  margin-top: 56px;
  padding-bottom: 60px;
}

/* LEFT: Copy column */
body.foundation-page .foundation-copy-col{
  min-width: 0;
}

body.foundation-page .foundation-section-title{
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.6rem, 3.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(0, 0, 0);
}

body.foundation-page .foundation-copy{
  font-family: "Spectral", serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  margin: 0 0 12px;
  color: rgba(0,0,0);
  max-width: 70ch;
}

/* Checklist: two columns of bullets (each UL is a column) */
body.foundation-page .foundation-checklist{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 70px;
  margin-top: 26px;
}

body.foundation-page .foundation-checklist ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

body.foundation-page .foundation-checklist li{
  position: relative;
  padding-left: 28px;
  margin: 14px 0;
  font-family: "Spectral", serif;
  font-size: 1.20rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(0,0,0);
}

/* Checkmark */
body.foundation-page .foundation-checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 1.05rem;
  color: rgba(0, 0, 0);
}

/* RIGHT: Pillars */
body.foundation-page .foundation-pillars{
  min-width: 0;
  padding-top: 6px;
}

body.foundation-page .foundation-pillars .pillar{
  font-family: "Oswald", sans-serif;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1.25;
  margin: 0 0 14px;
  color: rgba(0,0,0);
}

body.foundation-page .foundation-pillars .pillar-subtext{
  margin: 26px 0 0;
  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(0,0,0);
  max-width: 36ch;
}

/* Responsive */
@media (max-width: 980px){
  body.foundation-page .foundation-below{
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 44px;
  }

  body.foundation-page .foundation-checklist{
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
/* ============================
   WHAT YOU GET — FOUNDATION
============================ */

body.foundation-page .foundation-what-you-get {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* Section title */
body.foundation-page .foundation-what-you-get-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: #000;
}

/* Lead paragraph */
body.foundation-page .foundation-what-you-get-lede {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.3rem;
  line-height: 1.7;
  color: rgb(0, 0, 0);
  max-width: 62ch;
  margin: 0 0 28px;
}

/* List container */
body.foundation-page .foundation-what-you-get-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px 68px;
}

/* Individual items */
body.foundation-page .foundation-what-you-get-list li {
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.88);
  position: relative;
  padding-left: 22px;
}

/* Checkmark */
body.foundation-page .foundation-what-you-get-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.7);
}

/* Emphasis inside list */
body.foundation-page .foundation-what-you-get-list strong {
  font-weight: 600;
}

/* Closing paragraph */
body.foundation-page .foundation-what-you-get-closer {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.3rem;
  line-height: 1.7;
  color: rgb(0, 0, 0);
  max-width: 65ch;
  margin: 0;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 900px) {
  body.foundation-page .foundation-what-you-get-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
/* ============================
   MOBILE SAFETY OVERRIDES
============================ */
@media (max-width: 767px) {
  /* Keep content comfortable on small screens */
  body.foundation-page .site-main {
    padding: 22px 16px 60px;
  }

  /* Remove excessive gaps on stacked layouts */
  body.foundation-page .foundation-product-hero {
    margin: 12px auto 28px;
  }

  body.foundation-page .foundation-product-grid {
    gap: 18px;
  }

  /* Make card + button scale to screen */
  body.foundation-page .foundation-purchase-card {
    max-width: 100%;
  }

  body.foundation-page .foundation-purchase-card .foundation-purchase-button {
    width: 100%;
    margin: 14px 0 0;
  }

  /* Stop the lock line from drifting right */
  body.foundation-page .foundation-purchase-meta {
    margin-left: 0;
    padding-left: 0;
  }

  /* Reduce heavy list spacing */
  body.foundation-page .foundation-what-you-get-list {
    gap: 14px;
  }

  body.foundation-page .foundation-what-you-get-list li {
    font-size: 1.1rem;
  }
}
@media (max-width: 767px) {
  body.foundation-page .foundation-purchase-card {
    max-width: 92%;
    margin: 0 auto;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  }
}
/* =========================================
   FOUNDATION — PURE DARK INVERT (SAFE)
   Inverts content + sets black background
   Header and footer untouched
========================================= */

/* Set the canvas behind Foundation content to black */
body.foundation-page {
  background: #000 !important;
}

/* Invert only the Foundation content area */
body.foundation-page .site-main {
  background: transparent;
  filter: invert(1) hue-rotate(180deg);
}

/* Re-invert media so images render normally */
body.foundation-page .site-main img,
body.foundation-page .site-main video,
body.foundation-page .site-main iframe {
  filter: invert(1) hue-rotate(180deg);
}
/* =========================================
   FOUNDATION — POLISH PASS (CONTENT ONLY)
   Paste ABOVE your invert() block
   Improves: rhythm, typography, surfaces, focus states
========================================= */

body.foundation-page .site-main {
  /* smoother type rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

body.foundation-page .foundation-column {
  /* cleaner vertical rhythm */
  padding-top: 10px;
}

/* ---------------------------
   TYPE RHYTHM + HIERARCHY
--------------------------- */

/* Reduce the “shouty” feel from letter-spacing on smaller widths */
@media (max-width: 767px) {
  body.foundation-page .hero-title {
    letter-spacing: 0.02em;
  }
  body.foundation-page .foundation-hero-subtitle {
    letter-spacing: 0.16em;
    line-height: 1.35;
  }
}

/* Make section titles feel like a system */
body.foundation-page .foundation-section-title {
  margin-bottom: 10px; /* tighter */
}

/* Make body copy read cleaner */
body.foundation-page .foundation-what-you-get-lede,
body.foundation-page .foundation-what-you-get-closer {
  max-width: 68ch;     /* slightly wider for better flow */
  line-height: 1.75;
}

/* ---------------------------
   SECTION SEPARATORS + SPACING
--------------------------- */

body.foundation-page .foundation-below {
  /* reduce the “floaty emptiness” */
  margin-top: 44px;
  padding-bottom: 44px;
}

body.foundation-page .foundation-what-you-get {
  /* more intentional “section start” */
  margin-top: 14px;
  padding-top: 14px;
}

/* If you want the divider line to feel more premium */
body.foundation-page .foundation-what-you-get {
  border-top-width: 1px;
}

/* ---------------------------
   CARDS / SURFACES
--------------------------- */

body.foundation-page .foundation-hero-media,
body.foundation-page .foundation-purchase-card {
  border-radius: 14px; /* more modern than 10px */
}

/* give the image a subtle “premium” edge */
body.foundation-page .foundation-hero-media {
  position: relative;
  overflow: hidden;
}

/* subtle hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
  body.foundation-page .foundation-hero-media img {
    transition: transform 380ms ease, filter 380ms ease;
  }
  body.foundation-page .foundation-hero-media:hover img {
    transform: scale(1.015);
    filter: contrast(1.02);
  }

  body.foundation-page .foundation-purchase-card {
    transition: transform 280ms ease, box-shadow 280ms ease;
  }
  body.foundation-page .foundation-purchase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 70px rgba(0,0,0,0.55);
  }
}

/* ---------------------------
   CTA BUTTON — more “designed”
--------------------------- */

body.foundation-page a.foundation-purchase-button {
  border-radius: 10px;
  transition: transform 160ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
}

body.foundation-page a.foundation-purchase-button:active {
  transform: translateY(1px);
}

/* Accessible focus ring (keyboard users) */
body.foundation-page a.foundation-purchase-button:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.55);
  outline-offset: 3px;
}

/* ---------------------------
   “WHAT YOU GET” LIST — tighter + cleaner
--------------------------- */

body.foundation-page .foundation-what-you-get-list {
  gap: 26px 56px;  /* less airy than 38/68, still premium */
}

body.foundation-page .foundation-what-you-get-list li {
  /* your 1.3rem is large; this keeps it premium without feeling bulky */
  font-size: 1.18rem;
  line-height: 1.55;
  padding-left: 26px;
}

/* Better checkmark alignment */
body.foundation-page .foundation-what-you-get-list li::before {
  top: 0.18em;
  opacity: 0.85;
}

/* ---------------------------
   PILLARS — align, reduce “randomness”
--------------------------- */

body.foundation-page .foundation-pillars {
  padding-top: 4px;
}

body.foundation-page .foundation-pillars .pillar {
  letter-spacing: 0.02em;
}

/* ---------------------------
   MOBILE — remove awkward “wide card” feeling
--------------------------- */

@media (max-width: 767px) {
  body.foundation-page .foundation-product-hero {
    margin-bottom: 22px;
  }

  body.foundation-page .foundation-purchase-card {
    max-width: 100%;
    padding: 20px 18px;
  }

  body.foundation-page .foundation-purchase-card .foundation-purchase-button {
    width: 100%;
    margin-top: 12px;
  }

  body.foundation-page .foundation-what-you-get-list li {
    font-size: 1.08rem;
  }
}
/* Access Foundation auth choice modal (scoped by ids/classes) */
.sf-auth-overlay[hidden]{ display:none; }

.sf-auth-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
}

.sf-auth-modal{
  position: relative;
  width: min(520px, calc(100% - 32px));
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(10,10,10,0.92);
  box-shadow: 0 30px 90px rgba(0,0,0,0.75);
  padding: 22px 20px 18px;
  color: rgba(255,255,255,0.92);
}

.sf-auth-kicker{
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.75;
}

.sf-auth-title{
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 10px 0 6px;
  font-size: 1.6rem;
}

.sf-auth-sub{
  font-family: "Spectral", serif;
  margin: 0;
  line-height: 1.6;
  opacity: 0.80;
}

.sf-auth-actions{
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.sf-auth-btn{
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.sf-auth-btn-primary{
  background: #fff;
  color: #000;
  border: 1px solid rgba(255,255,255,0.85);
}

.sf-auth-btn-primary:hover{
  background: #000;
  color: #fff;
  border-color: rgba(255,255,255,0.85);
}

.sf-auth-btn-ghost{
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.22);
}

.sf-auth-btn-ghost:hover{
  background: rgba(255,255,255,0.92);
  color: #000;
  border-color: rgba(255,255,255,0.30);
}

.sf-auth-close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}