:root {
  --background: #e7fff1;
  --surface: #e7fff1;
  --surface-lowest: #ffffff;
  --surface-low: #ccffe6;
  --surface-container: #abffda;
  --surface-high: #82ffce;
  --surface-highest: #54fdc4;
  --surface-variant: #54fdc4;
  --primary: #b7102a;
  --primary-container: #db313f;
  --secondary: #785a00;
  --secondary-container: #ffd167;
  --tertiary: #006482;
  --tertiary-fixed: #bfe8ff;
  --on-background: #002116;
  --on-primary: #ffffff;
  --on-secondary-container: #765900;
  --on-tertiary: #ffffff;
  --outline: #002116;
  --shadow-4: 4px 4px 0 0 #002116;
  --shadow-8: 8px 8px 0 0 #002116;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--on-background);
  font-family: "Hanken Grotesk", "PingFang SC", "Noto Sans CJK SC", "Noto Sans JP", sans-serif;
  overflow-x: hidden;
  background-image:
    linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.02) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.02) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px 4px, 4px 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 700, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.icon-sm {
  font-size: 18px;
}

.pixel-frame {
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-4);
}

.pixel-press:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 0 var(--outline) !important;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 80px;
  background: var(--primary);
  border-bottom: 4px solid var(--outline);
  box-shadow: 0 4px 0 0 var(--outline);
}

.topbar-inner,
.app-root,
.footer-home {
  width: min(calc(100% - 32px), 1200px);
  margin: 0 auto;
}

.topbar-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-button {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.brand-logo {
  width: auto;
  height: 52px;
  max-width: min(220px, 48vw);
  display: block;
}

.lang-dropdown {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.lang-trigger,
.lang-option {
  border: 2px solid var(--outline);
  box-shadow: var(--shadow-4);
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  padding: 8px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% - 2px);
  min-width: 144px;
  display: none;
  background: var(--surface-lowest);
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-4);
}

.lang-dropdown:hover .lang-menu {
  display: block;
}

.lang-option {
  width: 100%;
  border: 0;
  box-shadow: none;
  text-align: left;
  background: transparent;
}

.lang-option + .lang-option {
  border-top: 2px solid var(--outline);
}

.lang-option:hover {
  background: var(--secondary-container);
}

.app-root {
  padding-top: 128px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.page {
  animation: page-in 180ms steps(8, end);
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home {
  display: grid;
  gap: 64px;
}

.hero-home {
  padding: 32px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.hero-logo-wrap {
  position: relative;
  width: 320px;
  max-width: 80vw;
  aspect-ratio: 1;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(8px 8px 0 rgba(0, 33, 22, 1));
  transition: transform 220ms ease;
}

.hero-logo-wrap:hover .hero-logo {
  transform: scale(1.08);
}

.hero-badge {
  position: absolute;
  top: -12px;
  right: -18px;
  padding: 6px 14px;
  background: var(--secondary);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-4);
  transform: rotate(12deg);
}

.hero-copy h1,
.section-head h2,
.download-copy h2,
.page-heading h1,
.feedback-heading h1,
.legal-header h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-copy h1 {
  color: var(--primary);
  font-size: clamp(40px, 8vw, 64px);
  letter-spacing: -0.06em;
  text-shadow: 4px 4px 0 rgba(0, 21, 22, 1);
}

.hero-copy p,
.download-copy p,
.page-heading p,
.feedback-heading p,
.legal-header p {
  margin: 16px auto 0;
  max-width: 860px;
  font-size: 18px;
  line-height: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.pixel-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-4);
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--surface-container);
}

.qr-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--outline);
}

.qr-icon {
  font-size: 32px;
  color: var(--surface);
}

.mono-label,
.feature-tag,
.contact-tag,
.block-label,
.mini-chip,
.feedback-radio span,
.feedback-submit,
.contact-submit,
.footer-home-links a,
.footer-home-meta p,
.stat-label,
.legal-nav h3,
.legal-nav p,
.section-no {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.qr-copy h4,
.feature-large h3,
.feature-card-home h3,
.contact-email h2,
.contact-social h3,
.contact-qr h3,
.contact-form h3,
.status-card h3,
.legal-section h2 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  line-height: 28px;
}

