/* Ayo Werks — marketing site (separate from app shell) */
:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --header-bg: rgba(255, 255, 255, 0.92);
  --section-tint: #ffffff;
  --input-bg: #ffffff;
  --card-icon-bg: #e0f2fe;
  --card-hover-border: #cbd5e1;
  --pillar-heading: #0369a1;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  --footer-border: #334155;
  --footer-heading: #64748b;
  --footer-link: #e2e8f0;
  --footer-brand: #fff;
  --price-highlight: #0e7490;
  --price-badge-bg: #fef3c7;
  --price-badge-text: #92400e;
  --checkmark: #0d9488;
  --focus-outline: #38bdf8;
  --focus-border: #0ea5e9;
  --btn-on-dark-bg: #fff;
  --btn-on-dark-hover: #f1f5f9;
  --theme-toggle-bg: transparent;
  --theme-toggle-border: var(--border);
  --theme-toggle-color: var(--text);
  --brand: #0c4a6e;
  --brand-hover: #075985;
  --accent: #d97706;
  --accent-hover: #b45309;
  --ring: #0284c7;
  --gradient-hero: linear-gradient(135deg, #0c4a6e 0%, #0e7490 45%, #155e75 100%);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, 0.18);
  --radius: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: #151c2c;
  --text: #e8eef7;
  --text-muted: #94a3b8;
  --border: #2a3447;
  --header-bg: rgba(11, 17, 32, 0.92);
  --section-tint: #101827;
  --input-bg: #0f1623;
  --card-icon-bg: rgba(14, 116, 144, 0.35);
  --card-hover-border: #3d4f6e;
  --pillar-heading: #7dd3fc;
  --footer-bg: #060a12;
  --footer-text: #94a3b8;
  --footer-border: #1e293b;
  --footer-heading: #64748b;
  --footer-link: #e2e8f0;
  --footer-brand: #f1f5f9;
  --price-highlight: #22d3ee;
  --price-badge-bg: #422006;
  --price-badge-text: #fcd34d;
  --checkmark: #2dd4bf;
  --focus-outline: #38bdf8;
  --focus-border: #22d3ee;
  --btn-on-dark-bg: #f8fafc;
  --btn-on-dark-hover: #e2e8f0;
  --theme-toggle-bg: #1a2332;
  --theme-toggle-border: var(--border);
  --theme-toggle-color: #e2e8f0;
  --brand: #38bdf8;
  --brand-hover: #7dd3fc;
  --ring: #38bdf8;
  --gradient-hero: linear-gradient(135deg, #082f49 0%, #0c4a6e 40%, #0e5f73 100%);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ——— Layout ——— */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--brand);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-main a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-main a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--theme-toggle-border);
  background: var(--theme-toggle-bg);
  color: var(--theme-toggle-color);
  cursor: pointer;
  font: inherit;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.theme-toggle:hover {
  background: var(--surface);
  border-color: var(--card-hover-border);
}

html[data-theme="dark"] .theme-toggle:hover {
  background: #1e2a3d;
}

.theme-toggle__sun,
.theme-toggle__moon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.theme-toggle__sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

/* Desktop: nav + CTAs in one row (mobile overrides in @media) */
.nav-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

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

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

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: var(--brand);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--brand-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.btn--on-dark {
  background: var(--btn-on-dark-bg);
  color: var(--brand);
}

.btn--on-dark:hover {
  background: var(--btn-on-dark-hover);
  color: var(--brand);
}

.btn--block {
  width: 100%;
}

/* ——— Main ——— */
main {
  flex: 1;
}

/* ——— Hero ——— */
.hero {
  background: var(--gradient-hero);
  color: #e0f2fe;
  padding: 3.5rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(6, 182, 212, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero .lead {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  font-size: 1.125rem;
  color: #bae6fd;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #7dd3fc;
}

/* ——— Sections ——— */
.section {
  padding: 3.5rem 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section--tint {
  background: var(--section-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section--tint .section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-size: 1.0625rem;
}

/* ——— Feature grid ——— */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}

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

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--card-icon-bg);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ——— Pillar strip ——— */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.pillar h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pillar-heading);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.pillar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ——— CTA band ——— */
.cta-band {
  max-width: 1120px;
  margin: 0 auto 3.5rem;
  padding: 2.5rem 1.5rem;
  background: var(--gradient-hero);
  border-radius: var(--radius);
  color: #e0f2fe;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: #bae6fd;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* ——— Pricing ——— */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}

.pricing-card--highlight {
  border-color: var(--price-highlight);
  box-shadow: 0 0 0 1px var(--price-highlight), var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--price-badge-bg);
  color: var(--price-badge-text);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.pricing-name {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}

.pricing-blurb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
  min-height: 2.8rem;
}

.pricing-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.pricing-amount small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.pricing-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}

.pricing-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text);
}

.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--checkmark);
  font-weight: 800;
}

.fine-print {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 40rem;
  margin: 2rem auto 0;
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.contact-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-dl {
  margin: 0;
}

.contact-dl dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 1rem;
}

.contact-dl dt:first-child {
  margin-top: 0;
}

.contact-dl dd {
  margin: 0.2rem 0 0;
  font-weight: 500;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--focus-outline);
  outline-offset: 0;
  border-color: var(--focus-border);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.5rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.site-footer a {
  color: var(--footer-link);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--btn-on-dark-bg);
}

.footer-brand {
  font-weight: 700;
  color: var(--footer-brand);
  margin-bottom: 0.5rem;
}

.footer-col h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--footer-heading);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  max-width: 1120px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-border);
  font-size: 0.875rem;
  text-align: center;
}

/* ——— Page header (inner pages) ——— */
.page-hero {
  background: var(--gradient-hero);
  color: #e0f2fe;
  padding: 2.5rem 1.25rem 2.25rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: #bae6fd;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* ——— Mobile ——— */
@media (max-width: 900px) {
  .grid-3,
  .pillars,
  .pricing-grid,
  .footer-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-wrap {
    position: fixed;
    inset: 0 0 auto auto;
    top: 3.5rem;
    right: 1.25rem;
    width: min(280px, calc(100vw - 2.5rem));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-wrap[aria-expanded="true"] {
    display: flex;
  }

  .nav-main {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-cta {
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .nav-cta .btn {
    width: 100%;
  }

  .hero {
    padding-top: 2.5rem;
  }
}
