:root {
  --bg: #fff3f7;
  --panel: rgba(255, 250, 252, 0.9);
  --text: #2f1f2a;
  --muted: #7f6675;
  --line: rgba(129, 82, 108, 0.2);
  --strong-line: rgba(129, 82, 108, 0.34);
  --accent: #f17f98;
  --accent-deep: #db6488;
  --shadow: 0 22px 60px rgba(186, 101, 138, 0.16);
  --body-wash: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 18%);
  --body-glow-left: radial-gradient(circle at top left, rgba(241, 127, 152, 0.22), transparent 28%);
  --body-glow-right: radial-gradient(circle at bottom right, rgba(246, 171, 190, 0.18), transparent 22%);
  --body-base: linear-gradient(180deg, #fff8fb 0%, var(--bg) 100%);
  --grid-line-x: rgba(25, 22, 18, 0.045);
  --grid-line-y: rgba(25, 22, 18, 0.035);
  --rail-line: rgba(219, 100, 136, 0.22);
  --frame-line: rgba(219, 100, 136, 0.38);
  --topbar-bg: rgba(255, 250, 252, 0.92);
  --nav-bg: rgba(255, 250, 252, 0.98);
  --menu-open-bg: rgba(255, 250, 252, 0.96);
  --stripe: rgba(241, 127, 152, 0.24);
  --button-text-on-accent: #fffaf3;
  --screen-card-bg: rgba(255, 238, 245, 0.9);
  --screen-border: rgba(25, 22, 18, 0.1);
  --hero-visual-stripe: rgba(241, 127, 152, 0.08);
  --gallery-card-bg: rgba(248, 214, 226, 0.42);
  --gallery-shot-bg: rgba(255, 242, 247, 0.92);
  --gallery-shot-border: rgba(25, 22, 18, 0.08);
  --store-shadow: rgba(219, 100, 136, 0.2);
  --footer-line: rgba(255, 244, 247, 0.26);
  --footer-wash: rgba(255, 176, 198, 0.1);
  --radius: 18px;
  --frame-padding: clamp(20px, 4vw, 44px);
  --content-gap-list: 12px;
  --content-gap-body: 14px;
  --content-gap-heading: 18px;
  --content-gap-action: 32px;
  --content-gap-section: 36px;
  --frame-separator-height: 28px;
  --type-kicker: 12px;
  --type-small: 14px;
  --type-body: 15px;
  --type-h3: 20px;
  --type-h2: clamp(28px, 4vw, 42px);
  --type-h1: clamp(42px, 7vw, 76px);
  --leading-body: 1.7;
  --leading-heading: 1.08;
  --max-width: 1180px;
  --shell-width: min(calc(100vw - 32px), var(--max-width));
  --shell-half: calc(var(--shell-width) / 2);
  --topbar-height: 78px;
  --theme-transition-x: 50vw;
  --theme-transition-y: 50vh;
  --theme-transition-radius: 150vmax;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b101d;
    --panel: rgba(14, 19, 32, 0.92);
    --text: #f2f4ff;
    --muted: #aeb5ca;
    --line: rgba(168, 132, 221, 0.2);
    --strong-line: rgba(224, 91, 178, 0.38);
    --accent: #f17f98;
    --accent-deep: #e05bb2;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
    --body-wash: linear-gradient(180deg, rgba(143, 105, 210, 0.1), rgba(143, 105, 210, 0) 20%);
    --body-glow-left: radial-gradient(circle at top left, rgba(120, 93, 196, 0.16), transparent 28%);
    --body-glow-right: radial-gradient(circle at bottom right, rgba(224, 91, 178, 0.12), transparent 24%);
    --body-base: linear-gradient(180deg, #12192a 0%, var(--bg) 100%);
    --grid-line-x: rgba(205, 190, 255, 0.042);
    --grid-line-y: rgba(205, 190, 255, 0.032);
    --rail-line: rgba(168, 132, 221, 0.18);
    --frame-line: rgba(224, 91, 178, 0.3);
    --topbar-bg: rgba(10, 14, 24, 0.92);
    --nav-bg: rgba(10, 14, 24, 0.98);
    --menu-open-bg: rgba(16, 22, 36, 0.96);
    --stripe: rgba(224, 91, 178, 0.16);
    --button-text-on-accent: #fffaf3;
    --screen-card-bg: rgba(18, 22, 32, 0.92);
    --screen-border: rgba(205, 190, 255, 0.12);
    --hero-visual-stripe: rgba(168, 132, 221, 0.08);
    --gallery-card-bg: rgba(18, 24, 40, 0.7);
    --gallery-shot-bg: rgba(12, 16, 28, 0.92);
    --gallery-shot-border: rgba(205, 190, 255, 0.12);
    --store-shadow: rgba(224, 91, 178, 0.18);
    --footer-line: rgba(205, 190, 255, 0.24);
    --footer-wash: rgba(255, 176, 198, 0.1);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff3f7;
  --panel: rgba(255, 250, 252, 0.9);
  --text: #2f1f2a;
  --muted: #7f6675;
  --line: rgba(129, 82, 108, 0.2);
  --strong-line: rgba(129, 82, 108, 0.34);
  --accent: #f17f98;
  --accent-deep: #db6488;
  --shadow: 0 22px 60px rgba(186, 101, 138, 0.16);
  --body-wash: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 18%);
  --body-glow-left: radial-gradient(circle at top left, rgba(241, 127, 152, 0.22), transparent 28%);
  --body-glow-right: radial-gradient(circle at bottom right, rgba(246, 171, 190, 0.18), transparent 22%);
  --body-base: linear-gradient(180deg, #fff8fb 0%, var(--bg) 100%);
  --grid-line-x: rgba(25, 22, 18, 0.045);
  --grid-line-y: rgba(25, 22, 18, 0.035);
  --rail-line: rgba(219, 100, 136, 0.22);
  --frame-line: rgba(219, 100, 136, 0.38);
  --topbar-bg: rgba(255, 250, 252, 0.92);
  --nav-bg: rgba(255, 250, 252, 0.98);
  --menu-open-bg: rgba(255, 250, 252, 0.96);
  --stripe: rgba(241, 127, 152, 0.24);
  --button-text-on-accent: #fffaf3;
  --screen-card-bg: rgba(255, 238, 245, 0.9);
  --screen-border: rgba(25, 22, 18, 0.1);
  --hero-visual-stripe: rgba(241, 127, 152, 0.08);
  --gallery-card-bg: rgba(248, 214, 226, 0.42);
  --gallery-shot-bg: rgba(255, 242, 247, 0.92);
  --gallery-shot-border: rgba(25, 22, 18, 0.08);
  --store-shadow: rgba(219, 100, 136, 0.2);
  --footer-line: rgba(255, 244, 247, 0.26);
  --footer-wash: rgba(255, 176, 198, 0.1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b101d;
  --panel: rgba(14, 19, 32, 0.92);
  --text: #f2f4ff;
  --muted: #aeb5ca;
  --line: rgba(168, 132, 221, 0.2);
  --strong-line: rgba(224, 91, 178, 0.38);
  --accent: #f17f98;
  --accent-deep: #e05bb2;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --body-wash: linear-gradient(180deg, rgba(143, 105, 210, 0.1), rgba(143, 105, 210, 0) 20%);
  --body-glow-left: radial-gradient(circle at top left, rgba(120, 93, 196, 0.16), transparent 28%);
  --body-glow-right: radial-gradient(circle at bottom right, rgba(224, 91, 178, 0.12), transparent 24%);
  --body-base: linear-gradient(180deg, #12192a 0%, var(--bg) 100%);
  --grid-line-x: rgba(205, 190, 255, 0.042);
  --grid-line-y: rgba(205, 190, 255, 0.032);
  --rail-line: rgba(168, 132, 221, 0.18);
  --frame-line: rgba(224, 91, 178, 0.3);
  --topbar-bg: rgba(10, 14, 24, 0.92);
  --nav-bg: rgba(10, 14, 24, 0.98);
  --menu-open-bg: rgba(16, 22, 36, 0.96);
  --stripe: rgba(224, 91, 178, 0.16);
  --button-text-on-accent: #fffaf3;
  --screen-card-bg: rgba(18, 22, 32, 0.92);
  --screen-border: rgba(205, 190, 255, 0.12);
  --hero-visual-stripe: rgba(168, 132, 221, 0.08);
  --gallery-card-bg: rgba(18, 24, 40, 0.7);
  --gallery-shot-bg: rgba(12, 16, 28, 0.92);
  --gallery-shot-border: rgba(205, 190, 255, 0.12);
  --store-shadow: rgba(224, 91, 178, 0.18);
  --footer-line: rgba(205, 190, 255, 0.24);
  --footer-wash: rgba(255, 176, 198, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: calc(var(--topbar-height) + 20px);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  clip-path: circle(0 at var(--theme-transition-x) var(--theme-transition-y));
  animation: theme-reveal 560ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes theme-reveal {
  to {
    clip-path: circle(var(--theme-transition-radius) at var(--theme-transition-x) var(--theme-transition-y));
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) {
    animation-duration: 0ms;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-family: "SF Mono", "ui-monospace", "Menlo", "Monaco", monospace;
  font-size: var(--type-body);
  line-height: var(--leading-body);
  color: var(--text);
  background:
    var(--body-wash),
    var(--body-glow-left),
    var(--body-glow-right),
    var(--body-base);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line-x) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-y) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--rail-line), var(--rail-line)) calc(50% - var(--shell-half)) 0 / 1px 100% no-repeat,
    linear-gradient(var(--rail-line), var(--rail-line)) calc(50% + var(--shell-half)) 0 / 1px 100% no-repeat;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  width: var(--shell-width);
  margin: 0 auto 0;
  position: relative;
}

.short-page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.line-frame {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
}

.line-frame::before,
.line-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.line-frame::before {
  z-index: 1;
  top: -1px;
  bottom: -1px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(var(--frame-line), var(--frame-line)) top center/100% 1px no-repeat,
    linear-gradient(var(--frame-line), var(--frame-line)) bottom center/100% 1px no-repeat;
  opacity: 1;
}

.line-frame::after {
  z-index: 2;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  background:
    linear-gradient(var(--accent-deep), var(--accent-deep)) top 0 left 8px / 2px 18px no-repeat,
    linear-gradient(var(--accent-deep), var(--accent-deep)) top 8px left 1px / 16px 2px no-repeat,
    linear-gradient(var(--accent-deep), var(--accent-deep)) top 0 right 8px / 2px 18px no-repeat,
    linear-gradient(var(--accent-deep), var(--accent-deep)) top 8px right 1px / 16px 2px no-repeat,
    linear-gradient(var(--accent-deep), var(--accent-deep)) bottom 0 left 8px / 2px 18px no-repeat,
    linear-gradient(var(--accent-deep), var(--accent-deep)) bottom 8px left 1px / 16px 2px no-repeat,
    linear-gradient(var(--accent-deep), var(--accent-deep)) bottom 0 right 8px / 2px 18px no-repeat,
    linear-gradient(var(--accent-deep), var(--accent-deep)) bottom 8px right 1px / 16px 2px no-repeat;
}

.line-frame-first::before {
  top: 0;
  z-index: 45;
}

.line-frame-first::after {
  z-index: 46;
}

.topbar,
.hero,
.feature-strip,
.detail-grid,
.quote-panel,
.faq,
.footer {
  margin-bottom: 0;
}

.frame-separator {
  position: relative;
  z-index: 3;
  left: 50%;
  width: 100vw;
  height: var(--frame-separator-height);
  margin: -1px 0 -1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(-45deg, var(--stripe) 0 3px, transparent 3px 9px);
  opacity: 1;
}

.frame-separator-first {
  margin-top: 0;
  margin-bottom: -1px;
}

.frame-separator::before,
.frame-separator::after {
  content: none;
}

.topbar-wrap {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100vw;
  z-index: 80;
}

.topbar-bg {
  position: absolute;
  inset: 0;
  background: var(--topbar-bg);
}

.topbar {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px var(--frame-padding);
}

.topbar-wrap + .site-shell {
  padding-top: var(--topbar-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: transparent;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  text-transform: uppercase;
  justify-self: center;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

@media (min-width: 641px) {
  .menu-toggle {
    display: none !important;
  }
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--muted);
}

.nav a,
.footer-links a,
.theme-toggle,
.mobile-theme-toggle,
.lang-toggle {
  color: var(--muted);
}

.nav a:hover,
.footer-links a:hover,
.theme-toggle:hover,
.mobile-theme-toggle:hover,
.lang-toggle:hover {
  color: var(--text);
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.topbar-tools > * {
  flex: 0 0 auto;
}

.topbar .lang-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
}

.topbar .theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
}

.topbar .menu-toggle {
  display: block;
}

.topbar .store-link {
  width: 112px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
}

@media (min-width: 641px) {
  .brand {
    flex: 0 0 auto;
  }

  .nav {
    position: static;
    display: flex !important;
    justify-content: center;
    width: auto;
  }

  .topbar-tools {
    justify-content: flex-end;
  }
}

.theme-toggle,
.mobile-theme-toggle,
.lang-toggle,
.store-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--strong-line);
  background: transparent;
  padding: 10px 14px;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.theme-toggle:hover,
.mobile-theme-toggle:hover,
.lang-toggle:hover,
.store-link:hover,
.button:hover {
  transform: translate(-2px, -2px);
}

.store-link,
.button-primary {
  background: var(--accent);
  color: var(--button-text-on-accent);
  border-color: var(--accent-deep);
  box-shadow: 5px 5px 0 var(--store-shadow);
}

.topbar .store-link {
  width: 112px;
  text-align: center;
}

.button-secondary {
  color: var(--text);
}

.telegram-link {
  gap: 8px;
}

.telegram-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: linear-gradient(135deg, #f17f98 0%, #6dc8ff 100%);
  clip-path: polygon(5% 48%, 95% 10%, 73% 90%, 48% 68%, 32% 82%, 36% 62%);
}

.content-frame {
  padding: var(--frame-padding);
  box-shadow: var(--shadow);
}

.page-frame {
  backdrop-filter: none;
}

.short-page > .line-frame:last-child {
  flex: 1 0 auto;
}

.content-flow h1,
.content-flow h2,
.content-flow h3,
.content-flow p,
.content-flow ul,
.content-flow .button-row,
.content-flow li {
  margin: 0;
}

.content-flow h1 {
  font-size: var(--type-h1);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.content-flow h2 {
  font-size: var(--type-h2);
  line-height: var(--leading-heading);
  letter-spacing: -0.04em;
}

.content-flow h3 {
  font-size: var(--type-h3);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.content-flow p,
.content-flow li {
  color: var(--muted);
  line-height: var(--leading-body);
  font-size: var(--type-body);
}

.content-flow h1 + p,
.content-flow h2 + p,
.content-flow h2 + ul,
.content-flow h3 + p,
.content-flow h3 + ul {
  margin-top: var(--content-gap-heading);
}

.content-flow p + p,
.content-flow p + ul {
  margin-top: var(--content-gap-body);
}

.content-flow p + h2,
.content-flow ul + h2 {
  margin-top: var(--content-gap-section);
}

.content-flow p + .button-row {
  margin-top: var(--content-gap-action);
}

.content-flow .button-row + ul {
  margin-top: var(--content-gap-action);
}

.content-flow ul {
  display: grid;
  gap: var(--content-gap-list);
  padding: 0;
  list-style: none;
}

.content-flow li {
  position: relative;
  padding-left: 18px;
}

.content-flow li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent-deep);
}

.content-flow a:not(.button) {
  color: var(--accent-deep);
}

.content-flow a:not(.button):hover {
  color: var(--text);
}

.content-flow .muted {
  color: var(--muted);
}

.mobile-theme-toggle {
  display: none;
}

.hero {
  overflow: visible;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.hero-copy,
.hero-visual {
  padding: clamp(26px, 5vw, 52px);
}

.hero-copy {
  border-right: 1px solid var(--line);
}

.content-kicker {
  margin: 0 0 16px;
  font-size: var(--type-kicker);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  line-height: var(--leading-body);
  font-size: var(--type-body);
}

.hero-points li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent-deep);
}

