/* Test Automation Digital — warm pastel theme */
:root {
  --bg: #fff6f3;
  --bg-soft: #ffe9e4;
  --surface: #ffffff;
  --mint: #dff3ea;
  --peach: #ffe0c8;
  --blush: #ffd6de;
  --lavender-mist: #efe8ff;
  --accent: #e07a72;
  --accent-deep: #c45d56;
  --accent-soft: #f3a49d;
  --sage: #6fa894;
  --sage-deep: #4f8a76;
  --ink: #3a3234;
  --muted: #7d7073;
  --line: rgba(58, 50, 52, 0.08);
  --shadow: 0 12px 32px rgba(224, 122, 114, 0.12);
  --shadow-soft: 0 6px 18px rgba(58, 50, 52, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, var(--blush) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, var(--mint) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, var(--peach) 0%, transparent 55%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 246, 243, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, var(--blush), var(--peach)),
    var(--accent);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), var(--shadow-soft);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px 8px 8px 10px;
  border-radius: 6px;
  border: 2px solid var(--sage);
  border-top: none;
  border-right: none;
  transform: rotate(-8deg);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.15rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.site-nav .nav-cta:hover {
  background: var(--accent-deep);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-h) + 0.4rem);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-cta { text-align: center; }
}

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff !important;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink) !important;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.btn-sage {
  background: var(--sage);
  color: #fff !important;
}

.btn-sage:hover {
  background: var(--sage-deep);
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.card-pad {
  padding: 1.4rem 1.5rem 1.6rem;
}

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

.soft-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 230, 228, 0.65));
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

/* Hero home — editorial, not default two-CTA */
.hero-editorial {
  padding: 2.5rem 0 1rem;
  animation: rise 0.7s ease both;
}

.hero-kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: var(--mint);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
}

.hero-brand-line {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  background: linear-gradient(120deg, var(--ink) 40%, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: end;
  margin-top: 0.5rem;
}

.hero-visual {
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  position: relative;
  animation: floaty 5.5s ease-in-out infinite;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pulse-chip {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.pulse-chip .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sage);
  margin-top: 0.35rem;
  flex-shrink: 0;
  animation: pulse 2.2s ease infinite;
}

@media (max-width: 800px) {
  .hero-stage { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

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

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

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.eyebrow {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  background: var(--mint);
}

.benefit-icon.peach { background: var(--peach); }
.benefit-icon.blush { background: var(--blush); }

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 0.9rem;
}

.tag {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--lavender-mist);
  color: var(--ink);
}

.tag.mint { background: var(--mint); }
.tag.peach { background: var(--peach); }

.quote-block {
  position: relative;
  padding: 1.5rem 1.6rem;
}

.quote-block::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent-soft);
  position: absolute;
  top: 0.2rem;
  left: 0.9rem;
  line-height: 1;
}

.quote-text {
  padding-left: 1.2rem;
  font-size: 1.05rem;
}

.quote-attr {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.band-mint {
  background: linear-gradient(120deg, var(--mint), rgba(255, 255, 255, 0.4));
  border-radius: calc(var(--radius) + 10px);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(111, 168, 148, 0.25);
}

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

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--accent-deep);
  margin: 0;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.2rem 0 0;
}

@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.4rem 0 1rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

.page-hero p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Pricing */
.price-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.price-card.featured {
  background: linear-gradient(165deg, #fff, var(--blush));
  border-color: rgba(224, 122, 114, 0.35);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0.4rem 0;
}

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

.price-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.4rem;
  flex: 1;
}

.price-list li {
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
  color: var(--muted);
}

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

/* Forms */
.form-card {
  padding: 1.6rem;
}

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

.form-group label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fffaf8;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(224, 122, 114, 0.15);
}

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

.field-error {
  color: #b1433c;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #e07a72;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.form-status.is-success {
  display: block;
  background: var(--mint);
  color: var(--sage-deep);
}

.form-status.is-error {
  display: block;
  background: var(--blush);
  color: #9c3d37;
}

.inline-script-error {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  background: var(--blush);
  border-radius: var(--radius-sm);
  color: #9c3d37;
  font-weight: 700;
  display: none;
}

.inline-script-error.is-visible {
  display: block;
}

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

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.cookie-actions a {
  font-weight: 800;
  margin-right: auto;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--bg-soft);
  font-weight: 800;
}

tr:last-child td {
  border-bottom: none;
}

/* Legal / prose */
.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.prose ul, .prose ol {
  padding-left: 1.25rem;
  color: var(--muted);
}

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

.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.module-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.module-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--peach);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  align-items: center;
}

.instructor img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow-soft);
}

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

.faq details {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow-soft);
}

.faq summary {
  font-weight: 800;
  cursor: pointer;
}

.faq details p {
  margin: 0.7rem 0 0.2rem;
  color: var(--muted);
}

.rating-stars {
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}

.blog-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
}

.blog-cover img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.article-meta {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: linear-gradient(180deg, transparent, rgba(255, 214, 222, 0.35));
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr) 1.3fr;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  margin: 0 0 0.5rem;
}

.footer-tag,
.footer-address {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-heading {
  font-weight: 800;
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.footer-col a:hover {
  color: var(--accent-deep);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

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

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

/* Animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

.reveal {
  animation: rise 0.65s ease both;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }

.avatar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-row img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow-soft);
}

.case-study {
  padding: 1.6rem;
}

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

.split-contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

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

.contact-facts dt {
  font-weight: 800;
  margin-top: 0.9rem;
}

.contact-facts dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}
