/* ==========================================================
   Ami Cat — Landing
   Direction: warm, kawaii, hand-made. A cat you want to touch.
   Brand tokens mirror ios/Ami/Views/DesignSystem.swift.
   ========================================================== */

:root {
  /* brand — fixed to iOS design system */
  --cat-blue:        rgb(40, 80, 160);
  --cat-blue-light:  rgb(60, 110, 200);
  --cat-blue-dark:   rgb(25, 55, 120);
  --cat-blue-ink:    #0d1a3d;
  --warm-accent:     rgb(255, 183, 77);
  --warm-accent-deep:rgb(235, 150, 40);
  --soft-pink:       rgb(255, 154, 162);
  --mint-glow:       rgb(152, 229, 183);

  /* paper */
  --paper:           #f9edd4;
  --paper-deep:      #f2e1bb;
  --peach:           #f7cfa4;
  --peach-deep:      #ebb583;

  /* ink */
  --ink:             #1e160b;
  --ink-soft:        #4a3a22;
  --ink-muted:       #8a7753;
  --ink-hair:        rgba(30, 22, 11, 0.18);
  --white-hair:      rgba(255, 255, 255, 0.22);
  --white-soft:      rgba(255, 255, 255, 0.82);

  /* type */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "PingFang SC",
          "Hiragino Sans", system-ui, sans-serif;
  --serif: "Fraunces", "Songti SC", "Hiragino Mincho ProN", Georgia, serif;

  /* rhythm */
  --pad: clamp(20px, 5vw, 36px);
  --container: 620px;
  --container-wide: 960px;
  --section-pad: clamp(72px, 11vw, 128px);

  /* a paw-print dingbat used as a motif mark across sections.
     the color is swapped per-usage via backgroundImage re-declaration. */
  --paw-ink:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%238a7753'%3E%3Cellipse cx='14' cy='17.5' rx='5.4' ry='4.8'/%3E%3Cellipse cx='5.8' cy='12' rx='2' ry='2.4'/%3E%3Cellipse cx='14' cy='7.2' rx='2.2' ry='2.6'/%3E%3Cellipse cx='22.2' cy='12' rx='2' ry='2.4'/%3E%3C/g%3E%3C/svg%3E");
  --paw-cream:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f9edd4' fill-opacity='0.82'%3E%3Cellipse cx='14' cy='17.5' rx='5.4' ry='4.8'/%3E%3Cellipse cx='5.8' cy='12' rx='2' ry='2.4'/%3E%3Cellipse cx='14' cy='7.2' rx='2.2' ry='2.6'/%3E%3Cellipse cx='22.2' cy='12' rx='2' ry='2.4'/%3E%3C/g%3E%3C/svg%3E");
  --paw-warm:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffb74d'%3E%3Cellipse cx='14' cy='17.5' rx='5.4' ry='4.8'/%3E%3Cellipse cx='5.8' cy='12' rx='2' ry='2.4'/%3E%3Cellipse cx='14' cy='7.2' rx='2.2' ry='2.6'/%3E%3Cellipse cx='22.2' cy='12' rx='2' ry='2.4'/%3E%3C/g%3E%3C/svg%3E");

  /* fractal noise — old-paper grain. applied on cream/peach sections. */
  --grain:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.09 0 0 0 0 0.04 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* selection = warm accent wash (small delight detail) */
::selection { background: rgba(255, 183, 77, 0.45); color: var(--ink); }

/* ==========================================================
   Editorial typography
   ========================================================== */

.title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 6.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0 0 18px;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.title span { display: block; }
.title .ink {
  font-style: italic;
  font-variation-settings: "opsz" 96;
  font-weight: 700;
}
.title .ink em {
  font-style: normal;
  color: var(--warm-accent);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  display: inline-block;
  transform: translate(0.04em, 0.03em);
}
.title .ink--warm {
  color: var(--warm-accent);
  font-style: italic;
  font-variation-settings: "opsz" 96;
}
.title--light { color: #fff; }
.title--light .ink--warm em { color: #fff; font-style: normal; }

.sub {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 14;
  margin: 0 0 30px;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}
.sub--light { color: rgba(255, 255, 255, 0.78); }

/* — section mark: small paw + warm label — */

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 22px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--warm-accent-deep);
  font-weight: 700;
}
.mark::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: var(--paw-warm);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
  transform: rotate(-8deg);
}
.mark--light { color: var(--warm-accent); }