.qr-copy p,
.feature-large p,
.feature-card-home p,
.contact-email p,
.contact-qr p,
.status-card p,
.legal-section p,
.legal-mini-card p {
  margin: 0;
  line-height: 24px;
  opacity: 0.85;
}

.mini-chip {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  background: var(--secondary);
  color: #fff;
  font-size: 12px;
}

.section-home {
  display: grid;
  gap: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 4px solid var(--outline);
}

.section-head h2 {
  font-size: 40px;
  letter-spacing: -0.04em;
}

.section-head span {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.7;
}

.feature-grid-home {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.feature-large {
  grid-column: span 8;
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--surface-high);
}

.feature-copy {
  flex: 1;
}

.feature-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  background: var(--tertiary);
  color: var(--on-tertiary);
  font-size: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip-row span {
  padding: 4px 8px;
  background: var(--outline);
  color: var(--surface);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.feature-icon-box {
  width: 256px;
  height: 192px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(0, 33, 22, 0.2);
  background: rgba(0, 33, 22, 0.05);
}

.feature-icon {
  font-size: 96px;
  color: rgba(183, 16, 42, 0.2);
}

.feature-card-home {
  padding: 32px;
  min-height: 220px;
}

.feature-card-home:nth-child(2) { grid-column: span 4; }
.feature-card-home:nth-child(3) { grid-column: span 4; }
.feature-card-home:nth-child(4) { grid-column: span 4; }
.feature-card-home:nth-child(5) { grid-column: span 4; }

.feature-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.theme-yellow { background: var(--secondary-container); color: var(--on-secondary-container); }
.theme-blue { background: var(--tertiary-fixed); }
.theme-surface { background: var(--surface-container); }
.theme-dark { background: var(--outline); color: var(--surface); position: relative; overflow: hidden; }
.theme-dark p { color: rgba(255,255,255,0.7); }

.download-section {
  position: relative;
  overflow: hidden;
  padding: 48px;
  background: var(--primary);
  color: var(--on-primary);
}

.download-deco {
  position: absolute;
  top: 0;
  right: 0;
  padding: 16px;
  opacity: 0.2;
}

.download-deco span {
  font-size: 200px;
}

.download-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  text-align: center;
}

.download-copy h2 {
  font-size: clamp(40px, 6vw, 56px);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-4);
  background: #fff;
  color: var(--on-background);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.download-tile span:first-child {
  font-size: 40px;
}

.download-qr {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 32px;
  margin: 0 auto;
  background: rgba(0, 33, 22, 0.2);
  backdrop-filter: blur(4px);
}

.download-qr-code {
  width: 128px;
  height: 128px;
  padding: 8px;
  background: #fff;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-4);
}

.download-qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  background: var(--surface-container);
  border: 2px dashed rgba(0, 33, 22, 0.3);
}

.download-qr-copy {
  text-align: left;
}

.stats-grid-home {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-tile {
  text-align: center;
  padding: 24px;
  border-left: 4px solid var(--outline);
  border-right: 4px solid var(--outline);
}

.stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 700;
}

.stat-label {
  font-size: 12px;
  opacity: 0.6;
}

.footer-home {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  border-top: 4px solid var(--outline);
}

.footer-home-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-home-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-home-links a {
  font-size: 12px;
}

.footer-home-meta a {
  color: inherit;
  text-decoration: underline;
}

.footer-home-meta p {
  margin: 0;
  font-size: 12px;
}

.footer-home-meta p:last-child {
  font-size: 16px;
  font-family: "Hanken Grotesk", sans-serif;
  text-transform: none;
  font-weight: 700;
}

.fab {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 60;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-8);
  background: var(--primary);
  color: var(--on-primary);
}

.fab span { font-size: 32px; }

.page-contact,
.page-feedback,
.page-privacy {
  display: grid;
  gap: 32px;
}

