/* Skyfold site. Dark like the app; no external fonts, scripts or trackers. */
:root {
  color-scheme: dark;
  --bg: #0d1016;
  --bg-2: #131823;
  --card: #171c25;
  --card-2: #1c2230;
  --line: #262e3d;
  --line-2: #323c4f;
  --ink: #edf1f7;
  --muted: #9ba7b9;
  --soft: #c3ccd9;
  --accent: #8fb8ff;
  --accent-ink: #0e1a2e;
  --blue: #4f8dff;
  --green: #7ad3a0;
  --amber: #f3c969;
  --pink: #f36c8c;
  --radius: 18px;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 84px }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { transition: none !important }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0 }
img { display: block; max-width: 100%; height: auto }
a { color: var(--accent); text-underline-offset: .18em }
a:hover { text-decoration-thickness: 2px }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px }
code, .path { font-family: var(--mono); font-size: .88em }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 8px 14px; background: var(--card); border-radius: 8px }
.skip:focus { top: 12px }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 16, 22, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--line) }
.bar { display: flex; align-items: center; gap: 28px; height: 68px }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 650 20px/1 var(--display); letter-spacing: -.01em }
.brand img { width: 32px; height: 32px; border-radius: 8px }
.nav { display: flex; gap: 24px; margin-left: auto }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550 }
.nav a:hover { color: var(--ink) }
.btn-sm { padding: 8px 14px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600 }
.btn-sm:hover { border-color: var(--muted) }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px;
  font-weight: 650; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none }
.btn-primary { background: var(--accent); color: var(--accent-ink) }
.btn-primary:hover { background: #a9c8ff }
.btn-ghost { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, .02) }
.btn-ghost:hover { border-color: var(--muted) }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: translateY(1px) } }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(79, 141, 255, .22), rgba(79, 141, 255, 0) 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center }
.eyebrow { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px }
.chip { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--soft); background: var(--card); border: 1px solid var(--line) }
.chip.beta { color: var(--amber); border-color: rgba(243, 201, 105, .35); background: rgba(243, 201, 105, .08) }
h1 { font: 700 clamp(44px, 6.2vw, 76px)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance }
h1 .grad { background: linear-gradient(100deg, #9cc2ff 10%, #6f9dff 55%, #b6a3ff 95%); -webkit-background-clip: text; background-clip: text; color: transparent }
.nobr { white-space: nowrap }
.lede { margin-top: 22px; max-width: 34em; font-size: 19px; color: var(--soft) }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted) }
.fine a { color: var(--muted) }

.hero-shot { position: relative; justify-self: center; width: min(100%, 400px) }
.hero-shot::after {
  content: ""; position: absolute; inset: 8% -12% -6% -12%; z-index: -1;
  background: radial-gradient(closest-side, rgba(111, 157, 255, .35), transparent 75%); filter: blur(10px);
}

.window {
  border-radius: 14px; overflow: hidden; background: #1b1f27;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 60px -20px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .6);
}

/* Map: where everything goes */
.section { padding: 96px 0 }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line) }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent) }
h2 { margin-top: 10px; font: 700 clamp(32px, 4vw, 48px)/1.08 var(--display); letter-spacing: -.025em; text-wrap: balance }
.section-lede { margin-top: 16px; max-width: 40em; color: var(--soft); font-size: 18px }

.map { margin-top: 44px; display: grid; gap: 12px }
.route {
  display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1.25fr); align-items: center; gap: 8px;
  padding: 18px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.from { display: flex; align-items: center; gap: 14px; min-width: 0 }