/* section dingbat — paw print, between sections. */
.dingbat {
  display: block;
  width: 100%;
  padding: 44px 0;
  text-align: center;
  line-height: 0;
}
.dingbat::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  background-image: var(--paw-ink);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.55;
}
.dingbat--light::after { background-image: var(--paw-cream); opacity: 0.7; }

/* ==========================================================
   Top language bar
   ========================================================== */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  padding-top: max(env(safe-area-inset-top, 0px), 16px);
  color: rgba(255, 255, 255, 0.88);
}
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  font-variation-settings: "opsz" 14;
  text-decoration: none;
}
@media (min-width: 540px) {
  .topbar__brand { font-size: 15px; }
}
.topbar__brand img {
  width: 24px; height: 24px;
  border-radius: 7px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 3px;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang a {
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.18s, background 0.2s;
}
.lang a:hover { color: #fff; }
.lang a.is-active {
  background: #fff;
  color: var(--cat-blue-dark);
}

/* ==========================================================
   HERO — wordmark left, iPhone stage right
   ========================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 110% 70% at 50% 22%, var(--cat-blue-light) 0%, var(--cat-blue) 48%, var(--cat-blue-dark) 100%);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px var(--pad) 72px;
  gap: clamp(18px, 2.6vh, 30px);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 920px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr minmax(0, 520px) minmax(0, 380px) 1fr;
    grid-template-areas:
      "topbar topbar topbar  topbar"
      ".      copy   stage   ."
      "hint   hint   hint    hint";
    column-gap: clamp(28px, 4vw, 72px);
    row-gap: clamp(20px, 3vh, 40px);
    align-items: center;
    text-align: left;
    padding: 112px 0 72px;
  }
  .hero > .topbar      { grid-area: topbar; }
  .hero > .hero__copy  { grid-area: copy;   justify-self: end; max-width: 520px; }
  .hero > .hero__stage { grid-area: stage;  justify-self: start; }
  .hero > .scroll-hint { grid-area: hint;   }
}

/* subtle moon-halo + grain overlay behind everything */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), transparent 55%),
    var(--grain);
  opacity: 0.65;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }
.hero > .topbar { position: absolute; } /* override — keep topbar stretched across full width */

/* ----- hero copy column ----- */

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2vh, 22px);
  max-width: 560px;
}
@media (min-width: 920px) {
  .hero__copy { align-items: flex-start; }
  .hero__copy .hero__tag,
  .hero__copy .hero__sub { text-align: left; }
}

/* eyebrow above the wordmark: "for iPhone · Free · No sign-up · No ads" */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}
.ios-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.16em;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.ios-chip::before {
  content: "";
  display: inline-block;
  width: 10px; height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 12.04c-.03-2.96 2.42-4.39 2.53-4.46-1.38-2.02-3.53-2.3-4.29-2.33-1.83-.18-3.57 1.07-4.5 1.07-.93 0-2.36-1.05-3.88-1.02-2 .03-3.84 1.16-4.87 2.95-2.07 3.6-.53 8.93 1.5 11.85.99 1.43 2.16 3.04 3.7 2.98 1.49-.06 2.05-.96 3.85-.96 1.79 0 2.3.96 3.87.93 1.6-.03 2.61-1.46 3.59-2.9 1.13-1.66 1.6-3.27 1.62-3.36-.04-.02-3.11-1.2-3.14-4.75zM14.18 3.34c.82-1 1.38-2.39 1.22-3.78-1.18.05-2.62.78-3.47 1.78-.76.88-1.43 2.31-1.25 3.66 1.32.1 2.66-.66 3.5-1.66z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 12.04c-.03-2.96 2.42-4.39 2.53-4.46-1.38-2.02-3.53-2.3-4.29-2.33-1.83-.18-3.57 1.07-4.5 1.07-.93 0-2.36-1.05-3.88-1.02-2 .03-3.84 1.16-4.87 2.95-2.07 3.6-.53 8.93 1.5 11.85.99 1.43 2.16 3.04 3.7 2.98 1.49-.06 2.05-.96 3.85-.96 1.79 0 2.3.96 3.87.93 1.6-.03 2.61-1.46 3.59-2.9 1.13-1.66 1.6-3.27 1.62-3.36-.04-.02-3.11-1.2-3.14-4.75zM14.18 3.34c.82-1 1.38-2.39 1.22-3.78-1.18.05-2.62.78-3.47 1.78-.76.88-1.43 2.31-1.25 3.66 1.32.1 2.66-.66 3.5-1.66z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.hero__eyebrow .dot--warm {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--warm-accent);
  box-shadow: 0 0 8px rgba(255, 183, 77, 0.55);
}

