/*
Theme Name: tuck
Theme URI: https://www.tuckapp.co.uk
Author: Luke Harkness
Description: Minimal landing page, support and privacy pages for the tuck app.
Version: 1.8.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tuck
*/

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #6a6964;
  --line: #e2e0da;
  --divider: #efede8;
  --chip: #f1efea;
  --on-ink: #f7f6f3;
  --radius: 18px;
  --max: 1040px;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1c1c1a;
    --ink: #f3f2ee;
    --muted: #a09f98;
    --line: #2d2d2a;
    --divider: #262624;
    --chip: #262624;
    --on-ink: #121211;
  }
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.75rem; font-weight: 700; letter-spacing: -0.045em; line-height: 1;
  color: var(--ink); text-decoration: none; text-transform: lowercase;
}
.wordmark img { width: 34px; height: 34px; border-radius: 22.4%; display: block; box-shadow: 0 0 0 1px rgba(26,26,26,.1); }
.site-nav { display: flex; gap: 6px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 10px 12px; }
.site-nav a:hover { color: var(--ink); }

.site-nav a.nav-cta { background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 10px 18px; margin-left: 6px; font-weight: 600; }
.site-nav a.nav-cta:hover { color: var(--on-ink); opacity: .85; }

/* Hero */
.hero { padding: 24px 0 40px; position: relative; overflow-x: clip; overflow-y: visible; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--chip); color: var(--muted);
  font-size: 0.82rem; font-weight: 600; margin-bottom: 22px;
}
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.06; text-wrap: balance;
  letter-spacing: -0.03em; margin: 0 0 20px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 30em; margin: 0 0 30px; }
.btn {
  display: inline-flex; align-items: center; white-space: nowrap; min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); text-decoration: none;
  font-weight: 600; font-size: 1rem;
}
.btn-amber { background: #f7f6f3; color: #1a1a1a; }
.btn.is-soon { background: var(--chip); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.fine { color: var(--muted); font-size: 0.88rem; margin: 14px 0 0; }

/* Sections */
section { padding: 40px 0; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; }
.section-sub { color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; }
.plan h3 { font-size: 1.2rem; }
.plan .price { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 14px; }
.plan .price span { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 0.95rem; }
.plan li { padding: 8px 0; border-top: 1px solid var(--divider); }
.plan.pro { border-color: var(--ink); }
.plan .alt { margin: -8px 0 14px; color: var(--muted); font-size: 0.9rem; }
.dots { display: inline-flex; gap: 5px; vertical-align: middle; margin-left: 8px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }

/* Closing + footer */
.closing { text-align: center; }
.closing .lead { margin-left: auto; margin-right: auto; }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); margin-left: 18px; text-decoration: none; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: var(--ink); }

/* Content pages (Support, Privacy, 404) */
.page { padding: 32px 0 88px; }
.page .wrap { max-width: 680px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.page h2 { font-size: 1.35rem; margin-top: 2em; }
.page h3 { font-size: 1.05rem; margin: 1.6em 0 0.3em; }
.page p, .page li { color: var(--ink); }
.page h3 + p { color: var(--muted); margin-top: 0; }
.page .updated { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .grid, .plans { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; }
  section { padding: 28px 0; }
  .screen { height: 520px; }
}

/* Wow layer: glow, floating chips, typing field */
.glow {
  position: absolute; width: 760px; height: 760px; right: -200px; top: -60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(26,26,26,.09), rgba(26,26,26,0));
  pointer-events: none;
}
.hero-icon {
  width: 84px; height: 84px; border-radius: 22.4%; display: block; margin-bottom: 26px;
  box-shadow: 0 18px 40px rgba(26,26,26,.18), 0 0 0 1px rgba(26,26,26,.08);
  animation: bob 6s ease-in-out infinite;
}
.stage { position: relative; }
.chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(26,26,26,.12); font-size: .82rem; font-weight: 600; white-space: nowrap;
  animation: bob 7s ease-in-out infinite;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: #2e7d5b; display: block; }
