:root {
  --ink: #00303f;
  --deep-teal: #00303f;
  --water: #1a6b7a;
  --seafoam: #89b7b4;
  --mist: #d0faf3;
  --foam: #f4fffc;
  --sand: #e8dfd0;
  --surface: #e8f7f4;
  --surface-elevated: #fffdf8;
  --muted-ink: #4a6b70;
  --coin: #c9a227;
  --font-pixel: "Pixelify Sans", monospace, sans-serif;
  --font-heading: var(--font-pixel);
  --font-body: var(--font-pixel);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  background: var(--foam);
  overflow-x: hidden;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
.btn,
input,
textarea,
select,
label {
  font-family: var(--font-heading);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: 3rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--deep-teal);
  background: var(--foam);
}

.header-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .header-inner {
    padding-inline: 3rem;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: 0 0 auto;
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.brand-text {
  font-family: "Press Start 2P", var(--font-pixel);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-weight: 700;
}

.nav-desktop a:not(.btn):hover {
  color: var(--water);
}

.nav-burger {
  width: 44px;
  height: 44px;
  border: 3px solid var(--deep-teal);
  background: var(--surface-elevated);
  box-shadow: 2px 2px 0 var(--deep-teal);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 3px;
  background: var(--deep-teal);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .nav-burger,
  .nav-mobile {
    display: none !important;
  }
}

.lang-toggle {
  display: flex;
  border: 3px solid var(--deep-teal);
  background: var(--surface-elevated);
  box-shadow: 2px 2px 0 var(--deep-teal);
}

.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-ink);
  cursor: pointer;
}

.lang-toggle button.is-active {
  background: var(--deep-teal);
  color: var(--foam);
}

.nav-mobile {
  border-top: 3px solid var(--deep-teal);
  background: var(--foam);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  font-weight: 700;
}

.nav-mobile[hidden] {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--deep-teal);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 1rem 2rem;
  box-shadow: 4px 4px 0 var(--deep-teal);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--deep-teal);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
}

.btn-water {
  background: var(--water);
  color: var(--foam);
}

.btn-elevated {
  background: var(--surface-elevated);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.aquarium {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.water-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--foam) 0%,
    var(--mist) 26%,
    var(--seafoam) 58%,
    var(--water) 86%,
    var(--deep-teal) 128%
  );
}

.caustics {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(244, 255, 252, 0.14) 0 54px,
    transparent 54px 170px
  );
  mix-blend-mode: soft-light;
  animation: caustic-shift 22s linear infinite;
}

@keyframes caustic-shift {
  to {
    transform: translateX(170px);
  }
}

.layer {
  position: absolute;
  inset: 0;
}

.drift-fish {
  position: absolute;
  animation: drift linear infinite;
}

.drift-fish.reverse > div {
  transform: scaleX(-1);
}

@keyframes drift {
  from {
    transform: translateX(-20vw);
  }
  to {
    transform: translateX(110vw);
  }
}

.drift-fish.reverse {
  animation-name: drift-rev;
}

@keyframes drift-rev {
  from {
    transform: translateX(110vw);
  }
  to {
    transform: translateX(-20vw);
  }
}

.bubble {
  position: absolute;
  bottom: -48px;
  border: 2px solid rgba(208, 250, 243, 0.55);
  border-radius: 9999px;
  background: rgba(208, 250, 243, 0.14);
  opacity: 0;
  animation: bubble-rise linear infinite;
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  8% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(-108vh);
    opacity: 0;
  }
}

.fish-bob {
  animation: fish-bob 4.4s ease-in-out infinite;
  display: inline-block;
}

@keyframes fish-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.sway {
  transform-origin: bottom center;
  animation: sway 6.5s ease-in-out infinite;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3.5deg);
  }
}

.float-slow {
  animation: float-slow 5.2s ease-in-out infinite;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.plant {
  position: absolute;
  bottom: 34px;
}

.plant-a {
  left: 8%;
}
.plant-b {
  left: 16%;
}
.plant-c {
  right: 10%;
}

.sand-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: var(--sand);
}

.sand-floor::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--sand) 0 18px,
    transparent 18px 34px
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  width: min(1280px, 100%);
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 1.25rem 10rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding-inline: 3rem;
  }
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--water);
}

.eyebrow.seafoam {
  color: var(--seafoam);
}

