/* Presencia website: Liquid Glass on a deep green-black, with a 3D phone behind the content.
   Glass is for navigation, controls and cards; text sits on its own clear layer. */

:root {
  --bg: #030604;
  --ink: #f1f6f2;
  --ink-2: #b4c2b9;      /* 9.6:1 on --bg */
  --ink-3: #8a988f;      /* 6.1:1 on --bg, for small print */
  --green: #22c55e;
  --green-2: #4ade80;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius-lg: 32px;
  --radius: 22px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --z-bg: 0; --z-stage: 1; --z-content: 10; --z-nav: 100;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; border-radius: 12px; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 1000; padding: 10px 16px; background: var(--green); color: #04210f; border-radius: 12px; font-weight: 700; }
.skip:focus { left: 12px; }

/* ------------------------------------------------------------------ background light */
.aurora { position: fixed; inset: -20vmax; z-index: var(--z-bg); pointer-events: none; filter: blur(60px) saturate(120%); opacity: .9; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.aurora i:nth-child(1) { width: 60vmax; height: 60vmax; left: 10%; top: 0%; background: radial-gradient(circle, rgba(34,197,94,.30), transparent 62%); animation: drift1 28s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 50vmax; height: 50vmax; right: 0%; top: 30%; background: radial-gradient(circle, rgba(20,184,166,.20), transparent 62%); animation: drift2 34s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 44vmax; height: 44vmax; left: 25%; bottom: -5%; background: radial-gradient(circle, rgba(74,222,128,.12), transparent 60%); animation: drift1 40s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-10vmax, -4vmax, 0) scale(.92); } }
.grain { position: fixed; inset: 0; z-index: var(--z-bg); pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------------ 3D stage */
/* 100lvh: the large viewport, so a phone's address bar sliding in and out never resizes the 3D canvas. */
#stage { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: var(--z-stage); pointer-events: none; opacity: 0; will-change: opacity; }
#phone-canvas { width: 100%; height: 100%; display: block; }
.no-3d #stage { display: none; }
/* Without WebGL: a flat phone with the app, beside the hero text. */
.flat-phone { display: none; }
.no-3d .flat-phone { display: block; }

/* ------------------------------------------------------------------ Liquid Glass */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.035));
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),       /* top light catch */
    inset 0 -1px 0 rgba(255,255,255,.06),
    inset 0 0 22px rgba(255,255,255,.035),      /* thickness */
    0 24px 60px -18px rgba(0,0,0,.65);
}
/* Specular rim: bright where light hits the top-left edge, fading round the curve. */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(140deg, rgba(255,255,255,.62), rgba(255,255,255,.08) 32%, rgba(255,255,255,.02) 58%, rgba(255,255,255,.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Lensing highlight that follows the pointer (set from app.js). */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(320px circle at var(--mx, 30%) var(--my, -20%), rgba(255,255,255,.10), transparent 60%);
  opacity: var(--lit, .6); transition: opacity .4s var(--ease-out);
}
.glass.tint { background: linear-gradient(180deg, rgba(34,197,94,.28), rgba(34,197,94,.10)); }
/* Reduced transparency: solid panels, same shapes. */
@media (prefers-reduced-transparency: reduce) {
  .glass { background: #101a14; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .glass.tint { background: #12321f; }
  .aurora { display: none; }
}

/* ------------------------------------------------------------------ nav */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: var(--z-nav);
  width: min(1120px, calc(100% - 24px)); display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 999px;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--font-head); letter-spacing: -.01em; }
.brand small { display: block; font: 700 9px/1 var(--font-body); letter-spacing: .3em; color: var(--green-2); margin-top: 3px; }
.brand svg { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.nav .links { display: flex; gap: 2px; margin-left: auto; }
.nav .links a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 10px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav .links a:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.nav .btn { margin-left: 6px; min-height: 44px; padding: 0 20px; font-size: 15px; }
@media (max-width: 860px) { .nav .links { display: none; } .nav .btn { margin-left: auto; } }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
  border-radius: 999px; text-decoration: none; font: 700 17px/1 var(--font-body); color: var(--ink); cursor: pointer; border: 0;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out), background .3s; touch-action: manipulation; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.97); transition-duration: .12s; }
