/* ===== Design tokens ===== */
:root{
  --brand:#c62828;           /* ANERITA red */
  --brand-dark:#a52020;      /* pressed */
  --ink:#1a1a1a;             /* headings */
  --text:#5c5f66;            /* body */
  --paper:#ffffff;           /* cards */
  --page:#f6f7f9;            /* section bg */
  --radius:16px;
  --shadow:0 10px 24px rgba(0,0,0,.08);
  --gap:24px;
  --max:1180px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font:16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial;
  color:var(--text);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{display:block;max-width:100%;height:auto}

/* Containers */
.container{width:100%;max-width:var(--max);margin-inline:auto;padding-inline:clamp(16px,4vw,24px)}
section{padding: clamp(28px,7vw,72px) 0}

/* Headings */
h1,h2,h3{color:var(--ink);margin:0 0 .5rem}
h1{font-size:clamp(28px,6vw,48px);line-height:1.15;letter-spacing:-.02em}
h2{font-size:clamp(22px,3.4vw,32px)}
h3{font-size:clamp(17px,2.4vw,20px)}
p{margin:0 0 .75rem}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 18px;border-radius:999px;font-weight:650;
  text-decoration:none;user-select:none;transition:filter .15s ease, transform .02s ease;
  gap:8px;white-space:nowrap;color:inherit;
}
.btn-lg{padding:14px 22px;font-size:18px}
.btn-primary{background:var(--brand);color:#fff !important}
.btn-primary:hover{filter:saturate(1.05) brightness(1.02)}
.btn-primary:active{background:var(--brand-dark)}
.btn-ghost{background:transparent}
.btn-ghost:hover{background:#0000000d}

/* Header */
.site-header{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:1px solid #eceff3;backdrop-filter:saturate(1.1) blur(6px)}
.bar{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.brand{display:inline-flex;align-items:baseline;gap:0;text-decoration:none;color:var(--ink);font-weight:800;letter-spacing:.6px}
.brand .er{color:var(--brand)}
.brand .tm{font-size:.6em;top:-.2em;position:relative;color:#6b7280}
.nav-actions{display:flex;gap:10px}

/* Prevent default visited-link purple anywhere */
a, a:visited{color:inherit;text-decoration:none}

/* Hero */
.hero{padding: clamp(28px,7vw,64px) 0}
.eyebrow{font-size:14px;font-weight:600;color:#6b7280;letter-spacing:.02em;margin-bottom:12px}
.hero-grid{display:grid;align-items:center;gap:clamp(20px,4vw,40px);grid-template-columns:1.02fr .98fr}
.highlight{color:var(--brand)}
.subhead{margin:14px 0 22px;max-width:42ch}
.chip{display:inline-block;padding:3px 8px;border-radius:999px;background:#feeaea;color:#a21515;border:1px solid #f7c8c8;margin-left:6px}
.cta-row{display:flex;gap:12px;flex-wrap:wrap}
.hero-art{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(10px,2.2vw,16px)}
.hero-art img{width:100%;height:auto;object-fit:contain}

/* Features */
.features{background:var(--page)}
.lede{margin:.25rem 0 1.25rem}
.features-grid{display:grid;gap:var(--gap);grid-template-columns:repeat(3,1fr)}
.card{background:var(--paper);border:1px solid #e8edf3;border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);transition:transform .15s ease, box-shadow .15s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.10)}
.card .thumb{aspect-ratio:16/10;background:#fff;border-radius:12px;display:grid;place-items:center;margin-bottom:12px;overflow:hidden}
.card .thumb img{width:100%;height:100%;object-fit:contain}

/* Wide sections */
.wide .media{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;margin-top:18px}
.wide .media img{width:100%;height:auto;object-fit:contain}
.wide.alt{background:var(--page)}
.note{color:#6b7280;margin-top:10px}

/* Steps */
.steps{display:grid;gap:var(--gap);grid-template-columns:repeat(3,1fr)}
.step{background:#fff;border:1px solid #e8edf3;border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}

/* FAQ */
details{background:#fff;border:1px solid #e8edf3;border-radius:12px;padding:14px 16px}
details+details{margin-top:12px}
summary{cursor:pointer;font-weight:600;color:var(--ink)}

/* Signup */
.signup-form{margin-top:16px;display:flex;flex-wrap:wrap;gap:12px;max-width:480px}
.signup-form input[type="email"]{flex:1;padding:12px 14px;border:1px solid #cfd6dd;border-radius:999px;font-size:16px}
.alert{display:none;margin-top:16px;padding:12px 16px;border-radius:999px;font-weight:600;font-size:15px;text-align:center}
.alert.success{background:#e6f4ea;color:#1e7b34;border:1px solid #b5dfb9}
.alert.error{background:#fdecea;color:#c62828;border:1px solid #f5c6c6}

/* Footer */
.footer{padding:36px 0;background:#fff;border-top:1px solid #eceff3;color:#8a9099;font-size:14px}
.foot-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.foot-nav{display:flex;gap:12px}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
  .subhead{max-width:none}
  .features-grid{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:1fr}
}
@media (max-width: 560px){
  .nav-actions{gap:8px}
  .features-grid{grid-template-columns:1fr}
}
/* ===== Hamburger header tweaks ===== */
.site-header{ position:sticky; top:0; z-index:1000; background:#fff; border-bottom:1px solid #eceff3; }
.site-header .bar{ display:flex; align-items:center; justify-content:space-between; padding:12px 0; }
.header-actions{ display:flex; align-items:center; gap:10px; }

/* Keep only CTAs visible in header; everything else goes into .site-menu */
.nav-ctas{ display:flex; align-items:center; gap:10px; }

/* Hamburger button */
.hamburger{ 
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border:1px solid #e2e6ec; border-radius:12px;
  background:#fff; cursor:pointer;
}
.hamburger-box{ position:relative; width:20px; height:14px; }
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after{
  position:absolute; left:0; right:0; height:2px; background:#1a1a1a; content:""; transition:transform .2s ease, opacity .2s ease;
}
.hamburger-inner{ top:6px; }
.hamburger-inner::before{ top:-6px; }
.hamburger-inner::after{ top:6px; }

/* Active (X) state */
.hamburger[aria-expanded="true"] .hamburger-inner{ transform:rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger-inner::before{ transform:translateY(6px) rotate(90deg); }
.hamburger[aria-expanded="true"] .hamburger-inner::after{ transform:translateY(-6px) rotate(90deg); opacity:0; }

/* Slide-down menu */
.site-menu{ 
  display:none; border-top:1px solid #eceff3; border-bottom:1px solid #eceff3; background:#fff;
}
.site-menu.open{ display:block; }
.site-menu .container{ display:grid; gap:8px; padding:12px 16px; }
.site-menu a{ padding:10px 12px; border-radius:10px; color:#1a1a1a; text-decoration:none; }
.site-menu a:hover{ background:#f7f8fa; }

/* Responsiveness */
@media (max-width: 620px){
  .nav-ctas .btn.btn-ghost{ display:none; } /* hide ghost CTA on very small screens if tight */
}
/* ===== Mobile drawer polish ===== */
.drawer { padding: 12px 0; }
.drawer-list { list-style:none; margin:0; padding: 6px 0; }
.drawer-list li { padding: 0; margin: 0; }
.drawer-list a{
  display:block;
  padding: 14px 20px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration:none;
}
.drawer-list a:active{ background:#00000007; }

.drawer-list .divider{
  height:1px;
  margin:8px 20px;
  background: #e9edf3;
}

.drawer-actions{
  display:flex; gap:10px; padding: 8px 20px 12px;
}
.drawer-actions .btn{ flex:1; justify-content:center; }
/* Header layout */
.site-header { position: sticky; top: 0; z-index: 1000; background:#fff; border-bottom:1px solid #eceff3; }
.site-header .bar { display:flex; align-items:center; justify-content:space-between; padding:12px 0; }
.header-actions { display:flex; align-items:center; gap:12px; }

/* Burger button */
.hamburger { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px;
  border:0; background:#fff; border-radius:999px; box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.hamburger-box { display:inline-block; position:relative; width:22px; height:2px; background:#111; }
.hamburger-inner { position:absolute; inset:0; background:#111; }
.hamburger-box::before,
.hamburger-box::after {
  content:""; position:absolute; left:0; right:0; height:2px; background:#111;
}
.hamburger-box::before { top:-6px; }
.hamburger-box::after  { top: 6px; }

/* Slide-down menu */
.site-menu { display:none; border-top:1px solid #f0f2f5; background:#fff; }
.site-menu.open { display:block; }
.site-menu .container { display:grid; gap:14px; padding:16px 0; }
.site-menu a { text-decoration:none; color:#111; padding:8px 0; }

/* Responsive: keep CTAs always; burger useful on small screens */
@media (max-width: 860px){
  .nav-ctas .btn.btn-ghost { display:none; }   /* hide text link if tight */
}

/* (optional) slightly smaller burger on very narrow */
@media (max-width: 400px){
  .hamburger { width:36px; height:36px; }
}
.compliance {
  background: #fafafa;
  border-top: 1px solid #eee;
  padding: 48px 0;
  text-align: center;
}
.compliance h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.compliance p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #444;
}
.compliance .badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.compliance .badge {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}.features-grid .thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin-bottom: 12px;
}

.features-grid .thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* spacing between sections */
.features { margin-bottom: 32px; }

/* plans layout */
.plans-grid{
  display:grid;
  gap:24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top:32px;
}
.plan.card{
  padding:24px;
  border-radius:12px;
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
}
.plan-title{ font-size:1.4rem; margin:0 0 8px; }
.plan-price{ font-size:1.1rem; margin:0 0 16px; }
.plan-list{ list-style:none; padding:0; margin:0 0 20px; }
.plan-list li{ margin:10px 0 10px 22px; position:relative; }
.plan-list li::before{
  content:"•"; color:#c62828; position:absolute; left:-18px; font-weight:bold;
}

/* little red “Free to use” chip */
.badge{ display:inline-block; padding:6px 10px; border-radius:999px; font-weight:700; font-size:.9rem; }
.badge-free{ background:#fde7e7; color:#c62828; border:1px solid #f6c6c6; }
/* --- Feature cards: keep thumbs tidy --- */
.features-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card .thumb {
  /* consistent visual window for every card */
  aspect-ratio: 16 / 10;
  background: #f7f7f8;
  border-radius: 12px;
  padding: 16px;
  overflow: hidden;         /* important for big images/SVGs */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* images and SVGs scale nicely inside the thumb */
.card .thumb img,
.card .thumb svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;      /* keeps aspect ratio */
}
/* --- Feature cards: keep thumbs tidy --- */
.features-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card { display: flex; flex-direction: column; height: 100%; }

.card .thumb {
  aspect-ratio: 16 / 10;
  background: #f7f7f8;
  border-radius: 12px;
  padding: 16px;
  overflow: hidden;              /* key: stops overflow */
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .thumb img,
.card .thumb svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;           /* key: scales inside window */
}
/* ==== Feature cards layout & media containment ==== */
.features-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card { 
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card .thumb {
  aspect-ratio: 16 / 10;          /* consistent window */
  background: #f7f7f8;
  border-radius: 10px;
  overflow: hidden;                /* prevents spillover */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.card .thumb img,
.card .thumb svg {
  width: 100%;
  height: 100%;
  object-fit: contain;             /* scale nicely */
  display: block;
}

.card h3 { margin: 8px 0 6px; }
.card p { margin: 0; }

/* ==== Plans layout ==== */
.plans-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 24px;
}

.plan.card { padding: 24px; }

.plan-title { 
  font-size: 1.35rem; 
  margin: 0 0 10px;
}

.plan-price { 
  font-size: 1.1rem; 
  margin: 0 0 16px; 
}

.free-badge {
  display: inline-block;
  background: #c62828;
  color: #fff;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.plan-list li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
}

.plan-list li::before {
  content: "•";
  color: #c62828;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}
.features .thumb svg { width: 100%; height: auto; display: block; }
.features .thumb img { width: 100%; height: auto; display: block; object-fit: contain; }
/* ===== Auth pages ===== */
.auth-page {
  display: grid;
  place-items: center;
  padding: 48px 16px 64px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: 28px;
}

/* subtle layered "stairs" effect */
.auth-card::before,
.auth-card::after{
  content:"";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  transform: translate(10px,10px);
  z-index: -1;
}
.auth-card::after{
  transform: translate(20px,20px);
  opacity: .7;
}

.auth-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin: 0 0 6px;
}
.auth-sub {
  color: #6b6f76;
  margin: 0 0 18px;
  font-size: 15px;
}

/* form */
.auth-form .form-row{
  margin: 12px 0;
}
.auth-form label{
  display:block;
  font-size: 14px;
  margin-bottom: 6px;
  color:#242628;
}
.auth-form input,
.auth-form select{
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  border: 1px solid #e2e5e8;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
}
.auth-form input:focus,
.auth-form select:focus{
  outline: none;
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}

/* helpers row */
.auth-inline{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 14px;
}

/* actions */
.auth-actions{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top: 14px;
}
.auth-actions .btn{
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
}

/* links under form */
.auth-footer{
  margin-top: 14px;
  font-size: 14px;
  color:#44484d;
}
.auth-footer a{ color:#c62828; }

/* shrink spacing on small screens */
@media (max-width: 480px){
  .auth-card{ padding: 22px; }
}
.auth-social{margin-top:16px;border-top:1px solid #eee;padding-top:14px}
.auth-social-label{font-size:13px;color:#6b6f76;margin-bottom:10px}
.btn.social{width:100%;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;margin:8px 0}
.btn.social.google{background:#fff;border:1px solid #e2e5e8}
.btn.social.apple{background:#000;color:#fff}
/* Center form on screen */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f9f9f9;
}

/* Card box */
.auth-box {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* Headings */
.auth-box h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.auth-box p {
  margin-bottom: 25px;
  color: #555;
}

/* Inputs */
.auth-box input {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

/* Main button */
.auth-box button {
  width: 100%;
  padding: 14px;
  margin-top: 15px;
  background: #c62828;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.auth-box button:hover {
  background: #a51e1e;
}

/* Social login */
.social-login {
  margin-top: 25px;
}

.social-login button {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.google-btn {
  background: #fff;
  border: 1px solid #ccc;
}

.apple-btn {
  background: #000;
  color: #fff;
  border: none;
}
/* Hero layout */
.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* Left column */
.hero-text {
  flex: 1 1 450px;
}

/* Right column */
.hero-art {
  flex: 1 1 350px;
  text-align: center;
}

.hero-art .hero-img {
  max-width: 100%;
  height: auto;
}

/* Free tag red highlight */
.free-tag {
  color: #d32f2f;
  font-weight: bold;
}

/* Mobile view */
@media (max-width: 768px) {
  .hero-grid {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-art {
    order: 2;
    margin-top: 20px;
  }

  .hero-text ul {
    text-align: left;
    max-width: 320px;
    margin: 0 auto;
  }
}
/* Plans layout */
.plans-grid{
  display:grid;
  gap:28px;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  margin-top:26px;
}
.plan.card{
  background:#fff;
  border-radius:14px;
  box-shadow:0 6px 20px rgba(0,0,0,.06);
  padding:24px;
}
.plan-title{ font-size:1.35rem; margin:0 0 6px; }
.plan-sub{ margin:6px 0 12px; color:#666; }

/* Pills */
.pill{
  display:inline-block;
  font-size:.85rem;
  padding:6px 12px;
  border-radius:999px;
  font-weight:600;
  margin:6px 0 4px;
}
.pill-red{ background:#c62828; color:#fff; }
.pill-grey{ background:#eee; color:#444; }

/* List with red ticks */
.plan-list{ list-style:none; margin:14px 0 18px; padding:0; }
.plan-list li{
  position:relative; padding-left:28px; margin:10px 0; line-height:1.35;
}
.plan-list li::before{
  content:"✓";
  position:absolute; left:0; top:0;
  font-weight:700; color:#c62828;
}

/* Fine print */
.fine{ font-size:.82rem; color:#6b6b6b; margin-top:8px; }

/* Buttons row */
.plan .cta-row{ margin-top:14px; }

/* Small screens */
@media (max-width:480px){
  .plan.card{ padding:20px; }
}
