.landing {
  --landing-selected: color-mix(in srgb, var(--brand) 9%, var(--surface));
  user-select: text;
}

.landing .wrap { max-width: 1220px; }
.landing .head { background: var(--surface); backdrop-filter: none; }
.landing .head .wrap { height: auto; min-height: 76px; gap: 36px; padding-block: 12px; }
.landing .logo { font-size: 20px; }
.landing .logo img { width: 32px; height: 32px; }
.landing .nav { display: flex; gap: 28px; }
.landing .nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.landing #theme { width: 44px; height: 44px; background: transparent; border-color: transparent; color: var(--soft); }
.landing #theme:hover { background: var(--tint); }
.landing .head .right .btn { display: inline-flex; }
.landing .devnote { text-align: start; padding: 8px 0; }
.landing .btn { border-radius: 8px; font-size: 14px; }
.landing .btn.landing-quiet { border-color: transparent; background: transparent; color: var(--brand); }
.landing .btn.landing-quiet:hover { background: var(--landing-selected); }

.landing-sr, .landing-skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
  overflow: hidden;
}

.landing-skip:focus {
  position: fixed;
  z-index: 50;
  inset: 12px auto auto 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 48px;
  padding: 52px 0 44px;
}

.landing-hero h1 { font-size: clamp(2.25rem, 3.3vw, 2.75rem); line-height: 1.14; letter-spacing: -.027em; font-weight: 600; text-wrap: balance; }
.landing-hero p { max-width: 430px; margin-top: 20px; color: var(--soft); line-height: 1.65; }
.landing-meta { color: var(--soft); font-size: 14px; margin-bottom: 16px; }
.landing-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.landing-fine { color: var(--soft); font-size: 13px; }
.landing-hero .landing-fine { margin-top: 16px; }

.landing-preview {
  min-width: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px #161e2a08;
}

.landing-preview-image {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--tint);
  cursor: zoom-in;
}

.landing-preview-image:focus-visible { position: relative; outline-offset: -4px; }
.landing-preview-image img { display: block; width: 100%; height: 100%; object-fit: contain; min-width: 0; min-height: 0; }
#preview-shumomer img { width: 78%; height: 85%; }

.landing-preview figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}

.landing-preview figcaption .landing-fine { margin: 0 0 0 auto; }

.landing-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
}

.landing-preview-tabs { border: 0; padding: 0; background: none; }
.landing-tabs button { min-height: 40px; padding: 7px 16px; border: 0; background: transparent; border-radius: 6px; color: var(--soft); font: inherit; font-size: 14px; cursor: pointer; }
.landing-preview-tabs button { min-height: 36px; padding-inline: 12px; }
.landing-tabs button:hover { background: var(--tint); color: var(--ink); }
.landing-tabs button[aria-selected=true] { background: var(--landing-selected); color: var(--brand); font-weight: 600; }

.landing-section { padding: 40px 0; }
.landing-section + .landing-section { border-top: 1px solid var(--line); }
.landing-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.landing-heading h2 { font-size: clamp(1.5rem, 2.25vw, 1.875rem); font-weight: 600; line-height: 1.22; letter-spacing: -.017em; }
.landing-heading p { color: var(--soft); margin-top: 8px; }
.landing-catalog { padding: 0 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

.landing-product {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 156px 136px;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}

.landing-product + .landing-product { border-top: 1px solid var(--line); }
.landing-product h3, .landing-workflow h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.landing-product p, .landing-workflow p { margin-top: 4px; color: var(--soft); font-size: 14px; }
.landing-product-status { color: var(--ink); font-size: 14px; }
.landing-product-status small { display: block; margin-top: 2px; color: var(--soft); font-size: 13px; }
.landing-product-status b { font-weight: 600; }
.landing-product > .btn { justify-self: end; }
.landing-workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.landing-workflow .i { display: block; margin-bottom: 12px; color: var(--brand); }
.landing-workflow p { margin-top: 8px; max-width: 35ch; }

.landing-plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 24px;
  align-items: start;
}

.landing-plan-list { min-width: 0; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.landing-plan-head, .landing-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px 112px 28px;
  gap: 16px;
  align-items: center;
  padding: 12px 20px;
}

.landing-plan-head { color: var(--soft); font-size: 13px; }
.landing-plan-head span:nth-child(2), .landing-plan-head span:nth-child(3), .landing-plan-price, .landing-plan-month { text-align: right; }

.landing-plan {
  position: relative;
  min-height: 78px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.landing-plan:last-child { border-radius: 0 0 9px 9px; }
.landing-plan:hover { background: var(--tint); }
.landing-plan:has(input:checked) { background: var(--landing-selected); box-shadow: inset 0 0 0 1px var(--brand); }
.landing-plan:has(input:focus-visible) { z-index: 1; outline: 2px solid var(--brand); outline-offset: 2px; }
.landing-plan input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; opacity: 0; }
.landing-plan-name b { font-weight: 600; }
.landing-plan-name small { display: block; margin-top: 3px; color: var(--soft); font-size: 13px; }
.landing-plan-price { font-weight: 600; }
.landing-plan-month { color: var(--soft); }
.landing-plan-price, .landing-plan-month { white-space: nowrap; font-variant-numeric: tabular-nums; }

