:root {
  color-scheme: light;
  --ink: #17201f;
  --muted: #5f6f6c;
  --line: #d9e3df;
  --surface: #ffffff;
  --paper: #f6f8f3;
  --teal: #1f7a73;
  --amber: #c9872b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--teal);
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  padding: 26px 0 18px;
  border-bottom: 1px solid var(--line);
}

header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 0;
}

nav a {
  font-weight: 650;
  text-decoration: none;
}

main {
  padding: 42px 0 56px;
}

.hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 28px;
  align-items: center;
  padding: 36px 0 30px;
}

.hero-copy {
  max-width: 700px;
}

.app-icon {
  width: min(180px, 34vw);
  aspect-ratio: 1;
  border-radius: 32px;
  box-shadow: 0 18px 48px rgb(23 32 31 / 18%);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1;
}

h2 {
  margin-top: 34px;
  font-size: 1.35rem;
}

p,
li {
  color: var(--muted);
}

.lead {
  max-width: 680px;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.button-secondary {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--line);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: -10px;
}

.trust-strip span {
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 650;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card h2 {
  margin: 0 0 8px;
}

.meta {
  color: var(--amber);
  font-weight: 650;
}

.notice {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.language-grid a {
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.language-grid a[aria-current="page"] {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

html[dir="rtl"] header .shell,
html[dir="rtl"] .hero {
  direction: rtl;
}

footer {
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 680px) {
  header .shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .app-icon {
    width: 112px;
    border-radius: 24px;
    order: -1;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
