/* --------------------------
   Root + Reset
--------------------------- */
:root {
  --bg: #ffffff;
  --text: #132022;
  --muted: #54666a;
  --line: #e7ecee;

  /* Brand tones – adjust if you like */
  --primary: #0e7c86;          /* deep teal */
  --primary-600: #0b6a72;
  --primary-100: #e5f4f6;
  --accent: #14b4bf;           /* bright teal */
  --surface: #f6fafb;
  --card: #ffffff;

  --radius: 16px;
  --shadow: 0 8px 24px rgba(0,0,0,0.07);

  --maxw: 1100px;

  --h1: clamp(1.8rem, 2.5vw + 1.2rem, 3rem);
  --h2: clamp(1.4rem, 1.6vw + 1rem, 2.2rem);
  --h3: clamp(1.15rem, 0.8vw + 1rem, 1.4rem);
  --lead: clamp(1.05rem, 0.6vw + 0.9rem, 1.2rem);
  --body: 16px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: var(--body);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden; /* Prevent page from running off the edge */
}

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Motion for folks who want it */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* --------------------------
   Layout helpers
--------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 16px;
}

.section-head {
  margin-bottom: 12px;
  text-align: center;
}

.kicker,
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-600);
  font-weight: 700;
  margin-bottom: 10px;
}

.lead { color: var(--muted); font-size: var(--lead); }

/* Grid that never overflows */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* --------------------------
   Header
--------------------------- */
header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap; /* Stack nicely on small screens */
}

.logo {
  width: clamp(40px, 7vw, 64px);
  height: auto;
  border-radius: 8px;
}

.brand h1 {
  font-size: var(--h1);
  line-height: 1.2;
  margin: 0;
}

.tagline {
  color: var(--muted);
  margin: 4px 0 0 0;
  max-width: 60ch;
  font-size: 0.98rem;
}

/* --------------------------
   Sections
--------------------------- */
main section { padding: 56px 0; }

.hero {
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--primary-100), transparent 65%),
    linear-gradient(180deg, var(--surface), var(--bg));
  text-align: center;
}

.hero h2 { font-size: var(--h2); margin: 6px 0 10px; }
.hero .lead { margin: 0 auto 16px; max-width: 70ch; }

.why { background: var(--bg); }
.how { background: var(--surface); }
.privacy { background: var(--bg); }
.access { background: var(--surface); }

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.feature-card:hover { transform: translateY(-2px); }

.feature-card h4 {
  font-size: var(--h3);
  margin: 0 0 6px;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
}

/* --------------------------
   Buttons
--------------------------- */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

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

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

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

.cta-buttons,
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

/* Make single-login button in Access section centered */
.access .container > .btn.btn-primary {
  margin-top: 8px;
}

/* --------------------------
   Typography
--------------------------- */
h1, h2, h3, h4 { color: var(--text); }
h2 { font-size: var(--h2); margin: 0 0 8px; }
h3 { font-size: var(--h3); margin: 0 0 6px; }

/* --------------------------
   Footer
--------------------------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --------------------------
   Responsive refinements
--------------------------- */
@media (min-width: 680px) {
  .hero .lead { max-width: 62ch; }
  .tagline { font-size: 1rem; }
}

@media (min-width: 960px) {
  .header-inner { gap: 18px; }
  .brand h1 { line-height: 1.1; }
  main section { padding: 68px 0; }
}

/* --------------------------
   Safety: long words/URLs
--------------------------- */
p, h1, h2, h3, h4, .lead, .tagline {
  overflow-wrap: anywhere;
  word-break: break-word;
}
