:root {
  color-scheme: light;
  --ink: #17231f;
  --ink-soft: #56635e;
  --paper: #f2f2ec;
  --surface: #fbfbf7;
  --line: #d1d6cf;
  --line-dark: #8b9690;
  --accent: #087a4f;
  --accent-dark: #055b3c;
  --accent-pale: #d9ebe1;
  --error: #9e2f2f;
  --error-bg: #f8e8e4;
  --radius: 16px;
  --shell: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.04em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.7rem, 5.3vw, 5.2rem);
}

h2 {
  font-size: clamp(2.15rem, 4vw, 3.85rem);
}

h3 {
  font-size: 1.25rem;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #0a8558;
  outline-offset: 3px;
}

.site-header {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 242, 236, 0.96);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 29px;
  height: 29px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  padding: 5px;
  border-radius: 8px;
  background: var(--ink);
}

.brand-mark i {
  display: block;
  border-radius: 2px 2px 0 0;
  background: #55d299;
}

.brand-mark i:nth-child(1) { height: 50%; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 72%; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.9rem;
  font-weight: 680;
  white-space: nowrap;
}

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

.main-nav > a:not(.button):hover,
.footer-grid nav a:hover,
.text-link:hover,
.back-link:hover {
  color: var(--accent);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #74807a;
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.06em;
}