.ico {
  --c: 143, 184, 255;
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  color: rgb(var(--c));
  background: linear-gradient(145deg, rgba(var(--c), .24), rgba(var(--c), .06));
  border: 1px solid rgba(var(--c), .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 6px 18px -10px rgba(var(--c), .6);
}
.ico svg { width: 24px; height: 24px }
.ico.pink { --c: 246, 128, 158 }
.ico.blue { --c: 125, 172, 255 }
.ico.amber { --c: 243, 201, 105 }
.ico.violet { --c: 182, 163, 255 }
.from b { display: block; font-size: 17px }
.from .name span { display: block; font-size: 14px; color: var(--muted) }
.dir { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 650; color: var(--muted); text-align: center; line-height: 1.2 }
.dir svg { width: 56px; height: 18px }
.two { color: var(--green) }
.one { color: var(--accent) }
.to { min-width: 0 }
.to .path { display: block; padding: 10px 14px; border-radius: 10px; background: #0b0e13; border: 1px solid var(--line); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.to small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted) }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0 }
.feature + .feature { border-top: 1px solid var(--line) }
.feature.flip .copy { order: 2 }
.feature h3 { margin-top: 10px; font: 700 clamp(26px, 3vw, 36px)/1.12 var(--display); letter-spacing: -.02em; text-wrap: balance }
.feature p { margin-top: 14px; color: var(--soft) }
.ticks { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 10px }
.ticks li { position: relative; padding-left: 30px; color: var(--soft) }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(122, 211, 160, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237ad3a0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.ticks b { color: var(--ink); font-weight: 650 }
.feature p.note { margin-top: 20px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); font-size: 15px; color: var(--muted) }
.note b { color: var(--soft) }
.shot { justify-self: center; width: 100% }
.shot.narrow { max-width: 440px }
.shot.mid { max-width: 520px }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center }
.feature.wide { display: block }
.feature.wide .copy { max-width: 720px }
.notes-shot { margin-top: 44px }
.gallery-shot { margin-top: 44px }
.kicker .new { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(243, 201, 105, .16); color: var(--amber); font-size: 12px; letter-spacing: .04em; vertical-align: 1px }

/* Video */
.video-sec { text-align: center; padding-bottom: 32px }
.video-sec h2 { margin: 6px auto 28px; max-width: 760px }
.video { margin: 0 auto; max-width: 1040px }
.video video { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line-2); background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .45) }
.video figcaption { margin-top: 12px; font-size: 14px; color: var(--muted) }
@media (max-width: 600px) {
  .video { max-width: 360px }
}
.notes-shot .window { background: #fff }

/* Extras grid */
.extras { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.extra { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line) }
.extra .ico { margin-bottom: 14px }
.extra h3 { font-size: 17px; font-weight: 650 }
.extra p { margin-top: 6px; font-size: 15px; color: var(--muted) }

/* Safety */
.safety-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; margin-top: 8px }
.cards { display: grid; gap: 12px; margin-top: 28px }
.card { padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line) }
.card h3 { font-size: 16px; font-weight: 650 }
.card p { margin-top: 4px; font-size: 15px; color: var(--muted) }
.beta-note { margin-top: 20px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(243, 201, 105, .3); background: rgba(243, 201, 105, .06); font-size: 15px; color: var(--soft) }
.beta-note b { color: var(--amber) }

/* Fit: for you / keep Apple's app */
.fit { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.fit > div { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card) }
.fit .yes { background: linear-gradient(180deg, rgba(79, 141, 255, .1), rgba(79, 141, 255, 0) 60%), var(--card); border-color: rgba(143, 184, 255, .3) }
.fit h3 { font: 650 20px/1.3 var(--display) }
.fit ul { margin-top: 14px; padding-left: 20px; color: var(--soft); display: grid; gap: 8px }
.fit .no ul { color: var(--muted) }

/* Privacy */
.privacy { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px }
.privacy > div { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line) }
.privacy h3 { font-size: 17px; font-weight: 650 }
.privacy p { margin-top: 8px; font-size: 15px; color: var(--muted) }

/* Install */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; list-style: none; padding: 0 }
.steps li { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); counter-increment: s }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 750;
}
.steps h3 { font-size: 18px; font-weight: 650 }
.steps p { margin-top: 6px; font-size: 15px; color: var(--muted) }
.reqs { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 60em }
.reqs b { color: var(--soft) }

/* FAQ */
.faq { margin-top: 36px; display: grid; gap: 10px; max-width: 860px }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line) }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; position: relative; font-weight: 650 }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px }
.faq details > div { padding: 0 22px 20px; color: var(--soft); font-size: 16px }
.faq details > div p + p { margin-top: 10px }

/* Final call */
.final { text-align: center; padding: 104px 0 }
.final img { width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 22px; box-shadow: 0 20px 50px -10px rgba(79, 141, 255, .45) }
.final .cta { justify-content: center }
.final p.section-lede { margin-inline: auto }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted) }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px }
.foot nav a { color: var(--soft); text-decoration: none }
.foot nav a:hover { text-decoration: underline }
.legal { margin-top: 20px; max-width: 72em }