h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 9vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.mask-inner {
  display: block;
  transform: translateY(115%);
  animation: rise-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mask:nth-child(2) .mask-inner {
  animation-delay: 0.15s;
}

@keyframes rise-in {
  to {
    transform: translateY(0);
  }
}

.text-water {
  color: var(--water);
}

.text-foam {
  color: var(--foam);
}

.hero-sub {
  margin: 1.75rem 0 0;
  max-width: 28rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--muted-ink);
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-sub.hero-in {
  animation-delay: 0.55s;
}
.hero-actions.hero-in {
  animation-delay: 0.7s;
}
.eyebrow.hero-in {
  animation-delay: 0.1s;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

.scroll-cue {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--deep-teal);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: fade-up 0.8s ease 1.4s forwards;
  opacity: 0;
}

.chevron {
  animation: bounce 1.8s ease-in-out infinite;
  font-size: 1.25rem;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

.hero-watermark {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1rem;
  z-index: 5;
  overflow: hidden;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 21vw;
  font-weight: 700;
  line-height: 0.82;
  color: rgba(0, 48, 63, 0.07);
  white-space: nowrap;
  user-select: none;
}

.marquee {
  overflow: hidden;
  border-block: 3px solid var(--deep-teal);
  background: var(--deep-teal);
  padding-block: 1.5rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-x 38s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
}

.marquee-item span {
  padding-inline: 2rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--foam);
}

@keyframes marquee-x {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding-block: 6rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 9rem;
  }
}

.section-foam {
  background: var(--foam);
}

.section-surface {
  border-block: 3px solid var(--deep-teal);
  background: var(--surface);
}

.section h2 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

#features .eyebrow,
#features h2,
#how .eyebrow,
#how h2 {
  margin-left: auto;
  text-align: right;
}

@media (min-width: 768px) {
  #features h2,
  #how h2 {
    max-width: 22ch;
  }
}

.feature-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
  }
  .feature-card:nth-child(1),
  .feature-card:nth-child(4) {
    grid-column: span 7;
  }
  .feature-card:nth-child(2),
  .feature-card:nth-child(3) {
    grid-column: span 5;
  }
}

.feature-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 2rem;
  border: 3px solid var(--deep-teal);
  background: var(--surface-elevated);
  box-shadow: 4px 4px 0 var(--deep-teal);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

@media (min-width: 768px) {
  .feature-card {
    padding: 3rem;
  }
}

.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--deep-teal);
}

.feature-num {
  position: absolute;
  right: -0.5rem;
  top: -1.5rem;
  font-family: var(--font-heading);
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(137, 183, 180, 0.3);
  pointer-events: none;
  user-select: none;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-num {
  transform: translateY(-0.5rem);
}

.feature-illust {
  margin-bottom: 2rem;
  display: inline-block;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.75rem;
}

.feature-card p {
  margin: 0;
  position: relative;
  max-width: 28ch;
  font-weight: 600;
  color: var(--muted-ink);
}

.how-grid {
  margin-top: 5rem;
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.how-step {
  position: relative;
}

.how-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--deep-teal);
  background: var(--water);
  color: var(--foam);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--deep-teal);
}

.how-step h3 {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.how-step p {
  margin: 0;
  font-weight: 600;
  color: var(--muted-ink);
}

.phones {
  margin-top: 4rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .phones {
    grid-template-columns: repeat(4, 1fr);
  }
}

.phone {
  margin: 0;
}

.phone-frame {
  aspect-ratio: 9 / 19;
  border: 3px solid var(--deep-teal);
  background: var(--deep-teal);
  box-shadow: 4px 4px 0 var(--deep-teal);
  overflow: hidden;
  transition: transform 0.5s ease;
}

.phone:hover .phone-frame {
  transform: translateY(-0.5rem);
}

.phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(232, 247, 244, 0.72), rgba(244, 255, 252, 0.88)),
    url("/assets/app_background.png") center / cover no-repeat;
  overflow: hidden;
  image-rendering: pixelated;
}

.app-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.45rem 0.35rem;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}

.app-brand img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

.app-brand span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--deep-teal);
  white-space: nowrap;
}

.app-topbar-spacer {
  flex: 1;
}

.app-coin {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.35rem;
  border: 2px solid var(--deep-teal);
  background: var(--surface-elevated);
  box-shadow: 1px 1px 0 var(--deep-teal);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink);
}

.app-coin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f0d45a, #c9a227 55%, #5c4508);
  border: 1px solid #5c4508;
}

.app-icon-btn {
  width: 22px;
  height: 22px;
  border: 2px solid var(--deep-teal);
  background: var(--surface-elevated);
  box-shadow: 1px 1px 0 var(--deep-teal);
  display: grid;
  place-items: center;
  color: var(--deep-teal);
  font-size: 0.7rem;
  line-height: 1;
}

.app-titlebar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.55rem 0.5rem 0.35rem;
}

.app-titlebar h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep-teal);
}

.app-body {
  flex: 1;
  min-height: 0;
  padding: 0.35rem 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: hidden;
}

.lv-chip {
  align-self: flex-start;
  padding: 0.15rem 0.4rem;
  border: 2px solid var(--deep-teal);
  background: var(--mist);
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--deep-teal);
}

