:root {
  --orange: #ff6828;
  --orange-dark: #c7440e;
  --green: #14a873;
  --blue: #0b92f0;
  --graphite: #2f2f2f;
  --muted: #686868;
  --fog: #f5f5f5;
  --white: #ffffff;
  --line: #e8e8e8;
  --radius: 26px;
  --page-width: 1200px;
  --section-gap: 96px;
  --font: "Nunito Sans", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--graphite);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 48px), var(--page-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--graphite);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  padding: 20px 0;
  background: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand img { border-radius: 10px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 700;
}

.site-nav > a:not(.button) { position: relative; }

.site-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:not(.button):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.button svg,
.text-link svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-orange {
  color: var(--white);
  background: var(--orange);
}

.button-orange:hover { background: var(--orange-dark); }

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--fog);
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--graphite);
  transition: transform 180ms ease;
}

.hero {
  padding-top: 80px;
  text-align: center;
  overflow: hidden;
}

.eyebrow,
.kicker {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow { color: var(--orange); }
h1, h2, h3, p { text-wrap: pretty; }

.motion-enabled .hero > .eyebrow,
.motion-enabled .hero > h1,
.motion-enabled .hero > .hero-copy,
.motion-enabled .hero > .app-store-button {
  animation: finny-rise 700ms cubic-bezier(0.21, 0.47, 0.32, 0.98) both;
}

.motion-enabled .hero > h1 { animation-delay: 80ms; }
.motion-enabled .hero > .hero-copy { animation-delay: 160ms; }
.motion-enabled .hero > .app-store-button { animation-delay: 240ms; }

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 850px;
  margin-right: auto;
  margin-bottom: 24px;
  margin-left: auto;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 900;
}

h1 span { color: var(--green); }

.hero-copy {
  max-width: 690px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 9px 22px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--graphite);
  text-align: left;
  transition: background-color 160ms ease, transform 160ms ease;
}

.app-store-button:hover {
  background: #111111;
  transform: translateY(-2px);
}

.app-store-button svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.app-store-button span {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.05;
}

.app-store-button small {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.phone-fan {
  position: relative;
  height: 685px;
  margin-top: 64px;
}

.phone {
  position: relative;
  width: 260px;
  margin: 0;
  padding: 7px;
  overflow: hidden;
  border: 2px solid #181818;
  border-radius: 52px;
  background: #101010;
}

.phone::after {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 31%;
  height: 24px;
  border-radius: 999px;
  background: #000000;
  content: "";
  transform: translateX(-50%);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 44px;
}

.phone-fan .phone {
  position: absolute;
  bottom: -32px;
  left: 50%;
  --phone-lift: 0px;
  --phone-scale: 1;
  opacity: 1;
  transform: translateX(var(--phone-x)) translateY(var(--phone-lift)) rotate(var(--phone-rotation)) scale(var(--phone-scale));
  transform-origin: center bottom;
  transition:
    transform 900ms cubic-bezier(0.2, 1.15, 0.3, 1),
    opacity 480ms ease;
  will-change: transform, opacity;
}

.phone-one,
.phone-fan .phone[data-position="-2"] { --phone-x: -193%; --phone-rotation: -10deg; z-index: 1; }
.phone-two,
.phone-fan .phone[data-position="-1"] { --phone-x: -124%; --phone-rotation: -5deg; z-index: 2; }
.phone-three,
.phone-fan .phone[data-position="0"] { --phone-x: -50%; --phone-rotation: 0deg; z-index: 5; }
.phone-four,
.phone-fan .phone[data-position="1"] { --phone-x: 24%; --phone-rotation: 5deg; z-index: 2; }
.phone-five,
.phone-fan .phone[data-position="2"] { --phone-x: 93%; --phone-rotation: 10deg; z-index: 1; }

.phone-fan .phone:nth-child(1) { --phone-delay: 300ms; }
.phone-fan .phone:nth-child(2) { --phone-delay: 220ms; }
.phone-fan .phone:nth-child(3) { --phone-delay: 120ms; }
.phone-fan .phone:nth-child(4) { --phone-delay: 260ms; }
.phone-fan .phone:nth-child(5) { --phone-delay: 340ms; }

.motion-enabled .phone-fan:not(.is-ready) .phone {
  opacity: 0;
  transform: translateX(35%) translateY(80px) rotate(45deg) scale(0.6);
}

.motion-enabled .phone-fan.is-ready:not(.is-settled) .phone {
  transition-delay: var(--phone-delay);
}

.phone-fan.is-settled .phone:hover {
  --phone-lift: -15px;
  --phone-scale: 1.05;
  z-index: 8;
  transition-duration: 220ms;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--fog);
}

