/* ==================================================
   Nuclear Fancy Pants Edition™ — NUCLEAR+++
   File: /assets/public/css/global.css
   Description: Shared styles for AutoMarketer AI public marketing pages
   Last Edited: 2026-04-14
   ================================================== */

@import url('../../css/fonts.css');

/* --------------------------------------------------
   Reset and base
   -------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clay:          #D97757;
  --clay-dark:     #C0623E;
  --clay-light:    #F5EDE8;
  --stone:         #6B6359;
  --stone-light:   #9B9189;
  --ink:           #1A1714;
  --bg:            #F9FAFB;
  --white:         #FFFFFF;
  --border:        #E7DDD5;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 2px 16px rgba(26, 23, 20, 0.06);
  --shadow-lg:     0 8px 40px rgba(26, 23, 20, 0.10);
  --transition:    0.18s ease;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

body.amai-marketing {
  background: var(--bg);
}

h1,
h2,
h3,
h4 {
  font-family: 'Nunito', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: var(--clay);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------
   Layout
   -------------------------------------------------- */
.amai-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.amai-centered {
  text-align: center;
}

.amai-main {
  min-height: calc(100vh - 68px - 320px);
}

.amai-main--centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

/* --------------------------------------------------
   Buttons
   -------------------------------------------------- */
.amai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.amai-btn:hover {
  text-decoration: none;
}

.amai-btn--primary {
  background: var(--clay);
  color: #fff;
}

.amai-btn--primary:hover {
  background: var(--clay-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(217, 119, 87, 0.35);
}

.amai-btn--secondary {
  background: transparent;
  color: var(--clay);
  border: 1.5px solid var(--clay);
}

.amai-btn--secondary:hover {
  background: var(--clay-light);
  color: var(--clay);
}

.amai-btn--sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.amai-btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.amai-btn--full {
  width: 100%;
}

.amai-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------
   Tag / pill label
   -------------------------------------------------- */
.amai-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--clay-light);
  color: var(--clay);
  margin-bottom: 16px;
}

/* --------------------------------------------------
   Clay text colour
   -------------------------------------------------- */
.amai-clay {
  color: var(--clay);
}

/* --------------------------------------------------
   Check mark
   -------------------------------------------------- */
.amai-check {
  color: var(--clay);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --------------------------------------------------
   Navigation
   -------------------------------------------------- */
.amai-nav {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.amai-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.amai-nav__logo {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--clay);
  text-decoration: none;
}

.amai-nav__logo:hover {
  text-decoration: none;
}

.amai-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.amai-nav__link {
  font-weight: 500;
  color: var(--stone);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition);
  text-decoration: none;
}

.amai-nav__link:hover {
  color: var(--ink);
  text-decoration: none;
}

/* --------------------------------------------------
   Footer
   -------------------------------------------------- */
.amai-footer {
  background: var(--ink);
  color: var(--stone-light);
  padding: 64px 0 32px;
}

.amai-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.amai-footer__logo {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.amai-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

.amai-footer__heading {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.amai-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.amai-footer__link {
  color: var(--stone-light);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 5px 0;
  transition: color var(--transition);
  display: block;
}

.amai-footer__link:hover {
  color: var(--white);
  text-decoration: none;
}

.amai-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
}

/* --------------------------------------------------
   Section scaffolding
   -------------------------------------------------- */
.amai-section {
  padding: 88px 0;
}

.amai-section--white {
  background: var(--white);
}

.amai-section__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.amai-section__sub {
  font-size: 1.05rem;
  color: var(--stone);
  max-width: 540px;
  margin: 0 auto 48px;
}

.amai-section__cta {
  text-align: center;
  margin-top: 48px;
}

/* --------------------------------------------------
   Page header (pricing, features)
   -------------------------------------------------- */
.amai-page-header {
  text-align: center;
  padding: 80px 0 56px;
}

.amai-page-header__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 14px;
}

.amai-page-header__sub {
  font-size: 1.1rem;
  color: var(--stone);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* --------------------------------------------------
   Card grid (3 col)
   -------------------------------------------------- */
.amai-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.amai-card {
  padding: 36px 28px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: box-shadow var(--transition);
}

.amai-card:hover {
  box-shadow: var(--shadow-lg);
}

.amai-card--feature {
  background: var(--bg);
}

.amai-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.amai-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.amai-card__desc {
  color: var(--stone);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* --------------------------------------------------
   Steps (how it works)
   -------------------------------------------------- */
.amai-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.amai-step {
  text-align: center;
}

.amai-step__number {
  width: 60px;
  height: 60px;
  background: var(--clay-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--clay);
}

.amai-step__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.amai-step__desc {
  color: var(--stone);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --------------------------------------------------
   Billing toggle (pricing page)
   -------------------------------------------------- */
.amai-billing-toggle {
  display: inline-flex;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}

.amai-billing-toggle__btn {
  padding: 8px 20px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition);
  color: var(--stone);
}

.amai-billing-toggle__btn:hover {
  color: var(--ink);
  text-decoration: none;
}

.amai-billing-toggle__btn.is-active {
  background: var(--clay);
  color: #fff;
}

.amai-billing-toggle__btn.is-active:hover {
  color: #fff;
}

.amai-billing-save {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
}

/* --------------------------------------------------
   Responsive
   -------------------------------------------------- */
@media (max-width: 900px) {
  .amai-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .amai-cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .amai-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .amai-nav__links .amai-nav__link {
    display: none;
  }

  .amai-footer__grid {
    grid-template-columns: 1fr;
  }

  .amai-footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .amai-cards-3 {
    grid-template-columns: 1fr;
  }
}
/* --------------------------------------------------
   Nav logo image
   -------------------------------------------------- */

.amai-nav__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.amai-footer__logo-link {
  display: inline-block;
  margin-bottom: 12px;
}

.amai-footer__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.9;
}

.amai-footer__logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.amai-footer__link:visited {
  color: var(--stone-light);
}

.amai-footer a {
  color: var(--stone-light);
}

.amai-footer a:hover {
  color: var(--white);
}