.language-switch a {
  color: #6b7771;
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

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

.button--small {
  min-height: 40px;
  padding-inline: 17px;
}

.button--light {
  border-color: var(--surface);
  background: var(--surface);
  color: var(--ink);
}

.button--light:hover {
  border-color: var(--accent-pale);
  background: var(--accent-pale);
}

.button--block {
  width: 100%;
}

.hero {
  min-height: min(740px, calc(100dvh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(23, 35, 31, 0.045) 50%, transparent 50.05%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(390px, 0.84fr) minmax(520px, 1.16fr);
  gap: clamp(48px, 6vw, 94px);
  align-items: center;
  padding-block: clamp(54px, 7vh, 82px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.auth-index {
  margin-bottom: 24px;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
}

.hero-lead {
  max-width: 580px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.5vw, 1.27rem);
}

.button-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.text-link,
.back-link {
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.free-note {
  margin: 20px 0 0;
  color: #4f5e58;
  font-size: 0.86rem;
}

.free-note span {
  color: var(--accent);
  font-weight: 900;
}

.hero-product {
  position: relative;
  width: min(760px, 58vw);
  margin: 0;
  padding: 10px;
  border: 1px solid #8c9892;
  border-radius: 18px;
  background: #e4e7e1;
  box-shadow: 0 34px 80px rgba(20, 38, 31, 0.19);
  transform: rotate(0.6deg);
}

.hero-product::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -32px 12% 42%;
  border-radius: 50%;
  background: rgba(8, 122, 79, 0.15);
  filter: blur(44px);
}

.hero-product img {
  width: 100%;
  border-radius: 10px;
  background: white;
}

.hero-product figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 7px 5px;
  color: #3d4b46;
  font-size: 0.76rem;
}

.hero-product figcaption span {
  color: var(--accent-dark);
  font-weight: 780;
  text-transform: uppercase;
}

.hero-product figcaption strong {
  font-weight: 680;
  text-align: right;
}

.proof-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-grid p {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 3px;
  margin: 0;
  padding: 20px 28px;
  border-right: 1px solid var(--line);
}

.proof-grid p:first-child {
  border-left: 1px solid var(--line);
}

.proof-grid strong {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.proof-grid span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.comparison-section,
.quick-task,
.features-section,
.use-cases,
.faq-section {
  padding: 108px 0;
  border-bottom: 1px solid var(--line);
}

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(540px, 1.28fr);
  gap: clamp(54px, 9vw, 130px);
  align-items: start;
}

.comparison-grid > div:first-child {
  position: sticky;
  top: 34px;
}

.comparison-grid h2 {
  margin-bottom: 24px;
}

.comparison-grid > div:first-child p,
.quick-copy > p,
.section-heading p,
.cases-copy p,
.case-index p,
.faq-list p {
  color: var(--ink-soft);
}

.comparison-table {
  overflow-x: auto;
  border-top: 1px solid var(--line-dark);
}

.comparison-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.comparison-table th {
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  background: var(--accent-pale);
  color: #154c37;
}

.comparison-table td:first-child {
  font-weight: 740;
}

.quick-task {
  background: var(--ink);
  color: var(--surface);
}

.quick-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(460px, 1.18fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
}

.quick-copy h2 {
  margin-bottom: 24px;
}

.quick-copy > p {
  color: #b7c2bd;
  font-size: 1.08rem;
}

.plain-list {
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid #52605a;
  list-style: none;
}

.plain-list li {
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid #52605a;
  background: linear-gradient(#55d299, #55d299) 2px 23px / 8px 2px no-repeat;
}

.task-demo {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid #58665f;
  border-radius: var(--radius);
  background: #202f2a;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.23);
}

.task-demo-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  font-size: 1.35rem;
  font-weight: 760;
}

.task-demo-title span {
  padding: 5px 9px;
  border: 1px solid #68766f;
  border-radius: 999px;
  color: #b9c5bf;
  font-size: 0.7rem;
  font-weight: 680;
}

.demo-field {
  display: grid;
  gap: 5px;
  padding: 16px 17px;
  border: 1px solid #6c7a73;
  border-bottom: 0;
  background: #f7f8f3;
  color: var(--ink);
}

.demo-field:first-of-type {
  border-radius: 10px 10px 0 0;
}

.demo-field--dates {
  border-bottom: 1px solid #6c7a73;
  border-radius: 0 0 10px 10px;
}

.demo-field span {
  color: #65716c;
  font-size: 0.72rem;
}

.demo-field strong {
  font-weight: 680;
}

.demo-submit {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 10px;
  background: #55d299;
  color: #10241c;
  font-weight: 780;
}

.features-section {
  background: var(--surface);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 58px;
}

.section-heading h2 {
  margin-bottom: 20px;
}

.section-heading p {
  max-width: 620px;
  font-size: 1.06rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  grid-template-rows: repeat(2, minmax(220px, auto));
  gap: 14px;
}

.feature-grid article {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eceee8;
}

.feature-grid .feature-primary {
  grid-row: 1 / 3;
  background: var(--accent-pale);
}

.feature-grid article:nth-child(4) {
  grid-column: 2 / 4;
  background: var(--ink);
  color: white;
}

.feature-grid span {
  margin-bottom: auto;
  color: var(--accent);
  font-family: Consolas, monospace;
  font-size: 0.78rem;
}

.feature-primary::before {
  content: "";
  width: min(100%, 340px);
  height: 94px;
  display: block;
  margin: 28px 0 auto;
  border: solid var(--accent);
  border-width: 1px 0;
  background: repeating-linear-gradient(90deg, transparent 0 67px, rgba(8, 122, 79, 0.26) 68px 69px);
}

.feature-grid h3 {
  margin: 22px 0 10px;
  font-size: 1.38rem;
}

.feature-grid p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.feature-grid article:nth-child(4) p {
  color: #b8c4be;
}

.use-cases {
  background: var(--paper);
}

.cases-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 10vw;
}

.cases-copy {
  max-width: 490px;
}

.cases-copy p {
  margin-top: 24px;
  font-size: 1.08rem;
}

.case-index article {
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
}

.case-index article:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.case-index span {
  display: block;
  margin-bottom: 28px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-index h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.cta-section {
  padding: 84px 0;
  background: var(--accent-dark);
  color: white;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
}

.cta-inner h2 {
  max-width: 820px;
  margin-bottom: 16px;
}

.cta-inner p {
  max-width: 680px;
  margin-bottom: 0;
  color: #d8e9e0;
}

.install-section {
  padding: 108px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(480px, 1.25fr);
  gap: clamp(54px, 9vw, 130px);
  align-items: start;
}

.install-grid h2 {
  max-width: 10ch;
  margin-bottom: 22px;
}

.install-grid > div > p,
.install-steps p {
  color: var(--ink-soft);
}

.install-button {
  margin-top: 20px;
}

.install-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-dark);
}

.install-steps article {
  min-height: 170px;
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--line-dark);
}

