:root {
  --ink: #17201c;
  --muted: #5b655f;
  --soft: #fbf8ef;
  --paper: #fffdf7;
  --line: #e4dcc6;
  --green: #173f35;
  --green-deep: #102c26;
  --app-store-blue: #007aff;
  --app-store-blue-deep: #0068d9;
  --gold: #eeb909;
  --gold-soft: #fff2b7;
  --shadow: 0 24px 70px rgba(23, 32, 28, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 32, 28, 0.12);
  border-radius: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  background: #efe7d1;
  color: var(--ink);
}

.language-switch select {
  min-height: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 7px 34px 7px 10px;
}

.language-switch select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  padding: 0;
  white-space: nowrap;
  border: 0;
}

.hero,
.home-actions,
.overview,
.split-section,
.support-hero,
.support-details,
.screenshots-page,
.document {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 64px 0 58px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(3.6rem, 10vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.lede {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.lede-emphasis {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-weight: 900;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 0 34px;
}

.app-store-button,
.screenshots-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 900;
  padding: 14px 26px;
  text-decoration: none;
}

.app-store-button {
  width: min(100%, 360px);
  background: var(--app-store-blue);
  color: #fffdf7;
}

.app-store-button:hover {
  background: var(--app-store-blue-deep);
}

.screenshots-button {
  width: min(100%, 238px);
  background: var(--green);
  color: #fffdf7;
}

.screenshots-button:hover {
  background: var(--green-deep);
}

.overview,
.support-details {
  padding: 46px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

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

.feature-card {
  min-height: 180px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: 30px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 52px 0 66px;
}

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

.link-list {
  display: grid;
  gap: 12px;
}

.link-list a {
  display: grid;
  gap: 4px;
  background: var(--green);
  border-radius: 8px;
  color: #fffdf7;
  padding: 18px;
  text-decoration: none;
}

.link-list a:hover {
  background: var(--green-deep);
}

.link-list span {
  color: var(--gold-soft);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.link-list strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0 34px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 800;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

.document {
  max-width: 860px;
  padding: 50px 0 70px;
}

.document-hero {
  padding-bottom: 28px;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 18px 0 0;
}

.policy-block {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.policy-block h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.policy-block p {
  color: var(--muted);
  margin: 0 0 14px;
}

.policy-block p:last-child {
  margin-bottom: 0;
}

.policy-block a {
  color: var(--green);
  font-weight: 800;
}

.support-hero {
  padding: 64px 0 50px;
}

.support-copy {
  max-width: 760px;
}

.email-link {
  display: inline-flex;
  max-width: 100%;
  margin-top: 28px;
  background: var(--green);
  border-radius: 8px;
  color: #fffdf7;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 900;
  overflow-wrap: anywhere;
  padding: 16px 18px;
  text-decoration: none;
}

.email-link:hover {
  background: var(--green-deep);
}

.screenshots-page {
  padding: 50px 0 70px;
}

.screenshots-hero {
  max-width: 780px;
  padding-bottom: 34px;
}

.screenshot-section {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
}

.screenshot-section:last-child {
  padding-bottom: 0;
}

.screenshot-section-header {
  max-width: 760px;
  margin-bottom: 22px;
}

.screenshot-section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  align-items: start;
}

.screenshot-grid.single {
  grid-template-columns: minmax(230px, 360px);
}

.screenshot-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 736 / 1600;
  object-fit: cover;
  object-position: top;
  background: var(--green);
  border: 1px solid rgba(23, 32, 28, 0.12);
  border-radius: 6px;
}

.screenshot-card-wide img {
  aspect-ratio: 906 / 1600;
}

.screenshot-card-watch img {
  aspect-ratio: 1 / 1;
  background: #111;
  object-fit: contain;
  padding: 10px;
}

.screenshot-card h3 {
  margin: 14px 0 8px;
}

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

@media (max-width: 860px) {
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .feature-grid,
  .feature-grid.two {
    grid-template-columns: 1fr;
  }

  .screenshot-grid.single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  nav a {
    flex: 1;
    text-align: center;
  }

  .language-switch,
  .language-switch select {
    width: 100%;
  }

  .feature-card {
    min-height: auto;
  }

  .app-store-button,
  .screenshots-button {
    width: 100%;
  }
}
