/* ===== Risa Apps — Boutique Craft × Editorial ===== */

:root {
  /* Palette: Terracotta Studio (default) */
  --paper:       #F2ECE1;
  --paper-2:     #E8DECC;
  --ink:         #1C1715;
  --ink-soft:    #4A3F38;
  --accent:      #C8553A;
  --accent-soft: #E58669;
  --support:     #2F3F2A;
  --rule:        rgba(28, 23, 21, 0.14);

  --font-display: 'Bricolage Grotesque', 'Söhne', system-ui, sans-serif;
  --font-ui:      'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw:   1440px;
  --gutter: clamp(20px, 7vw, 64px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11  0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.35;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.96;
  margin: 0;
  text-wrap: balance;
}

.display-xl {
  font-size: clamp(56px, 11vw, 200px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.88;
}
.display-l {
  font-size: clamp(44px, 7.5vw, 128px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.display-m {
  font-size: clamp(32px, 4.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.italic-accent {
  font-style: italic;
  font-weight: 500;
  display: inline-block;
  padding-right: 0.15em;
  background: linear-gradient(120deg, #7B2FF7, #F107A3, #FE53BB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}
.eyebrow--with-mark::before { display: none; }
.eyebrow--with-mark {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}
.eyebrow__mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.body-l {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
  max-width: 56ch;
}

/* ===== Layout ===== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: var(--paper); }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
  color: #F2ECE1;
}

.nav__wm {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  color: inherit;
}
.nav__wm span { font-style: italic; font-weight: 500; }

.nav__mark {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: inline-block;
  vertical-align: -4px;
  margin-right: 6px;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav__links a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: inherit;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav-hamburger { display: flex; }
}

/* Mobile drawer */
.mobile-nav-wrapper {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 100vw);
  height: 100vh;
  background: var(--paper);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 48px 32px;
}
.mobile-nav-wrapper.open { transform: none; }

.mobile-nav-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
}

.mobile-nav-links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: clamp(26px, 8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  display: block;
}
.mobile-nav-links a:hover { color: var(--accent); }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 23, 21, 0.45);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(28, 23, 21, 0.28);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn__arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ===== Marquee ===== */
.marquee {
  border-block: 1px solid var(--rule);
  padding: 22px 0;
  overflow: hidden;
  background: var(--paper);
}
.marquee__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  align-items: center;
}
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.marquee__track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee__star {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}
.marquee em {
  font-style: italic;
  font-weight: 500;
  padding-right: 0.08em;
  background: linear-gradient(120deg, #7B2FF7, #F107A3, #FE53BB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  padding-top: 96px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 40px;
}
.hero__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.7;
}
.hero__headline { margin-top: 60px; }
.hero__sub {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: end;
}
@media (max-width: 900px) { .hero__sub { grid-template-columns: 1fr; gap: 32px; } }
.hero__cta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero__meta-side {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.9;
}
.hero__meta-val {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
  line-height: 1.2;
}

/* Hero phone cluster */
.hero__phones {
  position: absolute;
  right: var(--gutter);
  top: 380px;
  width: clamp(180px, 22vw, 280px);
  pointer-events: none;
  z-index: 2;
}
.hero__phones .phone { position: absolute; }
.hero__phones .phone--vm {
  top: 0;
  right: 30%;
  transform: rotate(-7deg);
}
.hero__phones .phone--mm {
  top: 80px;
  right: -10%;
  transform: rotate(8deg);
}
@media (max-width: 1100px) { .hero__phones { display: none; } }

/* ===== iOS device frame ===== */
.ios-frame {
  width: 260px;
  aspect-ratio: 260 / 560;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 0 0 1.5px rgba(0, 0, 0, 0.14);
  display: block;
}
.ios-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ===== Showcase ===== */
.showcase {
  padding-block: 140px;
  position: relative;
}
.showcase__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.showcase--reverse .showcase__inner {
  grid-template-columns: 1fr 1.1fr;
}
.showcase--reverse .showcase__copy { order: 2; }
.showcase--reverse .showcase__visual { order: 1; }

@media (max-width: 900px) {
  .showcase__inner,
  .showcase--reverse .showcase__inner { grid-template-columns: 1fr; }
  .showcase--reverse .showcase__copy,
  .showcase--reverse .showcase__visual { order: unset; }
}

.showcase__copy h2 { margin-top: 24px; }
.showcase__copy p { margin-top: 28px; }
.showcase__bullets {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.showcase__bullets li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--ink);
}
.showcase__bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.showcase__cta { margin-top: 36px; }
.showcase__visual {
  position: relative;
  container-type: inline-size;
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) { .showcase__visual { height: 480px; } }

.showcase__bg-stamp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, #7B2FF7, #F107A3, #FE53BB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  opacity: 0.12;
  font-size: clamp(72px, 24cqw, 220px);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
.showcase__phone-wrap { position: relative; z-index: 2; }
.showcase__phone-secondary {
  position: absolute;
  right: -4%;
  bottom: 8%;
  z-index: 3;
}
.showcase--reverse .showcase__phone-secondary {
  left: -2%;
  right: auto;
  bottom: 10%;
}
@media (max-width: 900px) { .showcase__phone-secondary { display: none; } }

/* ===== Principles ===== */
.principles {
  padding-block: 140px;
  border-top: 1px solid var(--rule);
}
.principles__head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .principles__head { grid-template-columns: 1fr; gap: 28px; } }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 900px) { .principle-grid { grid-template-columns: 1fr; } }
.principle {
  padding: 48px 36px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.principle:last-child { border-right: none; }
.principle__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  padding-right: 0.08em;
  background: linear-gradient(120deg, #7B2FF7, #F107A3, #FE53BB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.principle h3 {
  font-size: clamp(22px, 2.2vw, 32px);
  margin-top: 80px;
  letter-spacing: -0.02em;
}
.principle h3 em { font-style: italic; font-weight: 500; background: linear-gradient(120deg, #7B2FF7, #F107A3, #FE53BB); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }
.principle p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  max-width: 36ch;
}

/* ===== Footer ===== */
.footer {
  padding: 100px 0 36px;
  background: var(--ink);
  color: var(--paper);
}
.footer__big {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 220px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.85;
  margin-bottom: 60px;
}
.footer__big em {
  font-style: italic;
  font-weight: 500;
  display: inline-block;
  padding-right: 0.2em;
  background: linear-gradient(120deg, #7B2FF7, #F107A3, #FE53BB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(242, 236, 225, 0.18);
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(242, 236, 225, 0.55);
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  padding: 4px 0;
  opacity: 0.9;
}
.footer__col a:hover { color: var(--accent-soft); opacity: 1; }
.footer__studio-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.015em;
  padding-right: 0.08em;
  background: linear-gradient(120deg, #7B2FF7, #F107A3, #FE53BB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.footer__studio-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 236, 225, 0.55);
  margin-top: 8px;
}
.footer__bottom {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 236, 225, 0.45);
}

/* ===== Product hero ===== */
.product-hero {
  padding-top: 140px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 90vh;
}
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; } }

.product-hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-top: 24px;
}
.product-hero__desc { margin-top: 36px; }
.product-hero__meta {
  margin-top: 36px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
}
.product-hero__cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.product-hero__caption {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.product-hero__visual {
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  container-type: inline-size;
  overflow: hidden;
}
@media (max-width: 900px) { .product-hero__visual { height: 440px; overflow: hidden; } }

/* Store badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  transition: transform 0.18s ease;
  text-decoration: none;
}
.store-badge img {
  display: block;
  height: clamp(44px, 3.5vw, 60px);
  width: auto;
}
.store-badge:hover { transform: translateY(-2px); }

@media (max-width: 640px) {
  .store-badge img { height: 64px; }
}

/* ===== Product video block ===== */
.product-video {
  padding-block: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--rule);
}
.product-video__head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.product-video__head h2 { margin-top: 24px; }
.product-video__frame {
  max-width: 360px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}