.benefit-strip article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.benefit-strip strong,
.benefit-strip span:not(.benefit-icon) { display: block; }

.benefit-strip strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.benefit-strip span:not(.benefit-icon) {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.benefit-icon {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
}

.benefit-icon svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.benefit-icon-orange { color: var(--orange); }
.benefit-icon-green { color: var(--green); }
.benefit-icon-blue { color: var(--blue); }

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 80px;
  padding-top: var(--section-gap);
}

.feature-reverse .feature-copy { order: 2; }
.feature-reverse .feature-visual { order: 1; }
.feature-copy { max-width: 500px; }

.feature-copy h2,
.section-heading h2,
.privacy-copy h2,
.download-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
}

.feature-copy > p:not(.kicker),
.privacy-copy > p:not(.kicker),
.download-copy > p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.orange { color: var(--orange); }
.green { color: var(--green); }
.blue { color: var(--blue); }

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  content: "✓";
  font-size: 13px;
  font-weight: 900;
}

.blue-checks li::before { background: var(--blue); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--orange-dark);
  font-weight: 900;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.feature-visual {
  position: relative;
  display: grid;
  height: 650px;
  place-items: end center;
  overflow: hidden;
}

.fog-panel {
  border-radius: var(--radius);
  background: var(--fog);
}

.feature-phone {
  width: 294px;
  transform: translateY(110px);
}

.floating-label {
  position: absolute;
  z-index: 3;
  padding: 10px 17px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14px;
  font-weight: 900;
}

.label-top { top: 86px; right: 35px; color: var(--orange-dark); }
.label-bottom { bottom: 56px; left: 35px; color: var(--green); }
.paired-phones { display: block; }

.paired-phones .phone {
  position: absolute;
  bottom: -100px;
  left: 50%;
}

.phone-back {
  z-index: 1;
  width: 262px;
  transform: translateX(-91%) rotate(-5deg);
}

.phone-front {
  z-index: 2;
  transform: translateX(-18%) rotate(3deg);
}

.memory-panel .feature-phone { margin-left: -70px; }

.miu-mascot {
  position: absolute;
  right: 10px;
  bottom: -25px;
  z-index: 3;
  width: 205px;
  height: auto;
}

.steps-section,
.privacy-section,
.download-section { padding-top: var(--section-gap); }

.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--fog);
}

.step-number {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 56px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-size: 18px;
  font-weight: 900;
}

.green-bg { background: var(--green); }
.blue-bg { background: var(--blue); }

.step-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.step-card p { margin: 0; color: var(--muted); }

.privacy-card,
.download-card {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  align-items: center;
  min-height: 410px;
  padding: 64px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--fog);
}

.privacy-copy,
.download-copy { max-width: 700px; }

.privacy-mark {
  display: grid;
  place-items: center;
}

