/* Hedory website. System fonts only, so the site loads nothing from third parties. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f5f5f7;
  --text: #1d1d1f;
  --muted: #5c5c66;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #1d1d1f;
  --accent-hover: #000000;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0f;
    --surface: #15151c;
    --surface-muted: #1c1c25;
    --text: #f5f5f7;
    --muted: #a7a7b3;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #f5f5f7;
    --accent-hover: #ffffff;
    --on-accent: #0b0b0f;
    --shadow: none;
  }
}

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

html {
  -webkit-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);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 32px, 720px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

/* Header and footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.wordmark:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-switch {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.site-footer {
  margin-top: 96px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-inner a {
  color: var(--muted);
}

/* Hero */

.hero {
  padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 8vw, 96px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  max-width: 14ch;
}

.lead {
  margin: 24px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.button:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--text) 25%, transparent);
}

.button.primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--on-accent);
}

.button.primary:hover {
  background: var(--accent-hover);
}

/* Sections */

.section {
  padding: clamp(48px, 8vw, 88px) 0 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 28px;
}

.section-text {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.section-intro {
  margin: -12px 0 28px;
  color: var(--muted);
  max-width: 40rem;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.2rem;
  margin: 14px 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text);
}

.symbol svg {
  width: 22px;
  height: 22px;
}

/* App card */

.app-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.app-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--text) 25%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .app-card,
  .app-card:hover {
    transition: none;
    transform: none;
  }
}

.app-card h3 {
  font-size: 1.5rem;
}

.app-card p {
  margin: 6px 0 12px;
  color: var(--muted);
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.chevron {
  color: var(--muted);
  font-size: 24px;
}

@media (max-width: 560px) {
  .app-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chevron {
    display: none;
  }
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* App page */

.app-hero {
  text-align: center;
}

.app-hero .app-icon {
  width: 128px;
  height: 128px;
  border-radius: 29px;
  margin: 0 auto 28px;
}

.app-hero h1 {
  max-width: none;
}

.app-hero .lead {
  margin-inline: auto;
}

.app-hero .actions {
  justify-content: center;
}

.steps {
  counter-reset: step;
}

.steps .card h3::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.feature-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fine-print {
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
}

/* Long-form pages: policies, terms, support */

.prose {
  padding-top: clamp(48px, 8vw, 80px);
  max-width: 720px;
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.prose .updated {
  margin: 12px 0 36px;
  color: var(--muted);
  font-size: 15px;
}

.prose h2 {
  font-size: 1.4rem;
  margin: 44px 0 12px;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 28px 0 8px;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose p,
.prose ul {
  margin: 0 0 16px;
}

.prose ul {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 6px;
}

.summary {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.summary ul {
  margin: 0;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style-position: outside;
}

.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}

.contact-box {
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.contact-box p {
  margin: 0 0 12px;
}

.not-found {
  padding: clamp(72px, 12vw, 140px) 0 0;
  text-align: center;
}

.not-found .lead {
  margin-inline: auto;
}

.not-found .actions {
  justify-content: center;
}
