/* Michi — michi.veliymolfar.com — RETRO design system, ported 1:1 from the app skin. */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------ theme tokens */
:root,
:root[data-mtheme="dark"] {
  --bg: #17120d;
  --surface: #221a12;
  --text: #efe4d0;
  --text2: rgba(239, 228, 208, 0.6);
  --text3: rgba(239, 228, 208, 0.34);
  --hair: rgba(232, 196, 140, 0.13);
  --ring: rgba(232, 196, 140, 0.32);
  --accent: #e3a33c;
  --on-accent: #1b130b;
  --press: #ce8e2e;
  --acc-fill: rgba(227, 163, 60, 0.3);
  --acc-text: rgba(227, 163, 60, 0.62);
  --n-tick: #c76a4e;
  --s-tick: #8a9a55;
  --glow: rgba(227, 163, 60, 0.16);
  --core: rgba(227, 163, 60, 0.4);
  --cafe: #d5734a;
  --park: #93a24a;
  --culture: #e2ae45;
  --random: #4e9e8c;
  --wash-top: rgba(168, 118, 40, 0.2);
  --wash-bot: rgba(241, 197, 122, 0.26);
  --bezel: #0e0b08;
  --shadow: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* Light tokens: applied when JS resolves light, and (no-JS) when the OS prefers light. */
:root[data-mtheme="light"] {
  --bg: #f3e8d2;
  --surface: #fbf3e2;
  --text: #2b2015;
  --text2: rgba(43, 32, 21, 0.62);
  --text3: rgba(43, 32, 21, 0.34);
  --hair: rgba(120, 80, 30, 0.16);
  --ring: rgba(120, 80, 30, 0.34);
  --accent: #c2673a;
  --on-accent: #fbf3e2;
  --press: #ac5a31;
  --acc-fill: rgba(194, 103, 58, 0.26);
  --acc-text: rgba(194, 103, 58, 0.62);
  --n-tick: #b35a3e;
  --s-tick: #73813a;
  --glow: rgba(194, 103, 58, 0.13);
  --core: rgba(194, 103, 58, 0.3);
  --cafe: #c2673a;
  --park: #7c8a37;
  --culture: #c79233;
  --random: #3c8576;
  --wash-top: rgba(145, 74, 38, 0.16);
  --wash-bot: rgba(226, 152, 104, 0.22);
  --bezel: #33281b;
  --shadow: rgba(90, 60, 30, 0.25);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-mtheme]) {
    --bg: #f3e8d2;
    --surface: #fbf3e2;
    --text: #2b2015;
    --text2: rgba(43, 32, 21, 0.62);
    --text3: rgba(43, 32, 21, 0.34);
    --hair: rgba(120, 80, 30, 0.16);
    --ring: rgba(120, 80, 30, 0.34);
    --accent: #c2673a;
    --on-accent: #fbf3e2;
    --press: #ac5a31;
    --acc-fill: rgba(194, 103, 58, 0.26);
    --acc-text: rgba(194, 103, 58, 0.62);
    --n-tick: #b35a3e;
    --s-tick: #73813a;
    --glow: rgba(194, 103, 58, 0.13);
    --core: rgba(194, 103, 58, 0.3);
    --cafe: #c2673a;
    --park: #7c8a37;
    --culture: #c79233;
    --random: #3c8576;
    --wash-top: rgba(145, 74, 38, 0.16);
    --wash-bot: rgba(226, 152, 104, 0.22);
    --bezel: #33281b;
    --shadow: rgba(90, 60, 30, 0.25);
    color-scheme: light;
  }
}

/* -------------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--press);
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------- signature backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}
.backdrop__wash {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(110% 60% at 50% 14%, var(--wash-top), transparent 62%),
    radial-gradient(90% 50% at 50% 112%, var(--wash-bot), transparent 62%);
  animation: michiWash 46s ease-in-out infinite alternate;
}
.backdrop__grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22240%22%20height=%22240%22%3E%3Cfilter%20id=%22n%22%3E%3CfeTurbulence%20type=%22fractalNoise%22%20baseFrequency=%220.85%22%20numOctaves=%222%22%20stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect%20width=%22240%22%20height=%22240%22%20filter=%22url(%23n)%22/%3E%3C/svg%3E');
  background-size: 240px 240px;
}
/* Narrower washes near the top/bottom edges on small screens (mirrors the mobile artboard). */
@media (max-width: 720px) {
  .backdrop__wash {
    background-image: radial-gradient(140% 30% at 50% 6%, var(--wash-top), transparent 62%),
      radial-gradient(120% 24% at 50% 104%, var(--wash-bot), transparent 62%);
  }
}