.page-heading h1,
.feedback-heading h1 {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(32px, 5vw, 40px);
}

.heading-icon {
  padding: 8px;
  display: inline-grid;
  place-items: center;
  background: var(--primary);
  color: var(--on-primary);
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-4);
}

.contact-grid-stitch,
.feedback-grid-stitch,
.legal-layout {
  display: grid;
  gap: 16px;
}

.contact-grid-stitch {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.contact-email {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: var(--surface-container);
}

.contact-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.contact-tag {
  padding: 4px 12px;
  font-size: 12px;
  background: var(--primary);
  color: var(--on-primary);
  border: 2px solid var(--outline);
  box-shadow: 2px 2px 0 0 var(--outline);
}

.ghost-icon {
  font-size: 48px;
  color: rgba(183, 16, 42, 0.2);
}

.contact-email-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--outline);
  color: var(--surface);
  border: 2px solid var(--outline);
  box-shadow: inset 4px 4px 0 0 rgba(255,255,255,0.12);
  font-family: "JetBrains Mono", monospace;
}

.contact-email-box button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.contact-social {
  grid-column: span 5;
  padding: 32px;
  background: var(--tertiary-fixed);
}

.contact-social h3,
.contact-form h3 {
  padding-bottom: 12px;
  border-bottom: 4px solid var(--outline);
  text-transform: uppercase;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.social-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 16px;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-4);
  background: var(--surface-lowest);
}

.social-tile span:last-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.contact-qr {
  grid-column: span 4;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffdf9b;
}

.contact-qr-box {
  margin-bottom: 24px;
  padding: 8px;
  background: var(--outline);
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-4);
}

.contact-qr-box img {
  width: 192px;
  height: 192px;
  object-fit: contain;
  image-rendering: pixelated;
  background: #fff;
  padding: 8px;
}

.progress-track {
  width: 100%;
  height: 8px;
  margin: 24px 0 16px;
  border-radius: 999px;
  background: rgba(0, 33, 22, 0.1);
  overflow: hidden;
}

.progress-fill {
  width: 66%;
  height: 100%;
  background: var(--primary);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.4);
}

.mono-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.contact-form {
  grid-column: span 8;
  padding: 32px;
  background: var(--surface-high);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-form-grid label,
.feedback-form-stitch label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-grid span,
.feedback-form-stitch span,
.legal-mini-card h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.contact-form-grid input,
.contact-form-grid textarea,
.feedback-form-stitch input,
.feedback-form-stitch textarea {
  background: var(--background);
  border: 4px solid var(--outline);
  padding: 12px;
  box-shadow: inset 4px 4px 0 0 rgba(0, 33, 22, 0.18);
}

.span-2 {
  grid-column: span 2;
}

.contact-submit,
.feedback-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 4px solid var(--outline);
  box-shadow: 6px 6px 0 0 var(--outline);
  background: var(--primary);
  color: var(--on-primary);
  padding: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.feedback-heading {
  text-align: center;
}

.feedback-heading h1 {
  position: relative;
  display: inline-block;
}

.underline-bar {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 8px;
  background: var(--secondary);
}

.feedback-grid-stitch {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: start;
}

.feedback-form-card {
  padding: 24px;
  background: var(--surface-lowest);
}

.feedback-form-stitch {
  display: grid;
  gap: 24px;
}

.feedback-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.feedback-radio input {
  display: none;
}

.feedback-radio span {
  display: block;
  padding: 16px 12px;
  text-align: center;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-4);
  background: var(--surface-low);
}

.feedback-radio input:checked + span {
  background: var(--primary);
  color: var(--on-primary);
}

.feedback-side {
  display: grid;
  gap: 16px;
}

.status-card {
  padding: 16px;
  background: var(--surface-variant);
}

.status-header,
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.status-header {
  justify-content: flex-start;
  margin-bottom: 16px;
}

