:root {
  color-scheme: light;
  --ink: #1f2428;
  --muted: #626a70;
  --line: #dde3e0;
  --paper: #ffffff;
  --soft: #f6f8f7;
  --soft-2: #eef4f1;
  --green: #0f7b5f;
  --amber: #c96a28;
  --rose: #b23a63;
  --violet: #6750a4;
  --blue: #2d6f9f;
  --shadow: 0 18px 42px rgba(29, 36, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 227, 224, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1f2428;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.language-switch a {
  min-width: 34px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
}

.language-switch a.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(31, 36, 40, 0.12);
}

.nav-links a {
  text-decoration: none;
}

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

.hero,
.app-hero,
.legal-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 78px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
}

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

p {
  margin: 0;
}

.lead {
  margin-top: 22px;
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
}

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

.button {
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 720;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

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

.app-store-link {
  display: inline-flex;
  align-items: center;
  width: 150px;
  height: 45px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(31, 36, 40, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-store-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(31, 36, 40, 0.2);
}

.app-store-link img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}

.hero-mosaic img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--soft);
  border: 1px solid var(--line);
}

.hero-mosaic img:nth-child(1) {
  margin-top: 48px;
}

.hero-mosaic img:nth-child(2) {
  margin-bottom: 38px;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

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

.section-header p {
  color: var(--muted);
  font-size: 18px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.app-card,
.tutorial-card,
.feature-card,
.policy-card,
.support-card,
.link-row,
.mock-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.app-card {
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tutorial-card {
  min-height: 176px;
  padding: 20px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tutorial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tutorial-card p {
  color: var(--muted);
  font-size: 15px;
}

.icon {
  width: 66px;
  height: 66px;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(31, 36, 40, 0.16);
}

.icon.generated {
  display: grid;
  place-items: center;
  color: #fff;
  background: #202124;
  font-size: 24px;
  font-weight: 840;
}

.app-card h3 {
  margin-top: 18px;
}

.app-card p {
  color: var(--muted);
  font-size: 15px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.link-row {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 16px;
}

.link-row strong {
  display: block;
}

.link-row span {
  color: var(--muted);
  font-size: 14px;
}

.link-row a {
  color: var(--green);
  font-weight: 720;
  text-decoration: none;
}

.app-hero {
  padding: 64px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.82fr);
  align-items: center;
  gap: 48px;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.app-title h1 {
  font-size: clamp(40px, 6vw, 68px);
}

.app-title .icon {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
}

.hero-shot,
.phone-shot,
.wide-shot {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-shot {
  max-width: 360px;
  margin-left: auto;
}

.feature-grid,
.policy-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.policy-card,
.support-card {
  padding: 22px;
}

.feature-card p,
.policy-card p,
.support-card p {
  color: var(--muted);
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.screens.two {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
}

.mock-panel {
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

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

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.legal-hero {
  padding: 58px 0 28px;
}

.legal-layout {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.tutorial-layout {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.tutorial-section {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(260px, 0.82fr);
  align-items: center;
  gap: 22px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.tutorial-section h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 38px);
}

.tutorial-number {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 820;
}

.tutorial-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.tutorial-steps li + li {
  margin-top: 10px;
}

.tutorial-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: 0 14px 32px rgba(31, 36, 40, 0.10);
  overflow: hidden;
}

.tutorial-media img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  background: #fff;
}

.tutorial-media.diagram-media img {
  max-height: 440px;
  padding: 8px;
  background: #f6f7fb;
}

.tutorial-media figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.tutorial-icon-pair {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  background: var(--soft-2);
}

.tutorial-icon-pair img {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(31, 36, 40, 0.18);
  background: transparent;
}

.legal-layout h2 {
  font-size: 28px;
  margin-top: 34px;
}

.legal-layout h3 {
  margin-top: 26px;
}

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

.legal-layout ul {
  padding-left: 22px;
}

.legal-box {
  margin: 26px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

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

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: var(--ink);
  text-decoration: none;
}

.accent-green {
  color: var(--green);
}

.accent-amber {
  color: var(--amber);
}

.accent-rose {
  color: var(--rose);
}

.accent-violet {
  color: var(--violet);
}

.accent-blue {
  color: var(--blue);
}

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

  .hero-shot {
    margin: 0;
  }

  .app-grid,
  .tutorial-grid,
  .feature-grid,
  .policy-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: 62px;
    gap: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-links {
    gap: 10px;
    font-size: 13px;
  }

  .language-switch a {
    min-width: 30px;
    padding: 5px 6px;
  }

  .hero {
    padding-top: 48px;
  }

  .app-hero {
    padding-top: 42px;
  }

  .app-title {
    align-items: flex-start;
  }

  .app-title .icon {
    width: 70px;
    height: 70px;
  }

  .app-grid,
  .tutorial-grid,
  .feature-grid,
  .policy-grid,
  .support-grid,
  .screens,
  .screens.two {
    grid-template-columns: 1fr;
  }

  .link-row {
    grid-template-columns: 1fr;
  }

  .tutorial-card,
  .tutorial-section {
    grid-template-columns: 1fr;
  }

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