:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-strong: #eef4ff;
  --text: #1f2933;
  --muted: #5f6b7a;
  --border: #d9dee7;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --green: #0f766e;
  --focus: #93c5fd;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f8fbff 0, #ffffff 360px);
  color: var(--text);
  line-height: 1.75;
}

body {
  margin: 0;
  min-width: 320px;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.compact-header {
  background: rgba(255, 255, 255, 0.94);
  position: static;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.document-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.back-link,
.text-brand {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.back-link:hover,
.text-brand:hover {
  color: var(--text);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand::before {
  display: inline-grid;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #1f2933;
  color: #ffffff;
  content: "M";
  font-size: 0.86rem;
  place-items: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  padding: 6px 10px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #f1f5f9;
  color: var(--text);
}

.hero {
  padding: 76px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: 40px;
  align-items: center;
}

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

.page {
  padding: 56px 0 72px;
}

.document-page {
  padding: 32px 0 56px;
}

.section {
  padding: 24px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
}

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

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.35;
}

h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.4;
}

p {
  margin: 0 0 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
}

.content-section {
  margin-top: 36px;
}

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

.studio-panel {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 30px;
}

.panel-mark {
  display: inline-grid;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--accent-strong);
  font-weight: 800;
  place-items: center;
}

.studio-panel h2 {
  margin-bottom: 12px;
}

.studio-panel p {
  color: var(--muted);
}

.studio-facts {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.studio-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.studio-facts dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.studio-facts dd {
  margin: 0;
  font-weight: 700;
}

ul {
  margin: 0 0 18px;
  padding-left: 1.35rem;
}

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

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 700;
}

.app-list {
  display: grid;
  gap: 16px;
}

.app-card,
.notice,
.contact-box,
.document {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
}

.document {
  width: min(100% - 32px, 800px);
  box-shadow: 0 12px 34px rgba(31, 41, 51, 0.06);
  line-height: 1.62;
  padding: 32px 38px;
}

.document-title {
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.document-title .eyebrow {
  margin-bottom: 6px;
}

.document h1 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  line-height: 1.38;
}

.document h2 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
}

.document p {
  margin-bottom: 10px;
}

.document ul {
  margin-bottom: 10px;
  padding-left: 1.2rem;
}

.document li + li {
  margin-top: 2px;
}

.document .content-section {
  margin-top: 22px;
}

.app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 12px 32px rgba(31, 41, 51, 0.07);
}

.app-card-body {
  flex: 1;
}

.app-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--accent-strong);
  font-weight: 800;
  place-items: center;
}

.app-icon.large {
  width: 72px;
  height: 72px;
  font-size: 1.15rem;
}

.app-heading {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.app-status {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  padding: 8px 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  color: var(--accent);
  box-shadow: none;
}

.button.secondary:hover {
  background: #eff6ff;
  color: var(--accent-strong);
}

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

.policy h2 {
  padding-top: 2px;
}

.policy-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 20px;
}

.policy-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

.small-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner,
  .app-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .studio-panel {
    padding: 22px;
  }

  .page {
    padding: 42px 0 56px;
  }

  .document-page {
    padding: 20px 0 42px;
  }

  .app-card,
  .notice,
  .contact-box,
  .document {
    padding: 18px;
  }

  .document-header,
  .policy-meta {
    grid-template-columns: 1fr;
  }

  .document-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .button {
    width: 100%;
  }

  .action-row,
  .hero-actions {
    flex-direction: column;
  }

  .app-heading {
    flex-direction: column;
  }
}
