/* Owlfolio's website: the app's night-and-sunset world, its navy, mint and amber, and Apple's own type. */

:root {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --night-top: #152e4a;
  --night: #0b1a2e;
  --night-deep: #060b17;
  --card: #12263f;
  --card-line: rgba(255, 255, 255, 0.08);
  --mint: #2fe6a0;
  --amber: #ffb020;
  --text: #f4f7fb;
  --muted: #a9b6c8;
  --radius: 28px;
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background-color: var(--ground, #0d2c31); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* The sky and forest are drawn behind everything. The page's own color (on html, above) is the forest floor's,
     because that's what Safari on iPhone shows in the strip under its tab bar. */
  background: transparent;
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
.mint { color: var(--mint); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--mint); color: var(--night); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 8px; }

/* MARK: Navigation */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 26, 46, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-color: var(--card-line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { border-radius: 22%; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 16px; transition: color 0.2s; }
.nav nav a:hover { color: var(--text); }
.nav-cta {
  text-decoration: none; font-weight: 700; font-size: 15px;
  background: var(--mint); color: var(--night); padding: 9px 18px; border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(47, 230, 160, 0.35); }

@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
}

/* MARK: Hero */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
  padding: 190px 0 190px;
  overflow: hidden;
  isolation: isolate;
}
/* The living sky behind the whole page (sky.js), and the app's forests in day, dusk and night, blended with it. */
/* The living sky (sky.js) and the app's forests, in one layer behind the page. It's part of the page (sticky, not
   fixed) and reaches 120px past the window at the top and bottom, because Safari on iPhone keeps fixed things out of
   the strips behind its status bar and tab bar and shows the page there instead: this way those strips show more sky
   above and more forest floor below, under the bars' glass, as in any app. */