/* Responsive */
@media (max-width: 980px) {
  .nav { gap: 18px }
  .nav .wide-only { display: none }
  .to .path { white-space: normal; line-height: 1.5 }
  .hero { padding-top: 44px }
  .hero-grid, .feature, .safety-grid { grid-template-columns: 1fr; gap: 40px }
  .feature.flip .copy { order: 0 }
  .hero-shot { width: min(100%, 360px) }
  .extras, .privacy, .steps { grid-template-columns: 1fr 1fr }
  .section { padding: 72px 0 }
  .feature { padding: 48px 0 }
}
@media (max-width: 680px) {
  body { font-size: 16px }
  .wrap { width: calc(100% - 32px) }
  .bar { gap: 12px }
  .btn-sm { display: none }
  .lede { font-size: 17px }
  .route { grid-template-columns: 1fr; gap: 12px; padding: 18px }
  .dir { flex-direction: row; gap: 6px; justify-content: flex-start; padding-left: 62px; font-size: 13px }
  .dir svg { display: none }
  .dir.two::before { content: "\2195" }
  .dir.one::before { content: "\2193" }
  .to .path { white-space: normal; font-size: 13px; line-height: 1.5 }
  .extras, .privacy, .steps, .fit { grid-template-columns: 1fr }
  .cta .btn { flex: 1 1 auto; justify-content: center }
}

/* Motion: a few quiet touches; all off when the visitor asks for reduced motion. */
.extra, .privacy > div, .steps li, .route, .card, .fit > div, .faq details {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.ico { transition: color .25s ease, border-color .25s ease, box-shadow .25s ease }
.extra:hover, .privacy > div:hover, .steps li:hover, .route:hover, .card:hover {
  border-color: rgba(143, 184, 255, .32);
  box-shadow: 0 14px 34px -18px rgba(79, 141, 255, .45);
}
.extra:hover .ico, .route:hover .ico {
  border-color: rgba(var(--c), .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 22px -2px rgba(var(--c), .6);
}
.btn-primary { position: relative; overflow: hidden; transition: transform .15s ease, background .15s ease, box-shadow .25s ease }
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(143, 184, 255, .6) }

@media (prefers-reduced-motion: no-preference) {
  /* Logo: a slow blue glow that breathes */
  @keyframes glow {
    from { box-shadow: 0 0 0 1px rgba(143, 184, 255, .12), 0 10px 30px -12px rgba(79, 141, 255, .35) }
    to   { box-shadow: 0 0 0 1px rgba(143, 184, 255, .32), 0 18px 60px -6px rgba(79, 141, 255, .75) }
  }
  @keyframes glow-sm {
    from { box-shadow: 0 0 0 0 rgba(79, 141, 255, 0) }
    to   { box-shadow: 0 0 14px 1px rgba(79, 141, 255, .55) }
  }
  .final img { animation: glow 3.2s ease-in-out infinite alternate }
  .top .brand img { animation: glow-sm 3.2s ease-in-out infinite alternate }

  /* Hero: the light behind the panel breathes, the gradient words drift */
  @keyframes breathe { from { opacity: .55; transform: scale(.94) } to { opacity: 1; transform: scale(1.04) } }
  .hero-shot::after { animation: breathe 5s ease-in-out infinite alternate }
  @keyframes drift { from { background-position: 0% 50% } to { background-position: 100% 50% } }
  h1 .grad { background-size: 200% 100%; animation: drift 7s ease-in-out infinite alternate }

  /* Folder map: arrows nudge in the direction things travel */
  @keyframes nudge { 0%, 100% { transform: translateX(-3px) } 50% { transform: translateX(3px) } }
  @keyframes swap { 0%, 100% { opacity: .55 } 50% { opacity: 1 } }
  .dir.one svg { animation: nudge 2.4s ease-in-out infinite }
  .dir.two svg { animation: swap 2.4s ease-in-out infinite }

  /* Cards lift a little under the pointer */
  .extra:hover, .privacy > div:hover, .steps li:hover, .card:hover { transform: translateY(-3px) }

  /* Primary button: a light sweep on hover */
  .btn-primary::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  }
  .btn-primary:hover::after { transform: translateX(120%); transition: transform .7s ease }

  /* Sections fade in as they scroll into view (only when the script runs) */
  .js .reveal { opacity: 0; transform: translateY(18px) }
  .js .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease }
}
