/* /iphone-duo (v3, 2026-11-27): Dragonlock on iPhone Duo, the parent's side first. The screens are real captures of
   the app (scripts/site/device-captures.py), shown as screens with a rounded edge, never drawn into a device: Apple's
   marketing guidelines want its own product images for that. The page alternates the two surfaces (night for the
   brand moments, paper for what you read), each section full-bleed with its content at the page's width. */

/* ------------------------------------------------------------------ a screen, lit from inside */
.screen { position: relative; overflow: hidden; border-radius: 1.1rem; background: #0E1430;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -34px rgba(0,0,0,.95), 0 0 100px -20px rgba(244,169,97,.2); }
.is-paper .screen { box-shadow: 0 0 0 1px rgba(27,24,34,.14), 0 34px 60px -30px rgba(27,24,34,.55), 0 10px 20px -12px rgba(27,24,34,.25); }
.screen img { display: block; width: 100%; height: auto; }
.screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(116deg, rgba(255,255,255,.07), rgba(255,255,255,0) 32%); }
.device-caption { margin: 1rem 0 0; font: 600 1rem/1.35 var(--display); font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--fg-3); }
/* over the painting (the hero): brighter, with night behind the letters */
.duo-top .device-caption, .duo-hero .device-caption { color: var(--bone-2); text-shadow: 0 1px 2px rgba(6,8,24,.9), 0 1px 12px rgba(6,8,24,.95); }

/* ------------------------------------------------------------------ the hero: the words on the night sky, the open
   Duo beside them carrying the masthead (from 1101px; stacked under the words below that). The painting is the tablet
   hero's tall sky (hero-mid), its dusk horizon low behind the capture, so /iphone-duo doesn't share the band */
.duo-top { padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.duo-top .band { object-position: 50% 100%; }
.duo-top::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,14,26,.86), rgba(11,14,26,.72) 30%, rgba(11,14,26,.15) 48%, rgba(11,14,26,0) 60%), linear-gradient(rgba(11,14,26,0) 72%, var(--night)); }
.duo-hero { position: relative; display: grid; grid-template-columns: minmax(0, 32rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.duo-title { padding: clamp(1.5rem, 3vw, 2.5rem) 0 0; }
.duo-title h1 { max-width: 15ch; font-size: clamp(2.7rem, 4.1vw, 3.75rem); line-height: 1; }
.duo-title .crumbs { margin: 0 0 1.1rem; font: 600 1rem/1.3 var(--display); font-variant-caps: all-small-caps; letter-spacing: .09em; color: var(--lamp-hi); }
.duo-title .crumbs a { color: inherit; text-decoration: none; }
.duo-title .crumbs a:hover { text-decoration: underline; }
.duo-title .lede { max-width: 36rem; }
.duo-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin: 2rem 0 0; }
.duo-ctas .button.quiet { color: var(--bone); background: rgba(11,14,26,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--edge); }
.duo-ctas .button.quiet:hover { background: rgba(11,14,26,.7); color: #fff; }
.duo-spread { position: relative; margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; }
.duo-glow { position: absolute; left: 50%; top: 48%; width: 130%; aspect-ratio: 1.8; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(244,169,97,.24), rgba(219,122,62,.08) 52%, rgba(219,122,62,0)); }
.screen-book { border-radius: 1.4rem; }
.duo-spread figcaption { text-align: center; }
@media (max-width: 68.75em) {
  .duo-hero { grid-template-columns: minmax(0, 1fr); }
  .duo-title h1 { max-width: 14ch; font-size: clamp(2.7rem, 6.4vw, 4.6rem); }
  .duo-top::after { background: linear-gradient(rgba(11,14,26,.55), rgba(11,14,26,.8) 18%, rgba(11,14,26,.7) 40%, rgba(11,14,26,.1) 60%, rgba(11,14,26,0) 80%, var(--night)); }
}

/* ------------------------------------------------------------------ the sections */
.duo { overflow-x: clip; }
.duo > section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) max(var(--gutter), (100% - 72rem) / 2); }
.duo-head { display: flex; flex-direction: column; max-width: 44rem; }
.duo-head > .sub { order: -1; }
.duo h2 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.02; letter-spacing: -.022em; }
.duo-head > p:not(.sub) { margin: 1.25rem 0 0; font-size: clamp(1.1rem, 1.3vw, 1.22rem); line-height: 1.6; color: var(--fg-2); }
.duo :focus-visible { outline-color: var(--accent); }
.duo .is-paper :focus-visible { outline-color: var(--ember-ink); }