@keyframes michiWash {
  0% {
    transform: scale(1.08) translateY(0);
  }
  100% {
    transform: scale(1.14) translateY(-1.2%);
  }
}
@keyframes michiSway {
  0% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(5deg);
  }
}
@keyframes michiReveal {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------------ layout */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}
@media (max-width: 720px) {
  .wrap {
    padding: 0 24px;
  }
}

/* ------------------------------------------------------------------ header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.wordmark {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--text2);
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover {
  color: var(--text);
}
.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}
.btn-accent:hover {
  background: var(--press);
  color: var(--on-accent);
}
@media (max-width: 720px) {
  .site-header {
    padding: 18px 0;
  }
  .btn-accent {
    padding: 9px 16px;
    font-size: 13px;
  }
  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* ------------------------------------------------------------- store badges */
.badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 20px;
  min-width: 150px;
  text-align: left;
  transition: border-color 0.2s ease;
}
.badge:hover {
  border-color: var(--acc-text);
  color: var(--text);
}
.badge__icon {
  width: 26px;
  height: 26px;
  flex: none;
}
.badge__txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.badge__txt small {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text3);
}
.badge__txt span {
  font-size: 17px;
  font-weight: 500;
}
.badges--stack {
  flex-direction: column;
  width: 240px;
  margin-inline: auto;
}
.badges--stack .badge {
  min-width: 0;
}

/* --------------------------------------------------------------------- hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 0 130px;
}
.hero-compass {
  position: relative;
  width: min(480px, 84vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  container-type: inline-size;
}
.hero-compass__glow {
  position: absolute;
  width: 71%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, var(--core), var(--glow) 45%, transparent 72%);
  /* Mirrors the app's ProximityGlow "breathing" (scale 0.94↔1.06, ~2.2s, linear). */
  animation: michiBreath 2.2s linear infinite alternate;
}
.hero-compass > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero-compass__dial {
  transform-origin: 220px 220px;
  animation: michiSway 7s ease-in-out infinite alternate;
}
.h-display {
  margin-top: -28px;
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 1000px;
}
.hero__sub {
  margin-top: 26px;
  font-size: clamp(0.94rem, 1.4vw, 1.125rem);
  color: var(--text2);
  max-width: 560px;
  line-height: 1.55;
}
.hero .badges {
  margin-top: 44px;
}
@media (max-width: 720px) {
  .hero {
    padding: 28px 0 80px;
  }
  .h-display {
    margin-top: -14px;
    line-height: 1.06;
  }
  .hero__sub {
    max-width: 300px;
  }
  .hero .badges {
    margin-top: 30px;
  }
}

/* ------------------------------------ hero compass — animated POI satellite */
/* Ports the onboarding Concept step: the "?" bubble orbits in from the side,
   pops when the heading locks on, then flip-reveals the category icon — all in
   pure CSS. Sizes are in cqi (1 unit of the 440-viewBox SVG ≈ 0.227cqi), so the
   overlay tracks the SVG at every width. reduced-motion falls back to the mock:
   a static amber "?" at the top with "86 m" centered. */
.sat {
  /* Overrides the [hidden] attribute — markup degrades to the static mock
     (no overlay at all) if this stylesheet ever fails to load. */
  display: block;
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  pointer-events: none;
  /* Identical to .hero-compass__dial so the bubble sways with the dial. */
  animation: michiSway 7s ease-in-out infinite alternate;
}
.sat__orbit {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  animation: satOrbit 12s ease-in-out infinite;
}
.sat__pop {
  --sat-size: 10.9cqi;
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--sat-size);
  height: var(--sat-size);
  margin-left: calc(var(--sat-size) / -2);
  margin-top: calc(var(--sat-size) / -2);
  transform-origin: 50% 50%;
  perspective: 60cqi;
  /* Counter-rotation (negates satOrbit) keeps the glyph upright + capture pop. */
  animation: satPop 12s ease-out infinite;
}
.sat__flip {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: var(--accent);
  border: 1.5px solid color-mix(in srgb, var(--on-accent) 60%, transparent);
  transform-style: preserve-3d;
  animation: satFlip 12s cubic-bezier(0.4, 0, 0.2, 1) infinite,
    satCat 48s linear infinite;
}
.sat__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--on-accent);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.sat__face--q {
  font-size: 4.5cqi;
  font-weight: 700;
  line-height: 1;
}
.sat__face--icon {
  transform: rotateY(180deg);
}
.sat__glyph {
  position: absolute;
  inset: 0;
  margin: auto;
  /* App ratio: 16dp icon in a 34dp bubble ≈ 0.47 × the 10.9cqi bubble. */
  width: 5.1cqi;
  height: 5.1cqi;
  opacity: 0;
}
.sat__glyph--cafe {
  animation: satGlyph 48s linear infinite;
  animation-delay: 0s;
}
.sat__glyph--park {
  animation: satGlyph 48s linear infinite;
  animation-delay: -36s;
}
.sat__glyph--culture {
  animation: satGlyph 48s linear infinite;
  animation-delay: -24s;
}
.sat__glyph--random {
  animation: satGlyph 48s linear infinite;
  animation-delay: -12s;
}

