:root {
  --bg: #f7f1e5; --surface: #fffdf8; --fg: #24170d; --muted: #6b5644; --line: #e4d8c3;
  --accent: #8f4f20; --accent-fg: #fffdf8; --teal: #0e5157;
  --leather: #a9652e; --leather-dark: #6f3b16; --brass: #e2b656; --cream: #fdf6e7; --ink: #1b130c; --ink-fg: #eadfce; --ink-soft: #cbbda9; --ink-line: var(--ink-line); --ink-deep: #100b07; --ink-card: #221812;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hero-bg: radial-gradient(120% 90% at 85% 0%, #f6e3c3 0%, #ecd0a4 45%, #dcb27c 100%);
  --hero-fg: #24170d; --hero-lead: #5b3b1f; --hero-soft: #7a5230; --hero-stitch: #8f4f2050;
  --hero-btn: var(--leather-dark); --hero-btn-fg: var(--cream); --hero-tab: #24170d1a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) { --bg: #0a0a0b; --surface: #161618; --fg: #f5f5f7; --muted: #a1a1a6; --line: #2c2c2f;
    --accent: #ffffff; --accent-fg: #000000; --teal: #7fc4c9; --brass: #e2b656;
    --ink: #000000; --ink-fg: #f5f5f7; --ink-soft: #a1a1a6; --ink-line: #2c2c2f; --ink-deep: #0f0f11; --ink-card: #141416;
    --hero-bg: radial-gradient(120% 90% at 85% 0%, #232326 0%, #111113 45%, #000000 100%);
    --hero-fg: #ffffff; --hero-lead: #d1d1d6; --hero-soft: #a1a1a6; --hero-stitch: #ffffff24;
    --hero-btn: #ffffff; --hero-btn-fg: #000000; --hero-tab: #ffffff26; --band-alt: #121214; --glow: radial-gradient(90% 80% at 50% 0%, #2a2a2e, #121214); }
}
:root[data-theme=dark] { --bg: #0a0a0b; --surface: #161618; --fg: #f5f5f7; --muted: #a1a1a6; --line: #2c2c2f;
    --accent: #ffffff; --accent-fg: #000000; --teal: #7fc4c9; --brass: #e2b656;
    --ink: #000000; --ink-fg: #f5f5f7; --ink-soft: #a1a1a6; --ink-line: #2c2c2f; --ink-deep: #0f0f11; --ink-card: #141416;
    --hero-bg: radial-gradient(120% 90% at 85% 0%, #232326 0%, #111113 45%, #000000 100%);
    --hero-fg: #ffffff; --hero-lead: #d1d1d6; --hero-soft: #a1a1a6; --hero-stitch: #ffffff24;
    --hero-btn: #ffffff; --hero-btn-fg: #000000; --hero-tab: #ffffff26; --band-alt: #121214; --glow: radial-gradient(90% 80% at 50% 0%, #2a2a2e, #121214); color-scheme: dark; }
:root[data-theme=light] { color-scheme: light; }
.theme { font: inherit; font-size: 14px; color: var(--muted); background: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.theme:hover { color: var(--fg); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
code { font: 0.9em var(--mono); background: color-mix(in srgb, var(--fg) 7%, transparent); padding: 1px 5px; border-radius: 5px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.small { font-size: 14px; color: var(--muted); }

/* header, footer */
header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 19px var(--serif); color: var(--fg); text-decoration: none; margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 16px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--fg); }
nav a[aria-current] { font-weight: 600; }
footer { border-top: 1px solid var(--line); padding-block: 26px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer span { margin-right: auto; }
footer a { color: var(--muted); }
.staging { position: relative; z-index: 6; background: var(--brass); color: #24170d; text-align: center; font-size: 13px; padding: 3px 16px; }

/* type */
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 48px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
main.wrap { padding-block: 44px 64px; }
main.wrap > ul { padding-left: 22px; }
main.wrap li { margin-bottom: 6px; }

/* buttons */
.button { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 1px solid transparent; border-radius: 999px;
  padding: 11px 22px; font: 600 16px/1.2 inherit; text-decoration: none; }
.button:hover { filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--accent); border-color: currentColor; margin-left: 8px; }

/* devices: thin black bezel with a metal edge, sized from the device's own width; the screenshot is never cropped */
.phone, .pad, .fold, .duo { container-type: inline-size; line-height: 0; }
.phone img, .pad img, .fold img, .duo img { width: 100%; height: auto; border: solid #0a0a0a;
  box-shadow: 0 0 0 1px #8f8982, 0 0 0 2px #3a3734, 0 28px 50px -18px #2a140580, 0 6px 14px #2a140533; }
.phone img { border-width: 2.2cqw; border-radius: 13cqw; }
.pad img { border-width: 1.5cqw; border-radius: 3.4cqw; }
.duo img { border-width: 1.3cqw; border-radius: 4.5cqw; }
.fold, .duo { position: relative; }
.fold img { border-width: 1.1cqw; border-radius: 3cqw; }
.mac { position: relative; padding: 0 7%; }
.mac .screen { background: #0a0a0a; padding: 1.6% 1.6% 2%; border-radius: 2.4% 2.4% 0 0 / 3.6% 3.6% 0 0; line-height: 0;
  box-shadow: 0 0 0 1px #8f8982, 0 0 0 2px #3a3734; }
.mac .screen > div { aspect-ratio: 16 / 10.2; display: grid; place-items: center; padding: 3%; border-radius: 4px;
  background: radial-gradient(120% 100% at 20% 0%, #e9c58f, #b9703a 55%, #6f3b16); }
.mac .screen img { width: 100%; height: auto; border-radius: 1%; box-shadow: 0 14px 30px #0006; }
.mac::after { content: ""; display: block; height: 0; padding-top: 1.9%; margin: 0 -8%; border-radius: 2px 2px 12px 12px;
  background: linear-gradient(#d9d4cc, #a7a199 45%, #6d6862); box-shadow: 0 14px 22px -8px #2a140599; }

/* hero */
.hero { background: var(--hero-bg); color: var(--hero-fg);
  position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 10px; border: 2px dashed var(--hero-stitch); border-radius: 18px; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 28px; align-items: center; padding-block: 64px; }
.hero .icon { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 22px; box-shadow: 0 8px 22px #0006; }
.hero .lead { color: var(--hero-lead); }
.hero .button { background: var(--hero-btn); color: var(--hero-btn-fg); }
.hero .button.ghost { background: transparent; color: var(--hero-fg); }
.hero .plat { font: 13px var(--mono); letter-spacing: 0.04em; color: var(--hero-soft); margin: 22px 0 0; }
.hero .soon { display: inline-block; font-size: 13px; font-weight: 600; color: var(--hero-fg); border: 1px solid var(--hero-stitch); border-radius: 999px; padding: 3px 12px; margin: 14px 0 0; }

/* three facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 56px 8px; }
.facts svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 10px; }
.facts h3 { font: 600 21px var(--serif); margin: 0 0 6px; }
.facts p { color: var(--muted); margin: 0; }

/* file -> note */
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin-top: 28px; }
.pair figure { margin: 0; display: flex; flex-direction: column; }
.pair figcaption { font: 13px var(--mono); color: var(--muted); margin-bottom: 8px; }
.pair .arrow { align-self: center; font-size: 26px; color: var(--accent); }
.file, .note { flex: 1; border-radius: 16px; padding: 22px 24px; border: 1px solid var(--line); }
.file { background: var(--ink); color: var(--ink-fg); font: 14.5px/1.75 var(--mono); white-space: pre-wrap; margin: 0; border-color: var(--ink-line); }
.file b { color: var(--brass); font-weight: 400; }
.note { background: var(--surface); box-shadow: 0 18px 36px -22px #2a140566; }
.note h4 { font: 700 24px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0 0 10px; }
.note p { margin: 0 0 12px; }
.note .link { color: #0a7aff; }
.note ul { list-style: none; padding: 0; margin: 0; }
.note li { display: flex; gap: 10px; align-items: center; margin-bottom: 7px; }
.note li::before { content: ""; width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid #b9aa98; flex: none; }
.note li.done { color: var(--muted); text-decoration: line-through; }
.note li.done::before { border-color: #f5b800; background: #f5b800 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain; }

/* sections */
.band { padding-block: 72px; }
.band.alt { background: var(--band-alt, color-mix(in srgb, var(--leather) 9%, var(--bg))); border-block: 1px solid var(--line); }
.band h2 { margin-top: 0; }
.band .intro { color: var(--muted); max-width: 38em; font-size: 19px; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 44px; }
.demo .shot { display: grid; place-items: center; padding: 36px 24px; border-radius: 28px;
  background: var(--glow, radial-gradient(90% 80% at 50% 0%, color-mix(in srgb, var(--brass) 38%, var(--bg)), color-mix(in srgb, var(--leather) 16%, var(--bg)))); }
.demo .phone { width: min(250px, 70%); }
.demo .fold { width: 100%; }
.demo.flip .shot { order: 2; }
.demo h2 { margin: 0 0 10px; }
.demo p { color: var(--muted); font-size: 18px; max-width: 28em; }
.demo ul { list-style: none; padding: 0; margin: 16px 0 0; color: var(--muted); }
.demo li { padding-left: 26px; margin-bottom: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23b88528' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 5px / 17px no-repeat; }

/* more screens */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 28px; }
.shots figure { margin: 0; }
.shots figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; text-align: center; }

/* agents */
.agents { background: var(--ink); color: var(--ink-fg); }
.agents .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.agents h2 { color: var(--cream); }
.agents .eyebrow { color: var(--brass); }
.agents p { color: var(--ink-soft); font-size: 18px; }
.agents ul { list-style: none; padding: 0; margin: 18px 0 0; color: var(--ink-soft); }
.agents li { padding-left: 26px; margin-bottom: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23e2b656' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 5px / 17px no-repeat; }
.term { background: var(--ink-deep); border: 1px solid var(--ink-line); border-radius: 16px; padding: 20px 22px; font: 14.5px/1.75 var(--mono); }
.term .label { color: #8e7d69; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; display: block; }
.term .label + div { margin-bottom: 16px; }
.term .label + div:last-child { margin-bottom: 0; }
.term .you::before { content: "> "; color: var(--brass); }
.term ins { text-decoration: none; color: #9fd8a4; display: block; }
.term ins::before { content: "+ "; }
.term .same::before { content: "  "; white-space: pre; }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card h2, .card h3 { margin-top: 0; }
.card h2 { font-size: 24px; margin-bottom: 4px; }
.card.featured { border: 2px solid var(--accent); box-shadow: 0 20px 40px -24px #2a140580; }
.tiers .price { font: 600 34px/1.1 var(--serif); margin: 4px 0 8px; }
.tiers .price .small { font: 15px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.tiers ul { padding-left: 20px; margin: 14px 0 0; }
.tiers li { margin-bottom: 5px; }
.close { text-align: center; }
.close h2 { margin-top: 0; }
.close .lead { margin-inline: auto; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap, .agents .wrap, .demo { grid-template-columns: 1fr; gap: 28px; }
  .hero .wrap { padding-top: 48px; }
  .facts { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .pair { grid-template-columns: 1fr; }
  .pair .arrow { transform: rotate(90deg); justify-self: center; }
  .band { padding-block: 48px; }
  .demo { padding-block: 28px; }
  .demo.flip .shot { order: 0; }
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) { .term { font-size: 13px; padding: 16px; } }

/* proof numbers, folder example, left-out list */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.stats b { display: block; font: 600 clamp(34px, 4.2vw, 48px)/1 var(--serif); color: var(--accent); margin-bottom: 10px; }
.stats span { color: var(--muted); }
.files { width: 100%; background: var(--ink); color: var(--ink-fg); border-radius: 16px; padding: 20px 22px; font: 14px/1.5 var(--mono); }
.files .label { display: block; color: #8e7d69; font-size: 12px; margin-bottom: 12px; }
.files div { padding: 7px 10px; border-radius: 8px; overflow-wrap: anywhere; }
.files .new { background: #e2b65626; color: var(--brass); }
.nots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.nots h3 { font: 600 21px var(--serif); margin: 0 0 6px; }
.nots p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr; } .nots { grid-template-columns: 1fr 1fr; } }

/* three ways in, on the dark band */
.agents .ways { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ways > div { border: 1px solid var(--ink-line); border-radius: 16px; padding: 20px 22px; background: var(--ink-card); }
.ways .tag { font: 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass); }
.ways h3 { font: 600 20px var(--serif); color: var(--cream); margin: 8px 0 6px; }
.agents .ways p { font-size: 16px; margin: 0; }
@media (max-width: 820px) { .agents .ways { grid-template-columns: 1fr; } }

/* platform showcase on Features: bigger devices */
.demo.big { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; padding-block: 32px; }
.demo.big.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.demo.big .shot { padding: 40px 32px; }
.demo.big .phone { width: min(300px, 62%); }
.demo.big .mac, .demo.big .pad, .demo.big .duo { width: 100%; }
.demo.big h2 { font-size: clamp(28px, 3.4vw, 38px); }
main.wrap h2 + h3, main.wrap .demo + h2 { margin-top: 56px; }
@media (max-width: 820px) { .demo.big, .demo.big.flip { grid-template-columns: 1fr; gap: 20px; } .demo.big .shot { padding: 24px 16px; } }

/* hero carousel: one device at a time; swipes without JS, script adds tabs and auto-advance */
.hero .carousel { min-width: 0; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; height: clamp(340px, 38vw, 480px);
  display: grid; place-items: center; padding: 12px 18px 64px; }
.slide .mac { width: 86%; max-width: 580px; }
.slide .pad, .slide .duo, .slide .fold { width: 92%; max-width: 560px; }
.slide .phone { height: 100%; aspect-ratio: 414 / 900; }
.slide .phone img { height: 100%; width: auto; }
.carousel .tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; }
.carousel .tabs a { padding: 6px 14px; border-radius: 999px; color: var(--hero-soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.carousel .tabs a[aria-selected=true] { background: var(--hero-tab); color: var(--hero-fg); }

/* screenshots in both looks: .lt for light, .dk for dark, following the theme button */
.dk { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .dk { display: block; }
  :root:not([data-theme=light]) .lt { display: none; }
}
:root[data-theme=dark] .dk { display: block; }
:root[data-theme=dark] .lt { display: none; }

/* Home: header sits on the hero with no seam, and gets its bar back once scrolled */
.home header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .hero { margin-top: -120px; padding-top: 120px; } /* runs up behind the header, whatever its height */
.home .hero::after { top: 130px; }
@supports (animation-timeline: scroll()) {
  .home header { animation: bar linear both; animation-timeline: scroll(); animation-range: 0 240px; }
}
@supports not (animation-timeline: scroll()) { .home header { position: relative; } }
@keyframes bar { to { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom-color: var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
.home .theme { border-color: color-mix(in srgb, var(--hero-soft) 45%, transparent); }

/* one foldable folded in front of itself unfolded: same height (columns from the shots' aspect ratios), a small overlap */
.both { display: grid; grid-template-columns: 27.2% 8.7% 1fr; align-items: center; width: 100%; }
.both > :last-child { grid-area: 1 / 2 / 2 / 4; }
.both > .phone { grid-area: 1 / 1 / 2 / 3; z-index: 1; }
/* the front phone casts onto the one behind it: to the right and down, not straight below */
.both > .phone img { box-shadow: 0 0 0 1px #8f8982, 0 0 0 2px #3a3734, 10px 12px 24px -8px #1a0c0373, 3px 3px 6px #1a0c0333; }
.slide .both { width: 96%; max-width: 640px; }
.slide .both > * { width: auto; max-width: none; }
.demo .both .phone, .slide .both .phone { width: auto; height: auto; aspect-ratio: auto; }
.demo .both .phone img, .slide .both .phone img { width: 100%; height: auto; border-radius: 6cqw; }
/* iPhone Duo's outer screen is D-shaped: square on the hinge side */
.demo .both .duo-out img, .slide .both .duo-out img { border-radius: 3cqw 15cqw 15cqw 3cqw; }