.status-bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  height: 16px;
  margin: 16px 0;
  overflow: hidden;
  border: 4px solid rgba(0, 33, 22, 0.14);
  box-shadow: inset 4px 4px 0 0 rgba(0, 33, 22, 0.18);
}

.status-bar span {
  border-right: 1px solid rgba(0, 33, 22, 0.2);
}

.status-bar .filled {
  background: var(--primary);
}

.visual-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: var(--secondary-container);
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  mix-blend-mode: multiply;
}

.visual-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, transparent, rgba(255, 223, 155, 0.9));
}

.visual-overlay span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.visual-overlay small {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.legal-layout {
  grid-template-columns: 256px minmax(0, 1fr);
  align-items: start;
}

.legal-note {
  padding: 16px 20px;
  margin-bottom: 24px;
  background: var(--secondary-container);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
}

.legal-sidebar {
  position: sticky;
  top: 112px;
}

.legal-nav {
  padding: 16px;
  background: var(--surface-container);
}

.legal-nav h3 {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--outline);
}

.legal-nav ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 16px;
}

.legal-nav p {
  margin: 24px 0 0;
  opacity: 0.6;
}

.legal-content {
  position: relative;
  overflow: hidden;
  padding: 32px 32px 40px;
  background: var(--surface-lowest);
}

.legal-top-bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: var(--primary);
}

.legal-header {
  margin-bottom: 48px;
}

.legal-header h1 {
  font-size: clamp(30px, 5vw, 40px);
}

.legal-section {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
  scroll-margin-top: 112px;
}

.legal-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-no {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: var(--on-primary);
  border: 2px solid var(--outline);
}

.section-no.theme-blue {
  background: var(--tertiary);
  color: var(--on-tertiary);
}

.legal-section h3 {
  margin: 8px 0 0;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
}

.legal-visual {
  margin: 48px 0;
  padding: 8px;
  background: var(--secondary-container);
}

.legal-visual img {
  width: 100%;
  height: 256px;
  object-fit: contain;
  background: var(--surface-lowest);
  border: 2px solid var(--outline);
  image-rendering: pixelated;
}

.legal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.legal-mini-card {
  padding: 16px;
  background: var(--surface-container);
}

.legal-mini-card h4 {
  margin: 0 0 8px;
  color: var(--primary);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 16px;
  background: var(--secondary-container);
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.site-modal.is-visible {
  display: block;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 33, 22, 0.56);
}

.site-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(calc(100% - 24px), 480px);
  transform: translate(-50%, -50%);
  padding: 24px;
  background: var(--surface-lowest);
}

.site-modal-card h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  text-transform: uppercase;
}

.site-modal-card p {
  margin: 0 0 20px;
  line-height: 26px;
}

.site-modal-close {
  min-width: 120px;
  border: 4px solid var(--outline);
  box-shadow: var(--shadow-4);
  background: var(--primary);
  color: var(--on-primary);
  padding: 12px 16px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: ripple 400ms steps(8, end) forwards;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .feature-large,
  .feature-card-home:nth-child(2),
  .feature-card-home:nth-child(3),
  .feature-card-home:nth-child(4),
  .feature-card-home:nth-child(5),
  .contact-email,
  .contact-social,
  .contact-qr,
  .contact-form {
    grid-column: span 12;
  }

  .download-grid,
  .feedback-grid-stitch,
  .legal-layout,
  .legal-card-grid {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .topbar-inner,
  .app-root,
  .footer-home {
    width: min(calc(100% - 20px), 1200px);
  }

  .brand-button {
    max-width: 60vw;
  }

  .hero-logo-wrap {
    width: 240px;
  }

  .hero-actions,
  .download-qr {
    flex-direction: column;
  }

  .pixel-button {
    width: 100%;
    justify-content: center;
  }

  .feature-grid-home,
  .contact-grid-stitch {
    grid-template-columns: 1fr;
  }

  .feature-large {
    flex-direction: column;
    padding: 24px;
  }

  .feature-icon-box {
    width: 100%;
  }

  .stats-grid-home,
  .feedback-type-grid,
  .social-grid,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .fab {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
}