.product-video__frame video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--ink);
  border-radius: 18px;
}

/* ===== Feature strip ===== */
.feature-strip {
  padding-block: 120px;
  border-top: 1px solid var(--rule);
}
.feature-strip__head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}
@media (max-width: 900px) { .feature-strip__head { grid-template-columns: 1fr; gap: 28px; } }
.feature-strip__head h2 { margin-top: 24px; }

.feature-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.feature-strip__grid--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .feature-strip__grid,
  .feature-strip__grid--3col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .feature-strip__grid,
  .feature-strip__grid--3col { grid-template-columns: 1fr; }
}

.feature {
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.feature__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  padding-right: 0.08em;
  background: linear-gradient(120deg, #7B2FF7, #F107A3, #FE53BB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 60px;
}
.feature h3 {
  font-size: clamp(18px, 1.6vw, 24px);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.feature p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ===== Gallery ===== */
.gallery {
  padding-block: 120px;
  border-top: 1px solid var(--rule);
}
.gallery__title { max-width: 800px; margin-bottom: 64px; }
.gallery__title h2 { margin-top: 24px; }
.gallery__title p { margin-top: 24px; max-width: 640px; }
.gallery__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .gallery__row { grid-template-columns: 1fr; } }

.gallery__card {
  padding: 36px;
  background: var(--paper-2);
  border-radius: 18px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.gallery__card:hover { transform: translateY(-6px); }
.gallery__card--dark { background: var(--ink); color: var(--paper); }
.gallery__card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  padding-right: 0.08em;
  background: linear-gradient(120deg, #7B2FF7, #F107A3, #FE53BB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.gallery__card--dark .gallery__card-num { color: var(--accent-soft); }
.gallery__card h3 {
  font-size: clamp(22px, 2.2vw, 34px);
  margin-top: 16px;
  letter-spacing: -0.02em;
}
.gallery__card--dark h3 { color: var(--paper); }
.gallery__card h3 em { font-style: italic; font-weight: 500; background: linear-gradient(120deg, #7B2FF7, #F107A3, #FE53BB); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }
.gallery__card--dark h3 em { color: var(--accent-soft); }
.gallery__card-pic {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 260px;
}
.gallery__card-note {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(242, 236, 225, 0.85);
}
.gallery__card-note a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }
.gallery__card-tag {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 236, 225, 0.45);
}

/* ===== Closing strip ===== */
.closing-strip {
  padding-block: 120px;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.closing-strip .eyebrow { justify-content: center; }
.closing-strip h2 { margin-top: 24px; }
.closing-strip h2 a { font-style: italic; font-weight: 500; background: linear-gradient(120deg, #7B2FF7, #F107A3, #FE53BB); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }

/* ===== Legal pages ===== */
.legal {
  padding-top: 140px;
  padding-bottom: 140px;
  max-width: 1100px;
}
.legal__head {
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}
.legal__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.9;
  margin-top: 28px;
}
.legal__meta {
  margin-top: 36px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.legal__lede {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 30ch;
  margin: 0 0 80px;
  text-wrap: balance;
}
.legal__body {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.legal__section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 760px) { .legal__section { grid-template-columns: 1fr; gap: 18px; } }
.legal__section-head {
  position: sticky;
  top: 110px;
  align-self: start;
}
.legal__section-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  padding-right: 0.08em;
  background: linear-gradient(120deg, #7B2FF7, #F107A3, #FE53BB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.legal__section-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.legal__section-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 62ch;
  text-wrap: pretty;
}
.legal__section-body ul {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal__section-body li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
}
.legal__section-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.legal__section-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal__section-body a:hover { text-decoration-thickness: 2px; }
.legal__section-body strong { font-weight: 600; }
.legal__subheading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 24px 0 10px;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Parallax helpers ===== */
[data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) { [data-parallax] { transform: none !important; } }

/* ===== Mobile (≤640px) ===== */
@media (max-width: 640px) {
  /* Vertical rhythm — reduce all the big section padding */
  .hero { padding-top: 72px; padding-bottom: 40px; }
  .hero__top { flex-direction: column; gap: 6px; }
  .hero__top .hero__meta:last-child { text-align: left; display: none; }
  .hero__headline { margin-top: 36px; }
  .hero__sub { margin-top: 28px; gap: 24px; }

  .showcase { padding-block: 72px; }
  .showcase__visual { height: 340px; }
  .showcase__visual .ios-frame { width: 155px !important; }

  .principles { padding-block: 72px; }
  .principle { padding: 32px 20px; }
  .principle h3 { margin-top: 48px; }

  .footer { padding-top: 60px; }
  .footer__big { font-size: clamp(48px, 13vw, 220px); margin-bottom: 40px; }
  .footer__grid { gap: 28px; padding-top: 28px; }
  .footer__bottom { margin-top: 40px; }

  .product-hero { padding-top: 96px; padding-bottom: 48px; min-height: unset; gap: 40px; }
  .product-hero__visual { height: auto; padding: 40px 0; overflow: hidden; }
  .product-hero__visual .ios-frame { width: 200px !important; }

  .feature-strip { padding-block: 72px; }
  .feature-strip__head { margin-bottom: 48px; }

  .gallery { padding-block: 72px; }
  .gallery__title { margin-bottom: 40px; }
  .gallery__card { padding: 28px 24px; min-height: 320px; }
  .gallery__row { gap: 16px; }

  .closing-strip { padding-block: 72px; }

  .legal { padding-top: 96px; padding-bottom: 80px; }
  .legal__head { padding-bottom: 40px; margin-bottom: 40px; }
  .legal__lede { margin-bottom: 48px; }
  .legal__body { gap: 40px; }
}
