/* HenPass website – shared styles. No external requests: fonts are self-hosted. */

/* ---------- Fonts (SIL Open Font License, see assets/fonts/*-OFL.txt) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --green: #1F6B4E;
  --green-strong: #17553d;
  --yolk: #F4B73E;
  --bg: #F3F6F2;
  --text: #15231B;
  --muted: #5c6c62; /* slightly darker than #66766C for AA contrast on bg */
  --cream: #FAF6EC;
  --card: #FFFFFF;
  --line: #dfe7e1;
  --tint: #e6f0ea;
  --shadow: 0 1px 2px rgba(21, 35, 27, .05), 0 8px 24px rgba(21, 35, 27, .07);
  --radius: 18px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --wrap: 68rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #5CC49A;
    --green-strong: #7bd3ae;
    --bg: #0F1512;
    --text: #E8F0EA;
    --muted: #a3b3a9;
    --cream: #1c2620;
    --card: #18211C;
    --line: #2a3630;
    --tint: #1d2b24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--yolk);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -8rem;
  z-index: 10;
  background: var(--card);
  color: var(--text);
  padding: .6rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 46rem; }

/* ---------- Header ---------- */
.site-header { padding: 1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none;
  font-family: var(--font-head); font-weight: 650; font-size: 1.3rem;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .92rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.lang-switch:hover { border-color: var(--green); }

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 3.5rem; text-align: center; }
.hero-icon {
  width: 120px; height: 120px; margin: 0 auto 1.5rem;
  border-radius: 28px; box-shadow: var(--shadow);
}
.hero h1 { margin-bottom: .3em; }
.hero h1 .accent { color: var(--green); }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 36rem; margin: 0 auto 1.75rem; }
.badge-soon {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .6rem 1.15rem;
  font-weight: 600; font-size: .98rem;
  box-shadow: var(--shadow);
}
.badge-soon .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--yolk); flex: none; }
.hero-note { margin-top: 1rem; font-size: .95rem; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 3rem 0; }
.section-head { text-align: center; max-width: 38rem; margin: 0 auto 2.25rem; }
.section-head p { color: var(--muted); }

.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.feature h3 { margin: .9rem 0 .35rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }
.feature-icon {
  width: 3rem; height: 3rem; border-radius: 14px;
  background: var(--tint); color: var(--green);
  display: grid; place-items: center;
}
.feature-icon svg { width: 1.6rem; height: 1.6rem; }

.privacy-block {
  background: var(--green); color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.75rem, 5vw, 3rem);
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (prefers-color-scheme: dark) {
  .privacy-block { background: #1d3b2e; }
}
.privacy-block h2 { color: #fff; }
.privacy-block p { color: #e3efe8; }
.privacy-block a { color: #fff; }
.privacy-block .shield { width: 4rem; height: 4rem; color: var(--yolk); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; color: #fff; }
.checklist svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .2rem; color: var(--yolk); }
@media (min-width: 52rem) {
  .privacy-block { grid-template-columns: auto 1.2fr 1fr; align-items: center; gap: 2.5rem; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0 3rem; margin-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; }
.site-footer a { color: var(--text); }
.site-footer p { margin: 0; }

/* ---------- Legal pages ---------- */
.legal { padding: 1.5rem 0 3rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.55rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.12rem; margin-top: 1.6rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .35rem; }
.legal .meta { color: var(--muted); }
.legal article {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2.5rem); margin-top: 1.5rem;
}
.legal article > h2:first-child { margin-top: 0; }
.legal .toc { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.toc a {
  display: inline-block; padding: .45rem 1rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; color: var(--text);
}
.toc a:hover { border-color: var(--green); }
.notice {
  background: var(--cream); border-left: 4px solid var(--yolk);
  border-radius: 10px; padding: .9rem 1.1rem; margin: 1rem 0;
}
address { font-style: normal; margin-bottom: 1em; }
.back-top { font-size: .92rem; }

/* Placeholders the site owner must fill in before going live */
.todo {
  background: #ffe95c;
  color: #1a1a1a;
  padding: 0 .25em;
  border-radius: 4px;
  font-weight: 700;
  outline: 1px dashed #b39500;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 4rem 0; }
.notfound .hero-icon { width: 96px; height: 96px; }
