:root {
  color-scheme: light;
  --stone: #ded9d1;
  --ink: #222b2f;
  --body: #3b4140;
  --line: #b5afa6;
  --accent: #4a5d63;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--stone);
}
* { box-sizing: border-box; }
body { margin: 0; }
.cover { position: relative; isolation: isolate; color: #fbfaf7; background: #10191e; }
.cover-bar { display: contents; }
.cover picture, .cover picture img { display: block; width: 100%; height: auto; }
.cover .brand-line, .cover h1 {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.access {
  position: absolute; z-index: 2; top: 8.4%; right: 4.9%; transform: translateY(-50%);
  display: grid; place-items: center; width: 11.9%; min-height: max(44px, 4.8%);
  border-radius: 2rem; color: inherit; text-decoration: none;
}
/* На широкой обложке надпись уже напечатана на фотографии. */
.access span { position: absolute; clip-path: inset(50%); }
.access .access-arrow { display: none; }
.access:focus-visible { outline: 2px solid #d6edff; outline-offset: 3px; }
.access:hover { box-shadow: inset 0 0 0 1px #fff9; }
.beta { background: #d3cec5; scroll-margin-block-start: 1rem; }
.beta-inner {
  max-width: 72rem; margin: auto; padding: clamp(2.4rem, 6vw, 5rem) 5%;
  display: grid; grid-template-columns: 1.1fr minmax(15rem, .9fr);
  gap: clamp(2rem, 7vw, 6rem); align-items: start;
}
.beta-intro h2 { max-width: 17ch; margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -.05em; overflow-wrap: break-word; }
.beta-intro p { max-width: 39ch; margin: 1rem 0 0; color: var(--body); line-height: 1.5; }
.beta-form { display: grid; align-content: start; gap: .55rem; }
.beta-form label { font-size: .95rem; font-weight: 600; }
.beta-form input, .beta-form textarea, .beta-form button { min-height: 48px; padding: .7rem 1rem; font: inherit; border-radius: .55rem; }
.beta-form input, .beta-form textarea { width: 100%; color: var(--ink); background: #f1eee8; border: 1px solid #928d85; margin-bottom: .55rem; }
.beta-form textarea { resize: vertical; }
.beta-form .optional { margin-inline-start: .4em; color: var(--body); font-weight: 400; font-size: .85em; }
.beta-form button { justify-self: start; color: #fff; background: #304b55; border: 0; font-weight: 600; cursor: pointer; }
.beta-form button:hover { background: #233c45; }
.beta-form button:disabled { cursor: wait; }
.beta-form :focus-visible { outline: 2px solid #285a70; outline-offset: 2px; }
.form-status { margin: 0; line-height: 1.45; }
.form-status:empty { display: none; }
.features {
  max-width: 72rem; margin-inline: auto;
  padding: clamp(2.2rem, 4.3vw, 4.5rem) 5% clamp(2.5rem, 5vw, 5rem);
}
.features h2 {
  margin: 0 0 clamp(1.2rem, 2.3vw, 2.2rem);
  font-size: clamp(2rem, 3.7vw, 3.7rem); line-height: 1.04; letter-spacing: -.055em;
}
.feature-row {
  --photo-width: min(27%, 13.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--photo-width);
  grid-template-areas: "copy photo";
  align-items: center;
  gap: clamp(1.3rem, 5vw, 4rem);
  padding-block: clamp(1rem, 1.65vw, 1.65rem);
  border-top: 1px solid var(--line);
}
.feature-row:nth-child(even) {
  grid-template-columns: var(--photo-width) minmax(0, 1fr);
  grid-template-areas: "photo copy";
}
.feature-copy { grid-area: copy; min-width: 0; max-width: 57ch; }
.feature-copy h3 {
  margin: 0 0 .4rem; font-size: clamp(1.14rem, 1.8vw, 1.65rem);
  line-height: 1.17; letter-spacing: -.027em;
}
.feature-copy p { margin: 0; font-size: clamp(1rem, 1.13vw, 1.12rem); line-height: 1.48; color: var(--body); }
.feature-row img { grid-area: photo; width: 100%; height: auto; display: block; border-radius: .22rem; }
/* A smaller viewport uses the unlettered photograph and live text. */
@media (max-width: 44rem), (max-width: 60rem) and (max-height: 32rem) and (orientation: landscape) {
  body {
    --gutter: clamp(1.125rem, 5.3vw, 2.2rem);
    --left: max(var(--gutter), env(safe-area-inset-left));
    --right: max(var(--gutter), env(safe-area-inset-right));
    --night: #172022;
    background: #e9e3d9;
  }
  .cover {
    display: grid; grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "bar" "photo" "title";
    background: var(--night);
  }
  .cover-bar {
    grid-area: bar; z-index: 2; display: flex; align-items: center;
    justify-content: space-between; gap: .65rem; flex-wrap: wrap;
    padding: max(.65rem, env(safe-area-inset-top)) var(--right) .65rem var(--left);
  }
  .cover .brand-line, .cover h1 {
    position: relative; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal;
  }
  .brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.37rem; font-weight: 750; letter-spacing: -.05em; }
  .brand img { width: 1.85rem; height: 1.85rem; border-radius: .43rem; }
  .access {
    position: static; display: inline-flex; gap: .55rem; align-items: center; width: auto;
    min-height: 44px; transform: none; padding: .55rem .85rem; border: 1px solid #768084;
    border-radius: 2rem; font-size: .82rem; line-height: 1.1; font-weight: 550;
  }
  .access span { position: static; clip-path: none; }
  .access .access-arrow { display: inline; font-size: 1.05em; }
  .cover picture { grid-area: photo; position: relative; height: clamp(14.5rem, 78vw, 29rem); }
  .cover picture img { height: 100%; object-fit: cover; object-position: 50% 22%; }
  .cover picture::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, transparent 41%, rgb(23 32 34 / 12%) 59%, rgb(23 32 34 / 83%) 90%, var(--night));
  }
  .cover h1 {
    z-index: 1; grid-area: title; margin: clamp(-4.5rem, -13vw, -2.6rem) var(--right) 0 var(--left);
    padding-bottom: clamp(1.8rem, 6vw, 2.8rem);
    font-size: clamp(2.6rem, 11.5vw, 4.2rem); line-height: 1.01; letter-spacing: -.058em;
  }
  .cover h1 span { color: #abd3ed; }

  .features { padding: clamp(2.3rem, 8vw, 3.5rem) var(--right) 2.35rem var(--left); }
  .features h2, .beta-intro h2 {
    font-size: clamp(2rem, 8.3vw, 2.85rem); line-height: 1.07; letter-spacing: -.052em;
    text-wrap: balance;
  }
  .features h2 { margin-bottom: 1.35rem; }
  .feature-row { --photo-width: min(30%, 10.75rem); gap: clamp(1rem, 4vw, 1.8rem); padding-block: 1.35rem; border-color: #bcb5aa; }
  .feature-copy h3 { font-size: clamp(1.28rem, 4.8vw, 1.55rem); line-height: 1.14; text-wrap: balance; }
  .feature-copy p, .beta-intro p { font-size: 1rem; line-height: 1.5; }
  .feature-row img { border-radius: .55rem; }
  .beta { background: #dad4c9; scroll-margin-top: 0; }
  .beta-inner {
    grid-template-columns: minmax(0, 1fr); gap: 1.55rem;
    padding: 2.35rem var(--right) max(2.7rem, calc(1.5rem + env(safe-area-inset-bottom))) var(--left);
  }
  .beta-intro h2 { max-width: 19ch; }
  .beta-term { display: inline-block; max-width: 100%; }
  .beta-intro p { margin-top: .85rem; }
  .beta-form { gap: .45rem; }
  .beta-form label { font-size: 1rem; }
  .beta-form input, .beta-form textarea, .beta-form button {
    min-width: 0; font-size: 1rem; min-height: 3.25rem; padding: .85rem 1rem; border-radius: .7rem;
  }
  .beta-form input, .beta-form textarea { background: #f5f1eb; margin-bottom: .75rem; }
  .beta-form textarea { min-height: 5rem; }
  .beta-form button { width: 100%; }
  .form-status { margin-top: .35rem; }
}
@media (max-width: 32rem) {
  .feature-copy { display: contents; }
  .feature-copy h3 { grid-area: title; margin: 0; overflow-wrap: break-word; }
  .feature-copy p { grid-area: description; }
  .feature-row {
    --photo-width: clamp(5.8rem, 30vw, 8.5rem);
    grid-template-areas: "title photo" "description description";
    row-gap: .75rem;
  }
  .feature-row:nth-child(even) { grid-template-areas: "photo title" "description description"; }
}
@media (max-width: 22rem) {
  .brand { font-size: 1.22rem; gap: .36rem; }
  .brand img { width: 1.7rem; height: 1.7rem; }
  .access { font-size: .78rem; padding-inline: .68rem; }
  .access .access-arrow { display: none; }
}
@media (orientation: landscape) and (max-width: 60rem) and (max-height: 32rem) {
  .cover { grid-template-areas: "bar" "title"; }
  .cover picture {
    position: absolute; inset: 0 0 0 auto; width: 65%; height: 100%; grid-area: auto;
  }
  .cover picture img { object-position: 50% 26%; }
  .cover picture::after { background: linear-gradient(90deg, var(--night), transparent 48%), linear-gradient(to bottom, #1720228c, transparent 45%); }
  .cover h1 { margin-top: .65rem; font-size: clamp(2.55rem, 5.75vw, 3.4rem); }
}

.beta-form button:disabled, .beta-form button:disabled:hover { cursor: default; background: #65716e; }