.scenery {
  --over: 120px;
  position: sticky; top: calc(-1 * var(--over)); display: block; width: 100%;
  height: calc(100vh + 2 * var(--over)); height: calc(100lvh + 2 * var(--over));
  margin-top: calc(-1 * var(--over));
  margin-bottom: calc(-100vh - var(--over)); margin-bottom: calc(-100lvh - var(--over));
  z-index: -10; pointer-events: none; overflow: hidden;
}
.sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.forest {
  /* One picture the full width of the window, never repeated, tree tips always whole, standing on the window's
     bottom edge, its floor carrying on below it. */
  --forest-height: min(28.3vw, max(24lvh, 15.6vw));
  position: absolute; left: 0; right: 0; bottom: var(--over); height: var(--forest-height);
}
.forest::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: calc(var(--over) + 1px); background: var(--ground, #0d2c31); }
.forest i { position: absolute; inset: 0; background: top center / 100vw auto no-repeat; }
.forest .day { background-image: url("assets/forest-day.webp"); opacity: var(--forest-day, 1); }
.forest .dusk { background-image: url("assets/forest-dusk.webp"); opacity: var(--forest-dusk, 0); }
.forest .night { background-image: url("assets/forest-night.webp"); opacity: var(--forest-night, 0); }

.hero-inner {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
h1 { font-size: clamp(52px, 8.4vw, 104px); font-weight: 800; text-shadow: 0 2px 30px rgba(11, 26, 46, 0.35); }
.lede { font-size: clamp(18px, 1.7vw, 21px); max-width: 30em; color: #eef2f8; margin: 22px 0 30px; }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.badge { display: inline-block; line-height: 0; }
.badge img { height: 56px; width: auto; transition: transform 0.2s; }
.badge:hover img { transform: translateY(-2px) scale(1.02); }
/* On a computer, hovering the App Store badge shows a code for the iPhone's camera, like Apple's own pages do. */
.get { position: relative; }
.qr {
  position: absolute; left: calc(100% + 18px); top: 50%; z-index: 6; width: 164px;
  display: grid; justify-items: center; gap: 8px; padding: 14px 14px 12px;
  background: #fff; color: #10223a; border-radius: 22px; box-shadow: 0 24px 60px rgba(6, 11, 23, 0.45);
  font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(-50%) translateX(-8px) scale(0.92); transform-origin: 0 50%;
  transition: opacity 0.25s var(--ease), transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0s 0.25s;
}
.qr img { width: 124px; height: 124px; border-radius: 6px; }
.get:hover .qr, .get:focus-within .qr { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); transition-delay: 0.15s, 0.15s, 0s; }
@media (hover: none) { .qr { display: none; } }
.ghost { font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, 0.4); padding-bottom: 2px; }
.ghost:hover { border-color: var(--mint); }
/* MARK: Hero art: the phone and Dippy float together, the alert on its own beat, and the three promises drift
   freely around them, each on its own slow path, so the scene never repeats the same way twice. */

.hero-art { position: relative; display: flex; justify-content: center; transition: transform 1.2s var(--ease); }
.hero-float { position: relative; animation: float 7s ease-in-out 1.9s infinite; }
.hero-phone {
  width: min(360px, 70vw);
  filter: drop-shadow(0 40px 60px rgba(6, 11, 23, 0.55));
  animation: phone-in 1.6s var(--ease) 0.25s both;
}
.hero-owl {
  /* Perched on the phone's top edge, a little right of center, like on the App Store images. */
  position: absolute; z-index: 2; width: clamp(150px, 15vw, 200px); bottom: calc(100% - 14px); left: 52%;
  transform-origin: 30% 100%;
  animation: owl-in 1s cubic-bezier(0.34, 1.4, 0.64, 1) 1.15s both;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* The promises float across the whole first screen, in the free sky around the words and the phone. Each one
   pops out after Dippy lands, then drifts on its own slow path (on the span), while the page's script moves the pill
   itself (the li) out of the pointer's way and lifts it off at its own depth as the page scrolls. */
.hero .promises { list-style: none; padding: 0; margin: 0; position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.promises li { position: absolute; will-change: transform; }
.promises span {
  display: block; position: relative; white-space: nowrap;
  font-weight: 800; font-size: 16px; color: var(--night);
  background: var(--mint); padding: 9px 18px 9px 38px; border-radius: 999px;
  box-shadow: 0 16px 34px rgba(6, 11, 23, 0.35);
}
.promises span::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 7px; margin-top: -5px;
  border-left: 2.5px solid var(--night); border-bottom: 2.5px solid var(--night); transform: rotate(-45deg);
}
/* Above the headline on the left, out past the phone on the right, and low between the two. */
.promises li:nth-child(1) { top: 15%; left: max(3%, calc(50% - 560px)); }
.promises li:nth-child(2) { top: 34%; right: max(2%, calc(50% - 650px)); }
.promises li:nth-child(3) { top: 66%; left: calc(50% - 80px); }
.promises li:nth-child(1) span { animation: pop 0.9s cubic-bezier(0.34, 1.5, 0.64, 1) 2.0s both, drift-a 17s ease-in-out 2.9s infinite; }
.promises li:nth-child(2) span { animation: pop 0.9s cubic-bezier(0.34, 1.5, 0.64, 1) 2.15s both, drift-b 21s ease-in-out 3.05s infinite; }
.promises li:nth-child(3) span { animation: pop 0.9s cubic-bezier(0.34, 1.5, 0.64, 1) 2.3s both, drift-c 19s ease-in-out 3.2s infinite; }
@keyframes pop { from { opacity: 0; scale: 0.4; } to { opacity: 1; scale: 1; } }
@keyframes drift-a {
  0%, 100% { translate: 0 0; rotate: -3deg; }
  25% { translate: 90px -30px; rotate: 2deg; }
  50% { translate: 40px 36px; rotate: -1deg; }
  75% { translate: -30px 12px; rotate: 3deg; }
}
@keyframes drift-b {
  0%, 100% { translate: 0 0; rotate: 3deg; }
  30% { translate: -50px 60px; rotate: -2deg; }
  60% { translate: 20px 110px; rotate: 1deg; }
  80% { translate: 30px -30px; rotate: 4deg; }
}
@keyframes drift-c {
  0%, 100% { translate: 0 0; rotate: 2deg; }
  20% { translate: -60px -24px; rotate: -3deg; }
  55% { translate: 70px -10px; rotate: 1deg; }
  80% { translate: 10px 26px; rotate: -2deg; }
}

.toast {
  position: absolute; z-index: 3; left: -8%; bottom: 10%;
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  width: min(380px, 88vw); padding: 14px 16px;
  background: rgb(245, 247, 250); color: #10223a;
  border-radius: 22px; box-shadow: 0 24px 50px rgba(6, 11, 23, 0.45);
  font-size: 15px; line-height: 1.3; rotate: -2deg;
  animation: drop 1.1s cubic-bezier(0.34, 1.3, 0.64, 1) 1.7s both, float 6s ease-in-out 2.8s infinite;
}
.toast img { border-radius: 22%; }
.toast strong { display: block; }
.toast time { align-self: start; color: #6b7a8f; font-size: 13px; }
@keyframes drop { from { opacity: 0; transform: translateY(-40px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(90px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes owl-in { from { opacity: 0; transform: translateY(40px) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* The hero plays in once, in order: the headline, its words and the buttons, then the phone rises, Dippy lands on it
   and waves, the alert arrives, and the promises pop out and start drifting. */
.hero-copy > * { animation: rise 1.3s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.1s; }
.hero-copy > :nth-child(2) { animation-delay: 0.25s; }
.hero-copy > :nth-child(3) { animation-delay: 0.4s; }
.js:not(.ready) .hero * { animation-play-state: paused !important; }

@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-art { margin-top: 150px; }
  .toast { left: 50%; margin-left: max(-190px, -44vw); bottom: 8%; }
  .promises span { font-size: 14px; padding: 8px 15px 8px 34px; }
  .promises span::before { left: 12px; }
  /* Placed around the phone, which is min(70vw, 360px) wide and sits 190px above the hero's bottom. */
  .promises li:nth-child(1) { top: auto; left: max(3%, calc(50% - min(35vw, 180px) - 60px)); bottom: calc(190px + min(150vw, 771px)); }
  .promises li:nth-child(2) { top: auto; left: auto; right: max(3%, calc(50% - min(35vw, 180px) - 60px)); bottom: calc(190px + min(104vw, 535px)); }
  .promises li:nth-child(3) { top: auto; left: max(4%, calc(50% - min(35vw, 180px) - 70px)); bottom: calc(190px + min(62vw, 319px)); }
  .qr { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* MARK: Sections */

.section { max-width: var(--max); margin: 0 auto; padding: 120px 24px 40px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head { text-shadow: 0 2px 28px rgba(6, 11, 23, 0.5); }
.section-head p:last-child:not(.kicker) { color: #e3eaf3; font-size: 20px; margin: 18px 0 0; }
.kicker { color: var(--mint); text-shadow: 0 1px 14px rgba(6, 11, 23, 0.6); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; margin: 0 0 14px; }
h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 800; }

/* Things rise a little and come into focus as they arrive, one after another in a row, on one long gentle curve. */
.js .reveal {
  opacity: 0; transform: translateY(36px) scale(0.985);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--order, 0) * 90ms);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in.settled { transition: opacity 1s var(--ease), transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease); transition-delay: 0s; }
@media (hover: hover) { .js .card.reveal.in:hover { transform: translateY(-6px); } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 0 28px; }
.step {
  background: var(--card);
  border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 34px 28px 30px; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 26px; overflow: hidden;
  align-content: start;
}
.step img { width: 74%; margin: 0 auto; align-self: start; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45)); }
.num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--mint); color: var(--night); font-weight: 800; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 10px 0 0; }
@media (max-width: 900px) {
  .step img.wide { width: 70%; }
  .steps { grid-template-columns: 1fr; grid-template-rows: none; gap: 24px; max-width: 520px; margin: 0 auto; }
  .step { grid-template-rows: auto auto; grid-row: auto; }
  .step img { width: 58%; }
}

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease);
  background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 30px;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); border-color: var(--mint); box-shadow: inset 0 0 0 1px var(--mint), 0 24px 50px rgba(6, 11, 23, 0.35); }
  .card:hover .icon { transform: scale(1.1) rotate(-6deg); background: var(--mint); color: var(--night); }
}
.card .icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(47, 230, 160, 0.12); color: var(--mint); margin-bottom: 20px;
  transition: transform 0.5s cubic-bezier(0.34, 1.5, 0.64, 1), background 0.3s, color 0.3s;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 10px 0 0; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* Devices */
.device-stage { position: relative; max-width: 980px; margin: 0 auto; padding: 0 60px; }
.device-stage .mac {
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
  width: 100%; border-radius: 18px; box-shadow: 0 50px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--card-line); }