/* Distance readout crossfade — tracks the bubble's approach (420 → 86 → 8). */
.dist {
  opacity: 0;
}
.dist--a {
  animation: distA 12s linear infinite;
}
.dist--b {
  opacity: 1; /* static / reduced-motion fallback shows 86 m */
  animation: distB 12s linear infinite;
}
.dist--c {
  animation: distC 12s linear infinite;
}

@keyframes satOrbit {
  0% {
    transform: rotate(80deg);
  }
  34% {
    transform: rotate(12deg);
  }
  50%,
  100% {
    transform: rotate(0deg);
  }
}
@keyframes satPop {
  0% {
    transform: rotate(-80deg) scale(1);
    opacity: 0;
  }
  4% {
    transform: rotate(-80deg) scale(1);
    opacity: 1;
  }
  34% {
    transform: rotate(-12deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  54% {
    transform: rotate(0deg) scale(1.42);
    opacity: 1;
  }
  58% {
    transform: rotate(0deg) scale(1.3);
    opacity: 1;
  }
  62% {
    transform: rotate(0deg) scale(1.38);
    opacity: 1;
  }
  66%,
  92% {
    transform: rotate(0deg) scale(1.35);
    opacity: 1;
  }
  97% {
    transform: rotate(0deg) scale(1.35);
    opacity: 0;
  }
  100% {
    transform: rotate(-80deg) scale(1);
    opacity: 0;
  }
}
@keyframes satFlip {
  0%,
  56% {
    transform: rotateY(0deg);
  }
  63%,
  90% {
    transform: rotateY(180deg);
  }
  95%,
  100% {
    transform: rotateY(0deg);
  }
}
@keyframes satCat {
  0%,
  24.99% {
    background-color: var(--cafe);
  }
  25%,
  49.99% {
    background-color: var(--park);
  }
  50%,
  74.99% {
    background-color: var(--culture);
  }
  75%,
  100% {
    background-color: var(--random);
  }
}
@keyframes satGlyph {
  0%,
  24.5% {
    opacity: 1;
  }
  25%,
  100% {
    opacity: 0;
  }
}
@keyframes michiBreath {
  0% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1.06);
  }
}
@keyframes distA {
  0% {
    opacity: 0;
  }
  6%,
  30% {
    opacity: 1;
  }
  36%,
  100% {
    opacity: 0;
  }
}
@keyframes distB {
  0%,
  34% {
    opacity: 0;
  }
  40%,
  50% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0;
  }
}
@keyframes distC {
  0%,
  52% {
    opacity: 0;
  }
  57%,
  92% {
    opacity: 1;
  }
  97%,
  100% {
    opacity: 0;
  }
}

/* --------------------------------------------------------------- sections */
.section {
  padding: 110px 0;
  border-top: 1px solid var(--hair);
}
.section--plain {
  border-top: 0;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--acc-text);
}
.h-section {
  font-size: clamp(2.125rem, 5.5vw, 4rem);
  font-weight: 200;
  letter-spacing: -0.01em;
  line-height: 1.04;
}
.eyebrow + .h-section {
  margin-top: 18px;
}
@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }
}

/* -------------------------------------------------------------- how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-top: 72px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.phone {
  width: 280px;
  max-width: 72vw;
  background: var(--bezel);
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 24px 60px var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.phone__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 35px;
  overflow: hidden;
  /* Tasteful fallback shown until/unless the real screenshot loads. */
  background: radial-gradient(120% 80% at 50% 0%, var(--wash-top), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg));
}
.phone__screen img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone__ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text3);
}
.phone__ph svg {
  width: 44px;
  height: 44px;
  opacity: 0.5;
}
.phone__ph span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.step__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
}
.step__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.step__title {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 500;
}
.step__body p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.55;
}
@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 56px;
    margin-top: 44px;
  }
  .phone {
    width: 230px;
    border-radius: 38px;
    padding: 9px;
  }
  .phone__screen {
    border-radius: 30px;
  }
}

/* --------------------------------------------------------------- categories */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.cat {
  --cat: var(--accent);
  background: color-mix(in srgb, var(--cat) 9%, var(--surface));
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease;
}
.cat:hover {
  border-color: var(--cat);
}
.cat__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--cat);
}
.cat__name {
  font-size: clamp(1.125rem, 2.4vw, 1.75rem);
  font-weight: 500;
}
.cat p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.5;
}
.cat--cafe {
  --cat: var(--cafe);
}
.cat--park {
  --cat: var(--park);
}
.cat--culture {
  --cat: var(--culture);
}
.cat--random {
  --cat: var(--random);
}
@media (max-width: 720px) {
  .cats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
  }
  .cat {
    border-radius: 16px;
    padding: 18px;
    gap: 10px;
  }
  .cat p {
    font-size: 13px;
    line-height: 1.45;
  }
}