/* open: a note for each page of the spread above, the fold between them */
.duo > .duo-open { padding-top: clamp(2rem, 4vw, 3rem); }
.duo-pages { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10%; width: min(100%, 60rem); margin: 0 auto; }
.duo-pages::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(rgba(214,208,255,0), rgba(214,208,255,.22) 20%, rgba(214,208,255,.22) 80%, rgba(214,208,255,0)); }
.duo-page-note .sub { margin: 0 0 .55rem; }
.duo-page-note h3 { font-size: clamp(1.5rem, 2.2vw, 1.8rem); letter-spacing: -.015em; }
.duo-page-note p:not(.sub) { margin: .6rem 0 0; color: var(--fg-2); font-size: 1.1rem; line-height: 1.6; }

/* the week and the apps: two spreads side by side, each with its line */
.tab-list { list-style: none; margin: clamp(2.5rem, 5vw, 3.75rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem clamp(1.75rem, 4vw, 3.5rem); }
.screen-wide { width: 100%; border-radius: 1.1rem; }
.tab-shot h3 { margin-top: 1.6rem; font-size: clamp(1.4rem, 2vw, 1.65rem); }
.tab-shot p { margin: .55rem 0 0; color: var(--fg-2); font-size: 1.08rem; line-height: 1.6; max-width: 32rem; }

/* places: the spread and its words, the map's warmth behind */
.duo-places { background: radial-gradient(55% 70% at 30% 50%, rgba(244,169,97,.1), rgba(244,169,97,0) 70%), var(--night); }
.duo-places-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.duo-places-copy, .duo-closed-copy { display: flex; flex-direction: column; }
.duo-places-copy > .sub, .duo-closed-copy > .sub { order: -1; }
.duo-places-copy > p:not(.sub), .duo-closed-copy > p:not(.sub) { margin: 1.25rem 0 0; font-size: 1.15rem; line-height: 1.6; color: var(--fg-2); }

/* closed: the outer display, a glance */
.duo-closed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.duo-closed-grid .screen-tall { justify-self: center; }
.screen-tall { width: min(100%, 18.5rem); border-radius: 1.4rem; }

/* their side: four screens on one line, their feet level */
.kid-list { list-style: none; margin: clamp(2.25rem, 4.5vw, 3.25rem) 0 0; padding: 0; display: grid; grid-template-columns: 1.5fr 1.5fr .66fr .66fr; gap: 1.6rem clamp(1rem, 2.4vw, 1.75rem); align-items: end; }
.kid-list .screen { border-radius: .95rem; }
.kid-list .screen-tall { width: 100%; border-radius: .85rem; }
.kid-list .device-caption { font-size: .95rem; }

/* underneath: what Dragonlock is, three ways in */
.duo-under-lede { max-width: 44rem; margin: 1.25rem 0 0; font-size: clamp(1.1rem, 1.3vw, 1.22rem); line-height: 1.6; color: var(--fg-2); }
.duo-links { list-style: none; margin: 2.5rem 0 1.75rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.duo-links a { position: relative; display: grid; gap: .4rem; height: 100%; padding: 1.4rem 3.25rem 1.45rem 1.5rem; border-radius: var(--r-l); text-decoration: none; color: var(--fg);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow); transition: transform .2s var(--settle), box-shadow .2s; }
.duo-links a::after { content: "→"; position: absolute; right: 1.35rem; top: 1.35rem; font: 400 1.3rem/1 var(--body); color: var(--ember-ink); transition: transform .2s var(--settle); }
.duo-links a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--hair-2), 0 22px 40px -24px rgba(27,24,34,.45); }
.duo-links a:hover::after { transform: translateX(3px); }
.duo-links strong { font: 700 1.3rem/1.2 var(--display); letter-spacing: -.01em; }
.duo-links span { color: var(--fg-2); font-size: 1rem; line-height: 1.45; }
.duo-under .fine { max-width: 44rem; margin: 0; color: var(--fg-2); }
.duo > .duo-under { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }

/* the questions: the statement on the left, the answers on the right (paper continues from above) */
.duo > .duo-faq { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 1rem clamp(2.5rem, 7vw, 6rem); align-items: start; padding-top: 0; }
.duo > .duo-faq::before { content: ""; position: absolute; left: max(var(--gutter), (100% - 72rem) / 2); right: max(var(--gutter), (100% - 72rem) / 2); top: 0; height: 1px; background: var(--hair); }
.duo-faq-head { grid-column: 1; grid-row: 1; padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.duo-faq-list { grid-column: 2; grid-row: 1 / span 2; padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.duo-faq .faq-more { grid-column: 1; grid-row: 2; margin: 1.5rem 0 0; font-size: 1.02rem; line-height: 1.6; color: var(--fg-2); }
.duo-faq details { border-bottom: 1px solid var(--hair); }
.duo-faq details:first-child { border-top: 1px solid var(--hair); }
.duo-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 3.5rem; padding: 1.15rem 0; cursor: pointer; list-style: none;
  font: 700 clamp(1.12rem, 1.5vw, 1.25rem)/1.35 var(--display); letter-spacing: -.005em; color: var(--fg); }
.duo-faq summary::-webkit-details-marker { display: none; }
/* the indicator: + that turns to − as it opens, as on the home page's questions */
.duo-faq summary::after { content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--fg-2);
  background: linear-gradient(currentColor, currentColor) 50% / .7rem 1.5px no-repeat, linear-gradient(currentColor, currentColor) 50% / 1.5px .7rem no-repeat;
  transition: transform .3s var(--settle), background-size .3s var(--settle); }
