/* Last modified: 2026-11-17--0330 — duofari.com home: Apple-native, black, the system font (SF on Apple devices). */
:root { --bg:#000; --ink:#f5f5f7; --muted:#86868b; --tile:#161617; --rule:#2c2c2e; --link:#2997ff; --accent:#0a84ff; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--ink);
  font:17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing:-0.022em; -webkit-font-smoothing:antialiased; }
a { color:var(--link); text-decoration:none; } a:hover { text-decoration:underline; }
img { display:block; max-width:100%; height:auto; }
.display { font-family:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif; }

/* nav */
nav { position:sticky; top:0; z-index:10; background:rgba(0,0,0,.72); backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px); border-bottom:1px solid rgba(255,255,255,.08); }
nav .in { max-width:980px; margin:0 auto; padding:0 22px; height:48px; display:flex; align-items:center; gap:22px; font-size:13px; }
nav .brand { display:flex; align-items:center; gap:8px; color:var(--ink); font-weight:600; font-size:15px; margin-right:auto; }
nav .brand img { width:24px; height:24px; border-radius:6px; }
nav a { color:#d2d2d7; } nav a:hover { color:var(--ink); text-decoration:none; }
nav .get { background:var(--accent); color:#fff; border-radius:980px; padding:4px 12px; font-weight:500; }

/* sections */
section { padding:110px 22px 0; }
.wrap { max-width:980px; margin:0 auto; }
.narrow { max-width:692px; margin:0 auto; }
.eyebrow { color:var(--muted); font-size:21px; font-weight:600; margin:0 0 6px; letter-spacing:.004em; }
h1 { font-size:clamp(44px, 8vw, 80px); line-height:1.05; letter-spacing:-0.015em; font-weight:700; margin:0; }
h2 { font-size:clamp(34px, 5.6vw, 56px); line-height:1.07; letter-spacing:-0.005em; font-weight:700; margin:0 0 14px; }
h3 { font-size:24px; line-height:1.17; font-weight:600; margin:0 0 8px; letter-spacing:.009em; }
.lede { font-size:clamp(19px, 2.4vw, 24px); line-height:1.35; color:var(--muted); margin:18px 0 0; font-weight:500; }
.lede b { color:var(--ink); font-weight:600; }
.lede.narrow { margin-left:auto; margin-right:auto; }
.center { text-align:center; }

/* hero */
.hero { padding-top:76px; text-align:center; }
.hero .cta { margin:30px 0 8px; display:flex; justify-content:center; }
.badge img { height:52px; width:auto; }
.price { color:var(--muted); font-size:15px; margin:10px 0 0; }
.hero .shot { margin:56px auto 0; width:100%; max-width:1100px; }

/* comparison */
.compare { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:48px auto 0; max-width:760px; }
.compare figure { margin:0; }
.compare figcaption { text-align:center; color:var(--muted); font-size:15px; font-weight:600; margin-top:12px; }
.compare figure.us figcaption { color:var(--ink); }

/* "No clock. No Wi-Fi." callout: bigger, and the pair cropped to the top of the screens */
.callout h2.big { font-size:clamp(46px, 8.4vw, 88px); line-height:1.02; }
.compare.crop figure img { border-radius:0 0 18px 18px; }

/* side-by-side rows: Safari vs Duofari */
.pairs { display:grid; gap:64px; margin:56px auto 0; max-width:900px; }
.pairrow { display:grid; grid-template-columns:1fr 1.7fr; gap:44px; align-items:center; }
.pairrow h3 { font-size:28px; }
.pairrow p { color:var(--muted); font-size:17px; margin:0; }
.compare.small { margin:0; max-width:none; gap:16px; }
video.framed { display:block; width:100%; height:auto; }

/* feature rows */
.feature { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.feature.flip .text { order:2; }
.feature .text p { color:var(--muted); font-size:19px; line-height:1.42; margin:0 0 14px; }
.feature .text p strong { color:var(--ink); font-weight:600; }
.feature .art { max-width:380px; justify-self:center; width:100%; }

/* one tap: crossfade the before and after frames, with a tap ring over the ≡ button */
.tap { position:relative; }
.tap img + img { position:absolute; inset:0; }
.tap .after { animation:clear 6s infinite; }
@keyframes clear { 0%,38% { opacity:0 } 46%,88% { opacity:1 } 96%,100% { opacity:0 } }
.tap .ring { position:absolute; left:82.9%; top:63.2%; width:11%; aspect-ratio:1; border-radius:50%;
  border:3px solid rgba(255,255,255,.9); box-shadow:0 0 0 2px rgba(0,0,0,.25); opacity:0;
  transform:translate(-50%,-50%); animation:ring 6s infinite; }
/* centred on the side controls' camera button (MarketingShotsUITests logged its frame: 0.908, 0.653 of the screen) */
@keyframes ring { 0%,24% { opacity:0; transform:translate(-50%,-50%) scale(1.6) }
  32% { opacity:1; transform:translate(-50%,-50%) scale(1) }
  40% { opacity:0; transform:translate(-50%,-50%) scale(.8) } 100% { opacity:0 } }
@media (prefers-reduced-motion: reduce) { .tap .after, .tap .ring { animation:none; } .tap .after { opacity:1; } }

/* pair of phones */
.pair { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.pair figcaption { text-align:center; color:var(--muted); font-size:14px; margin-top:8px; }
.pair figure { margin:0; }

/* built-in grid */
.grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin-top:44px; }
.tile { background:var(--tile); border-radius:22px; padding:30px 28px 28px; }
.tile h3 { font-size:21px; }
.tile p { color:var(--muted); margin:0; font-size:16px; line-height:1.45; }

/* questions */
.qa { margin-top:36px; border-top:1px solid var(--rule); }
.qa details { border-bottom:1px solid var(--rule); padding:22px 0; }
.qa summary { cursor:pointer; list-style:none; font-size:21px; font-weight:600; display:flex; justify-content:space-between; gap:20px; }
.qa summary::-webkit-details-marker { display:none; }
.qa summary::after { content:"+"; color:var(--muted); font-weight:400; font-size:26px; line-height:1; transition:transform .2s; }
.qa details[open] summary::after { transform:rotate(45deg); }
.qa details p { color:var(--muted); font-size:17px; margin:12px 0 0; max-width:640px; }

/* closing CTA + footer */
.closing { text-align:center; padding-bottom:110px; }
.closing .cta { margin-top:28px; display:flex; justify-content:center; }
footer { border-top:1px solid var(--rule); padding:22px; font-size:12px; color:var(--muted); line-height:1.6; }
footer .in { max-width:980px; margin:0 auto; }
footer .links a { color:#d2d2d7; margin-right:18px; }
footer p { margin:8px 0 0; }

@media (max-width:760px) {
  section { padding-top:80px; }
  .feature, .feature.flip { grid-template-columns:1fr; gap:28px; }
  .feature.flip .text { order:0; }
  .grid { grid-template-columns:1fr; }
  .pairrow { grid-template-columns:1fr; gap:18px; text-align:center; }
  nav .hide-s { display:none; }
}
@media (min-width:761px) and (max-width:980px) { .grid { grid-template-columns:repeat(2, 1fr); } }

/* hero: text left, phone right (Halfsheet's layout) */
.hero { text-align:left; padding-top:56px; }
.herogrid { display:grid; grid-template-columns:1.1fr 1fr; gap:48px; align-items:center; }
.hero .cta { justify-content:flex-start; }
.hero .lede { margin-left:0; }
.heroart img { width:100%; max-width:440px; margin:0 auto; cursor:zoom-in; }

/* a pair beside its text, alternating sides */
.split { display:grid; grid-template-columns:1.3fr 1fr; gap:56px; align-items:center; }
.split.flip { grid-template-columns:1fr 1.3fr; }
.split .compare { margin:0; max-width:none; }
.split .text p { color:var(--muted); font-size:19px; line-height:1.42; margin:0 0 14px; }
.split .text p strong { color:var(--ink); font-weight:600; }
.split .text h2 { font-size:clamp(32px, 4.4vw, 48px); }
.callout .split .text h2.big { font-size:clamp(38px, 5.4vw, 60px); }
.hint { font-size:14px !important; }
.compare img, .art img { cursor:zoom-in; }

/* lightbox */
#lightbox { position:fixed; inset:0; z-index:100; background:rgba(0,0,0,.975); display:flex; align-items:center;
  justify-content:center; padding:24px; cursor:zoom-out; }
#lightbox[hidden] { display:none; }
#lightbox button { position:absolute; top:14px; right:18px; background:none; border:0; color:#f5f5f7; font-size:34px;
  line-height:1; cursor:pointer; }
.lb-row { display:flex; gap:24px; align-items:center; justify-content:center; max-width:100%; max-height:100%; }
.lb-row figure { margin:0; display:flex; flex-direction:column; align-items:center; min-width:0; }
.lb-row img { max-height:calc(100vh - 90px); max-width:calc((100vw - 48px - 24px * (var(--n) - 1)) / var(--n));
  width:auto; height:auto; }
.lb-row figcaption { color:#f5f5f7; font-size:15px; font-weight:600; margin-top:10px; }

@media (max-width:760px) {
  .herogrid, .split, .split.flip { grid-template-columns:1fr; gap:28px; }
  .split .text, .split.flip .text { order:-1; text-align:center; }
  .hero { text-align:center; } .hero .cta { justify-content:center; }
  .lb-row { gap:10px; }
}
.hero h1 { font-size:clamp(40px, 5.4vw, 66px); }
.wrap.split { max-width:1100px; }

/* closed vs open, every orientation */
.orientrow { display:flex; gap:40px; align-items:flex-end; margin-top:48px; max-width:1100px; }
.orientrow figure { margin:0; flex-basis:0; min-width:0; }
.orientrow figcaption { text-align:center; color:var(--muted); font-size:15px; font-weight:600; margin-top:12px; }
.orientrow img { cursor:zoom-in; width:100%; }
@media (max-width:760px) { .orientrow { flex-direction:column; align-items:stretch; } }
.nowrap { white-space:nowrap; }
.hero h1 { font-size:clamp(34px, 4.7vw, 64px); }
/* clock / Wi-Fi callout: heading above, the two cropped tops large underneath */
.callout .compare.crop { max-width:1000px; gap:32px; margin-top:44px; }
.callout h2.big { font-size:clamp(46px, 7.4vw, 84px); line-height:1.02; }

/* more breathing room between sections (user, 2026-11-17) */
section { padding:190px 22px 0; }
.hero { padding-top:96px; }
.closing { padding-bottom:190px; }
.pairs { gap:110px; margin-top:80px; }
.compare, .callout .compare.crop { margin-top:64px; }
.split .compare { margin-top:0; }
.orientrow { margin-top:72px; }
.grid, .qa { margin-top:56px; }
footer { margin-top:40px; }
@media (max-width:760px) { section { padding-top:120px; } .pairs { gap:80px; } }

/* lightbox: no page shift (the scrollbar's room stays), a short fade and settle */
html { scrollbar-gutter:stable; }
#lightbox { opacity:0; transition:opacity .2s ease; }
#lightbox.show { opacity:1; }
.lb-row figure { transform:scale(.965); transition:transform .28s cubic-bezier(.2,.8,.2,1); }
#lightbox.show .lb-row figure { transform:none; }
@media (prefers-reduced-motion: reduce) { #lightbox, .lb-row figure { transition:none; } }
/* the status ring beside "No clock. No Wi-Fi. Just the page." */
.clockhead { display:flex; align-items:center; justify-content:center; gap:clamp(28px, 4vw, 56px); text-align:left; }
.clockhead h2 { margin:0; }
.ringart { display:block; height:clamp(150px, 19vw, 250px); width:auto; flex:none; }
@media (max-width:760px) { .clockhead { gap:20px; } .ringart { height:120px; } }
/* more room between the hero text and the phone (user, 2026-11-17) */
.herogrid { gap:clamp(56px, 8vw, 120px); max-width:1180px; }
/* the tap: bright cyan with a glow so it reads on any page (user, 2026-11-17: "needs contrast") */
.tap .ring { width:12%; border:5px solid #00E5FF; background:rgba(0, 229, 255, .22);
  box-shadow:0 0 0 3px rgba(0, 0, 0, .45), 0 0 22px 6px rgba(0, 229, 255, .75); animation:tapring 6s infinite; }
@keyframes tapring {
  0%, 22%  { opacity:0; transform:translate(-50%,-50%) scale(1.7); }
  29%      { opacity:1; transform:translate(-50%,-50%) scale(1); }
  33%      { opacity:1; transform:translate(-50%,-50%) scale(.82); }   /* the press */
  37%      { opacity:1; transform:translate(-50%,-50%) scale(1); }
  44%, 100%{ opacity:0; transform:translate(-50%,-50%) scale(1.25); }
}
@media (prefers-reduced-motion: reduce) { .tap .ring { animation:none; opacity:0; } }
/* "No clock. No Wi-Fi." -> "Just the page." (callout.js): the clock goes, then the Wi-Fi ring, each with its words;
   "Just the page." keeps its line and glides to the centre; then it all fades back and loops */
.ringart { aspect-ratio:200 / 220; width:auto; }
.clockhead .svg-clock, .clockhead .svg-ring, .clockhead .gone1, .clockhead .gone2 { transition:opacity 2.2s ease; }
.clockhead.noclock .svg-clock, .clockhead.noclock .gone1 { opacity:0; }
.clockhead.nowifi .svg-ring, .clockhead.nowifi .gone2 { opacity:0; }
.clockhead .stay { display:inline-block; transition:transform 3.2s cubic-bezier(.45,0,.25,1), opacity 1s ease; }
.clockhead.out .stay { opacity:0; }
.clockhead.blank .svg-clock, .clockhead.blank .svg-ring, .clockhead.blank .gone1, .clockhead.blank .gone2,
.clockhead.blank .stay { opacity:0; }
.clockhead.notrans, .clockhead.notrans * { transition:none !important; }

/* the clock callout as a white section, black type, to match the white pages in its screenshots (user, 2026-11-17) */
section.callout { background:#fff; color:#1d1d1f; margin-top:150px; padding-top:150px; padding-bottom:160px; }
.callout h2 { color:#1d1d1f; }
.callout .lede { color:#6e6e73; }
.callout .lede b { color:#1d1d1f; }
.callout figcaption { color:#6e6e73; }
.callout figure.us figcaption { color:#1d1d1f; }
.callout .ringart .svg-clock { fill:#1d1d1f; }
.callout .ringart .svg-ring > path { stroke:#1d1d1f; }
.callout .ringart .svg-ring > path:last-of-type { fill:#1d1d1f; }
.callout .ringart .svg-ring > g[stroke] { stroke:#1d1d1f; }
.callout .ringart .svg-ring > g[fill] { fill:#aeaeb2; }
/* the camera tap as a round trip (user, 2026-11-17: "a perfect boomerang loop: tap button once to show, tap again to
   hide"): tap → clear of the camera → hold → tap → back → hold; the same button both times */
.tap .after { animation:boomerang 8s infinite; }
@keyframes boomerang {
  0%, 24%   { opacity:0; }
  27%, 64%  { opacity:1; }
  67%, 100% { opacity:0; }
}
.tap .ring { animation:tapring2 8s infinite; }
@keyframes tapring2 {
  0%, 13%   { opacity:0; transform:translate(-50%,-50%) scale(1.6); }
  19%       { opacity:1; transform:translate(-50%,-50%) scale(1); }
  22%       { opacity:1; transform:translate(-50%,-50%) scale(.82); }
  25%       { opacity:1; transform:translate(-50%,-50%) scale(1); }
  31%, 52%  { opacity:0; transform:translate(-50%,-50%) scale(1.25); }
  53%       { opacity:0; transform:translate(-50%,-50%) scale(1.6); }
  59%       { opacity:1; transform:translate(-50%,-50%) scale(1); }
  62%       { opacity:1; transform:translate(-50%,-50%) scale(.82); }
  65%       { opacity:1; transform:translate(-50%,-50%) scale(1); }
  71%, 100% { opacity:0; transform:translate(-50%,-50%) scale(1.25); }
}
@media (prefers-reduced-motion: reduce) { .tap .after, .tap .ring { animation:none; } .tap .ring { opacity:0; } }

/* more air between "Just the page." and its paragraph (user, 2026-11-17) */
.callout .clockhead + .lede { margin-top:48px; }
.feature .text p strong.white { color:#fff; font-weight:700; }
/* the scroll demo is the big one: as wide as the column allows, up to the Duo's own size (scrolldemo.css) */
.feature .art.demo-art { max-width:524px; }
/* Left-handed: its own big section, not a tile (user, 2026-11-17: "another thing that Apple has not done") */
.lefty h2.big { font-size:clamp(46px, 7.4vw, 84px); line-height:1.02; }
.lefty .lede { margin-top:36px; }
.lefty-row { display:flex; justify-content:center; align-items:flex-start; flex-wrap:wrap; gap:clamp(28px, 5vw, 80px); margin-top:72px; }
.lefty-col { width:min(440px, 88vw); margin:0; }
.lefty-col img { display:block; width:100%; height:auto; }
.lefty-col figcaption { text-align:center; color:var(--muted); font-size:14px; margin-top:24px; }
.lede strong.white { color:#fff; font-weight:700; }
