@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('bricolage-grotesque.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #101522;
  --navy-light: #263554;
  --cream: #f7f4ec;
  --ink: #fcfaf5;
  --muted: #b8c2d4;
  --cobalt: #3456d1;
  --pale-cobalt: #b9caff;
  --line: #ffffff24;
  --system: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', var(--system);
  font-family: var(--system);
  color: var(--ink);
  background: var(--navy);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .28em; }
:focus-visible { outline: 2px solid var(--pale-cobalt); outline-offset: 5px; }
.paper :focus-visible { outline-color: var(--cobalt); }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(2.7rem, 5.85vw, 5.6rem); line-height: .98; letter-spacing: -.055em; }
p { line-height: 1.6; }
.shell { width: min(71rem, calc(100% - 5rem)); margin-inline: auto; }
.skip {
  position: fixed; z-index: 3; top: 12px; left: 16px; transform: translateY(-160%);
  background: var(--cream); color: var(--navy); padding: 12px 18px; border-radius: 8px;
}
.skip:focus { transform: none; }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 90px; border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  font: 700 1.47rem/1 var(--display); letter-spacing: -.045em; text-decoration: none;
}
.brand img { flex: none; }
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 35px); }
.site-header nav a, .footer-links a {
  font-size: .94rem; font-weight: 500; text-decoration: none; color: var(--muted);
}
.site-header nav a:hover, .footer-links a:hover { color: var(--ink); text-decoration: underline; }

.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(34px, 6vw, 90px);
  align-items: center; padding-block: clamp(55px, 7.5vw, 108px) clamp(64px, 8.5vw, 116px);
}
.hero h1 {
  font-size: clamp(3.05rem, 6.4vw, 6.2rem); line-height: .96;
  letter-spacing: -.065em; margin-bottom: 25px; text-wrap: initial;
}
.hero h1 span { color: var(--pale-cobalt); }
.intro { font: 400 clamp(1.17rem, 1.9vw, 1.38rem)/1.38 var(--display); max-width: 28ch; }
.hero-detail { color: var(--muted); max-width: 38ch; margin-top: 12px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; }
.app-store-badge { display: inline-block; }
.app-store-badge img { width: 156px; height: auto; }
.text-link { font-size: .94rem; font-weight: 600; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--pale-cobalt); }
.paper .text-link:hover { color: var(--cobalt); }