.chip-a { left: -60px; top: 120px; }
.chip-b { right: -22px; top: 290px; animation-delay: -2s; }
.chip-b i { background: #2f6feb; }
.chip-c { left: -48px; bottom: 120px; animation-delay: -4s; }
.chip-c i { background: #1a1a1a; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@keyframes caret { 50% { border-color: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .hero-icon, .chip { animation: none; }
}

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bento .feature {
  grid-column: span 2; background: #1a1a1a; border-color: #1a1a1a; color: #f7f6f3;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px;
}
.bento .feature h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; }
.bento .feature p { color: #b4b2aa; font-size: 1.02rem; max-width: 28em; }

/* Closing panel */
.closing { padding-bottom: 56px; }
.panel {
  background: #1a1a1a; color: #f7f6f3; border-radius: 28px; text-align: center; padding: 56px 24px;
  position: relative; overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset: auto 0 -60% 0; height: 100%;
  background: radial-gradient(closest-side, rgba(247,246,243,.14), rgba(247,246,243,0)); pointer-events: none;
}
.panel > * { position: relative; }
.panel img { width: 72px; height: 72px; border-radius: 22.4%; margin-bottom: 18px; }
.panel h2 { margin-bottom: 10px; }
.panel .lead { color: #b4b2aa; }

@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr; }
  .bento .feature { grid-column: auto; min-height: 0; }
  .hero-copy { text-align: left; }
  .chip-a { left: -10px; } .chip-b { right: -10px; } .chip-c { left: -10px; }
  .glow { width: 520px; height: 520px; right: -200px; }
  .panel { padding: 40px 20px; }
}

@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav a.nav-cta { white-space: nowrap; }
  .chip { font-size: .75rem; padding: 7px 11px; }
  .chip-a { top: 100px; } .chip-c { bottom: 100px; }
}

