:root {
  --bg: #f6f8f7;
  --ink: #17201d;
  --muted: #5f6965;
  --line: #d9dfdc;
  --surface: #ffffff;
  --accent: #007a5a;
  --accent-dark: #005d45;
  --warning: #b46616;
  --shadow: 0 22px 70px rgba(23, 32, 29, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(0, 122, 90, 0.1), transparent 32rem),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 223, 220, 0.85);
  background: rgba(246, 248, 247, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero,
.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100svh - 72px);
}

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

.hero h1,
.page-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 37rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(23, 32, 29, 0.08);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
}

.device-frame {
  justify-self: center;
  width: min(100%, 336px);
}

.iphone-frame {
  position: relative;
  padding: 0.82rem;
  border-radius: 56px;
  background: linear-gradient(145deg, #2c3330, #0d1210 48%, #4e5753);
  box-shadow:
    0 28px 80px rgba(23, 32, 29, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.iphone-frame::before {
  position: absolute;
  inset: 0.34rem;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  content: "";
  pointer-events: none;
}

.phone-screen {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 43px;
  background: #f7f7fb;
}

.iphone-hardware {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.phone-rail,
.phone-inner-rail {
  fill: none;
}

.phone-rail {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.4;
}

.phone-inner-rail {
  stroke: rgba(0, 0, 0, 0.34);
  stroke-width: 1;
}

.phone-side-button {
  fill: #171d1a;
  opacity: 0.9;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

.link-card {
  min-height: 10rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(23, 32, 29, 0.06);
}

.link-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.link-card span {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(260px, 0.32fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.page-title {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.lede {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.content {
  margin-top: 2.5rem;
}

.content h2 {
  margin: 2rem 0 0.45rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

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

.content ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.support-box,
.policy-box {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(23, 32, 29, 0.06);
}

.support-box h2,
.policy-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.support-box p,
.policy-box p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.support-box a,
.policy-box a {
  overflow-wrap: anywhere;
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .page-shell {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
  }

  .hero {
    min-height: auto;
  }

  .device-frame {
    width: min(100%, 300px);
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}