/* tick-list — small warm inline note under the sub copy */
.tick-list {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-accent-deep);
  margin: 4px 0 0;
}
.tick-list span {
  font-size: 8px;
  color: var(--warm-accent);
}
.title--light + .sub--light + .tick-list { color: var(--warm-accent); }

.hero__wordmark {
  font-family: var(--serif);
  font-weight: 900;
  font-variation-settings: "opsz" 144, "wght" 900;
  font-size: clamp(72px, 14vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 0 rgba(255,255,255,0.06), 0 18px 40px rgba(0,0,0,0.28);
}
.hero__wordmark em {
  font-style: italic;
  color: var(--warm-accent);
  font-weight: 900;
  font-variation-settings: "opsz" 96, "wght" 900;
  letter-spacing: -0.04em;
}

.hero__tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 20ch;
}

.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(14px, 1.6vw, 16px);
  color: rgba(255, 255, 255, 0.65);
  font-variation-settings: "opsz" 14;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ----- iPhone frame — the "stage" ----- */

.hero__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  perspective: 1400px;
}
.phone {
  position: relative;
  width: clamp(220px, 30vw, 320px);
  aspect-ratio: 9 / 19.2;
  background:
    linear-gradient(145deg, #2a2a2e 0%, #0a0a0c 55%, #1c1c1f 100%);
  border-radius: clamp(36px, 4.2vw, 52px);
  padding: 8px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.10),
    inset 0 0 0 3px rgba(0, 0, 0, 0.5),
    0 2px 0 rgba(255, 255, 255, 0.06),
    0 44px 90px rgba(0, 0, 0, 0.55),
    0 18px 40px rgba(0, 0, 0, 0.35);
  transform: rotate(-2.2deg);
  transition: transform 0.45s cubic-bezier(.32, 1.28, .4, 1);
  will-change: transform;
}
.hero__stage:hover .phone { transform: rotate(0deg) translateY(-4px); }

/* dynamic island */
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 24px;
  background: #000;
  border-radius: 100px;
  z-index: 4;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.04);
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(clamp(36px, 4.2vw, 52px) - 10px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% 28%, var(--cat-blue-light) 0%, var(--cat-blue) 55%, var(--cat-blue-dark) 105%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.phone__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.06), transparent 55%),
    var(--grain);
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}
/* home indicator */
.phone__screen::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 4px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  z-index: 3;
}

/* status bar — very subtle, just "9:41" on the left */
.phone__status {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 4px 24px 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Helvetica Neue", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
  z-index: 3;
  pointer-events: none;
}
.phone__status-right {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.phone__status svg { display: inline-block; vertical-align: middle; }

.hero__cat {
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  display: block;
  margin: 0;
  /* cat tracks cursor/touch via --cat-x / --cat-y (set from JS).
     default = center = 0,0. drift = scroll offset for post-hero float. */
  --cat-x: 0px;
  --cat-y: 0px;
  --cat-drift: 0px;
}

/* warm halo around the phone itself — anchors device to the scene */
.hero__stage::before {
  content: "";
  position: absolute;
  bottom: -14%;
  left: 50%;
  width: 140%;
  height: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%,
      rgba(255, 183, 77, 0.42) 0%,
      rgba(255, 183, 77, 0.18) 38%,
      transparent 72%);
  filter: blur(28px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
  animation: groundPulse 4.4s ease-in-out infinite;
}
@keyframes groundPulse {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 1;   }
  50%      { transform: translateX(-50%) scale(0.94); opacity: 0.78;}
}

