:root {
  color-scheme: light;
  --ink: #16161d;
  --muted: #62646d;
  --line: #dedfe5;
  --paper: #f7f7f4;
  --accent: #d8fb36;
  --accent-dark: #506600;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent-dark);
  font-weight: 800;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

.hero,
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(22, 22, 29, 0.06);
}

.hero {
  padding: 28px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

h1 {
  margin: 18px 0 8px;
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 32px 0 10px;
  font-size: 24px;
  letter-spacing: 0;
}

h3 {
  margin: 20px 0 8px;
  font-size: 18px;
}

p {
  margin: 8px 0;
}

ul {
  padding-left: 20px;
}

li + li {
  margin-top: 6px;
}

.muted {
  color: var(--muted);
}

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

.nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.card {
  padding: 24px 28px;
}

.notice {
  padding: 14px 16px;
  border: 1px solid #efe3b4;
  border-radius: 10px;
  background: #fff8d6;
}

.footer {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.instagram-body {
  background: #090d0a;
}

.instagram-landing {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: #090d0a;
  color: #fff;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.42);
}

.instagram-hero-visual {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #090d0a;
}

.instagram-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 6, 0.1) 22%, rgba(5, 8, 6, 0.18) 46%, rgba(5, 8, 6, 0.86) 100%),
    linear-gradient(90deg, rgba(5, 8, 6, 0.12), rgba(5, 8, 6, 0));
}

.instagram-hero-visual img {
  display: block;
  width: 100%;
  height: 100svh;
  object-fit: cover;
  object-position: 18% center;
}

.instagram-hero-overlay {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 22px calc(28px + env(safe-area-inset-bottom));
}

.instagram-brand {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(9, 13, 10, 0.34);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
}

.instagram-catchphrase {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 950;
  line-height: 1.14;
  letter-spacing: 0;
}

.app-store-badge {
  display: inline-flex;
  margin-top: 18px;
  line-height: 0;
}

.app-store-badge img {
  display: block;
  width: min(218px, 72vw);
  height: auto;
}

.instagram-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

@media (max-width: 560px) {
  .page {
    padding: 20px 14px 48px;
  }

  .hero,
  .card {
    padding: 20px;
    border-radius: 10px;
  }

  .instagram-landing {
    width: 100%;
    box-shadow: none;
  }

  .instagram-hero-visual img {
    object-position: 18% center;
  }
}