/* ===== App mockup: built at the app's real 393pt width, scaled as one piece so it never reflows ===== */
.stage { --s: .64; width: calc(393px * var(--s) + 22px); margin: 0 auto; }
.phone {
  position: relative; z-index: 1; width: calc(393px * var(--s) + 22px); height: calc(852px * var(--s) + 22px);
  padding: 11px; border-radius: 52px; background: #1a1a1a; box-shadow: 0 30px 60px rgba(26,26,26,.2);
  transform: rotate(2deg); flex: none;
}
.phone-clip { width: calc(393px * var(--s)); height: calc(852px * var(--s)); border-radius: 42px; overflow: hidden; }
.ios {
  --p-bg: #f7f6f3; --p-surface: #fff; --p-ink: #1a1a1a; --p-muted: #6a6964; --p-border: #e2e0da; --p-div: #efede8; --p-tile: #f1efea;
  width: 393px; height: 852px; transform: scale(var(--s)); transform-origin: 0 0; position: relative;
  background: var(--p-bg); color: var(--p-ink); font-family: var(--sans); line-height: 1.25; display: flex; flex-direction: column;
}
.ios svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ios .status { height: 54px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 30px 8px 34px; font-weight: 600; font-size: 16px; flex: none; }
.ios .island { position: absolute; top: 11px; left: 50%; width: 118px; height: 34px; margin-left: -59px; background: #000; border-radius: 20px; }
.ios .bars { display: flex; gap: 6px; align-items: center; }
.ios .bars i { display: block; background: #1a1a1a; border-radius: 2px; }
.ios .title { display: flex; align-items: center; padding: 0 10px 6px 20px; min-height: 52px; flex: none; }
.ios .mark { font-size: 28px; font-weight: 700; letter-spacing: -.045em; }
.ios .circ { width: 34px; height: 34px; border-radius: 50%; background: var(--p-surface); border: 1px solid var(--p-border); display: grid; place-items: center; margin-left: 10px; position: relative; }
.ios .circ svg { width: 16px; height: 16px; stroke-width: 2; }
.ios .circ b { position: absolute; top: -5px; right: -6px; background: #1a1a1a; color: #f7f6f3; border-radius: 99px; min-width: 16px; height: 16px; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.ios .title .sp { flex: 1; }
.ios .pills { display: flex; gap: 6px; padding: 0 16px 8px; flex: none; overflow: hidden; }
.ios .pill { height: 34px; padding: 0 12px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; background: var(--p-surface); border: 1px solid var(--p-border); white-space: nowrap; }
.ios .pill svg { width: 14px; height: 14px; }
.ios .pill.on { background: #1a1a1a; color: #f7f6f3; border-color: #1a1a1a; }
.ios .pill.new { background: none; border: 0; color: var(--p-muted); padding: 0 4px; }
.ios .pill em { font-style: normal; font-size: 12px; opacity: .65; }
.ios .feed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 12px 8px; min-height: 0; }
.ios .card { background: var(--p-surface); border-radius: 18px; overflow: hidden; border: 0; padding: 0; }
.ios .item { display: flex; gap: 12px; padding: 12px 14px; min-height: 80px; align-items: center; border-top: 1px solid var(--p-div); }
.ios .item:first-child { border-top: 0; }
.ios .thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--p-tile); display: grid; place-items: center; flex: none; overflow: hidden; font-family: var(--serif); font-weight: 600; font-size: 18px; }
.ios .thumb.photo { background: linear-gradient(135deg, #cfd6e4, #aebbd3 55%, #dfe3ea); }
.ios .thumb.photo svg { width: 18px; height: 18px; color: #fff; }
.ios .thumb.link { font-family: var(--sans); font-size: 20px; font-weight: 700; background: rgba(47,111,235,.16); color: #2a58b8; }
.ios .thumb.voice { background: rgba(46,125,91,.16); }
.ios .wave { display: flex; gap: 2.5px; align-items: center; height: 28px; }
.ios .wave i { width: 3px; border-radius: 2px; background: #1f6a4a; display: block; }
.ios .txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ios .t { font-size: 17px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ios .t .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #b8860b; margin-right: 6px; vertical-align: 2px; }
.ios .m { font-size: 13px; color: var(--p-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios .tags { display: flex; gap: 8px; align-items: center; margin-top: 1px; }
.ios .tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 99px; background: var(--p-tile); font-size: 12px; font-weight: 600; color: var(--p-ink); }
.ios .tag svg { width: 11px; height: 11px; stroke-width: 2; }
.ios .tag.work { background: rgba(47,111,235,.14); color: #2a58b8; }
.ios .tag.ideas { background: rgba(228,87,46,.14); color: #b3401f; }
.ios .rem { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: #8a6a00; }
.ios .rem svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.ios .cap { margin: 0 12px 26px; background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 22px; box-shadow: 0 6px 10px rgba(0,0,0,.06); padding: 8px 0 6px; flex: none; }
.ios .typed { position: relative; padding: 6px 16px 8px; font-size: 17px; font-weight: 500; min-height: 36px; }
.ios .typed b { position: absolute; left: 16px; top: 6px; font-weight: 500; color: #a8a7a1; }
.ios .typed span { display: inline-block; height: 24px; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: 0; border-right: 2px solid #1a1a1a; animation: typing 7s steps(30) infinite, caret .8s step-end infinite; }
.ios .typed span::before { content: "Idea for Sam\2019s birthday\2026"; }
.ios .typed.idle b { animation: ph 7s infinite; }
.ios .tools { display: flex; align-items: center; padding-left: 4px; }
.ios .tool { width: 44px; height: 40px; display: grid; place-items: center; color: rgba(26,26,26,.8); }
.ios .tool svg { width: 21px; height: 21px; stroke-width: 1.6; }
.ios .chooser { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--p-tile); border: 1px solid var(--p-border); font-size: 13px; font-weight: 600; margin-left: 4px; }
.ios .chooser svg { width: 12px; height: 12px; stroke-width: 2.2; }
.ios .chooser svg:last-child { width: 9px; height: 9px; opacity: .7; }
.ios .go { margin: 0 8px 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #1a1a1a; display: grid; place-items: center; color: #f7f6f3; }
.ios .go svg { width: 17px; height: 17px; stroke-width: 2.6; }
.ios .home-bar { position: absolute; bottom: 8px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #1a1a1a; }
@keyframes typing { 0%, 8% { width: 0; } 50%, 86% { width: 15.4em; } 100% { width: 0; } }
@keyframes ph { 0%, 8% { opacity: 1; } 9%, 92% { opacity: 0; } 100% { opacity: 1; } }
.chip-a { left: -60px; top: 130px; } .chip-b { right: -40px; top: 300px; } .chip-c { left: -50px; bottom: 110px; }
@media (max-width: 820px) { .stage { --s: .7; } }
@media (max-width: 420px) { .stage { --s: .66; } }
@media (prefers-reduced-motion: reduce) { .ios .typed span { animation: none; width: auto; border: 0; } .ios .typed.idle b { animation: none; opacity: 0; } }
@media (max-width: 820px) {
  .chip-a { left: -14px; } .chip-b { right: -14px; } .chip-c { left: -14px; }
}

.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { height: 52px; width: auto; display: block; }
.badge:hover { opacity: .88; }

/* Use cases page */
.uc-hero { padding: 40px 0 16px; }
.uc-hero h1 { max-width: 14em; }
.uc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.uc-jump a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink); }
.uc-jump a:hover { border-color: var(--ink); }
.uc-case { padding: 36px 0; scroll-margin-top: 12px; }
.uc-case .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.uc-case.flip .uc-copy { order: 2; }
.uc-badge { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); font-size: .88rem; font-weight: 700; margin-bottom: 16px; }
.uc-badge svg, .uc-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.uc-case h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.uc-copy p { color: var(--muted); margin: 0 0 18px; max-width: 32em; }
.uc-copy ul { list-style: none; padding: 0; margin: 0; }
.uc-copy li { padding: 9px 0 9px 28px; border-top: 1px solid var(--divider); position: relative; font-size: .97rem; }
.uc-copy li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--c); }
.uc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 6px 0; box-shadow: 0 24px 50px rgba(26,26,26,.08); }
.uc-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.uc-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--c); color: #fff; font-size: .85rem; font-weight: 700; }
.uc-count { color: var(--muted); font-size: .82rem; }
.uc-row { display: flex; gap: 12px; padding: 12px 16px; align-items: center; border-top: 1px solid var(--divider); }
.uc-thumb { width: 52px; height: 52px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--chip); font-family: var(--serif); font-weight: 600; font-size: 1.05rem; overflow: hidden; }
.uc-thumb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.uc-thumb.k-link { background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); font-family: var(--sans); font-weight: 700; font-size: 1.1rem; }
.uc-thumb.k-photo { background: linear-gradient(135deg, #cfd6e4, #aebbd3 55%, #dfe3ea); color: #fff; }
.uc-thumb.k-voice { background: color-mix(in srgb, var(--c) 16%, var(--surface)); }
.wave { display: flex; gap: 2.5px; align-items: center; height: 26px; }
.wave i { width: 3px; border-radius: 2px; background: var(--c); display: block; }
.wave i:nth-child(1) { height: 8px; } .wave i:nth-child(2) { height: 16px; } .wave i:nth-child(3) { height: 24px; } .wave i:nth-child(4) { height: 12px; } .wave i:nth-child(5) { height: 20px; } .wave i:nth-child(6) { height: 10px; } .wave i:nth-child(7) { height: 6px; }
.uc-txt { min-width: 0; }
.uc-t { font-weight: 600; line-height: 1.3; }
.uc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #b8860b; margin-right: 6px; vertical-align: 2px; }
.uc-m { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.uc-tags { margin-top: 5px; }
.uc-rem { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: #8a6a00; margin-right: 10px; }
.uc-rem svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 820px) {
  .uc-case .wrap { grid-template-columns: 1fr; gap: 24px; }
  .uc-case.flip .uc-copy { order: 0; }
  .uc-case { padding: 24px 0; }
}

/* Cleaner hero: no floating labels, earlier stacking so the text never gets squeezed */
.chip { display: none !important; }
.lead { text-wrap: pretty; }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .stage { --s: .7; }
  .glow { right: -260px; }
}

/* ===== Motion: scroll reveals with a springy overshoot ===== */
:root { --spring: cubic-bezier(.34, 1.5, .5, 1); --ease: cubic-bezier(.22, 1, .36, 1); }
.js [data-reveal] {
  opacity: 0; will-change: transform, opacity;
  transition: opacity .6s var(--ease) var(--d, 0ms), transform 1s var(--spring) var(--d, 0ms);
}
.js [data-reveal="up"]    { transform: translateY(44px); }
.js [data-reveal="pop"]   { transform: translateY(36px) scale(.92); }
.js [data-reveal="zoom"]  { transform: translateY(60px) scale(.9); }
.js [data-reveal="left"]  { transform: translateX(-70px); }
.js [data-reveal="right"] { transform: translateX(70px); }
.js [data-reveal].is-in   { opacity: 1; transform: none; }

/* Hero phone rows drop in one by one on load */
.ios .item { animation: rowIn .8s var(--spring) both; }
.ios .item:nth-child(1) { animation-delay: .9s; } .ios .item:nth-child(2) { animation-delay: .8s; } .ios .item:nth-child(3) { animation-delay: .7s; }
.ios .item:nth-child(4) { animation-delay: .6s; } .ios .item:nth-child(5) { animation-delay: .5s; } .ios .item:nth-child(6) { animation-delay: .4s; }
.ios .cap { animation: rowIn .9s var(--spring) 1.1s both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }

/* Bouncy hover and press */
.card, .uc-card, .uc-jump a, .badge, .btn, .site-nav a.nav-cta { transition: transform .5s var(--spring), box-shadow .3s var(--ease), opacity .3s; }
.js .card[data-reveal], .js .uc-jump a[data-reveal] { transition: opacity .6s var(--ease) var(--d, 0ms), transform 1s var(--spring) var(--d, 0ms), box-shadow .3s var(--ease); }
@media (hover: hover) {
  .bento .card.is-in:hover, .plan.is-in:hover { transform: translateY(-6px) scale(1.012); box-shadow: 0 20px 40px rgba(26,26,26,.1); transition-delay: 0ms; }
  .uc-jump a.is-in:hover { transform: translateY(-3px) scale(1.05); transition-delay: 0ms; }
  .badge:hover, .btn:hover { transform: scale(1.04); }
  .hero-icon:hover { animation-duration: 1.5s; transform: rotate(-6deg) scale(1.06); transition: transform .5s var(--spring); }
}
.badge:active, .btn:active { transform: scale(.95); }
@media (prefers-reduced-motion: reduce) {
  .ios .item, .ios .cap { animation: none; }
}