/* tap hint — pulse ring that fades after first interaction */
.hero__hint {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  aspect-ratio: 1;
  max-width: 220px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: hintPulse 2.6s ease-out 1.8s 3 forwards;
  z-index: 2;
}
.hero__hint::before,
.hero__hint::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 183, 77, 0.55);
  animation: hintRing 2.6s ease-out infinite;
}
.hero__hint::after {
  animation-delay: 1.3s;
}
.hero__cat.has-tapped .hero__hint { display: none; }
@keyframes hintPulse {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes hintRing {
  0%   { transform: scale(0.55); opacity: 0;   border-width: 2px;   }
  30%  { opacity: 0.75; }
  100% { transform: scale(1.12); opacity: 0;   border-width: 0.5px; }
}

.hero__tip {
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  font-variation-settings: "opsz" 14;
  white-space: nowrap;
  opacity: 0;
  animation: tipFade 1.8s ease 2.4s forwards;
  z-index: 2;
}
.hero__tip::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  background-image: var(--paw-warm);
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 7px;
  vertical-align: -2px;
  transform: rotate(-8deg);
  opacity: 0.8;
}
.hero__cat.has-tapped .hero__tip {
  animation: tipHide 0.4s ease forwards;
}
@keyframes tipFade {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to   { opacity: 1; transform: translate(-50%, 0);    }
}
@keyframes tipHide {
  to { opacity: 0; transform: translate(-50%, -6px); }
}

/* hearts — tiny warm sparks that float up from the phone on reaction */
.spark {
  position: absolute;
  width: 16px;
  height: 16px;
  top: 20%;
  left: 50%;
  pointer-events: none;
  color: var(--warm-accent);
  opacity: 0;
  animation: sparkRise 1.3s ease-out forwards;
  filter: drop-shadow(0 2px 8px rgba(255, 183, 77, 0.65));
  z-index: 5;
}
.spark svg { display: block; width: 100%; height: 100%; }
@keyframes sparkRise {
  0%   { opacity: 0; transform: translate(var(--dx, 0), 0) scale(0.4); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0), -120px) scale(1.15); }
}
.phone__screen img {
  width: 78%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.08))
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  animation: breathe 4.4s ease-in-out infinite;
  transition: filter 0.28s ease;
  will-change: transform;
  transform: translate3d(var(--cat-x), calc(var(--cat-y) + var(--cat-drift)), 0);
  position: relative;
  z-index: 1;
}
@keyframes breathe {
  0%, 100% { transform: translate3d(var(--cat-x), calc(var(--cat-y) + var(--cat-drift)), 0) scale(1); }
  50%      { transform: translate3d(var(--cat-x), calc(var(--cat-y) + var(--cat-drift) - 3px), 0) scale(1.022); }
}
.hero__cat.is-playing .phone__screen img {
  animation: none;
  transform: translate3d(var(--cat-x), calc(var(--cat-y) + var(--cat-drift)), 0) scale(1.04);
}
.hero__cat.is-reacting .phone__screen img {
  transform: translate3d(var(--cat-x), calc(var(--cat-y) + var(--cat-drift)), 0) scale(1.10);
  filter:
    drop-shadow(0 0 28px rgba(255, 183, 77, 0.60))
    drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35));
}

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 8.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0;
  color: #fff;
  font-variation-settings: "opsz" 144;
  max-width: 16ch;
}
.hero__title em {
  font-style: italic;
  color: var(--warm-accent);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
}

.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 14;
  margin: 0;
}

/* ----- CTA row ----- */

.cta-row {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}
.hero__copy .cta-row { align-self: center; }
@media (min-width: 920px) {
  .hero__copy .cta-row { align-self: flex-start; }
}

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0a0a0a;
  color: #fff;
  padding: 14px 24px 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.22s ease, background 0.2s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 36px rgba(0, 0, 0, 0.42);
  position: relative;
}
.appstore:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 46px rgba(0, 0, 0, 0.48);
  background: #111;
}
.appstore:active { transform: translateY(0); }
.appstore__txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  text-align: left;
}
.appstore__txt small {
  font-size: 10px;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin-bottom: 2px;
}
.appstore__txt strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.qr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 9px 9px 7px;
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.04),
    0 16px 34px rgba(0, 0, 0, 0.28);
  position: relative;
  transform: rotate(-1.2deg);
  transition: transform 0.25s ease;
}
.qr::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  width: 40px;
  height: 14px;
  background: rgba(255, 183, 77, 0.55);
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  opacity: 0.9;
}
.qr:hover { transform: rotate(0); }
.qr img { width: 76px; height: 76px; display: block; }
.qr span {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 540px) {
  .qr { display: none; }
}