.mini-tank {
  position: relative;
  width: 100%;
  aspect-ratio: 706 / 362;
  border: 3px solid var(--deep-teal);
  background: #1a6b7a;
  overflow: hidden;
  flex: 0 0 auto;
}

.mini-tank-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  image-rendering: pixelated;
}

.mini-tank-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: url("/assets/floor_grass.png") left bottom / auto 100% repeat-x;
  image-rendering: pixelated;
}

.mini-tank-fish,
.mini-tank-decor {
  position: absolute;
  image-rendering: pixelated;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.15));
}

.mini-tank-fish.a {
  width: 22%;
  top: 28%;
  left: 14%;
}

.mini-tank-fish.b {
  width: 16%;
  top: 42%;
  left: 58%;
}

.mini-tank-decor.plant {
  width: 18%;
  bottom: 18%;
  left: 8%;
}

.mini-tank-decor.rock {
  width: 16%;
  bottom: 16%;
  right: 12%;
}

.habit-drawers {
  flex: 1;
  min-height: 0;
  border: 3px solid #3d2b1f;
  background: #a67c52;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.habit-drawers-head {
  background: #5c4030;
  border-bottom: 2px solid #3d2b1f;
  color: var(--foam);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.2rem;
}

.habit-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
}

.habit-drawer-tile {
  position: relative;
  background: #8b6914;
  border-right: 2px solid #3d2b1f;
  border-bottom: 2px solid #3d2b1f;
  padding: 0.35rem 0.7rem 0.35rem 0.45rem;
  color: var(--foam);
  min-height: 2.4rem;
}

.habit-drawer-tile:nth-child(2n) {
  border-right: 0;
}

.habit-drawer-tile strong {
  display: block;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.15;
}

.habit-drawer-meta {
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.48rem;
  font-weight: 700;
  opacity: 0.95;
}

.habit-drawer-knob {
  position: absolute;
  right: 0.28rem;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border: 1px solid #3d2b1f;
  background: #d4af37;
}

.habit-drawer-knob.open {
  background: #5c4030;
}

.app-info-card {
  border: 2px solid var(--deep-teal);
  background: #cfe8e2;
  box-shadow: 2px 2px 0 var(--deep-teal);
  padding: 0.4rem 0.45rem;
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--muted-ink);
  line-height: 1.3;
}

.app-section-label {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--deep-teal);
}

.habit-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid var(--deep-teal);
  background: var(--surface-elevated);
  box-shadow: 2px 2px 0 var(--deep-teal);
  padding: 0.35rem 0.4rem;
}

.habit-row.on {
  background: var(--mist);
}

.habit-row-text {
  flex: 1;
  min-width: 0;
}

.habit-row-text strong {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--ink);
}

.habit-row-text span {
  font-size: 0.45rem;
  font-weight: 700;
  color: var(--muted-ink);
}

.habit-toggle {
  width: 22px;
  height: 12px;
  border: 2px solid var(--deep-teal);
  background: #c9d8d4;
  position: relative;
  flex: 0 0 auto;
}

.habit-toggle::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 6px;
  height: 6px;
  background: var(--deep-teal);
}

.habit-row.on .habit-toggle {
  background: var(--water);
}

.habit-row.on .habit-toggle::after {
  left: auto;
  right: 1px;
  background: var(--foam);
}

.shop-tabs {
  display: flex;
  gap: 0.25rem;
}

.shop-tab {
  flex: 1;
  text-align: center;
  border: 2px solid var(--deep-teal);
  background: var(--surface-elevated);
  font-family: var(--font-heading);
  font-size: 0.5rem;
  font-weight: 700;
  padding: 0.2rem 0;
  color: var(--muted-ink);
}

.shop-tab.active {
  background: var(--deep-teal);
  color: var(--foam);
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  flex: 1;
  align-content: start;
}

.shop-card {
  border: 2px solid var(--deep-teal);
  background: var(--surface-elevated);
  box-shadow: 2px 2px 0 var(--deep-teal);
  padding: 0.3rem;
  text-align: center;
}

.shop-card img {
  width: 70%;
  margin: 0 auto 0.2rem;
  image-rendering: pixelated;
}

.shop-card strong {
  display: block;
  font-size: 0.48rem;
  font-weight: 800;
  color: var(--ink);
}

.shop-card span {
  font-size: 0.45rem;
  font-weight: 700;
  color: var(--coin);
}

