/* Automatedsecure — clean white, soft teal accent, elegant type */
:root {
  --bg: #fafbfa;
  --surface: #ffffff;
  --ink: #1c2422;
  --ink-soft: #4a5552;
  --muted: #6f7a76;
  --line: #e2e8e5;
  --accent: #1a4d4a;
  --accent-soft: #d8ebe8;
  --accent-hover: #123836;
  --warn: #8a3b2b;
  --ok: #1f5c45;
  --shadow: 0 12px 40px rgba(28, 36, 34, 0.06);
  --radius: 4px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

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

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 251, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(28, 36, 34, 0.04);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 450;
}

.site-nav a:hover { color: var(--accent); }

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .site-nav.is-open { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active { transform: translateY(1px); }

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroRise 1.2s ease-out both;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 28, 26, 0.25) 0%,
    rgba(12, 28, 26, 0.55) 45%,
    rgba(12, 28, 26, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 3.5rem;
  animation: fadeUp 0.9s ease 0.15s both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  margin: 0 0 0.35em;
  color: #fff;
  line-height: 1.05;
}

.hero-lead {
  max-width: 34rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.hero .btn-primary {
  margin-top: 1.75rem;
}

@keyframes heroRise {
  from { transform: scale(1.06); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  margin-bottom: 0;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 560;
  margin: 0 0 0.75rem;
}

/* Proof strip */
.proof-strip {
  background: var(--accent);
  color: #fff;
  padding: 1.75rem 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 520;
  margin-bottom: 0.2rem;
}

.proof-grid span {
  font-size: 0.92rem;
  opacity: 0.85;
}

@media (max-width: 700px) {
  .proof-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list h3 {
  margin-bottom: 0.4rem;
}

.feature-list p { margin: 0; }

@media (max-width: 800px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* Course / article previews — interaction containers */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.preview-card:hover {
  border-color: #b8d0cb;
  box-shadow: var(--shadow);
}

.preview-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.preview-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.preview-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.preview-body p {
  font-size: 0.98rem;
  flex: 1;
}

.preview-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* Featured course band */
.featured-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--radius);
}

.featured-band img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.featured-copy {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 860px) {
  .featured-band { grid-template-columns: 1fr; }
  .featured-band img { min-height: 220px; max-height: 280px; }
}

/* Testimonials */
.quote-stack {
  display: grid;
  gap: 2rem;
}

.quote {
  border-left: 3px solid var(--accent-soft);
  padding: 0.25rem 0 0.25rem 1.5rem;
}

.quote blockquote {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 450;
  color: var(--ink);
  line-height: 1.45;
}

.quote cite {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--muted);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .quote-grid { grid-template-columns: 1fr; }
}

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

.price-tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.price-tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #f3f9f7 0%, var(--surface) 40%);
}

.price-tier h3 { margin-bottom: 0.35rem; }

.price-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ink);
  margin: 0.75rem 0 0.35rem;
}

.price-amount span {
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--font-body);
}

.price-tier ul {
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-tier li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.price-tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* Forms */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 560px;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}

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

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

.field-error {
  color: var(--warn);
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e8f4ee;
  color: var(--ok);
}

.form-status.is-error {
  display: block;
  background: #f8ebe8;
  color: var(--warn);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-aside {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: fit-content;
}

.contact-aside h2 {
  font-size: 1.35rem;
}

.contact-aside p {
  font-size: 0.98rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    linear-gradient(135deg, #eef5f3 0%, var(--bg) 55%, #f7f5f0 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { max-width: 36rem; margin: 0; }

.page-hero-media {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 320px;
}

.page-hero-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  animation: fadeUp 0.8s ease both;
}

/* Article / legal prose */
.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose ul, .prose ol {
  color: var(--ink-soft);
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.prose li { margin-bottom: 0.4rem; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 560;
}

/* Course detail */
.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.module-list li {
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.module-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.module-list p { margin: 0; font-size: 0.96rem; }

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 500px) {
  .instructor { grid-template-columns: 1fr; justify-items: start; }
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 520;
  color: var(--ink);
}

.faq-list details p {
  margin: 0.75rem 0 0.25rem;
}

/* CTA band */
.cta-band {
  background: var(--accent);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 { color: #fff; }
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

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

/* Footer */
.site-footer {
  background: #122826;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 0;
  margin-top: 0;
}

.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr) 1.3fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 0.6rem;
}

.footer-tag,
.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.5rem;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.85rem;
  font-weight: 560;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(100% - 2.5rem, var(--max));
  margin: 2.5rem auto 0;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.footer-bottom p { margin: 0; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  max-width: 520px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: none;
}

.cookie-banner.is-visible { display: block; animation: fadeUp 0.35s ease both; }

.cookie-banner p {
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-actions .btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

/* Inline script error */
.script-error {
  background: #f8ebe8;
  color: var(--warn);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin: 0.5rem 0;
  border-radius: var(--radius);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent-soft);
  line-height: 1;
  margin: 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Split content */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 800px) {
  .split-2 { grid-template-columns: 1fr; gap: 1.75rem; }
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.case-study {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
}

.case-study h3 { margin-bottom: 0.75rem; }

.meta-line {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.blog-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}