/* ----- tombstone strip: free · no sign-up · no ads ----- */

.badges {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 2px;
}
.badges .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

/* ----- scroll hint: a quiet animated chevron ----- */

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  text-decoration: none;
  padding: 8px 14px;
}
.scroll-hint__arrow {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.55);
  transform: rotate(45deg);
  animation: nudge 2.2s ease-in-out infinite;
}
@keyframes nudge {
  0%   { transform: rotate(45deg) translate(-3px, -3px); opacity: 0.35; }
  50%  { transform: rotate(45deg) translate(0, 0);       opacity: 1;    }
  100% { transform: rotate(45deg) translate(3px, 3px);   opacity: 0.35; }
}

/* ==========================================================
   Sections
   ========================================================== */

.sec {
  width: 100%;
  padding: var(--section-pad) var(--pad);
  text-align: center;
  position: relative;
  isolation: isolate;
}
.sec > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* two-column asymmetric layout for feature sections */
.sec__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  max-width: 1080px !important;
  text-align: center;
}
.sec__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.sec__copy .mark { margin-bottom: 0; }
.sec__copy .title { margin-bottom: 4px; }
.sec__copy .sub { margin-bottom: 0; max-width: 30ch; }
.sec__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (min-width: 820px) {
  .sec__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(40px, 6vw, 88px);
    text-align: left;
  }
  .sec__copy { align-items: flex-start; text-align: left; }
  .sec__copy .sub {
    margin-left: 0;
    margin-right: 0;
  }
  .sec__copy .title { margin-left: 0; margin-right: 0; }
  .sec__grid.sec__grid--reverse .sec__copy { order: 2; }
  .sec__grid.sec__grid--reverse .sec__visual { order: 1; }
}

/* cream/peach sections get grain + deckle hairline at top */
.sec--cream,
.sec--peach {
  color: var(--ink);
}
.sec--cream { background: var(--paper); }
.sec--peach {
  background:
    linear-gradient(180deg, var(--peach) 0%, var(--peach-deep) 100%);
}

/* gentle hand-torn top edge — sits above the section seam.
   rendered via pseudo-element overlay so inner content stays unclipped. */
.sec--peach::after,
.sec--cream::after,
.sec--blue.sec--blue--wave::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 22px;
  background-repeat: repeat-x;
  background-size: 140px 22px;
  pointer-events: none;
  z-index: 1;
}
.sec--peach::after {
  /* wavy edge matching the section background, cutting into what's above */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22 V 10 Q 17 0 35 10 T 70 10 T 105 10 T 140 10 V 22 Z' fill='%23f7cfa4'/%3E%3C/svg%3E");
}
.sec--cream::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22 V 10 Q 17 0 35 10 T 70 10 T 105 10 T 140 10 V 22 Z' fill='%23f9edd4'/%3E%3C/svg%3E");
}
.sec--blue.sec--blue--wave::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22 V 10 Q 17 0 35 10 T 70 10 T 105 10 T 140 10 V 22 Z' fill='%2328509f'/%3E%3C/svg%3E");
}
.sec--cream::before,
.sec--peach::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}
.sec--peach::before { opacity: 0.28; }

/* blue chapter-break: deeper, more dramatic than hero */
.sec--blue {
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, var(--cat-blue-light) 0%, var(--cat-blue) 45%, var(--cat-blue-dark) 100%);
  color: #fff;
}
.sec--blue::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 22%, rgba(255, 183, 77, 0.10), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(152, 229, 183, 0.08), transparent 45%),
    var(--grain);
  opacity: 0.8;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

