/* nextlift.app: the app's own look. Iron orange on ink, chalk cards, monospaced
   eyebrow labels and serif numbers, all from system fonts (nothing to download). */

:root {
  --iron: #f5612e;
  --iron-bright: #ff7842;
  --iron-deep: #934228;
  --chalk: #f5f1e8;
  --paper: #fbf9f4;
  --ink: #1c1d21;
  --ink-2: #26272c;
  --steel: #6c7078;
  --steel-light: #9ba0a9;
  --divider: #e2ded4;
  --brass: #c9a227;
  --radius: 22px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { 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;
  font: 17px/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--iron-deep); text-underline-offset: 3px; }
a:hover { color: var(--iron); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }

.eyebrow {
  font: 600 0.78rem/1.2 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 14px;
}
.eyebrow.on-dark { color: rgba(245, 241, 232, 0.7); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(28, 29, 33, 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  color: var(--chalk);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { border-radius: 22%; }
.brand:hover { color: inherit; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav .links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav .links a { color: rgba(245, 241, 232, 0.8); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav .links a:hover, .nav .links a[aria-current] { color: var(--chalk); }
.nav .get {
  background: var(--iron); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.92rem;
  padding: 8px 16px; border-radius: 999px;
}
.nav .get:hover { background: var(--iron-bright); color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: var(--chalk); width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }
/* The links are a popover only on phones; on wide screens they sit in the bar. */
@media (min-width: 821px) {
  .nav .links[popover] { display: flex; position: static; inset: auto; border: 0; padding: 0; margin: 0; background: none; overflow: visible; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav .links { display: none; }
  .nav .links:popover-open {
    display: grid; gap: 4px; position: fixed; inset: 64px 12px auto auto; margin: 0;
    background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
    padding: 10px; min-width: 200px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
  .nav .links:popover-open a { display: block; padding: 10px 12px; color: var(--chalk); }
}

/* Hero */
.hero {
  color: var(--chalk);
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(245, 97, 46, 0.35), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, #23201f 100%);
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: rgba(245, 241, 232, 0.85); max-width: 34em; }
.hero .small { font-size: 0.9rem; color: rgba(245, 241, 232, 0.6); margin-top: 18px; }
.cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.text-link { color: var(--chalk); font-weight: 600; }
.text-link:hover { color: #fff; }
.badge img { height: 50px; width: auto; }
.hero-shots { position: relative; display: flex; justify-content: center; }
.hero-shots .phone { width: min(300px, 70%); }
.hero-shots .watch { position: absolute; width: 150px; right: 6%; bottom: -12px; }
@media (max-width: 820px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shots .watch { width: 110px; right: 4%; }
}

/* Device frames (CSS only) and placeholders */
.device { margin: 0; position: relative; }
.device img, .device .placeholder { width: 100%; }
.device.phone { border-radius: 44px; padding: 9px; background: #0d0d0f; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #3a3b40; }
.device.phone img, .device.phone .placeholder { border-radius: 36px; }
.device.phone .placeholder { aspect-ratio: 1206 / 2622; }
.device.watch { border-radius: 30%/26%; padding: 11px; background: #0d0d0f; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #3a3b40; }
.device.watch img, .device.watch .placeholder { border-radius: 24%/20%; }
.device.watch .placeholder { aspect-ratio: 422 / 514; }
.device.tablet { border-radius: 30px; padding: 12px; background: #0d0d0f; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.4), inset 0 0 0 2px #3a3b40; }
.device.tablet img, .device.tablet .placeholder { border-radius: 18px; }
.device.tablet .placeholder { aspect-ratio: 2064 / 2752; }
.placeholder {
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #2b2c31 0 12px, #232428 12px 24px);
  color: var(--steel-light); font: 0.75rem var(--mono);
}

/* Why */
.why { padding: 88px 0 40px; }
.why p { font-size: 1.15rem; color: #3d3f45; }

/* Benefits */
.benefits { padding: 32px 0 72px; }
.benefit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-grid li { background: #fff; border: 1px solid var(--divider); border-radius: var(--radius); padding: 28px; }
.benefit-grid .num { display: block; font: 700 2.2rem/1 var(--serif); color: var(--iron); margin-bottom: 14px; }
.benefit-grid p { color: #4a4c52; margin: 0; }
@media (max-width: 820px) { .benefit-grid { grid-template-columns: 1fr; } }

/* Features */
.features { padding: 80px 0; background: var(--chalk); }
.features > .wrap > h2 { max-width: 18em; margin: 0 auto 56px; }
.feature { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; padding: 36px 0; }
.feature.flip { grid-template-columns: 1fr 300px; }
.feature.flip .device { order: 2; }
.feature-text p { color: #45474d; }
.feature-text h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
@media (max-width: 820px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature .device, .feature.flip .device { order: 0; width: min(280px, 80%); margin-inline: auto; }
}

/* Watch band */
.watch {
  color: var(--chalk); padding: 88px 0;
  background: radial-gradient(ellipse 60% 70% at 20% 50%, rgba(245, 97, 46, 0.28), transparent 70%), var(--ink);
}
.watch .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.watch h2 { color: #fff; }
.watch p { color: rgba(245, 241, 232, 0.82); }
.watch-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .watch .wrap { grid-template-columns: 1fr; } }

/* More */
.more { padding: 80px 0; }
.more .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.more-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.more-grid h3 { font-size: 1.1rem; }
.more-grid p { color: #4a4c52; margin: 0; }
@media (max-width: 820px) {
  .more .wrap, .more-grid { grid-template-columns: 1fr; }
  .ipad { width: min(420px, 100%); margin-inline: auto; }
}

/* FAQ */
.faq { padding: 80px 0; background: var(--chalk); }
.faq details { background: #fff; border: 1px solid var(--divider); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--iron); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #45474d; }
.faq-more { margin-top: 24px; }

/* Download */
.download { padding: 88px 0; text-align: center; }
.download img { margin: 0 auto 22px; border-radius: 22%; box-shadow: 0 16px 36px -12px rgba(147, 66, 40, 0.5); }
.download .badge { display: inline-block; margin-top: 8px; }
.download p { color: var(--steel); }

/* Page head and body (Markdown pages, help, releases) */
.pagehead {
  color: var(--chalk); padding: 64px 0 52px;
  background: radial-gradient(ellipse 60% 90% at 85% 0%, rgba(245, 97, 46, 0.3), transparent 70%), var(--ink);
}
.pagehead h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.pagehead .lead { color: rgba(245, 241, 232, 0.8); font-size: 1.15rem; max-width: 40em; margin: 0; }
.pagehead .eyebrow { color: rgba(245, 241, 232, 0.65); }
.pagebody { padding: 48px 0 88px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { font-weight: 700; }
.prose code { font: 0.9em var(--mono); background: var(--chalk); padding: 1px 5px; border-radius: 6px; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; background: var(--chalk); border-left: 4px solid var(--iron); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin: 0; }

/* Help */
.help-sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 40px; margin-bottom: 48px; }
@media (max-width: 820px) { .help-sections { grid-template-columns: 1fr; } }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-card { display: grid; gap: 2px; padding: 16px 18px; background: #fff; border: 1px solid var(--divider); border-radius: 16px; text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: var(--iron); color: var(--ink); }
.guide-card span { color: var(--steel); font-size: 0.93rem; }
.guide.with-screen { display: grid; grid-template-columns: 1fr 260px; gap: 56px; align-items: start; }
.guide.with-screen .device { order: 2; position: sticky; top: 96px; }
@media (max-width: 820px) {
  .guide.with-screen { grid-template-columns: 1fr; }
  .guide.with-screen .device { order: 0; position: static; width: min(240px, 70%); margin-inline: auto; }
}
.guide-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--divider); }
.guide-nav a { text-decoration: none; font-weight: 600; }
.guide-nav span { display: block; font: 600 0.72rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.guide-nav .next { text-align: right; }
.guide-nav .all { font-size: 0.9rem; }

/* Contact */
.contact-card { background: #fff; border: 1px solid var(--divider); border-radius: var(--radius); padding: 28px; margin-bottom: 36px; max-width: 720px; }
.contact-card p { margin: 16px 0 0; color: var(--steel); }
.button { display: inline-block; background: var(--iron); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; }
.button:hover { background: var(--iron-bright); color: #fff; }

/* Releases */
.releases { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.release { display: grid; grid-template-columns: 160px 1fr; gap: 28px; scroll-margin-top: 90px; }
.release .when h2 { font: 700 2rem/1 var(--serif); margin: 0 0 6px; }
.release .when h2 a { color: var(--ink); text-decoration: none; }
.release .when time, .release .when .soon { font: 600 0.78rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
.release .when .soon { color: var(--iron-deep); }
.release .card { background: #fff; border: 1px solid var(--divider); border-radius: var(--radius); padding: 22px 26px; }
.group + .group { margin-top: 14px; }
.tag { display: inline-block; font: 700 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.tag.new { background: rgba(245, 97, 46, 0.14); color: var(--iron-deep); }
.tag.improved { background: rgba(201, 162, 39, 0.18); color: #7a6214; }
.tag.fixed { background: rgba(108, 112, 120, 0.15); color: #4a4c52; }
.group ul { margin: 10px 0 0; padding-left: 1.2em; }
.group li { margin-bottom: 6px; }
@media (max-width: 820px) { .release { grid-template-columns: 1fr; gap: 10px; } }

/* Footer */
footer { background: var(--ink); color: rgba(245, 241, 232, 0.7); padding: 48px 0; font-size: 0.92rem; }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
footer .brand { color: var(--chalk); margin-bottom: 10px; }
footer a { color: rgba(245, 241, 232, 0.85); }
footer a:hover { color: #fff; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer .foot-brand small { display: block; }
footer .credit { display: grid; gap: 6px; justify-items: end; text-align: right; }
@media (max-width: 820px) {
  footer .wrap { grid-template-columns: 1fr; }
  footer .credit { justify-items: start; text-align: left; }
}