.duo-faq details[open] > summary::after { transform: rotate(180deg); background-size: .7rem 1.5px, 1.5px 0; }
.duo-faq summary:hover { color: var(--ember-ink); }
.duo-faq details > p { margin: -.25rem 0 0; padding: 0 3rem 1.35rem 0; font-size: 1.08rem; line-height: 1.65; color: var(--fg-2); max-width: 44rem; }

/* the launch call: the castle at night behind it, Wick waving in front (the block itself is the hero-duo-launch switch) */
.duo > .duo-launch { display: grid; grid-template-columns: minmax(0, 34rem) auto; justify-content: space-between; align-items: end; gap: 0 3rem; isolation: isolate; overflow: hidden;
  min-height: clamp(30rem, 46vw, 40rem); padding-top: clamp(5rem, 9vw, 7.5rem); padding-bottom: clamp(3.5rem, 6vw, 5rem); color: var(--bone); background: var(--night); }
.duo-launch-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.duo > .duo-launch::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--night) 0%, rgba(11,14,26,.55) 30%, rgba(11,14,26,0) 55%), radial-gradient(55% 75% at 22% 52%, rgba(11,14,26,.88), rgba(11,14,26,.55) 55%, rgba(11,14,26,0) 80%); }
.duo-launch .launch { align-self: center; margin: 0; max-width: 34rem; }
.duo-launch .launch-head { font-size: 1.15rem; line-height: 1.55; color: var(--fg-2); }
.duo-launch .launch-head strong { display: block; margin-bottom: .7rem; font: 700 clamp(2.3rem, 4.6vw, 3.6rem)/1 var(--display); letter-spacing: -.024em; color: var(--fg); }
.duo-launch .launch-live { gap: 1.1rem; }
.duo-launch .store-badge img { height: 3.25rem; }
.duo-wick { width: clamp(9rem, 15vw, 13rem); margin-bottom: -.5rem; filter: drop-shadow(0 14px 18px rgba(6,6,20,.6)); }

/* ------------------------------------------------------------------ narrower */
@media (max-width: 62.5em) {
  .duo-places-grid { grid-template-columns: minmax(0, 1fr); }
  .duo-links { grid-template-columns: minmax(0, 1fr); max-width: 36rem; }
  .duo > .duo-faq { grid-template-columns: minmax(0, 1fr); }
  .duo-faq-head, .duo-faq-list, .duo-faq .faq-more { grid-column: 1; grid-row: auto; }
  .duo-faq-list { padding-top: 1rem; }
  .duo-faq .faq-more { margin-top: 1rem; }
}
@media (max-width: 56.25em) { .tab-list { grid-template-columns: minmax(0, 1fr); } }
@media (width < 47.5625em) {
  .duo-pages { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .duo-pages::before { display: none; }
  .duo-closed-grid { grid-template-columns: minmax(0, 1fr); }
  .duo-closed-grid .screen-tall { width: min(70%, 17rem); margin-inline: auto; }
  .kid-list { grid-template-columns: 1fr 1fr; gap: 1.5rem .9rem; }
  .kid-list li:not(.kid-tall) { grid-column: 1 / -1; }
  .duo > .duo-launch { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; padding-bottom: 0; }
  .duo > .duo-launch::before { background: linear-gradient(var(--night) 0%, rgba(11,14,26,.85) 45%, rgba(11,14,26,.55) 75%, rgba(11,14,26,.1)); }
  .duo-launch-art { height: 70%; top: auto; bottom: 0; }
  .duo-wick { width: 8.5rem; justify-self: end; margin: -1rem 0 -.25rem; }
  .screen-book { border-radius: .8rem; }
  .duo-faq details > p { padding-right: 0; }
}

/* forced colours: the link cards and the FAQ keep an edge */
@media (forced-colors: active) {
  .duo-links a, .duo-faq details { border: 1px solid CanvasText; }
  .duo-faq summary::after { forced-color-adjust: none; color: CanvasText; background-color: Canvas; border: 1px solid CanvasText; }
}