/* hairline deckle between sections */
.sec + .sec::after,
.sec::before {
  pointer-events: none;
}

/* — iMessage mock — slight tilt, hover straightens — */

.imessage {
  text-align: left;
  background: #fff;
  border-radius: 28px;
  padding: 16px 14px 22px;
  margin: 12px auto 0;
  max-width: 340px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.04),
    0 30px 60px rgba(80, 50, 20, 0.22);
  position: relative;
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform 0.35s ease;
}
.imessage:hover { transform: rotate(0); }
.imessage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #555;
  padding: 4px 8px 12px;
  border-bottom: 1px solid #f1f1f1;
  margin-bottom: 14px;
}
.imessage__back { color: #007aff; }
.imessage__name { font-weight: 600; color: #1a1a1a; }
.imessage__day {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.bubble {
  display: inline-block;
  max-width: 78%;
  padding: 8px 13px;
  margin: 4px 0;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.35;
  word-wrap: break-word;
  clear: both;
}
.bubble--in {
  background: #efeff4;
  color: #1a1a1a;
  float: left;
  border-bottom-left-radius: 5px;
}
.bubble--out {
  background: #007aff;
  color: #fff;
  float: right;
  border-bottom-right-radius: 5px;
}
.sticker {
  display: block;
  width: auto;
  max-width: 120px;
  height: auto;
  margin: 6px 0;
  clear: both;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s cubic-bezier(.36, 1.4, .4, 1);
  transform-origin: center bottom;
}
.sticker:hover { transform: scale(1.08) rotate(-4deg); animation: wobble 0.8s ease-in-out; }
.sticker--in  { float: left; }
.sticker--out { float: right; }
@keyframes wobble {
  0%   { transform: scale(1.08) rotate(-4deg); }
  25%  { transform: scale(1.08) rotate(3deg); }
  50%  { transform: scale(1.08) rotate(-2deg); }
  75%  { transform: scale(1.08) rotate(1deg); }
  100% { transform: scale(1.08) rotate(-4deg); }
}
.imessage::after { content: ""; display: block; clear: both; }

/* — Custom cat — polaroid pair + typographic flow — */

.transform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px auto 32px;
  flex-wrap: nowrap;
}
.transform__card {
  margin: 0;
  background: #fff;
  border-radius: 8px;
  padding: 10px 10px 14px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.04),
    0 18px 36px rgba(80, 50, 20, 0.20);
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
  transform: rotate(-2deg);
  transition: transform 0.4s cubic-bezier(.32, 1.28, .4, 1);
}
.transform__card:hover { transform: rotate(0) translateY(-4px); }
.transform__card--blue { transform: rotate(2deg); }
.transform__card--blue:hover { transform: rotate(0) translateY(-4px); }

/* stagger entrance — the two polaroids fly into place when the block reveals */
.js-ready .transform.reveal .transform__card {
  opacity: 0;
  transform: rotate(-12deg) translateY(40px);
  transition: transform 0.7s cubic-bezier(.32, 1.28, .4, 1), opacity 0.5s ease;
}
.js-ready .transform.reveal .transform__card--blue {
  transform: rotate(12deg) translateY(40px);
}
.js-ready .transform.reveal.is-in .transform__card {
  opacity: 1;
  transform: rotate(-2deg) translateY(0);
  transition-delay: 0.1s;
}
.js-ready .transform.reveal.is-in .transform__card--blue {
  transform: rotate(2deg) translateY(0);
  transition-delay: 0.28s;
}
.transform__card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  background: #f3ece0;
}
.transform__card--blue img {
  background: var(--cat-blue);
  object-fit: contain;
  padding: 4px;
}
.transform__card figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 10px;
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 14;
}
.transform__arrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--warm-accent-deep);
  font-weight: 900;
  flex-shrink: 0;
  transform: translateY(-6px);
}

/* — Typographic step flow — replaces pill — */

.steps {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  border-top: 1px solid var(--ink-hair);
  border-bottom: 1px solid var(--ink-hair);
  padding: 18px 0;
  margin-top: 4px;
  max-width: 520px;
}
.steps li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.steps li:not(:last-child)::after {
  content: "·";
  margin-left: 20px;
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 18px;
  position: relative;
  top: 1px;
}
.steps li span {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  color: var(--warm-accent-deep);
  font-variation-settings: "opsz" 14;
  margin-right: 2px;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
}
.steps li span::after {
  content: ".";
  color: var(--warm-accent-deep);
}

