:root{
  /* Darker, calmer red/grey system */
  --bg: #e9ecef;          /* page canvas (darker than before) */
  --panel: #ffffff;       /* cards */
  --panel-2: #f3f4f6;     /* muted sections */

  --text: #0b1220;        /* darker text */
  --muted: #374151;
  --muted-2: #4b5563;

  --border: rgba(17,24,39,0.14);
  --border-strong: rgba(17,24,39,0.20);

  --shadow: 0 10px 26px rgba(17,24,39,0.12);
  --shadow-hover: 0 16px 40px rgba(17,24,39,0.16);

  --radius: 18px;
  --radius-sm: 12px;

  /* Red accent */
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --accent-soft: rgba(220, 38, 38, 0.10);

  /* Focus */
  --focus: rgba(220, 38, 38, 0.30);

  /* Motion */
  --t: 160ms;
  --ease: cubic-bezier(.2,.8,.2,1);

  --max: 1060px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Accessibility */
.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  box-shadow: var(--shadow);
}
.skip-link:focus{ left: 12px; outline: 3px solid var(--focus); }

.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(233,236,239,0.78); /* matches darker bg */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 10px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Logo container */
.brand-mark{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;        /* remove red container */
  border: none;                   /* remove outline */
  padding: 0;                     /* no inner padding */
  display: inline-grid;
  place-items: center;
}


.brand-mark img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.35);
}


@media (min-width: 768px){
  .brand-mark{
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .brand-mark img{
    width: 32px;
    height: 32px;
  }
}



.brand-name{ font-size: 0.98rem; }

/* Nav */
.site-nav{
  display: none;
  gap: 8px;
  align-items: center;
}

.nav-link{
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--text);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.nav-link:hover{
  background: rgba(17,24,39,0.06);
  text-decoration: none;
  transform: translateY(-1px);
}
.nav-link:active{ transform: translateY(0px); }
.nav-link-muted{ color: var(--muted); }

.nav-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.70);
  color: var(--text);
  cursor: pointer;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.nav-toggle:hover{
  background: rgba(255,255,255,0.95);
  transform: translateY(-1px);
}
.nav-toggle:active{ transform: translateY(0px); }
.nav-toggle:focus{ outline: 3px solid var(--focus); outline-offset: 2px; }

.nav-toggle-bars{
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  border-radius: 2px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.nav-toggle-bars::before{ top: -6px; }
.nav-toggle-bars::after{ top: 6px; }

/* Mobile nav open state */
.site-nav.is-open{
  display: grid;
  position: absolute;
  top: 64px;
  left: 16px;
  right: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow);
}