.side-phone { position: absolute; bottom: -70px; width: 24%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); }
.side-phone.left { left: -9%; }
/* A real Apple Watch is a bit over half as wide as an iPhone; here it's 80% as wide, standing on the same line,
   so it reads as a watch beside a phone and its screen is still easy to read. */
.side-watch { position: absolute; right: -10%; bottom: -70px; width: 19.2%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); }
.platforms { list-style: none; padding: 0; margin: 90px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.platforms li { border: 1px solid var(--card-line); background: rgba(18, 38, 63, 0.85); padding: 8px 18px; border-radius: 999px; font-weight: 700; color: var(--muted); font-size: 16px; }
@media (max-width: 700px) {
  .device-stage { padding: 0; }
  .side-phone { width: 32%; bottom: -70px; }
  .side-phone.left { left: -5%; }
  .side-watch { width: 25.6%; bottom: -70px; right: -5%; }
}

/* Privacy */
.privacy-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center;
  background: var(--card);
  border: 1px solid var(--card-line); border-radius: 36px; padding: 48px;
}
.privacy-card p:not(.kicker) { color: var(--muted); margin: 16px 0 18px; }
.text-link { color: var(--mint); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .privacy-card { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; }
  .private-owl { width: 140px; }
  .lock { width: 52px; height: 52px; }
  .lock svg { width: 27px; height: 27px; }
}

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; max-width: 900px; margin: 0 auto; align-items: start; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--radius); padding: 34px;
}
.plan.featured { border: 2px solid var(--mint); }
.flag {
  position: absolute; top: -14px; left: 34px; background: var(--amber); color: var(--night);
  font-weight: 800; font-size: 14px; padding: 4px 12px; border-radius: 999px;
}
.price { font-size: 46px; font-weight: 800; margin: 14px 0 0; letter-spacing: -0.02em; }
.price small { font-size: 18px; color: var(--muted); font-weight: 600; }
.sub { color: var(--mint); font-weight: 700; margin: 4px 0 0; font-size: 16px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.plan li { padding-left: 30px; position: relative; color: #dbe3ee; }
.plan li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--mint); border-bottom: 2.5px solid var(--mint); transform: rotate(-45deg);
}
.button {
  display: block; text-align: center; margin-top: 28px; text-decoration: none;
  background: var(--mint); color: var(--night); font-weight: 800; font-size: 18px;
  padding: 16px; border-radius: 999px; transition: transform 0.2s, box-shadow 0.2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47, 230, 160, 0.35); }