.landing-plan-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.landing-plan-mark .i { width: 15px; height: 15px; opacity: 0; }
.landing-plan input:checked ~ .landing-plan-mark { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.landing-plan input:checked ~ .landing-plan-mark .i { opacity: 1; }

.landing-price-summary, .landing-org {
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.landing-price-label { color: var(--soft); font-size: 14px; }
.landing-price-total { margin-top: 8px; color: var(--ink); font-size: 36px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.landing-price-summary p { margin-top: 12px; color: var(--soft); font-size: 14px; }
.landing-summary-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.landing-summary-line b { color: var(--ink); white-space: nowrap; font-weight: 600; }
.landing-price-summary .btn { width: 100%; }
.landing-price-summary [data-plan-summary]:not([hidden]) + .btn { margin-top: 20px; }
.landing-price-summary .landing-fine { font-size: 13px; }
.landing-price-note { margin-top: 24px; }

.landing-buyer-panels #organization { margin-top: 20px; }
.landing-ready .landing-buyer-panels #organization { margin-top: 0; }
.landing-org h3 { font-size: clamp(1.2rem, 2vw, 1.375rem); }
.landing-org p { margin-top: 8px; color: var(--soft); }

.landing-faq { margin: 0; border-top: 0; }
.landing-faq summary { position: relative; padding-right: 30px; font-size: 16px; font-weight: 550; }
.landing-faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.landing-faq summary::after,
.landing-faq details[open]:not(.closing) summary::after {
  position: absolute;
  right: 4px;
  top: calc(50% - 6px);
  transform: none;
  background-size: 12px 1px, 1px 12px;
  transition: background-size .22s ease;
}
.landing-faq details[open]:not(.closing) summary { color: var(--brand); }
.landing-faq details[open]:not(.closing) summary::after { background-size: 12px 1px, 1px 0; }
.landing-faq details p { max-width: 90ch; padding-right: 14px; }

.landing-footer { padding: 30px 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--soft); font-size: 14px; }
.landing-footer .wrap { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.landing-footer-brand { color: var(--ink); }
.landing-footer p, .landing-footer .landing-fine { margin-top: 6px; }
.landing-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.landing-footer nav a { color: var(--soft); font-weight: 500; }
.landing-footer nav a:hover { color: var(--brand); }

.landing-image-dialog { width: min(1190px, calc(100% - 32px)); }
.landing-image-dialog .mhead { align-items: center; }
.landing-image-dialog > img { display: block; max-width: 100%; max-height: calc(100dvh - 154px); margin-inline: auto; object-fit: contain; }

@media (max-width: 900px) {
  .landing .head .wrap { gap: 22px; }
  .landing .nav { gap: 16px; }
  .landing-hero { gap: 28px; padding-block: 42px 32px; }
  .landing-product { grid-template-columns: 40px minmax(0, 1fr) 136px auto; gap: 16px; }
  .landing-plans { grid-template-columns: minmax(0, 1fr) 255px; gap: 16px; }
  .landing-plan-head, .landing-plan { grid-template-columns: minmax(0, 1fr) 84px 88px 24px; gap: 10px; padding-inline: 14px; }
}

@media (max-width: 740px) {
  .landing .wrap { padding-inline: 22px; }
  .landing .head .wrap { min-height: 64px; flex-wrap: wrap; gap: 2px 12px; padding-block: 6px; }
  .landing .nav { order: 3; width: 100%; flex-wrap: wrap; gap: 0 16px; }
  .landing .nav a { min-height: 35px; }
  .landing [id] { scroll-margin-top: 112px; }

  .landing-hero, .landing-plans { grid-template-columns: minmax(0, 1fr); }
  .landing-hero h1 { max-width: 16ch; text-wrap: initial; }
  .landing-hero p { margin-top: 14px; }
  .landing-section { padding: 32px 0; }
  .landing-heading { gap: 16px; margin-bottom: 20px; }
  .landing-product { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px 12px; padding: 18px 0; }
  .landing-product > img { width: 36px; height: 36px; }
  .landing-product-status { grid-column: 2; }
  .landing-product > .btn { grid-row: 1 / span 2; grid-column: 3; }
  .landing-workflow { gap: 16px; }
  .landing-workflow h3 { font-size: 16px; }
  .landing-price-summary, .landing-org { padding: 20px; }
}

@media (max-width: 465px) {
  .landing .wrap { padding-inline: 16px; }
  .landing .head .wrap { gap: 2px 7px; }
  .landing .nav { gap: 0 12px; }
  .landing .nav a { font-size: 13px; }
  .landing .head .right { gap: 2px; }
  .landing .head .right .btn { padding-inline: 8px; }
  .landing [id] { scroll-margin-top: 136px; }

  .landing-preview figcaption { padding-inline: 10px; gap: 6px; }
  .landing-preview figcaption .landing-fine { font-size: 12px; }
  .landing-preview-tabs { gap: 0; }
  .landing-preview-tabs button { padding-inline: 8px; font-size: 13px; }
  .landing-catalog { padding-inline: 16px; }
  .landing-product { grid-template-columns: 32px minmax(0, 1fr); align-items: start; }
  .landing-product > img { width: 32px; height: 32px; grid-row: 1 / span 3; }
  .landing-product > .btn { grid-area: auto / 2; justify-self: start; margin-top: 4px; }
  .landing-workflow { grid-template-columns: 1fr; gap: 24px; }

  .landing-plan-head, .landing-plan { grid-template-columns: minmax(0, 1fr) 86px 22px; gap: 3px 10px; padding-inline: 12px; }
  .landing-plan-head span:nth-child(3) { display: none; }
  .landing-plan-head span:last-child { grid-column: 3; }
  .landing-plan { align-content: center; }
  .landing-plan-name { grid-row: 1 / 3; }
  .landing-plan-price { grid-column: 2; grid-row: 1; align-self: end; }
  .landing-plan-month { grid-column: 2; grid-row: 2; align-self: start; font-size: 13px; }
  .landing-plan-mark { grid-column: 3; grid-row: 1 / 3; }
  .landing-faq summary { font-size: 15px; }
}

@media print {
  .landing-skip, .landing-footer { display: none; }
}
