/* Hopbi public site. No build step, no dependencies, no fonts fetched over the
   network -- the legal pages must load fast and work even on a poor connection.
   Palette taken from the app's own theme tokens (apps/mobile/src/theme/tokens.ts). */
:root {
  --primary: #F1543A;
  --primary-dark: #D63F27;
  --accent: #2E6E5E;
  --bg: #FFFBF7;
  --surface: #FFFFFF;
  --sunken: #F7F1EA;
  --text: #231A15;
  --text-2: #5B4C43;
  --text-3: #8B7C72;
  --border: #EEE3D8;
  --maxw: 44rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  /* Turkish reads long: generous line-height and a measure that keeps lines
     around 65-75 characters is what makes a policy actually readable. */
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-dark); }
a:hover { color: var(--primary); }
a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--primary);
  text-decoration: none;
}
.bar nav { display: flex; gap: 1rem; font-size: 0.9375rem; }
.bar nav a { color: var(--text-2); text-decoration: none; }
.bar nav a:hover { color: var(--text); text-decoration: underline; }

main { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

h1 {
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
h3 { font-size: 1.0625rem; margin: 1.5rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
li::marker { color: var(--text-3); }
strong { font-weight: 650; }

.updated {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--text-2);
  background: var(--sunken);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 2rem;
}

.lede { font-size: 1.0625rem; color: var(--text-2); margin-bottom: 1.5rem; }

.note {
  background: var(--sunken);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.note p:last-child { margin-bottom: 0; }

/* Homepage */
.hero { text-align: center; padding: 3rem 0 1rem; }
.hero .tagline {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.hero p { color: var(--text-2); max-width: 34rem; margin: 0 auto 1rem; }
.cards { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
}
.card:hover { border-color: var(--primary); }
.card strong { display: block; font-size: 1.0625rem; margin-bottom: 0.25rem; color: var(--text); }
.card span { font-size: 0.9375rem; color: var(--text-3); }

footer.site {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-3);
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 0.75rem; }
footer.site a { color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