.fine { text-align: center; color: #d4dde8; text-shadow: 0 1px 12px rgba(6, 11, 23, 0.6); font-size: 14px; max-width: 640px; margin: 28px auto 0; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--card-line); border-radius: 20px; padding: 0 24px; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; padding: 22px 34px 22px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  color: var(--mint); font-size: 28px; font-weight: 600; transition: rotate 0.25s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); margin: 0 0 22px; }

/* Closing */
.closing {
  position: relative; margin-top: 120px; padding: 90px 24px 260px; text-align: center; overflow: hidden; isolation: isolate;
}
.closing-inner { display: grid; justify-items: center; gap: 28px; padding-bottom: 6vh; }
.closing h2 { text-shadow: 0 2px 30px rgba(6, 11, 23, 0.6); }
.hint { font-size: 15px; color: #dfe7f1; opacity: 0.8; margin: 0; }
.closing { min-height: 100vh; display: grid; align-content: center; padding-bottom: calc(min(28.3vw, max(24vh, 15.6vw)) + 40px) !important; }

/* Footer */
.footer { background: linear-gradient(180deg, transparent, rgba(6, 12, 22, 0.55) 60%); text-shadow: 0 1px 10px rgba(6, 11, 23, 0.8); padding: 50px 24px calc(50px + env(safe-area-inset-bottom)); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 16px; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer nav a:hover { color: var(--text); }
.footer p { color: #6f7f95; font-size: 14px; margin: 0; max-width: 820px; }

/* MARK: Legal pages: the same moonlit sky and forest as the end of the home page, Dippy blinking at the top, and
   each part in its own navy card, the way the app's Settings groups things. */

.doc { max-width: 760px; margin: 0 auto; padding: 120px 20px calc(min(28.3vw, max(24vh, 15.6vw)) + 40px); display: grid; gap: 16px; }
.doc-head { text-align: center; display: grid; justify-items: center; gap: 6px; margin-bottom: 18px; }
.doc-owl { width: 120px; margin-bottom: 8px; animation: rise 1.1s var(--ease) both; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); text-shadow: 0 2px 30px rgba(6, 11, 23, 0.6); animation: rise 1.1s var(--ease) 0.08s both; }
.doc .updated { color: #cfd8e4; margin: 0; animation: rise 1.1s var(--ease) 0.16s both; }
.doc-card {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 24px; padding: 24px 28px;
  animation: rise 1.1s var(--ease) both; animation-delay: 0.24s;
}
.doc-card.lead { font-size: 20px; font-weight: 600; color: var(--text); }
.doc-card h2 { font-size: 20px; margin: 0 0 8px; color: var(--text); }
.doc-card p, .doc-card li { color: #cfd8e4; margin: 8px 0 0; }
.doc-card p:first-child { margin-top: 0; }
.doc-card ul { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 8px; }
.doc-card strong { color: var(--text); }
.doc a { color: var(--mint); }
.legal .nav-cta { margin-left: auto; }

/* The devices pop up together: the Mac rises into place, then the iPhone and the Apple Watch spring up beside it,
   with a little bounce, one after the other. */
.js .device-stage .mac { transform: translateY(60px) scale(0.92); opacity: 0; transition: transform 1.3s var(--ease), opacity 0.9s var(--ease); }
.js .device-stage .side-phone, .js .device-stage .side-watch {
  opacity: 0; transform: translateY(120px) scale(0.7);
  transition: opacity 0.6s var(--ease) 0.35s, transform 1.1s cubic-bezier(0.34, 1.45, 0.64, 1) 0.35s;
}
.js .device-stage .side-watch { transition-delay: 0.55s; }
.js .device-stage.in .mac, .js .device-stage.in .side-phone, .js .device-stage.in .side-watch { opacity: 1; transform: none; }
/* The stage itself doesn't move; its devices do. */
.js .device-stage.reveal { transform: none; opacity: 1; }

/* Asleep at the end of the page, Dippy breathes slowly, as he does in the app at night. */
.sleepy { position: relative; width: 200px; }
.sleepy img { width: 100%; transform-origin: 50% 100%; animation: breathe 4.2s ease-in-out infinite; }
/* The app's SleepingZs: they start at Dippy's top-right corner, just above his ear, and each z rises up and to the
   right, fading, over 2.4 seconds, a third of the way apart. */
.zs { position: absolute; left: 90%; top: 4%; width: 0; height: 0; pointer-events: none; }
.zs i {
  position: absolute; left: 0; bottom: 0; font-style: normal; font-weight: 900; line-height: 1;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif; color: #cfd8e4;
  animation: z-rise 2.4s linear infinite;
}
.zs i:nth-child(1) { font-size: 24px; }
.zs i:nth-child(2) { font-size: 32px; animation-delay: -0.8s; }
.zs i:nth-child(3) { font-size: 40px; animation-delay: -1.6s; }
@keyframes z-rise { from { translate: 0 0; opacity: 1; } to { translate: 50px -92px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .zs i:nth-child(1) { translate: 4px -8px; opacity: 0.9; }
  .zs i:nth-child(2) { translate: 22px -40px; opacity: 0.7; }
  .zs i:nth-child(3) { translate: 40px -74px; opacity: 0.5; }
}
@keyframes breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1 1.04; } }
.private-owl { position: relative; width: 170px; justify-self: center; }
.private-owl img { width: 100%; }
.lock {
  position: absolute; right: -6px; bottom: 4px; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint); color: var(--night);
  box-shadow: 0 0 0 5px var(--card), 0 12px 26px rgba(6, 11, 23, 0.4);
}
.lock svg { width: 32px; height: 32px; overflow: visible; }
.lock rect { fill: currentColor; }
.lock .shackle { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.js .privacy-card .lock { opacity: 0; scale: 0.3; transition: opacity 0.4s var(--ease) 0.7s, scale 0.8s cubic-bezier(0.34, 1.6, 0.64, 1) 0.7s; }
/* A real padlock: the shackle's long left leg stays in the body as the hinge. The lock arrives open, the shackle
   raised and swung round so its free leg stands out beside the body, like an open padlock lying on a table. Then the
   free leg swings round the hinge (seen from the front, a turn about the leg: its width goes through zero), lines up
   over its hole, and the shackle is pressed down into the body, and the badge clicks. */
.lock .shackle { transform-box: view-box; transform-origin: 8px 11px; }
.js .privacy-card .lock .shackle { transform: translateY(-3.5px) scaleX(-1); }
.js .privacy-card.in .lock { opacity: 1; scale: 1; animation: lock-click 0.35s ease-out 2.3s; }
.js .privacy-card.in .lock .shackle { animation: lock-shut 1.05s linear 1.3s both; }
@keyframes lock-shut {
  /* The swing, at even steps of the angle (180° to 0°), so it turns at a steady pace. */
  0% { transform: translateY(-3.5px) scaleX(-1); }
  9% { transform: translateY(-3.5px) scaleX(-0.87); }
  18% { transform: translateY(-3.5px) scaleX(-0.5); }
  27% { transform: translateY(-3.5px) scaleX(0); }
  36% { transform: translateY(-3.5px) scaleX(0.5); }
  45% { transform: translateY(-3.5px) scaleX(0.87); }
  54% { transform: translateY(-3.5px) scaleX(1); animation-timing-function: ease-in; }
  /* A beat over the hole, then pressed home. */
  72% { transform: translateY(-3.5px) scaleX(1); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.6); }
  100% { transform: none; }
}
@keyframes lock-click { 40% { transform: scale(0.88); } }
@media (prefers-reduced-motion: reduce) { .js .privacy-card .lock .shackle { transform: none; } }
