@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f7f9f4;
  --ink: #16291f;
  --muted: #43564b;
  --accent: #23583f;
  --button: #17432f;
  --button-ink: #fff;
  --line: #b5c2b8;
  --control: #6b8072;
  --pill: #e3efe0;
  --stage: #173e32;
  --grid: #ffffff23;
  --focus: #12589e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #14221b;
    --ink: #f1f8ed;
    --muted: #c3d2c5;
    --accent: #b4e7ab;
    --button: #c6edb7;
    --button-ink: #17432f;
    --line: #64796a;
    --control: #91a897;
    --pill: #304537;
    --stage: #234839;
    --focus: #a8d6ff;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #14221b;
  --ink: #f1f8ed;
  --muted: #c3d2c5;
  --accent: #b4e7ab;
  --button: #c6edb7;
  --button-ink: #17432f;
  --line: #64796a;
  --control: #91a897;
  --pill: #304537;
  --stage: #234839;
  --focus: #a8d6ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.58 "DM Sans", system-ui, sans-serif;
}
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
p { color: var(--muted); }

.container { width: min(100% - 3rem, 75rem); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 1;
  padding: .55rem 1rem;
  background: var(--page);
  transform: translateY(-110%);
}
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .header-controls, .brand, .languages { display: flex; align-items: center; }
.header-inner { justify-content: space-between; min-height: 4.6rem; gap: .6rem; }
.brand { gap: .65rem; color: var(--ink); font-weight: 750; letter-spacing: -.025em; text-decoration: none; }
.brand img { border-radius: .6rem; }
.header-controls { gap: .5rem; }
.languages { gap: .15rem; }
.languages a, .theme {
  display: grid;
  place-items: center;
  min-width: 2.65rem;
  min-height: 2.65rem;
  border-radius: .5rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.languages a[aria-current] { background: var(--pill); border-color: var(--control); }
.theme { background: transparent; border-color: var(--control); cursor: pointer; }
.theme span { font-size: 1.25rem; line-height: 1; }
.theme[hidden] { display: none; }

.hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.6rem, 6vw, 5.5rem);
}
.platform { margin-bottom: 1.2rem; font-weight: 700; color: var(--accent); }
h1 { font-size: clamp(2.35rem, 4.75vw, 4.55rem); line-height: 1.05; letter-spacing: -.05em; }
h1 span { color: var(--accent); display: block; }
.subtitle { max-width: 32rem; margin-top: 1.35rem; font-size: clamp(1.06rem, 1.65vw, 1.24rem); }
.button {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.6rem;
  padding: .75rem 1rem;
  border-radius: .6rem;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { text-decoration: underline; }
.gallery { width: min(100%, 36rem); }
.showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: center;
  gap: clamp(.45rem, 1.1vw, .9rem);
  padding: clamp(.75rem, 2.5vw, 2rem);
  border-radius: 1.5rem;
  background: var(--stage);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-position: center;
  background-size: 3.4rem 3.4rem;
}
.showcase figure { min-width: 0; margin: 0; }
.showcase figcaption {
  margin-top: .6rem;
  color: #f1f8ed;
  font-size: clamp(.75rem, 1.15vw, .88rem);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}
.phone {
  width: 100%;
  height: auto;
  border: 5px solid #0a1e17;
  border-radius: clamp(.85rem, 2.3vw, 1.75rem);
  box-shadow: 0 1rem 2.5rem #08171158;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.gallery-theme {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
  min-width: 0;
  margin: .65rem 0 0;
  padding: 0;
  border: 0;
}
.gallery-theme[hidden] { display: none; }
.gallery-theme label { position: relative; }
.gallery-theme input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.gallery-theme span {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding-inline: .7rem;
  border: 1px solid var(--control);
  border-radius: .5rem;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 650;
}
.gallery-theme input:checked + span {
  background: var(--button);
  color: var(--button-ink);
}
.gallery-theme input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .gallery-theme input:checked + span {
    border-color: Highlight;
    box-shadow: inset 0 0 0 1px Highlight;
    color: Highlight;
  }
}

.workflow, .compatibility, .demo { padding-block: clamp(2.1rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.demo video {
  display: block;
  width: min(100%, 60rem);
  height: auto;
  margin-top: 1.4rem;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--stage);
}
h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); letter-spacing: -.035em; line-height: 1.17; }
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 2.1rem 0 0;
  padding: 0;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: .75rem;
  border-radius: 50%;
  background: var(--pill);
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 700;
}
.steps h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: .45rem; }
.compatibility { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem 3rem; }
.compatibility p + p { margin-block: .8rem; }
.compatibility a, .site-footer a { font-weight: 650; }

.policy { max-width: 45rem; padding-block: clamp(2.5rem, 7vw, 5.25rem); }
.policy h1 { font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: 1.35rem; }
.policy h2 { margin-top: 2rem; margin-bottom: .6rem; font-size: clamp(1.3rem, 3.6vw, 1.65rem); }
.policy p + p { margin-top: .85rem; }
.site-footer {
  padding-block: 1.55rem 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.3rem;
  align-items: center;
  border-top: 1px solid var(--line);
}
.site-footer small { color: var(--muted); margin-right: auto; font-size: .9rem; }
.site-footer small span { margin-inline: .3rem; }

@media (max-width: 54rem) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .compatibility { grid-template-columns: 1fr; }
}

@media (max-width: 28rem) {
  .container { width: calc(100% - 2rem); }
  .brand { gap: .35rem; font-size: .9rem; }
  .brand img { width: 1.7rem; height: 1.7rem; }
  .header-controls { gap: .2rem; }
  .languages a, .theme { min-width: 2.45rem; min-height: 2.6rem; }
  .phone { border-width: 3px; }
}