.hero-visual {
  position: relative;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 10px, var(--hero-visual-stripe) 10px, var(--hero-visual-stripe) 12px);
}

.screen-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 14px;
  background: var(--screen-card-bg);
  border: 1px solid var(--strong-line);
  box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
}

.screen-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: var(--type-kicker);
  text-transform: uppercase;
  color: var(--muted);
}

.phone-shot {
  width: 100%;
  border: 1px solid var(--screen-border);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-cell {
  min-height: 220px;
  padding: 28px;
}

.feature-cell + .feature-cell {
  border-left: 1px solid var(--line);
}

.feature-index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-deep);
  font-size: var(--type-kicker);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.detail-copy,
.detail-list,
.faq-head,
.faq-list {
  padding: clamp(26px, 4vw, 38px);
}

.detail-copy {
  border-right: 1px solid var(--line);
}

.detail-list {
  display: grid;
  gap: 18px;
}

.detail-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.detail-item:last-child {
  border-bottom: 0;
}

.gallery {
  padding: clamp(26px, 4vw, 38px) 0;
  background: transparent;
}

.gallery-head {
  padding: 0 clamp(26px, 4vw, 38px);
  margin-bottom: 24px;
}

.gallery-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  justify-content: start;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  padding: 0 clamp(26px, 4vw, 38px) 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.gallery-shot {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: contain;
  border: 0;
  background: transparent;
}