.profile-card {
  border: 2px solid var(--deep-teal);
  background: var(--surface-elevated);
  box-shadow: 2px 2px 0 var(--deep-teal);
  padding: 0.45rem;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border: 2px solid var(--deep-teal);
  background: var(--mist);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.profile-avatar img {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

.profile-head strong {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
}

.profile-head span {
  font-size: 0.45rem;
  font-weight: 700;
  color: var(--muted-ink);
}

.profile-stat {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.22rem 0;
  border-top: 1px solid rgba(0, 48, 63, 0.15);
  font-size: 0.52rem;
  font-weight: 700;
}

.profile-stat span:last-child {
  color: var(--deep-teal);
  font-family: var(--font-heading);
}

.profile-community {
  margin-top: 0.35rem;
  border: 2px solid var(--deep-teal);
  background: var(--mist);
  box-shadow: 2px 2px 0 var(--deep-teal);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.52rem;
  font-weight: 800;
  color: var(--deep-teal);
}

.phone figcaption {
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--muted-ink);
}

.phone figcaption strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--ink);
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

.section-download {
  position: relative;
  overflow: hidden;
  border-block: 3px solid var(--deep-teal);
  background: var(--deep-teal);
}

.download-coin {
  position: absolute;
  right: -2.5rem;
  top: 2.5rem;
  opacity: 0.2;
  pointer-events: none;
}

@media (min-width: 768px) {
  .download-coin {
    right: 4rem;
  }
}

.section-download h2 {
  max-width: none;
  color: var(--foam);
}

.download-sub {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--mist);
}

.store-row {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.store-btn {
  display: inline-flex;
  flex-direction: column;
  min-width: 190px;
  padding: 0.85rem 1.25rem;
  border: 3px solid var(--ink);
  background: var(--foam);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--seafoam);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.store-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--seafoam);
}

.store-top {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-bottom {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
}

.webapp-note {
  margin-top: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--mist);
}

.webapp-note a {
  margin-left: 0.5rem;
  border-bottom: 2px solid var(--seafoam);
}

.fine-print {
  margin-top: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--seafoam);
}

.sisters {
  margin-top: 4rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .sisters {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sister-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  border: 3px solid var(--deep-teal);
  background: var(--surface-elevated);
  box-shadow: 4px 4px 0 var(--deep-teal);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.sister-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--deep-teal);
}

.sister-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--water);
}

.sister-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.sister-card p {
  margin: 0;
  flex: 1;
  font-weight: 600;
  color: var(--muted-ink);
}

.sister-link {
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-bottom: 2px solid var(--water);
  width: fit-content;
}

.section-contact {
  background: var(--sand);
  border-top: 3px solid var(--deep-teal);
  padding-bottom: 1rem;
}

.site-footer {
  border-top: 0;
  background: var(--sand);
  padding: 1rem 0 0;
}

.section-contact h2 {
  max-width: 16ch;
}

.contact-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.contact-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  border: 3px solid var(--deep-teal);
  background: var(--surface-elevated);
  box-shadow: 4px 4px 0 var(--deep-teal);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.contact-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--deep-teal);
}

.contact-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--deep-teal);
  background: var(--mist);
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.contact-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.contact-card span:last-child {
  font-weight: 700;
  color: var(--muted-ink);
  word-break: break-all;
}

.footer-columns {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 800px) {
  .footer-columns {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a {
  font-weight: 700;
  color: var(--muted-ink);
  width: fit-content;
}

.footer-col a:hover {
  color: var(--water);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.footer-logo strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--ink);
}

.footer-tagline {
  margin: 0;
  font-weight: 700;
  color: var(--muted-ink);
}

.footer-studio {
  margin-top: 0.65rem;
  font-weight: 800;
  color: var(--water);
  width: fit-content;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.15rem 0 1.5rem;
  border-top: 2px solid var(--deep-teal);
  font-weight: 700;
  color: var(--muted-ink);
  font-size: 0.92rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bundle {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.fine-print a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  background: var(--foam);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-main {
  flex: 1;
  padding-block: 3.5rem 4rem;
}

.legal-main h1 {
  margin: 0.35rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 16ch;
}

.legal-updated {
  margin: 1rem 0 2rem;
  font-weight: 700;
  color: var(--muted-ink);
}

.legal-prose {
  max-width: 68ch;
}

.legal-prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  max-width: none;
}

.legal-prose p,
.legal-prose li {
  font-weight: 600;
  color: var(--muted-ink);
  line-height: 1.65;
}

.legal-prose ul {
  padding-left: 1.2rem;
}

.legal-prose a {
  color: var(--water);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page .nav-desktop {
  display: flex;
}

.legal-page .nav-burger-fallback {
  display: none;
}

@media (max-width: 1023px) {
  .legal-page .nav-desktop {
    display: none;
  }
  .legal-page .nav-burger-fallback {
    display: inline-flex;
  }
}

.not-found-main {
  flex: 1;
  padding-block: 4.5rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.not-found-main h1 {
  margin: 0.35rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 12ch;
}

.not-found-copy {
  margin: 1rem 0 1.75rem;
  max-width: 34ch;
  font-weight: 700;
  color: var(--muted-ink);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.not-found-fish {
  margin-top: 3rem;
  image-rendering: pixelated;
  opacity: 0.9;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}