.btn.primary { color: #eafff1; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 18px 44px -14px rgba(34,197,94,.65); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .meta { font-weight: 500; opacity: .8; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ------------------------------------------------------------------ layout */
main { position: relative; z-index: var(--z-content); }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
section { position: relative; }
.copy { width: min(520px, 100%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--green-2); padding: 10px 14px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
h1 { font-size: clamp(44px, 7vw, 86px); line-height: .98; font-weight: 700; margin: 22px 0 18px; }
h1 .g { background: linear-gradient(120deg, #86efac, #22c55e 45%, #14b8a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 34ch; }
.muted { color: var(--ink-2); }

/* Hero */
.hero { min-height: 100svh; height: 100svh; box-sizing: border-box; display: flex; align-items: center; padding: 110px 0 60px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.chips svg { width: 16px; height: 16px; color: var(--green-2); }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue i { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.3); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink-2); animation: wheel 1.8s var(--ease-out) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* Story: one step per screen; the 3D phone changes beside it */
.story-intro { padding: 120px 0 10px; }
.step { min-height: 92vh; display: flex; align-items: center; }
.step .card { padding: 30px 30px 32px; width: min(480px, 100%); }
.step .num { font: 700 13px/1 var(--font-head); letter-spacing: .2em; color: var(--green-2); }
.step h3 { font-size: clamp(26px, 3vw, 34px); margin: 12px 0 10px; letter-spacing: -.02em; }
.step p { color: var(--ink-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.legend b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; margin-right: 6px; font: 800 14px/1 var(--font-head); background: rgba(255,255,255,.06); }

/* Hardware */
.hardware { min-height: 110vh; display: flex; align-items: center; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.spec { padding: 16px 18px; border-radius: var(--radius); }
.spec strong { display: block; font: 700 22px/1.1 var(--font-head); }
.spec span { font-size: 14px; color: var(--ink-2); }

/* Features: bento of glass cards */
.features { padding: 140px 0 60px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 40px; }
.tile { padding: 26px; border-radius: var(--radius-lg); grid-column: span 2; transition: transform .5s var(--ease-spring); }
.tile:hover { transform: translateY(-4px); }
.tile.wide { grid-column: span 3; }
.tile .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(34,197,94,.30), rgba(34,197,94,.08)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.tile .ic svg { width: 24px; height: 24px; color: #bbf7d0; }
.tile p { color: var(--ink-2); font-size: 16px; margin-top: 8px; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.formats span { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .tile, .tile.wide { grid-column: span 1; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }

/* iPhone note */
.iphone { padding: 112px 0 0; } /* room for the floating nav when this section is snapped to the top */
.iphone .card { padding: 30px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; border-radius: var(--radius-lg); }
.iphone .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(245,158,11,.16); color: #fcd34d; }
.iphone .ic svg { width: 26px; height: 26px; }
@media (max-width: 600px) { .iphone .card { grid-template-columns: 1fr; } }

/* Download */
.download { display: flex; align-items: flex-start; padding: 36px 0 110px; }
.install { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.install li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); color: var(--ink-2); }
.install .n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font: 700 15px/1 var(--font-head); color: #04210f; background: linear-gradient(180deg, #86efac, #22c55e); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.install b { color: var(--ink); }
.fineprint { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

/* Footer, with the subtle credit */
footer { position: relative; z-index: var(--z-content); padding: 40px 0 46px; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.08); padding-top: 26px; color: var(--ink-3); font-size: 14px; }
/* Footer links: no default underline, and Privacy sits on the same line as the credit. */
footer .end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
footer a { color: var(--ink-3); text-decoration: none; transition: color .3s var(--ease-out); }
footer a:hover, footer a:focus-visible { color: var(--ink-2); }
.credit { font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(241,246,242,.32); transition: color .4s var(--ease-out); }
.credit:hover { color: rgba(241,246,242,.7); }
.credit b { font-weight: 700; }

/* ------------------------------------------------------------------ narrow screens: phone above, text below */
@media (max-width: 899px) {
  .hero { height: auto; align-items: flex-end; padding-top: 58vh; padding-bottom: 118px; }
  .scroll-cue { bottom: 18px; font-size: 12px; opacity: .8; gap: 6px; }
  .scroll-cue i { width: 18px; height: 28px; }
  .scroll-cue i::after { top: 6px; }
  .step { align-items: flex-end; min-height: 100vh; padding-bottom: 8vh; }
  .step .card, .hardware .copy { margin: 0 auto; }
  .hardware { align-items: flex-end; padding-bottom: 8vh; min-height: 105vh; }
  .hardware .copy { padding: 26px; border-radius: var(--radius-lg); }
  /* Clears the floating nav when snapped to the top; no empty band before the footer. */
  .download { align-items: flex-start; padding-top: 96px; padding-bottom: 18px; min-height: auto; }
  .iphone { padding-top: 96px; }
  .no-3d .hero, .no-3d .step, .no-3d .hardware, .no-3d .download { padding-top: 100px; min-height: auto; }
}
@media (min-width: 900px) { .hardware .copy { padding: 0; } }

/* ------------------------------------------------------------------ entrance motion */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .aurora i, .eyebrow .dot, .scroll-cue i::after { animation: none; }
  .btn, .tile { transition: none; }
}

/* Flat fallback phone (no WebGL) */
.flat-phone { width: min(300px, 70vw); margin: 40px auto 0; border-radius: 42px; padding: 10px; background: #0b0c0d;
  box-shadow: 0 0 0 2px #26292d, 0 40px 80px -20px rgba(0,0,0,.8), 0 0 80px -20px rgba(34,197,94,.4); }
.flat-phone img { border-radius: 34px; width: 100%; height: auto; }

@media (max-width: 480px) {
  .eyebrow { font-size: 11px; letter-spacing: .14em; }
  .btn .meta { display: none; } /* the version shows in the fine print instead */
}

/* Nav after scrolling: slightly denser glass so links stay readable over content. */
.nav.scrolled { background: linear-gradient(180deg, rgba(14,22,17,.72), rgba(14,22,17,.55)); }
/* Small screens: the hardware copy sits on glass so it reads over the phone. */
@media (max-width: 899px) {
  .glass-mobile { background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.035)); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 24px 60px -18px rgba(0,0,0,.65); }
}
code { font: 600 .92em/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.08); }

/* Magnetic scroll: each block of words pulls the page to it, and a hard flick can't skip a step. */
.hero, .step, .hardware, .iphone, .download, footer { scroll-snap-align: start; }
.step, .hardware { scroll-snap-stop: always; }
.features { scroll-snap-align: start; } /* taller than the screen: it scrolls freely once you are inside */
/* Touch: the browser does the snapping. Mouse wheels are handled in app.js, which steps block to block. */
@media (pointer: coarse) { html { scroll-snap-type: y mandatory; } }
@media (prefers-reduced-motion: reduce) { html { scroll-snap-type: none; } }
.no-3d { scroll-snap-type: none; }

/* Small screens: the hero words sit on a glass panel too, so the phone floating behind never muddles them. */
@media (max-width: 899px) {
  .hero .copy.glass-mobile { padding: 22px 20px 24px; border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(10,18,13,.62), rgba(10,18,13,.48)); }
  .hero .copy.glass-mobile .eyebrow { margin-top: 0; }
  .hardware .copy.glass-mobile, .step .card { background-color: rgba(10,18,13,.35); }
}

/* Scroll cue on phones: a quiet "Scroll for more" under the hero. */
.scroll-cue { letter-spacing: .04em; }

/* ------------------------------------------------------------------ iPhone: a 3D phone marked SOON
   Built from CSS 3D layers (a stack of rounded plates makes the solid body), not WebGL, so it costs
   nothing to load and works on every phone. app.js turns it; every size is in em, so font-size scales it. */
.ip-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.soon-chip { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 999px;
  font: 700 11px/1.5 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #fcd34d;
  background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.35); }
.ip-stage { position: relative; display: grid; place-items: center; padding: 18px 0 16px; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.ip-stage.drag { cursor: grabbing; }
.ip3d { font-size: 15px; width: 14.5em; height: 30em; perspective: 1500px; perspective-origin: 50% 40%; }
.ip-body { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 5deg)) rotateY(var(--ry, -24deg)); will-change: transform; }
.ip-layer { position: absolute; inset: 0; border-radius: 3.2em; transform: translateZ(var(--z, 0em));
  background: linear-gradient(180deg, #8d8d93 0%, #46464a 9%, #2d2d30 50%, #46464a 91%, #8d8d93 100%);
  box-shadow: inset 0 0 0 .07em rgba(255,255,255,.16); }
.ip-front { position: absolute; inset: .3em; border-radius: 2.95em; background: #030304; transform: translateZ(.8em); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: inset 0 0 0 .12em #19191b; }
.ip-screen { position: absolute; inset: .45em; border-radius: 2.5em; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7em; color: #f1f6f2;
  background: radial-gradient(120% 70% at 50% 112%, rgba(34,197,94,.5), transparent 62%), radial-gradient(90% 50% at 50% -10%, rgba(34,197,94,.14), transparent 60%), #060b08; }
.ip-island { position: absolute; top: .85em; left: 50%; width: 4.6em; height: 1.35em; margin-left: -2.3em; border-radius: 1em; background: #000; box-shadow: 0 0 0 .08em #0c0c0d; }
.ip-bt { width: 4.2em; height: 4.2em; color: #86efac; margin-bottom: .3em; }
.ip-soon { font: 700 2.7em/1 var(--font-head); letter-spacing: .14em; padding-left: .14em;
  background: linear-gradient(180deg, #ffffff, #86efac); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ip-sub { font-size: .85em; letter-spacing: .22em; text-transform: uppercase; color: rgba(241,246,242,.55); }
.ip-sheen { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent calc(34% + var(--sheen, 0%)), rgba(255,255,255,.13) calc(45% + var(--sheen, 0%)), transparent calc(56% + var(--sheen, 0%))); }
.ip-back { position: absolute; inset: .25em; border-radius: 3em; transform: translateZ(-.8em) rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(155deg, #3c3d41, #212225 46%, #2f3034); box-shadow: inset 0 0 0 .1em rgba(255,255,255,.08); }
.ip-plateau { position: absolute; top: .9em; left: .9em; width: 6.6em; height: 6.6em; border-radius: 1.7em;
  background: linear-gradient(145deg, #2c2d31, #131315); box-shadow: inset 0 0 0 .08em rgba(255,255,255,.13), 0 .3em .9em rgba(0,0,0,.5); }
.ip-lens { position: absolute; width: 2.5em; height: 2.5em; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #43527a 0 7%, #0b0e16 40%, #020305 72%);
  box-shadow: 0 0 0 .22em #3b3c41, 0 0 0 .3em #151517, inset 0 0 .5em rgba(120,160,255,.35); }
.ip-lens.l1 { top: .7em; left: .7em; } .ip-lens.l2 { bottom: .7em; left: .7em; } .ip-lens.l3 { top: 2.05em; right: .7em; }
.ip-flash { position: absolute; top: .8em; right: .95em; width: .8em; height: .8em; border-radius: 50%; background: #d9d2bf; box-shadow: 0 0 0 .1em #2c2d31; }
.ip-mic { position: absolute; bottom: .95em; right: 1.15em; width: .45em; height: .45em; border-radius: 50%; background: #0a0a0b; }
.ip-btn { position: absolute; width: .4em; border-radius: .2em; background: linear-gradient(90deg, #5a5a5f, #2a2a2d); }
.ip-btn-power { right: -.3em; top: 9.2em; height: 4.6em; }
.ip-btn-action { left: -.3em; top: 5.6em; height: 1.7em; }
.ip-btn-vol1 { left: -.3em; top: 8.2em; height: 2.7em; }
.ip-btn-vol2 { left: -.3em; top: 11.4em; height: 2.7em; }
.ip-shadow { position: absolute; bottom: 8px; left: 50%; width: 190px; height: 22px; margin-left: -95px; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(7px); pointer-events: none; }
@media (max-width: 899px) {
  .ip-grid { grid-template-columns: 1fr; gap: 14px; }
  .ip3d { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .ip-body { transition: none; } }

/* ------------------------------------------------------------------ phones: the last screen
   Get Presencia and the footer fit in one view below the floating nav, with nothing cut off and
   no empty band: slightly tighter steps, and a footer laid out in two tidy lines. */
@media (max-width: 600px) {
  .download .lead { font-size: 17px; }
  .download .cta-row { margin-top: 20px; }
  .install { margin-top: 18px; gap: 8px; }
  .install li { grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
  .install .n { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
  .fineprint { margin-top: 12px; font-size: 13px; }
  footer { padding: 14px 0 26px; }
  footer .row { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 18px; font-size: 13px; }
  footer .end { width: 100%; justify-content: space-between; }
}

/* ------------------------------------------------------------------ like button (top nav and footer) */
.like { gap: 8px; position: relative; overflow: visible; }
.like svg { width: 18px; height: 18px; fill: none; transition: fill .25s var(--ease-out), color .25s; }
.like.is-liked svg { fill: currentColor; color: #fb7185; }
.like.is-liked { color: #ffe4e6; }
.like-count { display: inline-block; font-variant-numeric: tabular-nums; font-weight: 600; opacity: .85; }
.like-count:empty { display: none; }
.nav .like { min-height: 44px; padding: 0 16px; font-size: 15px; }
.like-foot { min-height: 40px; padding: 0 16px; font-size: 14px; }
.like-foot svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .nav .like .like-label { display: none; } .nav .like { padding: 0 12px; } }
/* Press effects, made by likes.js */
.like-fx { position: absolute; pointer-events: none; z-index: 2; }
.like-ring { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fb7185; }
.like-bit { border-radius: 50%; background: hsl(var(--h) 90% 66%); box-shadow: 0 0 8px hsl(var(--h) 90% 66% / .8); }

/* ------------------------------------------------------------------ download total, inside the download buttons */
.dl-count { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.16);
  font-size: 13px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.dl-count::before { content: "\2193"; font-weight: 800; opacity: .8; }
.dl-count:empty { display: none; }
@media (max-width: 480px) { .btn .meta { display: none; } }

/* ------------------------------------------------------------------ phone nav: like sits beside Download, and everything fits */
@media (max-width: 860px) { .nav .like { margin-left: auto; } .nav .btn.primary { margin-left: 4px; } }
@media (max-width: 480px) {
  .nav { gap: 6px; padding: 7px 7px 7px 12px; }
  .nav .like { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .nav .btn.primary { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .brand small { font-size: 8px; letter-spacing: .2em; }
}
@media (max-width: 350px) { .brand span { display: none; } .nav .like { padding: 0 10px; } .nav .btn.primary { padding: 0 12px; } }

/* ------------------------------------------------------------------ the iPhone steps aside near the bottom (see app.js) */
.iphone .ip3d, .iphone .ip-shadow { opacity: calc(1 - var(--away, 0)); }
.iphone.ip-away .ip-stage { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .iphone .ip3d { transform: translateY(calc(var(--away, 0) * -18px)) scale(calc(1 - var(--away, 0) * .04)); }
}