.quote-panel {
  padding: clamp(30px, 4.5vw, 48px);
}

.quote {
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.faq {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
}

.faq-head {
  border-right: 1px solid var(--line);
}

.faq-list {
  display: grid;
}

.faq-item {
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.faq a {
  color: var(--accent-deep);
}

.footer-wrap {
  position: relative;
  width: 100vw;
  margin-top: auto;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--footer-wash), rgba(255, 176, 198, 0) 18%),
    var(--accent);
}

.footer {
  position: relative;
  width: var(--shell-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px var(--frame-padding) 36px;
  color: var(--button-text-on-accent);
  background: transparent;
  backdrop-filter: none;
  border-color: var(--footer-line);
}

.footer-title {
  margin-bottom: 8px;
  font-size: var(--type-h3);
}

.footer p,
.footer a {
  color: inherit;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: var(--type-small);
}

.summary {
  color: var(--muted);
}

.redeem-panel {
  backdrop-filter: none;
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.code-list {
  display: grid;
}

.empty-state {
  padding-top: 24px;
  color: var(--muted);
}

.code-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.code-item:last-child {
  border-bottom: 0;
}

.code-index {
  color: var(--accent-deep);
  font-size: var(--type-kicker);
}

.code-text {
  overflow-wrap: anywhere;
  font-size: clamp(18px, 4vw, 28px);
  letter-spacing: 0.12em;
}

.code-text.claimed {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.72;
}

.button:disabled {
  cursor: default;
  opacity: 0.62;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 7, 12, 0.72);
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(100%, 520px);
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.modal-copy {
  color: var(--muted);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.source-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.source-other {
  display: none;
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--strong-line);
  background: transparent;
  color: var(--text);
  padding: 12px 14px;
}

.source-other.open {
  display: block;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: none;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 16px;
  background: var(--accent);
  color: var(--button-text-on-accent);
  border: 1px solid var(--accent-deep);
  box-shadow: 5px 5px 0 var(--store-shadow);
}

.toast.open {
  display: block;
}

@media (max-width: 920px) {
  .frame-separator {
    width: 100vw;
  }

  .footer,
  .faq,
  .detail-grid,
  .hero-grid,
  .feature-strip {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .gallery-grid {
    grid-auto-columns: minmax(260px, 78vw);
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-copy,
  .detail-copy,
  .faq-head {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-cell + .feature-cell {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --shell-width: min(calc(100vw - 20px), var(--max-width));
    --shell-half: calc(var(--shell-width) / 2);
    --topbar-height: 68px;
    --frame-separator-height: 20px;
  }

  body {
    min-height: 100dvh;
  }

  .site-shell {
    width: var(--shell-width);
  }

  .topbar-wrap {
    padding-top: 0;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
    flex: 0 0 auto;
    align-self: center;
  }

  .menu-toggle {
    display: block;
    margin-left: 0;
  }

  .menu-toggle.menu-open {
    background: var(--menu-open-bg);
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    width: auto;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px 18px;
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--nav-bg);
    z-index: 60;
  }

  .nav.nav-open {
    display: flex;
  }

  .topbar .theme-toggle {
    display: none;
  }

  .mobile-theme-toggle {
    display: block;
    border: 0;
    background: transparent;
    padding: 0;
    text-transform: uppercase;
  }

  .frame-separator {
    width: 100vw;
  }

  .gallery-grid {
    grid-auto-columns: minmax(280px, 82vw);
  }

  .content-frame {
    padding: 20px;
  }

  .redeem-panel {
    padding: 20px;
  }

  .panel-head {
    align-items: start;
    flex-direction: column;
  }

  .code-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .button {
    width: 100%;
  }

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

  .modal-actions {
    flex-direction: column-reverse;
  }

  section[id] {
    scroll-margin-top: calc(var(--topbar-height) + 16px);
  }

  .line-frame::after {
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    background:
      linear-gradient(var(--accent-deep), var(--accent-deep)) top 0 left 8px / 2px 18px no-repeat,
      linear-gradient(var(--accent-deep), var(--accent-deep)) top 8px left 1px / 16px 2px no-repeat,
      linear-gradient(var(--accent-deep), var(--accent-deep)) top 0 right 8px / 2px 18px no-repeat,
      linear-gradient(var(--accent-deep), var(--accent-deep)) top 8px right 1px / 16px 2px no-repeat,
      linear-gradient(var(--accent-deep), var(--accent-deep)) bottom 0 left 8px / 2px 18px no-repeat,
      linear-gradient(var(--accent-deep), var(--accent-deep)) bottom 8px left 1px / 16px 2px no-repeat,
      linear-gradient(var(--accent-deep), var(--accent-deep)) bottom 0 right 8px / 2px 18px no-repeat,
      linear-gradient(var(--accent-deep), var(--accent-deep)) bottom 8px right 1px / 16px 2px no-repeat;
  }

  .topbar-tools {
    margin-left: auto;
    flex: 0 0 auto;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
  }

  .topbar .store-link {
    width: 112px;
  }

}
