/* Equinota landing page — Confidere Advisory
   Colours taken from mockup v1.0. Dark is the default theme. */

:root,
[data-theme="dark"] {
  --bg: #12110e;
  --bg-alt: #17150f;
  --card: #1e1b16;
  --border: #2c2820;
  --text: #f3efe6;
  --body: #bdb4a4;
  --accent: #9fd356;       /* buttons, highlighted card border */
  --accent-text: #a9d96a;  /* eyebrows, icons, links */
  --on-accent: #12110e;    /* text on green buttons */
  --input-bg: #12110e;
  --logo-dark: inline;
  --logo-light: none;
}

[data-theme="light"] {
  --bg: #faf8f3;
  --bg-alt: #f2eee5;
  --card: #ffffff;
  --border: #e4ddd0;
  --text: #2b2118;
  --body: #5b4f43;
  --accent: #2f7d32;
  --accent-text: #2b6e2e;
  --on-accent: #ffffff;
  --input-bg: #f2eee5;
  --logo-dark: none;
  --logo-light: inline;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { color: var(--text); margin: 0; }
h1, h2 { font-family: "Lora", Georgia, serif; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.25rem); line-height: 1.3; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }

p { margin: 0; }

.container { max-width: 1208px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 808px; }

section { padding: 96px 0; border-top: 1px solid var(--border); }
.alt { background: var(--bg-alt); }

.section-lead { margin-top: 16px; max-width: 660px; font-size: 1.0625rem; }

.eyebrow {
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 80px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
.brand img { height: 40px; width: auto; }
.brand .logo-on-dark { display: var(--logo-dark); }
.brand .logo-on-light { display: var(--logo-light); }

.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a { color: var(--body); text-decoration: none; font-size: 0.9375rem; }
.site-nav a:hover { color: var(--text); }
.site-nav a.btn { color: var(--on-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.3;
  border: 1px solid transparent;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--body); }
.btn-small { padding: 10px 18px; font-size: 0.9375rem; }

/* ---------- Hero ---------- */
.hero { border-top: 0; padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero h1 { margin-top: 18px; }
.hero-text { margin-top: 24px; font-size: 1.1875rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 24px; font-size: 0.875rem; line-height: 1.6; }
.hero-image {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.hero-image img { border-radius: 8px; width: 100%; }

/* ---------- Feature cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 26px 30px;
}
.card .icon { color: var(--accent-text); width: 26px; height: 26px; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.9375rem; }

/* ---------- Privacy ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 + p { margin-top: 22px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; color: var(--text); font-size: 1.0625rem; }
.checklist svg { color: var(--accent-text); margin-top: 5px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--accent-text); color: var(--accent-text);
  display: grid; place-items: center; font-weight: 500; margin-bottom: 18px;
}
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 0.9375rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 30px 30px 34px; }
.price-card.featured { border: 2px solid var(--accent); padding: 29px 29px 33px; }
.price-card.featured .eyebrow { color: var(--accent-text); }
.price-card .eyebrow { color: var(--body); }
.price { margin-top: 18px; color: var(--text); display: flex; align-items: baseline; gap: 6px; }
.price strong { font-family: "Lora", Georgia, serif; font-size: 3rem; font-weight: 700; line-height: 1.1; }
.price span { font-size: 1.0625rem; }
.price-card p { margin-top: 18px; font-size: 0.9375rem; }
.price-card .remaining { margin-top: 12px; color: var(--text); font-weight: 600; font-size: 0.875rem; }
.includes { background: transparent; }
.includes ul { margin: 14px 0 0; padding-left: 20px; font-size: 0.9375rem; }
.includes li { margin-bottom: 6px; }
.price-footnote { margin-top: 26px; font-size: 0.9375rem; }

/* ---------- Requirements ---------- */
.needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.need { border-top: 2px solid var(--accent); padding-top: 22px; }
.need h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.need p { font-size: 0.9375rem; }

/* ---------- Register ---------- */
.register h2 + p { margin-top: 22px; font-size: 1.0625rem; }
.form-shell {
  margin-top: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  overflow: hidden;
}
.form-shell iframe { display: block; width: 100%; min-height: 1100px; border: 0; border-radius: 8px; }
.form-fallback { padding: 24px; font-size: 0.9375rem; }
.form-note { margin-top: 18px; font-size: 0.875rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 56px; font-size: 0.875rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-grid strong { color: var(--text); }
.footer-grid p + p { margin-top: 6px; }
.footer-grid a { color: var(--body); }
.footer-right { max-width: 420px; }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 6px; z-index: 10; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .card-grid, .price-grid { grid-template-columns: 1fr 1fr; }
  .steps, .needs { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 56px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .card-grid, .price-grid, .steps, .needs { grid-template-columns: 1fr; }
  .card-grid { gap: 14px; margin-top: 32px; }
  .steps { gap: 28px; margin-top: 32px; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
  .site-nav { gap: 14px 28px; }
  .footer-grid { flex-direction: column; }
}

/* ---------- Light / dark button ---------- */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; padding: 0;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--body); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
/* the button always shows the sun icon, in both light and dark */
.theme-toggle .icon-moon { display: none; }
