:root {
  --bg: #f5f7fb; --text: #0e1626; --muted: #5b6678; --card: rgba(255,255,255,.72); --border: rgba(15,23,42,.08);
  --accent: #459cff; --accent-2: #b366ff; --shadow: 0 24px 60px -24px rgba(30,60,120,.35);
  --glass: rgba(255,255,255,.6); --fill: rgba(15,23,42,.06);
}
/* Light is the default; the toggle in the header switches to dark and remembers the choice. */
:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; --bg: #090b10; --text: #eef2fa; --muted: #98a3b8; --card: rgba(24,28,38,.7); --border: rgba(255,255,255,.09);
  --shadow: 0 24px 60px -24px rgba(0,0,0,.7); --glass: rgba(28,32,44,.6); --fill: rgba(255,255,255,.08); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.grad { background: linear-gradient(100deg, #34c759, #007aff 55%, #b366ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.center { text-align: center; margin-inline: auto; }

/* Backdrop */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 24s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #459cff; left: -20vmax; top: -25vmax; }
.aurora i:nth-child(2) { background: #b366ff; right: -22vmax; top: 10vmax; animation-delay: -8s; }
.aurora i:nth-child(3) { background: #34c759; left: 20vmax; bottom: -40vmax; opacity: .22; animation-delay: -15s; }
[data-theme="dark"] .aurora i { opacity: .22; } [data-theme="dark"] .aurora i:nth-child(3) { opacity: .14; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.1); } }

/* Nav */
.nav { position: sticky; top: 12px; z-index: 10; display: flex; align-items: center; gap: 24px; margin: 12px auto 0; width: min(1120px, calc(100% - 24px));
  padding: 10px 14px 10px 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.05rem; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: .93rem; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 650; color: #fff;
  background: linear-gradient(135deg, #3b8cff, #7a5cff); box-shadow: 0 10px 28px -10px rgba(69,120,255,.7); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(69,120,255,.8); }
.btn-small { padding: 9px 18px; font-size: .92rem; }
.btn-ghost { background: var(--fill); color: var(--text); box-shadow: none; border: 1px solid var(--border); }
.btn-ghost:hover { box-shadow: none; background: var(--card); }

/* Type */
.eyebrow { margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0 0 20px; font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
h2 { margin: 0 0 18px; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 780; }
h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -.01em; }
.lede { max-width: 56ch; margin: 0 0 26px; font-size: 1.14rem; color: var(--muted); }

.section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0 0; }
.head { text-align: center; margin-bottom: 44px; }
.head .lede { margin-bottom: 0; }

/* Hero */
.hero { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 0; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.fine { margin: 0; font-size: .88rem; color: var(--muted); }
.hero-visual { position: relative; }
.window { border-radius: 22px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(20px); overflow: hidden; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform .6s; }
.hero-visual:hover .window { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.window-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-body { display: grid; grid-template-columns: 210px 1fr; min-height: 380px; }
.window aside { padding: 14px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; background: var(--fill); }
.progress-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); font-size: .74rem; }
.progress-card b { display: block; font-size: .85rem; } .progress-card span { color: var(--muted); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { padding: 9px 10px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); display: grid; grid-template-columns: 1fr auto; gap: 2px; }
.tile .ti { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.25); font-size: .72rem; }
.tile b { font-size: 1.1rem; line-height: 1; text-align: right; } .tile em { grid-column: 1 / -1; font-style: normal; font-size: .72rem; font-weight: 650; }
.side-proj { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: .8rem; font-weight: 600; }
.mini-ring { --p: .5; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: conic-gradient(from 0deg, #34c759, #007aff calc(var(--p) * 360deg), var(--fill) 0);
  -webkit-mask: radial-gradient(circle, transparent 5.2px, #000 5.6px); mask: radial-gradient(circle, transparent 5.2px, #000 5.6px); }
.mini-ring.big { width: 22px; height: 22px; -webkit-mask: radial-gradient(circle, transparent 7px, #000 7.4px); mask: radial-gradient(circle, transparent 7px, #000 7.4px); }
.pane { padding: 18px 18px 20px; }
.pane h3 { font-size: 1.5rem; margin-bottom: 10px; } .pane h4 { margin: 14px 0 6px; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cal { font-size: .78rem; padding: 9px 11px; margin-bottom: 10px; border-radius: 12px; background: linear-gradient(135deg, rgba(69,156,255,.16), rgba(179,102,255,.14)); border: 1px solid var(--border); }
.cal span { color: var(--muted); }
.task { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 7px; border-radius: 13px; background: var(--card); border: 1px solid var(--border); font-size: .88rem; font-weight: 560; }
.task span { flex: 1; } .task em { font-style: normal; font-size: .72rem; color: var(--muted); } .task em.p3 { color: #ff5c5c; font-weight: 800; }
.task.done span { text-decoration: line-through; color: var(--muted); }
.box { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--muted); flex: none; opacity: .7; }
.box.on { background: linear-gradient(135deg, #34c759, #007aff); border-color: transparent; opacity: 1; position: relative; }
.box.on::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.floating { position: absolute; padding: 10px 16px; border-radius: 16px; font-size: .88rem; font-weight: 600; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(16px); animation: bob 6s ease-in-out infinite; }
.floating b { color: var(--accent); }
.chip-a { left: -26px; bottom: 70px; } .chip-b { right: -14px; top: 26px; display: flex; align-items: center; gap: 8px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-9px); } }
.ring-anim { transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 28px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(16px); transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card.wide { grid-column: span 2; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.ico { width: 46px; height: 46px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 14px; font-size: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 10px 22px -10px var(--b); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pills span { padding: 6px 13px; border-radius: 999px; font-size: .84rem; font-weight: 600; background: var(--fill); border: 1px solid var(--border); }
kbd { padding: 1px 7px; border-radius: 6px; font: 600 .85em ui-monospace, monospace; background: var(--fill); border: 1px solid var(--border); }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #34c759, #007aff); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.8); }
.ticks b { color: var(--text); }
.ticks.big li { font-size: 1.1rem; color: var(--text); }
.demo { padding: 26px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.demo-input { min-height: 58px; padding: 16px 18px; border-radius: 16px; background: var(--fill); border: 1px solid var(--border); font-size: 1.08rem; font-weight: 560; display: flex; align-items: center; flex-wrap: wrap; }
.caret { width: 2px; height: 1.2em; margin-left: 2px; background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 42px; margin-top: 16px; }
.demo-chips span { padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 650; color: #fff; background: linear-gradient(135deg, #3b8cff, #7a5cff); animation: pop .35s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.rings { display: grid; gap: 16px; }
.ring-card { display: flex; align-items: center; gap: 22px; padding: 26px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.ring-card b { display: block; font-size: 1.4rem; } .ring-card span { color: var(--muted); }
.list-stack { display: grid; gap: 10px; }
.list-stack div { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); font-weight: 650; }
.list-stack em { margin-left: auto; font-style: normal; color: var(--muted); font-size: .9rem; }

/* Devices, privacy, CTA */
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.device { padding: 26px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); text-align: center; }
.device .big { display: block; margin-bottom: 10px; font-size: 2.4rem; }
.device p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.privacy { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 52px; border-radius: 34px; border: 1px solid var(--border); box-shadow: var(--shadow);
  background: linear-gradient(135deg, color-mix(in srgb, #459cff 14%, var(--card)), color-mix(in srgb, #b366ff 12%, var(--card))); }
.privacy .lede { margin: 0; }
.final { width: min(1120px, calc(100% - 40px)); margin: 110px auto 0; text-align: center; display: grid; justify-items: center; }
.final img { margin-bottom: 18px; border-radius: 20px; box-shadow: var(--shadow); }
footer { width: min(1120px, calc(100% - 40px)); margin: 90px auto 0; padding: 26px 0 46px; display: flex; justify-content: space-between; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2n) { transition-delay: .08s; } .bento .reveal:nth-child(3n) { transition-delay: .16s; }

@media (max-width: 960px) {
  .hero, .split, .privacy { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; } .window { transform: none; }
  .bento { grid-template-columns: 1fr 1fr; } .devices { grid-template-columns: 1fr 1fr; }
  .nav nav { display: none; } .nav { justify-content: space-between; }
  .chip-a { left: 8px; } .chip-b { right: 8px; }
}
@media (max-width: 620px) {
  .bento, .devices { grid-template-columns: 1fr; } .card.wide { grid-column: auto; }
  .window-body { grid-template-columns: 1fr; } .window aside { display: none; }
  .privacy { padding: 30px; } .section { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Icons: the same glyphs the apps use (filled SF-style symbols, the two-cards folder, the project ring). */
.i { width: 1em; height: 1em; flex: none; vertical-align: -0.14em; }
.ico .i { width: 24px; height: 24px; }
.tile .ti .i { width: 13px; height: 13px; }
.cal .i { width: 14px; height: 14px; color: var(--accent); }
.task em .i { width: 12px; height: 12px; vertical-align: -2px; }
.device .big { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; color: var(--accent);
  background: linear-gradient(135deg, color-mix(in srgb, #459cff 16%, transparent), color-mix(in srgb, #b366ff 14%, transparent)); }
.device .big .i { width: 32px; height: 32px; }

/* Theme toggle */
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; color: var(--text); cursor: pointer;
  background: var(--fill); border: 1px solid var(--border); transition: transform .2s, background .2s; }
.theme-toggle:hover { transform: rotate(-12deg) scale(1.06); background: var(--card); }
.theme-toggle .i { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Sidebar lists and folders in the hero mock-up */
.side-label { margin: 6px 4px 0; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-row { display: flex; align-items: center; gap: 7px; padding: 4px 6px; font-size: .78rem; font-weight: 600; }
.side-row.nested { margin-left: 14px; }
.side-row .i { width: 15px; height: 15px; }
.side-row .i.folder { color: #3db366; } .side-row .i.list { color: #54a8ff; }
.side-row b { margin-left: auto; font-size: .7rem; font-weight: 650; color: var(--muted); }
.side-row em { margin-left: auto; font-style: normal; font-size: .75rem; color: var(--muted); }
.group-label { margin: 2px 2px 6px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.list-h { display: flex; align-items: center; gap: 7px; margin: 10px 2px 6px; font-size: .95rem; font-weight: 750; letter-spacing: -.01em; }
.list-h .i { width: 17px; height: 17px; color: #54a8ff; }
.task .mini-ring { width: 20px; height: 20px; -webkit-mask: radial-gradient(circle, transparent 6.2px, #000 6.6px); mask: radial-gradient(circle, transparent 6.2px, #000 6.6px); }
.task .mini-ring { flex: none; }

/* A card across the whole row, with a picture of a place reminder */
.card.full { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: center; padding: 34px; }
.card.full .fine { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.geo { position: relative; height: 250px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border);
  background: linear-gradient(135deg, #dce9f8, #e7f3e4); }
[data-theme="dark"] .geo { background: linear-gradient(135deg, #17233a, #14281f); }
.road { position: absolute; background: rgba(255,255,255,.85); border-radius: 6px; }
[data-theme="dark"] .road { background: rgba(255,255,255,.1); }
.road.r1 { left: -10%; top: 30%; width: 120%; height: 12px; transform: rotate(-6deg); }
.road.r2 { left: -10%; top: 68%; width: 120%; height: 9px; transform: rotate(4deg); }
.road.r3 { left: 38%; top: -10%; width: 10px; height: 120%; transform: rotate(8deg); }
.road.r4 { left: 74%; top: -10%; width: 8px; height: 120%; transform: rotate(-5deg); }
.geo-ring { position: absolute; left: 50%; top: 46%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent); border: 2px dashed var(--accent); animation: ping 3.2s ease-in-out infinite; }
@keyframes ping { 50% { transform: scale(1.08); background: color-mix(in srgb, var(--accent) 28%, transparent); } }
.geo-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -62%); color: #ff5c5c; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.geo-pin .i { width: 40px; height: 40px; }
.geo-label { position: absolute; left: 50%; top: 46%; transform: translate(-50%, 18px); padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--card); border: 1px solid var(--border); }
.geo-note { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.geo-note img { border-radius: 8px; }
.geo-note div { display: flex; flex-direction: column; line-height: 1.25; font-size: .88rem; }
.geo-note span { color: var(--muted); font-size: .8rem; }
@media (max-width: 960px) { .card.full { grid-template-columns: 1fr; padding: 26px; } }


/* Centered intro text (the generic .lede margin was overriding .center) */
.lede.center { margin-inline: auto; text-align: center; }

/* Footer links, and the Privacy and Support pages */
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: flex-end; }
.foot-links a:hover { color: var(--text); }
footer { gap: 14px; flex-wrap: wrap; }
.legal { width: min(760px, calc(100% - 40px)); margin: 70px auto 0; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal h2 { margin: 38px 0 10px; font-size: 1.35rem; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); line-height: 1.65; }
.legal b, .legal i { color: var(--text); }
.legal .intro { font-size: 1.15rem; color: var(--text); }
.legal .updated { margin: 0 0 22px; font-size: .9rem; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal a:not(.btn) { color: var(--accent); }
.legal .cta { margin: 24px 0 8px; }
.legal details { margin: 10px 0; padding: 4px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
.legal summary { cursor: pointer; padding: 14px 0; font-weight: 650; color: var(--text); }
.legal details[open] summary { padding-bottom: 4px; }
.legal details p { margin: 6px 0 16px; }

/* Real screenshots in the hero: the Mac window (its own frame and shadow are in the image) and an iPhone in front */
.shot-mac { width: 100%; height: auto; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform .6s; }
.hero-visual:hover .shot-mac { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.phone { position: absolute; border-radius: 34px; overflow: hidden; background: #000; border: 6px solid #1b1f27; box-shadow: var(--shadow); }
.phone img { width: 100%; height: auto; }
.hero-phone { right: -30px; bottom: -40px; width: 168px; transform: rotate(4deg); animation: bob 7s ease-in-out infinite; animation-delay: -1.5s; }
.island { position: absolute; top: 9px; left: 50%; width: 50px; height: 15px; margin-left: -25px; border-radius: 999px; background: #000; }
[data-theme="dark"] .phone, [data-theme="dark"] .duo { border-color: #2c313b; }

/* iPhone Duo: the real unfolded capture folds down to the real folded one, and back */
.showcase { display: grid; gap: 16px; }
.showcase .card.full .btn.store { margin-top: 22px; }
.store .i { width: 17px; height: 17px; }
.duo-stage { display: grid; justify-items: center; gap: 14px; }
.duo { --h: 290px; --open: calc(var(--h) * 1.421); --shut: calc(var(--h) * .687); position: relative; width: var(--open); height: var(--h); overflow: hidden;
  border-radius: 24px; background: #000; border: 6px solid #1b1f27; box-shadow: var(--shadow); animation: duo-fold 9s cubic-bezier(.6,0,.3,1) infinite; }
.duo img { position: absolute; left: 0; top: 0; height: 100%; width: auto; }
.duo .duo-shut { opacity: 0; animation: duo-swap 9s infinite; }
.duo-state { position: relative; height: 1.6em; width: 120px; text-align: center; font-size: .82rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.duo-state span { position: absolute; inset: 0; }
.duo-state .s-open { animation: duo-label 9s infinite; }
.duo-state .s-fold { opacity: 0; animation: duo-swap 9s infinite; }
@keyframes duo-fold { 0%, 32%, 92%, 100% { width: var(--open); } 44%, 80% { width: var(--shut); } }
/* The folded screen fades in as the fold finishes, and out as it starts to open */
@keyframes duo-swap { 0%, 38%, 86%, 100% { opacity: 0; } 44%, 80% { opacity: 1; } }
@keyframes duo-label { 0%, 34%, 92%, 100% { opacity: 1; } 42%, 84% { opacity: 0; } }

/* Windowed iPadOS: the Todo-it window narrows next to another app and switches from the iPad layout to the compact one */
.card.full.flip { grid-template-columns: 1fr 1.1fr; }
.ipad { padding: 10px; border-radius: 26px; background: #1b1f27; box-shadow: var(--shadow); }
[data-theme="dark"] .ipad { background: #2c313b; }
.ipad-screen { position: relative; display: flex; gap: 8px; aspect-ratio: 4 / 3; padding: 12px 12px 44px; border-radius: 17px; overflow: hidden;
  background: linear-gradient(140deg, #8fc1ff, #c7a8ff 55%, #9be3b4); }
[data-theme="dark"] .ipad-screen { background: linear-gradient(140deg, #1d3a66, #3b2a66 55%, #1d4a35); }
.ipad-win { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }
.ipad-win.todo { flex: none; width: 70%; animation: ipad-resize 10s cubic-bezier(.6,0,.3,1) infinite; }
.ipad-win.other { flex: 1; background: var(--bg); }
.win-bar { display: flex; gap: 4px; padding: 6px 8px; background: #fff; }
.ipad-win.other .win-bar { background: transparent; }
.win-bar i { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-shot { position: relative; flex: 1; min-height: 0; }
.win-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.win-shot .narrow { opacity: 0; animation: ipad-swap 10s infinite; }
.grip { position: absolute; right: 3px; bottom: 3px; width: 12px; height: 12px; border-right: 2.5px solid #8a93a3; border-bottom: 2.5px solid #8a93a3; border-radius: 0 0 6px 0; opacity: .7; }
.doc { padding: 4px 12px; display: grid; gap: 7px; }
.doc b { height: 10px; width: 55%; border-radius: 5px; background: var(--muted); opacity: .45; margin-bottom: 4px; }
.doc i { height: 6px; border-radius: 3px; background: var(--fill); }
.doc i.short { width: 60%; }
.dock { position: absolute; left: 50%; bottom: 8px; display: flex; gap: 7px; padding: 6px 8px; transform: translateX(-50%); border-radius: 13px; background: rgba(255,255,255,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dock i { width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,.75); }
.dock i:first-child { background: url(/icon-512.png) center / cover; }
@keyframes ipad-resize { 0%, 30%, 92%, 100% { width: 70%; } 44%, 80% { width: 34%; } }
/* The app switches to its compact layout partway through the resize, as it does on a real iPad */
@keyframes ipad-swap { 0%, 37%, 87%, 100% { opacity: 0; } 39%, 85% { opacity: 1; } }

/* Download buttons */
.store-row { justify-content: center; margin: 4px 0 14px; }
.store-row .i, .device .btn .i { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .shot-mac { transform: none; }
  .card.full.flip { grid-template-columns: 1fr; }
  .card.full.flip > .ipad { order: 1; }
}
@media (max-width: 620px) {
  .hero-phone { width: 110px; right: -6px; bottom: -24px; border-width: 4px; border-radius: 24px; }
  .island { top: 6px; width: 34px; height: 10px; margin-left: -17px; }
  .duo { --h: 200px; }
}