.privacy-mark svg {
  width: min(230px, 100%);
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.download-card {
  position: relative;
  min-height: 440px;
  background: #fff2eb;
}

.download-copy { position: relative; z-index: 2; }
.download-copy .button { margin-top: 28px; }

.bo-mascot {
  position: absolute;
  right: 24px;
  bottom: -78px;
  width: 390px;
  height: auto;
}

.site-footer {
  margin-top: var(--section-gap);
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.footer-inner p { margin: 0; color: var(--muted); }

.footer-inner nav {
  display: flex;
  gap: 24px;
  font-weight: 700;
}

.footer-inner nav a:hover { color: var(--orange-dark); }
.footer-inner small { grid-column: 1 / -1; color: var(--muted); }

.motion-enabled [data-reveal] {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(24px);
  transition:
    opacity 600ms cubic-bezier(0.21, 0.47, 0.32, 0.98),
    filter 520ms cubic-bezier(0.21, 0.47, 0.32, 0.98),
    transform 600ms cubic-bezier(0.21, 0.47, 0.32, 0.98);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-enabled .feature-visual[data-reveal] {
  filter: none;
  transform: translateY(34px) scale(0.97);
}

.motion-enabled [data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.motion-enabled .miu-mascot,
.motion-enabled .bo-mascot {
  animation: mascot-bob 4.8s ease-in-out infinite;
}

@keyframes finny-rise {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.legal-main {
  padding: 72px 0 var(--section-gap);
}

.legal-hero {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}

.legal-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 68px);
}

.legal-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 19px;
}

.effective-date {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 9px 15px;
  border-radius: var(--radius);
  color: var(--orange-dark);
  background: #fff2eb;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-document {
  display: grid;
  max-width: 820px;
  margin: 0 auto;
  gap: 16px;
}

.legal-block {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--fog);
}

.legal-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.legal-block p {
  margin: 0;
  color: var(--muted);
}

.legal-block p + p,
.legal-block ul + p {
  margin-top: 14px;
}

.legal-block ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-block a {
  color: var(--orange-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 16px;
  color: var(--orange-dark);
  font-weight: 900;
}

.legal-back:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1040px) {
  .phone-fan {
    height: 610px;
    width: 113%;
    margin-left: -6.5%;
    transform: scale(0.88);
    transform-origin: top center;
  }

  .feature-section {
    grid-template-columns: minmax(0, 0.85fr) minmax(440px, 1.15fr);
    gap: 48px;
  }

  .feature-visual { height: 580px; }
  .feature-phone { width: 265px; }
  .miu-mascot { width: 170px; }
}

@media (max-width: 820px) {
  :root { --section-gap: 72px; }
  .shell { width: min(calc(100% - 32px), var(--page-width)); }
  .menu-button { display: block; }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 84px;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
  }

  .site-nav.is-open { display: grid; gap: 8px; }
  .site-nav > a:not(.button) { padding: 12px 8px; }
  .hero { padding-top: 52px; }

  .phone-fan {
    height: 525px;
    width: 135%;
    margin-top: 48px;
    margin-left: -17.5%;
    transform: scale(0.74);
  }

  .benefit-strip { grid-template-columns: 1fr; }
  .benefit-strip article { justify-content: flex-start; }

  .feature-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-copy { max-width: 650px; }
  .feature-reverse .feature-copy,
  .feature-reverse .feature-visual { order: initial; }
  .feature-visual { height: 620px; }
  .steps-grid { grid-template-columns: 1fr; }

  .step-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 20px;
  }

  .step-number { grid-row: 1 / 3; margin: 0; }
  .step-card h3 { margin-top: 3px; }
  .step-card p { grid-column: 2; }

  .privacy-card,
  .download-card {
    grid-template-columns: 1fr;
    padding: 48px;
  }

  .privacy-mark { display: none; }

  .download-card {
    min-height: 650px;
    align-items: start;
  }

  .bo-mascot {
    right: 50%;
    bottom: -105px;
    width: 390px;
    transform: translateX(50%);
  }

  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner p { display: none; }

  .legal-main { padding-top: 48px; }
}

@media (max-width: 560px) {
  h1 { font-size: 45px; }
  .hero-copy { font-size: 17px; }

  .phone-fan {
    height: 410px;
    width: 176%;
    margin-top: 88px;
    margin-left: -38%;
    transform: scale(0.57);
  }

  .phone-fan .phone[data-position="-2"],
  .phone-fan .phone[data-position="2"] {
    opacity: 0;
    pointer-events: none;
  }
  .phone-fan .phone[data-position="-1"] { --phone-x: -111%; --phone-rotation: -6deg; }
  .phone-fan .phone[data-position="1"] { --phone-x: 11%; --phone-rotation: 6deg; }
  .benefit-strip { padding: 12px; }

  .feature-copy h2,
  .section-heading h2,
  .privacy-copy h2,
  .download-copy h2 { font-size: 36px; }

  .feature-visual { height: 525px; }
  .feature-phone { width: 230px; }
  .label-top { top: 72px; right: 12px; }
  .label-bottom { bottom: 34px; left: 12px; }

  .phone-back {
    width: 205px;
    transform: translateX(-89%) rotate(-5deg);
  }

  .phone-front {
    width: 225px;
    transform: translateX(-17%) rotate(3deg);
  }

  .memory-panel .feature-phone { margin-left: -45px; }
  .miu-mascot { right: -15px; width: 145px; }

  .step-card,
  .privacy-card,
  .download-card { padding: 28px; }

  .download-card { min-height: 570px; }
  .bo-mascot { width: 320px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { flex-wrap: wrap; }
  .legal-block { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-enabled [data-reveal] {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