/* --------------------------------------------------------- more than a compass */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature__title {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
}
.feature p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 480px;
}
@media (max-width: 720px) {
  .features {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }
  .feature {
    border-radius: 16px;
    padding: 24px;
  }
  .feature p {
    font-size: 14px;
  }
}

/* --------------------------------------------------------------- final CTA */
.cta {
  padding: 150px 0;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 44px;
}
.cta .h-section {
  font-size: clamp(2.375rem, 6.5vw, 5rem);
  letter-spacing: -0.02em;
}
@media (max-width: 720px) {
  .cta {
    padding: 90px 0;
    gap: 28px;
  }
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text3);
}
.site-footer .brand img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}
.site-footer .wordmark {
  color: var(--text2);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text2);
  font-size: 13px;
}
.footer-links a:hover {
  color: var(--accent);
}
@media (max-width: 720px) {
  .site-footer {
    justify-content: center;
    text-align: center;
    padding: 28px 0;
  }
  .footer-links {
    gap: 18px;
    justify-content: center;
  }
}

/* --------------------------------------------------- share page (/p/) */
.share {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.share__body {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0 24px 70px;
}
.share-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 24px;
  padding: 56px 52px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 24px 70px var(--shadow);
}
.share-mark {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}
.share-mark__glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--core), var(--glow) 45%, transparent 72%);
}
.share-mark__needle {
  transform-origin: 60px 60px;
  animation: michiSway 6s ease-in-out infinite alternate;
}
.share-card h1 {
  margin-top: 26px;
  font-size: clamp(1.6rem, 5vw, 2.125rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 360px;
}
.share-card__sub {
  margin-top: 16px;
  font-size: clamp(0.94rem, 2vw, 1rem);
  color: var(--text2);
  line-height: 1.6;
  max-width: 360px;
}
.share-card .badges {
  margin-top: 34px;
}
.share-card__note {
  margin-top: 26px;
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
  max-width: 300px;
}
@media (max-width: 480px) {
  .share-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 12px;
  }
}

/* ------------------------------------------------------------ article (legal) */
.article-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 64px;
}
.article-head {
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}
.article-head .back {
  color: var(--text2);
  font-size: 14px;
}
.article-head .back:hover {
  color: var(--accent);
}
.article {
  width: 100%;
  max-width: 720px;
  padding: 70px 0 120px;
}
.article h1 {
  font-size: clamp(2.125rem, 6vw, 3.5rem);
  font-weight: 200;
  letter-spacing: -0.01em;
}
.article .updated {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text3);
}
.article h2 {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 500;
}
.article h3 {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 500;
  margin-top: 28px;
}
.article p,
.article li {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
}
.article p {
  margin-top: 18px;
}
.article ul,
.article ol {
  margin-top: 16px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article hr {
  border: 0;
  height: 1px;
  background: var(--hair);
  margin: 48px 0;
}
.article strong {
  color: var(--text);
  font-weight: 500;
}
.article-foot {
  width: 100%;
  max-width: 720px;
  border-top: 1px solid var(--hair);
  padding: 28px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text3);
}
@media (max-width: 720px) {
  .article-page {
    padding: 0 24px;
  }
  .article-head {
    padding: 18px 0;
  }
  .article {
    padding: 40px 0 70px;
  }
  .article hr {
    margin: 32px 0;
  }
  .article p,
  .article li {
    font-size: 15px;
  }
}

/* -------------------------------------------------------- legal extras */
.toc {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 22px 26px;
  margin-top: 32px;
}
.toc__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc-text);
}
.toc ol {
  margin-top: 12px;
  padding-left: 20px;
  gap: 7px;
}
.toc li {
  color: var(--text3);
}
.toc a {
  color: var(--text2);
  font-size: 15px;
}
.toc a:hover {
  color: var(--accent);
}
.callout {
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-top: 24px;
}
.callout p {
  margin-top: 0;
  color: var(--text2);
}
.callout--warn {
  border-left-color: #cf6a44;
  background: color-mix(in srgb, #cf6a44 9%, var(--surface));
}
.article small {
  font-size: 13px;
  color: var(--text3);
}

/* --------------------------------------------------------------- 404 page */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 40px 24px;
}
.notfound .h-section {
  max-width: 640px;
}

/* -------------------------------------------------------- scroll-reveal hook */
.reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.is-in {
  animation: michiReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* -------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