.demo-wrap { min-width: 0; }
.demo-stage {
  position: relative; isolation: isolate; height: clamp(330px, 35vw, 450px); overflow: hidden; border-radius: 36px;
  background:
    radial-gradient(ellipse at 12% 12%, #526aa0 0, transparent 56%),
    radial-gradient(ellipse at 90% 100%, #454672 0, transparent 55%),
    linear-gradient(145deg, #2c3b60, #202a43 70%, #333a5a);
  border: 1px solid #ffffff2b;
  box-shadow: inset 0 1px 0 #ffffff1a, 0 25px 50px -30px #0009;
}
.blurred-home {
  position: absolute; inset: -10px 25px; filter: blur(13px); opacity: .36;
  user-select: none; z-index: -1;
}
.blur-clock { text-align: center; font-size: 68px; font-weight: 250; color: #cad3ee; padding-top: 12px; letter-spacing: -5px; }
.ghost-widget { width: 43%; height: 65px; margin: 15px 15px 20px; background: #93a2cc; border-radius: 18px; }
.ghost-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 20px; }
.ghost-apps i { width: 46px; height: 46px; background: #719cb2; border-radius: 13px; }
.ghost-apps i:nth-child(3n) { background: #b391b8; }
.ghost-apps i:nth-child(2n) { background: #7a85bd; }
.ghost-dock { height: 60px; margin: 30px 15px; background: #c8d5ff24; border-radius: 999px; }
.spotlight { position: absolute; top: 35%; left: 6%; right: 6%; }
.search-bar, .search-result {
  display: flex; align-items: center; gap: 11px;
}
.search-bar {
  min-height: 53px; padding: 11px 16px; border-radius: 999px; border: 1px solid #ffffff50;
  background: linear-gradient(170deg, #ffffff29, #ffffff12);
  box-shadow: inset 0 1px 1px #ffffff35, 0 10px 28px #0003;
  font-size: clamp(.94rem, 2vw, 1.13rem); letter-spacing: -.02em;
}
.search-bar svg { width: 21px; height: 21px; flex-shrink: 0; color: #d6def0; }
.cursor { height: 22px; width: 2px; flex-shrink: 0; background: #b9caff; margin-left: -9px; animation: blink 1s steps(2, start) infinite; }
.search-dismiss { margin-left: auto; font-size: 21px; color: #d6def0; font-weight: 300; }
.search-result {
  margin-top: 12px; min-height: 78px; padding: 12px 16px;
  border-radius: 25px; border: 1px solid #ffffff37;
  background: linear-gradient(145deg, #c7d5ff2b, #c7d5ff12);
  box-shadow: inset 0 1px 1px #ffffff29, 0 14px 30px #0003;
  transition: opacity .3s, transform .3s;
}
.search-result.is-hidden { opacity: 0; transform: translateY(7px); }
.result-icon { flex: none; }
.search-result p { font-size: 1rem; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.search-result .result-meta { font-size: .79rem; color: #dee5f6; font-weight: 400; margin-top: 4px; }
.result-arrow { margin-left: auto; color: #d6def0; }
.demo-caption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 10px 4px 0; color: var(--muted); font-size: .8rem;
}
.demo-caption button {
  background: none; border: 0; padding: 2px 0; color: inherit;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
@keyframes blink { to { visibility: hidden; } }

.paper { color-scheme: light; background: var(--cream); color: var(--navy); }
.stack { padding-block: clamp(59px, 8.3vw, 112px); }
.section-heading {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  align-items: end; margin-bottom: clamp(34px, 5vw, 61px);
}
.section-heading > p, .chapter-copy > p:not(.eyebrow) { font-size: clamp(1.04rem, 1.6vw, 1.26rem); max-width: 37ch; }
.section-heading > p { padding-bottom: .16em; color: #424d61; }
.eyebrow { color: var(--pale-cobalt); font-size: .89rem; font-weight: 650; margin-bottom: 15px; }
.paper .eyebrow { color: #2c4dbd; }
.device-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 36px);
}
.device-stage img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 16px #10152250);
}
.stack-stage {
  display: grid;
  grid-template-columns: 26% 26% 18%;
  justify-content: center;
  align-items: end;
  gap: clamp(8px, 2.4vw, 28px);
  padding-block: clamp(28px, 5vw, 68px);
  background: radial-gradient(ellipse at 50% 48%, #f2f5ff 5%, #d4dffa 90%);
}
.stack-note { color: #424d61; margin-top: 20px; max-width: 65ch; }

.capture, .chapter {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 107px); align-items: center; padding-block: clamp(62px, 8.8vw, 124px);
}
.chapter-copy h2 { margin-bottom: 23px; }
.chapter-copy > p:not(.eyebrow) { color: #e4e9f3; }
.chapter-copy .secondary { margin-top: 16px; }
.chapter-copy > p.secondary { color: var(--muted); font-size: 1rem; }
.paper .chapter-copy > p:not(.eyebrow) { color: #343f54; }
.device-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: clamp(8px, 1.6vw, 20px);
  padding: clamp(22px, 4vw, 48px) clamp(18px, 3vw, 36px);
}
.capture-art {
  background: radial-gradient(ellipse at 50% 50%, #536fae, #283b6b 85%);
}
.library-art {
  background: radial-gradient(ellipse at 50% 50%, #f4f6ff, #d4dffa 85%);
}
.detail-art {
  background: radial-gradient(ellipse at 50% 50%, #405583, #25334e 85%);
}
.sync { padding-block: clamp(64px, 8.8vw, 124px); }
.sync .section-heading > p { color: var(--muted); }
.sync-stage {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: end;
  padding: clamp(22px, 5vw, 64px) clamp(16px, 3vw, 42px);
  background: radial-gradient(ellipse at 62% 44%, #3a507e, #25334e 80%);
}
.sync-stage a { display: block; }
.sync-ipad { z-index: 1; }
.sync-mac { margin-inline-start: calc(-1 * clamp(5px, 1.25vw, 16px)); }

.closing-inner {
  display: grid; grid-template-columns: 1fr .7fr; gap: clamp(24px, 7vw, 90px); align-items: center;
  padding-block: clamp(62px, 8vw, 108px);
}
.closing h2 { font-size: clamp(2.6rem, 5.3vw, 4.75rem); margin-bottom: 24px; }
.privacy-copy { border-left: 1px solid #3456d17d; padding-left: clamp(19px, 3vw, 37px); }
.privacy-copy h3 { font-size: 1.55rem; letter-spacing: -.025em; margin-bottom: 8px; }
.privacy-copy p { color: #424d61; max-width: 40ch; margin-bottom: 12px; }

.site-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding-block: 29px; }
body:not(.home-page) .site-footer { border-top: 1px solid var(--line); }
.site-footer .brand { font-size: 1.18rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.copyright { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; }
.legal { max-width: 760px; padding-block: 58px 80px; }
.legal h1 { font-size: clamp(2.55rem, 6vw, 4rem); letter-spacing: -.05em; margin-bottom: 12px; }
.legal .updated { font-size: .86rem; margin-bottom: 26px; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal .legal-lead { font-size: 1.16rem; color: var(--ink); margin-bottom: 24px; }
.legal h2 { font-size: 1.36rem; line-height: 1.22; letter-spacing: -.025em; margin: 33px 0 12px; }
.button { display: inline-block; text-decoration: none; background: var(--cobalt); color: white; padding: 11px 17px; border-radius: 8px; }
.button:hover { background: #435fe0; }
.contact-line { margin: 13px 0; }
.legal details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.legal details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; line-height: 1.6; }
details p { margin-top: 9px; }
::selection { background: #3456d1; color: white; }

@media (max-width: 850px) {
  .shell { width: calc(100% - 3rem); }
  .hero { gap: 28px; }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 2.5rem); }
  .site-header { min-height: 69px; }
  .site-header .brand { font-size: 1.18rem; }
  .site-header .brand img { width: 31px; height: 31px; }
  .site-header nav { gap: 11px; }
  .site-header nav a { font-size: .85rem; }
  .hero, .section-heading, .capture, .chapter, .closing-inner { grid-template-columns: 1fr; }
  .hero { gap: 33px; }
  .hero h1 { font-size: clamp(2.8rem, 11.6vw, 4.7rem); margin-bottom: 18px; }
  .hero-actions { margin-top: 21px; }
  .demo-stage { height: clamp(275px, 70vw, 380px); border-radius: 26px; }
  .section-heading { gap: 15px; }
  .stack-stage {
    grid-template-columns: 30% 30% 21%;
    padding-block: 30px;
  }
  .stack-note { margin-top: 12px; }
  .chapter { gap: 26px; }
  .library .chapter-copy { grid-row: 1; }
  .chapter-copy h2 { margin-bottom: 16px; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (max-width: 365px) {
  .shell { width: calc(100% - 2rem); }
  .site-header .brand { gap: 6px; }
  .site-header nav { gap: 8px; }
  .site-header nav a { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cursor { display: none; }
}
