:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --green: #17784b;
  --surface: #f5f5f7;
  --line: #d2d2d7;
  --wrap: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; font: inherit; }
figure, p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; width: 100%; height: auto; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #0071e3; outline-offset: 4px; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: #fff; box-shadow: 0 4px 22px #0002; }
.skip-link:focus { top: 12px; }

h1, h2, h3 { font-weight: 650; letter-spacing: -.055em; line-height: 1.12; text-wrap: wrap; }
h1 { font-size: clamp(60px, 8.2vw, 112px); }
h2 { font-size: clamp(42px, 5.2vw, 68px); }
h3 { font-size: 24px; }
.eyebrow { margin-bottom: 16px; color: var(--green); font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.section-heading { text-align: center; }
.section-heading > p:last-child { max-width: 740px; margin: 22px auto 0; color: var(--muted); font-size: 21px; font-weight: 500; }
.button, .nav-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 500; }
.button { min-height: 48px; padding: 10px 24px; }
.primary { background: var(--green); color: #fff; transition: background .2s, transform .2s; }
.primary:hover { background: #0c643c; transform: translateY(-1px); }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid #0000000d; background: #ffffffdd; -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); }
.nav { display: flex; align-items: center; gap: 30px; height: 64px; }
.wordmark { font-size: 22px; font-weight: 650; letter-spacing: -.06em; white-space: nowrap; }
.nav-links { display: flex; gap: 28px; margin-left: auto; color: #424245; font-size: 14px; }
.nav-links a:hover { color: var(--green); }
.nav-pill { min-height: 34px; padding: 5px 16px; background: var(--green); color: #fff; font-size: 13px; }

.hero { padding: 76px 0 70px; text-align: center; }
.hero-copy { max-width: 1120px; }
.hero h1 span { display: inline-block; max-width: 100%; color: var(--green); }
.hero-value { margin: 22px auto 28px; color: var(--muted); font-size: 23px; font-weight: 500; }
.device-trio { display: grid; grid-template-columns: minmax(190px, .58fr) minmax(320px, 1fr) minmax(320px, 1fr); align-items: end; gap: 32px; margin-top: 70px; }
.device-frame { margin: 0; text-align: center; }
.device-frame figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; }
.image-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.device-shell { position: relative; overflow: visible; isolation: isolate; }
.device-shell > img { position: relative; z-index: 1; display: block; width: 100%; height: auto; transition: opacity .2s; }
.device-shell .device-hardware { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.image-button:hover img { opacity: .94; }
.phone-frame .device-shell, .screen-rail figure[data-device=phone] .device-shell { padding: 0; border: 7px solid #191a1c; outline: 1px solid #8e9194; outline-offset: 1px; border-radius: 32px; background: #191a1c; box-shadow: 0 5px 13px #0002; }
.phone-frame .device-shell > img, .screen-rail figure[data-device=phone] .device-shell > img { border-radius: 25px; }
.phone-frame .device-shell::before, .screen-rail figure[data-device=phone] .device-shell::before { content: ""; position: absolute; z-index: 3; top: 1.5%; left: 50%; width: 27.6%; aspect-ratio: 3.62; transform: translateX(-50%); border-radius: 999px; background: #111214; pointer-events: none; }
.phone-frame .device-hardware, .screen-rail figure[data-device=phone] .device-hardware { inset: -7px; }
.phone-frame .device-hardware::before, .screen-rail figure[data-device=phone] .device-hardware::before { content: ""; position: absolute; left: -4px; top: 18%; width: 3px; height: 28px; border-radius: 3px 0 0 3px; background: #767a7d; box-shadow: 0 38px #767a7d, 0 76px #767a7d; }
.phone-frame .device-hardware::after, .screen-rail figure[data-device=phone] .device-hardware::after { content: ""; position: absolute; right: -4px; top: 27%; width: 3px; height: 42px; border-radius: 0 3px 3px 0; background: #767a7d; }
.ipad-frame .device-shell, .screen-rail figure[data-device=ipad] .device-shell { padding: 0; border: 12px solid #1b1c1e; outline: 1px solid #85888a; outline-offset: 1px; border-radius: 26px; background: #1b1c1e; box-shadow: 0 5px 13px #0002; }
.ipad-frame .device-shell > img, .screen-rail figure[data-device=ipad] .device-shell > img { border-radius: 14px; }
.ipad-frame .device-hardware, .screen-rail figure[data-device=ipad] .device-hardware { inset: -12px; }
.ipad-frame .device-hardware::before, .screen-rail figure[data-device=ipad] .device-hardware::before { content: ""; position: absolute; z-index: 3; left: 4px; top: 50%; width: 6px; aspect-ratio: 1; transform: translateY(-50%); border: 1px solid #676a6d; border-radius: 50%; background: #090a0b; box-shadow: inset 0 0 0 1px #000; }
.mac-frame .device-shell, .screen-rail figure[data-device=mac] .device-shell { width: 92%; margin-inline: auto; padding: 7px 7px 16px; border: 1px solid #43464a; border-radius: 20px 20px 8px 8px; background: linear-gradient(#26292c, #0f1012); box-shadow: 0 6px 15px #0002; }
.mac-frame .device-shell > img, .screen-rail figure[data-device=mac] .device-shell > img { border-radius: 12px 12px 3px 3px; }
.mac-frame .device-hardware::after, .screen-rail figure[data-device=mac] .device-hardware::after { content: ""; position: absolute; z-index: 3; left: -4%; right: -4%; bottom: -11px; height: 12px; border-radius: 2px 2px 8px 8px; background: linear-gradient(#44484c, #202225); box-shadow: inset 0 -1px #08090a; }
.mac-frame .device-hardware::before, .screen-rail figure[data-device=mac] .device-hardware::before { content: ""; position: absolute; z-index: 4; left: 50%; bottom: -11px; width: 16%; height: 3px; transform: translateX(-50%); border-radius: 0 0 4px 4px; background: #101113; }
.device-trio .phone-frame { width: min(100%, 292px); justify-self: center; }

.feature-section { padding-block: 130px; }
.collect-section, .prepare-section { background: var(--surface); }
.association-section { background: #fff; }
.two-phone-frames, .three-phone-frames, .four-phone-frames { display: grid; align-items: start; justify-content: center; margin-top: 60px; }
.two-phone-frames { grid-template-columns: repeat(2, minmax(0, 260px)); gap: 42px; }
.three-phone-frames { grid-template-columns: repeat(3, minmax(0, 220px)); gap: 30px; }
.four-phone-frames { grid-template-columns: repeat(4, minmax(0, 190px)); gap: 22px; }
.two-phone-frames .phone-frame, .three-phone-frames .phone-frame, .four-phone-frames .phone-frame { width: 100%; }
.channel-icons { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; max-width: 800px; margin: 56px auto 0; }
.channel-icons span { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #424245; font-size: 13px; }
.channel-icons img { width: 25px; height: 25px; }
.three-notes, .apple-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.three-notes p, .apple-notes p { margin: 0; color: var(--muted); font-size: 16px; }
.three-notes b, .apple-notes b { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 650; }

.format-picker { display: flex; width: max-content; gap: 4px; margin: 42px auto 0; padding: 4px; border-radius: 24px; background: #e3e3e7; }
.format-picker button { min-height: 37px; padding: 6px 22px; border: 0; border-radius: 20px; background: transparent; font-size: 15px; }
.format-picker button[aria-selected=true] { background: #fff; box-shadow: 0 1px 5px #00000010; }
.format-panel { max-width: 500px; min-height: 106px; margin: 20px auto 0; text-align: center; }
.format-panel p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.apple-section { background: #fff; color: var(--ink); }
.apple-section .eyebrow { color: var(--green); }
.apple-section .section-heading > p { color: var(--muted); }
.apple-notes { margin-top: 52px; }
.apple-notes p { color: var(--muted); }
.apple-notes b { color: var(--ink); }
.two-wide-frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 62px; }
.two-wide-frames .device-frame figcaption { color: var(--muted); }

.screens-section { padding-block: 84px; }
.gallery-heading { text-align: center; }
.gallery-heading > p:last-child { margin-top: 16px; color: var(--muted); font-size: 17px; }
.screen-browser { width: 100%; padding: 34px 0 62px; }
.gallery-controls { display: none; align-items: center; justify-content: center; gap: 13px; margin-bottom: 28px; }
.rail-js .gallery-controls { display: flex; }
.gallery-controls button { min-width: 44px; min-height: 44px; padding: 5px 12px; border: 1px solid #d8d8dd; border-radius: 50%; background: #fff; font-size: 0; }
.gallery-controls [data-rail-prev]::before { content: "‹"; font-size: 28px; line-height: 1; }
.gallery-controls [data-rail-next]::before { content: "›"; font-size: 28px; line-height: 1; }
.gallery-controls [data-rail-pause] { width: auto; border-radius: 22px; font-size: 13px; }
.gallery-controls button:hover { border-color: var(--green); color: var(--green); }
.gallery-controls button:disabled { cursor: default; opacity: .35; }
.gallery-controls span { min-width: 58px; color: var(--muted); font-size: 14px; text-align: center; }
.screen-rail { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 32px; overflow-x: auto; padding: 12px max(32px, calc((100% - var(--wrap)) / 2)) 34px; scroll-padding-inline: max(32px, calc((100% - var(--wrap)) / 2)); scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-color: #a8a8ad transparent; }
.screen-rail figure { display: flex; flex: 0 0 280px; flex-direction: column; min-width: 0; margin: 0; scroll-snap-align: start; text-align: center; }
.screen-rail figure[data-device=ipad], .screen-rail figure[data-device=mac] { flex-basis: min(880px, calc(100vw - 64px)); }
.screen-stage { display: flex; align-items: center; justify-content: center; height: 620px; padding: 12px 10px 24px; overflow: visible; }
.screen-rail figure[data-device=phone] .device-shell { width: min(280px, 100%); margin-inline: auto; }
.screen-rail figure[data-device=ipad] .device-shell, .screen-rail figure[data-device=mac] .device-shell { max-width: 100%; }
.screen-rail figcaption { min-height: 25px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.screen-rail:focus-visible { outline: 3px solid #0071e3; outline-offset: 8px; }

.closing-section { padding: 118px 0 126px; background: var(--surface); text-align: center; }
.team-story { max-width: 690px; margin: 0 auto 48px; color: var(--muted); font-size: 19px; line-height: 1.8; }
.launch-line { margin-top: 22px; color: var(--muted); font-size: 19px; }
.footer { border-top: 1px solid #0000000b; background: #fff; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; font-size: 12px; }
.footer .wordmark { color: var(--ink); font-size: 19px; }

.lightbox { width: min(1100px, calc(100% - 32px)); max-width: none; height: calc(100dvh - 40px); max-height: none; padding: 0; border: 0; border-radius: 22px; background: #fff; overflow: hidden; box-shadow: 0 25px 90px #0008; }
.lightbox::backdrop { background: #101311cc; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; padding: 12px 20px; border-bottom: 1px solid #e4e4e9; }
.lightbox-toolbar p { font-size: 15px; font-weight: 500; }
.lightbox-close { min-height: 36px; padding: 5px 15px; border: 0; border-radius: 19px; background: var(--surface); font-size: 14px; }
.lightbox-content { height: calc(100% - 62px); overflow: auto; padding: 20px; background: var(--surface); text-align: center; }
.lightbox-content img { width: auto; max-width: 100%; margin: auto; border-radius: 12px; }
.lightbox-content img.is-portrait { max-width: min(100%, 500px); }
.lightbox-content img.is-landscape { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (max-width: 980px) {
  .feature-section { padding-block: 94px; }
  .device-trio { display: flex; flex-direction: column; align-items: center; gap: 38px; margin-top: 54px; }
  .device-trio .phone-frame { order: 1; width: min(100%, 320px); }
  .device-trio .ipad-frame { order: 2; width: min(100%, 680px); }
  .device-trio .mac-frame { order: 3; width: min(100%, 680px); }
  .four-phone-frames { grid-template-columns: repeat(2, minmax(0, 220px)); gap: 28px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .nav { height: 60px; }
  .nav-links { display: none; }
  .nav-pill { margin-left: auto; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: clamp(54px, 16vw, 76px); }
  .hero-value { font-size: 20px; }
  .feature-section { padding-block: 80px; }
  .section-heading > p:last-child { font-size: 19px; }
  .two-phone-frames, .three-phone-frames, .four-phone-frames { grid-template-columns: minmax(0, 320px); gap: 26px; }
  .channel-icons { grid-template-columns: repeat(4, 1fr); max-width: 410px; gap: 20px 12px; margin-top: 44px; }
  .three-notes, .apple-notes { grid-template-columns: 1fr; gap: 22px; margin-top: 36px; }
  .two-wide-frames { grid-template-columns: 1fr; gap: 30px; margin-top: 45px; }
  .screens-section { padding-block: 64px; }
  .screen-browser { padding-top: 28px; }
  .screen-rail { gap: 22px; padding-inline: 32px; scroll-padding-inline: 32px; }
  .screen-rail figure { flex-basis: min(326px, calc(100vw - 64px)); }
  .screen-rail figure[data-device=ipad], .screen-rail figure[data-device=mac] { flex-basis: calc(100vw - 64px); }
  .closing-section { padding-block: 86px; }
  .team-story, .launch-line { font-size: 17px; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  h2 { font-size: 39px; }
  .two-phone-frames, .three-phone-frames, .four-phone-frames { gap: 14px; }
  .device-frame figcaption { font-size: 12px; }
  .gallery-controls { gap: 7px; flex-wrap: wrap; }
  .gallery-controls [data-rail-pause] { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