/* Typography */
.h1{
  font-size: clamp(1.7rem, 5.2vw, 2.5rem);
  line-height: 1.08;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.h2{
  font-size: clamp(1.25rem, 3.8vw, 1.65rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.h3{
  font-size: 1.03rem;
  margin: 0 0 6px;
}

.p{ margin: 0; color: var(--muted); }
.lead{ margin-bottom: 18px; max-width: 60ch; }

.subhead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 55ch;
}

.micro{
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 0.92rem;
}

.tiny{ font-size: 0.88rem; color: var(--muted-2); }

.muted{ color: var(--muted-2); }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  min-height: 46px;
  transition:
    background var(--t) var(--ease),
    border-color var(--t) var(--ease),
    transform var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    filter var(--t) var(--ease);
}

.btn:hover{
  text-decoration: none;
  background: rgba(255,255,255,0.98);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:active{
  transform: translateY(0px);
  box-shadow: none;
}

.btn:focus{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover{
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-hover);
}

.btn-ghost{
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn-ghost:hover{
  background: rgba(17,24,39,0.06);
  border-color: rgba(17,24,39,0.10);
  box-shadow: none;
}

.btn-outline{
  background: rgba(255,255,255,0.80);
  border-color: rgba(17,24,39,0.20);
}
.btn-outline:hover{
  background: rgba(255,255,255,0.98);
}

.btn-full{ width: 100%; }

/* Sections */
.section{ padding: 42px 0; }

/* Subtle hero depth (professional “app” feel) */
.hero{
  padding: 34px 0 26px;
  background: linear-gradient(to bottom, #f3f4f6, var(--bg));
}

.section-muted{
  background: #dfe3e8; /* darker muted panel */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-grid{
  display: grid;
  gap: 18px;
}

.hero-copy{ padding: 12px 0; }

.cta-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 8px;
}

/* Trust chips */
.trust-chips{
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip{
  font-size: 0.88rem;
  color: var(--muted);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.chip:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.98);
}

/* Hero mock card */
.hero-card{
  display: none;
}

.card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-top, .card-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(243,244,246,0.85);
}
.card-bottom{
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.card-body{ padding: 14px; background: transparent; }

.pill{
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(220,38,38,0.22);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 800;
}

/* Fake question skeleton */
.fake-question{ margin-bottom: 14px; }
.fake-q-title, .fake-q-line, .fake-option{
  background: rgba(17,24,39,0.07);
  border-radius: 10px;
}
.fake-q-title{ height: 14px; width: 75%; margin: 4px 0 10px; }
.fake-q-line{ height: 10px; width: 95%; margin: 7px 0; }
.fake-q-line.short{ width: 60%; }

.fake-options{
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.fake-option{
  height: 42px;
  width: 100%;
  border: 1px solid rgba(17,24,39,0.08);
  background: rgba(17,24,39,0.03);
}

.progress{
  width: 56%;
  height: 10px;
  border-radius: 999px;
  background: rgba(17,24,39,0.10);
  overflow: hidden;
}
.progress span{
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(220,38,38,0.95), rgba(220,38,38,0.70));
}

/* Shared “interactive card” feel */
.feature, .step, .compare-col, .reassure-item, .faq-item{
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.feature:hover, .step:hover, .compare-col:hover, .reassure-item:hover, .faq-item:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

/* Features */
.features{
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.feature{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

/* Steps */
.steps{
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.step{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.step-num{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(220,38,38,0.22);
  color: var(--text);
  font-weight: 900;
}

/* Compare */
.compare{
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.compare-col{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.compare-col.highlight{
  border-color: rgba(220,38,38,0.22);
  background: linear-gradient(180deg, rgba(220,38,38,0.08), rgba(255,255,255,0.92) 55%);
}

.compare-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.list{
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 8px 0; }

/* Reassurance */
.reassure{
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.reassure-item{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.callout{
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(220,38,38,0.22);
  background: rgba(220,38,38,0.08);
}

.callout-title{
  margin: 0 0 6px;
  font-weight: 900;
}

.callout-body{
  margin: 0;
  color: var(--muted);
}

.section-cta{
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

/* FAQ */
.faq{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.faq-item{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.faq-item summary{
  cursor: pointer;
  font-weight: 850;
}
.faq-item summary:hover{ color: #0f172a; }

.faq-item p{
  margin: 10px 0 0;
  color: var(--muted);
}

/* Footer */
.site-footer{
  padding: 30px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(233,236,239,0.65);
}

.footer-grid{
  display: grid;
  gap: 14px;
  align-items: start;
}

.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a{
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.footer-links a:hover{
  background: rgba(17,24,39,0.06);
  text-decoration: none;
  transform: translateY(-1px);
}

.footer-brand{ margin-bottom: 8px; }

/* Responsive */
@media (min-width: 720px){
  .nav-toggle{ display: none; }
  .site-nav{ display: inline-flex; }
  .site-nav.is-open{
    position: static;
    display: inline-flex;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-grid{
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
    padding: 18px 0 6px;
  }
  .hero-card{ display: block; }

  .cta-row{
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .features{ grid-template-columns: repeat(3, 1fr); }
  .steps{ grid-template-columns: repeat(3, 1fr); }
  .compare{ grid-template-columns: 1fr 1fr; }
  .reassure{ grid-template-columns: repeat(3, 1fr); }
  .footer-grid{ grid-template-columns: 1fr auto; justify-content: space-between; }
}

/* Reduce motion for people who prefer it */
@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

::selection{
  background: rgba(220,38,38,0.18);
}

/* Practice modes grid */
.mode-grid{
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.mode-card{
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.mode-top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mode-actions{
  margin-top: 14px;
}

.soft-divider{
  height: 1px;
  background: rgba(17,24,39,0.10);
  margin: 22px 0;
}

/* Subjects block */
.subject-block{
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.subject-chips{
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-cta{
  display: grid;
  gap: 8px;
  align-content: start;
}

/* Match your existing hover lift behavior (if you have it already, keep it) */
.mode-card{
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.mode-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

/* Responsive layout */
@media (min-width: 720px){
  .mode-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  .subject-block{
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