.install-steps article + article {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.install-steps strong {
  font-size: 1.15rem;
}

.install-steps p {
  margin: 12px 0 0;
  line-height: 1.55;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 10vw;
}

.faq-list {
  border-top: 1px solid var(--line-dark);
}

.faq-list details {
  border-bottom: 1px solid var(--line-dark);
}

.faq-list summary {
  padding: 24px 42px 24px 0;
  font-size: 1.08rem;
  font-weight: 760;
  cursor: pointer;
}

.faq-list p {
  max-width: 650px;
  padding: 0 30px 24px 0;
}

.site-footer {
  padding: 64px 0 24px;
  background: var(--ink);
  color: #edf1ec;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  padding-bottom: 56px;
}

.site-footer .brand {
  color: white;
}

.footer-grid p {
  max-width: 380px;
  margin: 20px 0 18px;
  color: #aebbb5;
}

.site-footer .language-switch a[aria-current="page"] {
  color: white;
}

.footer-grid nav {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #415049;
  color: #93a19b;
  font-size: 0.8rem;
}

.auth-section {
  min-height: 690px;
  padding: 76px 0 100px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(420px, 1.16fr);
  gap: 9vw;
  align-items: start;
}

.auth-aside {
  position: sticky;
  top: 40px;
  padding-top: 22px;
}

.auth-aside h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.auth-aside p {
  max-width: 440px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.auth-aside .back-link {
  display: inline-block;
  margin-top: 30px;
}

.form-panel {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-heading {
  margin-bottom: 34px;
}

.form-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.form-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.auth-form {
  display: grid;
  gap: 22px;
}

.invite-details {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.invite-details div {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
  padding: 11px 13px;
  background: var(--paper);
}

.invite-details dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.invite-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.check-group legend {
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 760;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.label-row a {
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 680;
}

.field input[type="email"],
.field input[type="text"],
.field input[type="password"] {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.field input:hover {
  border-color: #53635c;
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
  background: #fffafa;
}

.field-help {
  color: #596761;
  font-size: 0.82rem;
}

.form-message {
  padding: 12px 14px;
  border-left: 4px solid var(--error);
  border-radius: 6px;
  background: var(--error-bg);
  color: #751f1f;
  font-weight: 680;
}

.form-message--status {
  border-color: var(--accent);
  background: var(--accent-pale);
  color: #134e37;
}

.check-group {
  display: grid;
  gap: 14px;
  margin: 2px 0 4px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.check-group legend {
  padding-right: 10px;
}

.check-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  color: #33413c;
  font-size: 0.88rem;
  line-height: 1.45;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.check-field a,
.form-switch a {
  color: var(--accent-dark);
  font-weight: 680;
}

.form-switch {
  margin: 28px 0 0;
  color: var(--ink-soft);
  text-align: center;
}

.status-section {
  min-height: 640px;
  display: grid;
  place-items: center;
  padding: 70px 24px;
}

.status-panel {
  width: min(100%, 590px);
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.status-mark {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 28px;
  border: 10px solid var(--accent-pale);
  border-radius: 50%;
  background: var(--accent);
}

.status-panel h1 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
}

.status-panel .form-message {
  margin-bottom: 28px;
  text-align: left;
}

.legal-page {
  padding-top: 90px;
  padding-bottom: 120px;
}

.legal-page > header {
  max-width: 850px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line-dark);
}

.legal-page h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.legal-page header > p:last-child {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.legal-content {
  max-width: 780px;
  margin: 60px 0 52px clamp(0px, 12vw, 180px);
}

.legal-content section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.legal-content p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

/* V3 landing: five focused sections with a full-width product view. */
.landing .hero {
  min-height: auto;
  background: var(--paper);
}

.landing .hero-copy {
  max-width: 980px;
  padding-block: clamp(64px, 9vw, 116px);
}

.landing .hero h1 {
  max-width: 920px;
}

.product-shot {
  padding: clamp(34px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.product-shot figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: white;
  box-shadow: 0 28px 70px rgba(20, 38, 31, 0.14);
}

.product-shot img {
  width: 100%;
  height: auto;
}

.scenarios-section,
.steps-section {
  padding: clamp(78px, 9vw, 126px) 0;
  border-bottom: 1px solid var(--line);
}

.scenarios-section {
  background: var(--paper);
}

.steps-section {
  background: var(--surface);
}

.scenario-grid,
.steps-grid {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
}

.scenario-grid {
  grid-template-columns: repeat(4, 1fr);
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.scenario-grid article,
.steps-grid li {
  min-height: 250px;
  padding: 28px;
  background: var(--surface);
}

.steps-grid li {
  background: var(--paper);
}

.scenario-grid span,
.steps-grid span {
  display: block;
  margin-bottom: 68px;
  color: var(--accent-dark);
  font-family: Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.scenario-grid h3,
.steps-grid h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.scenario-grid p,
.steps-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

@media (max-width: 1080px) {
  .nav-section-link {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(340px, 0.85fr) minmax(450px, 1.15fr);
    gap: 42px;
  }

  .hero-product {
    width: 56vw;
  }

  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .comparison-grid,
  .quick-grid,
  .cases-grid,
  .faq-layout,
  .install-grid,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

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

  .hero-product {
    width: 100%;
    transform: none;
  }

  .comparison-grid > div:first-child,
  .auth-aside {
    position: static;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .feature-grid .feature-primary {
    grid-row: auto;
  }

  .feature-grid article:nth-child(4) {
    grid-column: auto;
  }

  .auth-grid {
    gap: 50px;
  }

  .auth-aside {
    max-width: 680px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid li {
    min-height: 0;
  }

  .steps-grid span {
    margin-bottom: 34px;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .site-header,
  .header-inner {
    min-height: 64px;
  }

  .header-inner {
    gap: 12px;
  }

  .main-nav {
    gap: 10px;
  }

  .main-nav .login-link {
    display: none;
  }

  .main-nav > .language-switch {
    display: none;
  }

  .hero-grid {
    padding-block: 52px 58px;
  }

  .landing .hero-copy {
    padding-block: 58px 64px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .button-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
  }

  .hero-product {
    padding: 6px;
    border-radius: 13px;
  }

  .hero-product figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px 5px 4px;
  }

  .hero-product figcaption strong {
    text-align: left;
  }

  .product-shot .shell {
    width: 100%;
  }

  .product-shot figure {
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .product-shot img {
    width: 760px;
    max-width: none;
  }

  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .scenario-grid article {
    min-height: 210px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid p,
  .proof-grid p:first-child {
    min-height: 82px;
    padding-inline: 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-grid p:last-child {
    border-bottom: 0;
  }

  .comparison-section,
  .quick-task,
  .features-section,
  .use-cases,
  .faq-section {
    padding: 76px 0;
  }

  .install-section {
    padding: 76px 0;
  }

  .install-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .install-grid h2 {
    max-width: none;
  }

  .install-steps {
    grid-template-columns: 1fr;
  }

  .install-steps article + article {
    padding-left: 0;
    border-left: 0;
  }

  .comparison-grid,
  .quick-grid {
    gap: 44px;
  }

  .comparison-table {
    margin-right: -16px;
    padding-right: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 230px;
    padding: 24px;
  }

  .feature-primary::before {
    height: 70px;
  }

  .cta-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    gap: 32px;
  }

  .cta-inner .button {
    justify-self: start;
  }

  .footer-grid {
    gap: 42px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-section {
    padding: 54px 0 76px;
  }

  .auth-aside h2 {
    font-size: 2.5rem;
  }

  .form-panel {
    padding: 26px 20px;
  }

  .label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .legal-page {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .legal-content {
    margin: 36px 0 42px;
  }
}

@media (max-width: 430px) {
  .brand {
    font-size: 0.86rem;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .main-nav .button {
    min-height: 38px;
    max-width: 145px;
    padding-inline: 11px;
    font-size: 0.72rem;
    line-height: 1.12;
    text-align: center;
    white-space: normal;
  }

  h2 {
    font-size: 2.12rem;
  }

  .hero h1 {
    font-size: 2.62rem;
  }

  .hero .button,
  .cta-inner .button {
    width: 100%;
    padding-inline: 14px;
  }

  .task-demo {
    padding: 18px;
  }

  .demo-submit {
    font-size: 0.9rem;
  }

  .form-panel {
    margin-inline: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .legal-page > .back-link {
    display: none;
  }

  body {
    background: white;
  }

  .legal-page {
    padding: 0;
  }
}