@media (max-width: 420px) {
  .steps { font-size: 12px; gap: 6px 14px; }
  .steps li:not(:last-child)::after { margin-left: 14px; }
}

/* — Final CTA — editorial close — */

.final { text-align: center; padding-bottom: 80px; }
.final .title { max-width: 14ch; margin-inline: auto; }
.final .appstore { margin-top: 4px; }
.final .badges {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.58);
}

/* ==========================================================
   Footer — warm paper, not navy
   ========================================================== */

.foot {
  background: #1f1710;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  font-size: 13px;
  padding: 48px var(--pad) 40px;
  position: relative;
  isolation: isolate;
}
.foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}
.foot::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 18px;
  background-image: var(--paw-warm);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.55;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
}
.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 14;
  margin: 12px 0 18px;
}
.foot__brand img { border-radius: 7px; }
.foot__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.foot__nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.18s, border-color 0.18s;
}
.foot__nav a:hover { color: var(--warm-accent); border-color: var(--warm-accent); }
.foot__copy {
  margin: 0;
  opacity: 0.55;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  font-variation-settings: "opsz" 14;
  letter-spacing: 0.02em;
}

/* ==========================================================
   Privacy / legal page
   ========================================================== */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 100px) var(--pad) 80px;
  color: var(--ink);
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--cat-blue);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 24px;
}
.legal__back:hover { color: var(--cat-blue-dark); }
.legal h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 6px;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.legal__date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0 0 36px;
  font-variation-settings: "opsz" 14;
}
.legal section {
  margin-bottom: 20px;
  padding: 24px 26px;
  background: #fff;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(30, 22, 11, 0.05),
    0 6px 18px rgba(40, 80, 160, 0.05);
}
.legal section h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 14;
}
.legal section h2::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--warm-accent);
}
.legal section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.legal section p:last-child { margin-bottom: 0; }
.legal section ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal section li { margin-bottom: 6px; }
.legal section a { color: var(--cat-blue); text-decoration: underline; text-underline-offset: 3px; }
.legal section strong { color: var(--ink); }

/* legal pages: light topbar */
.topbar--light {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-hair);
  color: var(--ink);
}
.topbar--light .topbar__brand { color: var(--ink); }
.topbar--light .lang {
  background: rgba(30, 22, 11, 0.06);
  border-color: rgba(30, 22, 11, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.topbar--light .lang a { color: var(--ink-muted); }
.topbar--light .lang a:hover { color: var(--ink); }
.topbar--light .lang a.is-active { background: var(--cat-blue); color: #fff; }

.legal-langs span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(30, 22, 11, 0.06);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* ==========================================================
   Ambient paw prints — small drifting marks injected by JS
   ========================================================== */

.paw-drift {
  position: fixed;
  width: 18px;
  height: 18px;
  background-image: var(--paw-ink);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  animation: pawdrift 5s cubic-bezier(.35, .1, .45, .95) forwards;
}
.paw-drift--light {
  background-image: var(--paw-cream);
}
@keyframes pawdrift {
  0%   { opacity: 0; transform: translateY(10px) rotate(var(--rot, 0deg)) scale(0.7); }
  20%  { opacity: 0.32; transform: translateY(0) rotate(var(--rot, 0deg)) scale(1); }
  80%  { opacity: 0.22; transform: translateY(-18px) rotate(var(--rot, 0deg)) scale(1); }
  100% { opacity: 0; transform: translateY(-32px) rotate(var(--rot, 0deg)) scale(0.92); }
}

/* ==========================================================
   Scroll reveal — small fade-up for titles (progressive)
   ========================================================== */

/* .reveal is only applied when JS has marked the root .js-ready.
   if JS fails, content stays visible. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-ready .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   Reduced motion
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero__cat img,
  .scroll-hint::before,
  .reveal { animation: none; transition: none; }
  .reveal { opacity: 1; transform: none; }
  .appstore, .qr, .imessage, .transform__card { transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
