/* RFRMD Word Labs — shared styles for every page. */
/* Instrument Serif (SIL Open Font License), the face MarkSchrift ships; display sizes only. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
             src: url(fonts/instrument-serif-normal-latin.woff2) format("woff2"); }
:root {
  --bg: #faf8f4; --ink: #1c1a17; --muted: #6b665e; --card: #ffffff;
  --line: #e6e1d8; --accent: #b8571e; --flame: #fd8008;
  --shadow: 0 1px 2px rgba(28,26,23,.06), 0 10px 30px rgba(28,26,23,.08);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #171512; --ink: #ece8e1; --muted: #a39d92; --card: #211e1a;
          --line: #35312a; --accent: #e8621a;
          --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 34px rgba(0,0,0,.35); }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── Top bar: transparent over the hero, solid once scrolled ── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 56px;
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
  color: #fff;
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.bar .brand { font-family: var(--serif); font-size: 23px; color: inherit; letter-spacing: .3px;
              display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.bar .brand img { width: 24px; }
.bar .brand b { color: var(--flame); font-weight: 400; }
.bar nav { display: flex; gap: 22px; font-size: 15px; }
.bar nav a { color: inherit; opacity: .85; }
.bar nav a:hover { opacity: 1; }
.bar.solid, .bar.page {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line); color: var(--ink);
}
.bar.solid .brand b, .bar.page .brand b { color: var(--accent); }
@media (max-width: 640px) { .bar nav a.opt { display: none; } .bar nav { gap: 14px; font-size: 14.5px; } .bar .brand { font-size: 20px; gap: 7px; } .bar .brand img { width: 20px; } }

/* ── Hero: John's landscapes, crossfading ── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1000px;
        overflow: hidden; color: #fff; background: #1b1916; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero .slide.on { opacity: 1; }
.hero .slide.on img { animation: drift 12s ease-out forwards; }
@keyframes drift { from { transform: scale(1.04) translate(0,0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.08) 32%, rgba(0,0,0,.18) 60%, rgba(0,0,0,.66) 100%); }
.hero .in { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: 12vh; text-align: center; }
.hero .emblem { width: 92px; margin: 0 auto 16px; filter: drop-shadow(0 4px 18px rgba(0,0,0,.45)); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8.4vw, 92px);
           letter-spacing: .5px; line-height: 1.05; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero h1 b { color: var(--flame); font-weight: 400; }
.hero .lede { max-width: 700px; margin: 18px auto 0; font-size: clamp(17px, 2.1vw, 20px);
              color: rgba(255,255,255,.92); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero .words { display: inline-block; color: #fff;
               border-bottom: 2px solid var(--flame); }
.hero .credit { position: absolute; right: 18px; bottom: 14px; z-index: 3; font-size: 12.5px;
                color: rgba(255,255,255,.78); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero .credit a { color: inherit; }
.hero .credit a:hover { color: #fff; }
.hero .cue { position: absolute; left: 50%; bottom: 18px; z-index: 3; width: 22px; height: 34px;
             margin-left: -11px; border: 2px solid rgba(255,255,255,.7); border-radius: 12px; }
.hero .cue::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px;
                    margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@media (max-width: 640px) { .hero .credit { right: 12px; left: 12px; text-align: center; bottom: 10px; font-size: 11.5px; }
  .hero .cue { display: none; } .hero .in { padding-bottom: 72px; } .hero h1 { font-size: 46px; } }

/* ── Section scaffolding ── */
.sec { padding: 104px 0 24px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
          color: var(--accent); margin-bottom: 10px; }
.sec h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 54px);
          line-height: 1.15; margin-bottom: 14px; }
.sec .intro { color: var(--muted); max-width: 640px; font-size: 18px; }
p { color: var(--muted); }
p strong, p b { color: var(--ink); font-weight: 600; }

/* ── App features: picture and words, alternating ── */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center;
           margin-top: 88px; }
.feature.flip { grid-template-columns: 1fr 1.15fr; }
.feature.flip .pic { order: 2; }
.feature .head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.feature .head img { width: 60px; height: 60px; border-radius: 14px;
                     box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgba(0,0,0,.12); }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; }
.feature h3 a { color: inherit; }
.feature .host { display: block; font-family: var(--sans); font-size: 14px; color: var(--accent); margin-top: 3px; }
.feature p { margin: 10px 0; font-size: 17.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; padding: 0; list-style: none; }
.chips li { display: flex; }
.chips li.soon, .chips a { font-size: 13.5px; padding: 5px 12px; border-radius: 99px;
         border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.chips a { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); font-weight: 600; }
.chips li.soon { color: var(--muted); border-style: dashed; background: transparent; }
.chips .new::before { content: "New · "; color: var(--accent); font-weight: 600; }
.go { display: inline-block; margin-top: 14px; font-weight: 600; }
.go::after { content: " →"; transition: margin .2s ease; }
.go:hover::after { margin-left: 4px; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 30px; margin-top: 72px; }
  .feature.flip .pic { order: 0; }
}

/* Devices, drawn in CSS so the screenshots stay plain. */
.device { position: relative; margin: 0 auto; background: #0e0e10; box-shadow: var(--shadow), 0 30px 60px -20px rgba(0,0,0,.35); }
.device img { width: 100%; height: auto; }
.device.pro { padding: 2.1%; border-radius: 4.2% / 5.6%; }
.device.pro img { border-radius: 2.4% / 3.2%; }
.device.mini { max-width: 400px; padding: 4.4%; border-radius: 7.5% / 5%; }
.device.mini img { border-radius: 3.6% / 2.4%; }
.device::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
                  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14); }
.pic .tilt { transition: transform .6s cubic-bezier(.2,.7,.2,1); }

/* pctrs: a small wall of John's own photographs */
.wall { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 74px; gap: 10px; }
.wall a { position: relative; overflow: hidden; border-radius: 10px; background: var(--line); box-shadow: var(--shadow); }
.wall img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.wall a:hover img { transform: scale(1.06); }
.wall a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: 12.5px; color: #fff;
               background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .3s ease; }
.wall a:hover span { opacity: 1; }
.wall .w1 { grid-column: 1 / 5; grid-row: 1 / 4; }
.wall .w2 { grid-column: 5 / 7; grid-row: 1 / 3; }
.wall .w3 { grid-column: 5 / 7; grid-row: 3 / 5; }
.wall .w4 { grid-column: 1 / 3; grid-row: 4 / 6; }
.wall .w5 { grid-column: 3 / 5; grid-row: 4 / 6; }
.wall .w6 { grid-column: 5 / 7; grid-row: 5 / 6; }
@media (max-width: 560px) { .wall { grid-auto-rows: 52px; gap: 7px; } }

/* ── Books: a shelf that drifts ── */
.books { padding-bottom: 40px; }
.shelfrun { position: relative; margin-top: 40px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.shelfrun .track { display: flex; gap: 22px; width: max-content; padding: 14px 0 26px;
                   animation: shelf 70s linear infinite; }
.shelfrun:hover .track { animation-play-state: paused; }
.shelfrun a { flex: none; width: 150px; transition: transform .35s ease; }
.shelfrun a:hover { transform: translateY(-8px) rotate(-1deg); }
.shelfrun img { width: 150px; aspect-ratio: 1074 / 1600; object-fit: cover; border-radius: 3px 6px 6px 3px;
                box-shadow: inset 4px 0 6px rgba(0,0,0,.2), 0 4px 10px rgba(0,0,0,.25), 0 18px 30px -12px rgba(0,0,0,.4); }
@keyframes shelf { to { transform: translateX(calc(-50% - 11px)); } }
@media (max-width: 560px) { .shelfrun a, .shelfrun img { width: 112px; } .shelfrun .track { gap: 16px; } }
.center { text-align: center; }
.center .intro { margin: 0 auto; }

/* ── Ministry: words over a landscape ── */
.band { position: relative; margin-top: 96px; padding: 120px 0; color: #fff; overflow: hidden; }
.band .bg { position: absolute; inset: -18% 0; background-size: cover; background-position: center;
            will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,12,10,.82), rgba(14,12,10,.45)); }
.band .wrap { position: relative; z-index: 2; }
.band .kicker { color: var(--flame); }
.band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 54px); line-height: 1.15; }
.band p { color: rgba(255,255,255,.86); max-width: 600px; font-size: 18px; margin-top: 12px; }
.band p strong { color: #fff; }
.pair { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
.glass { display: block; padding: 24px 24px 22px; border-radius: 16px; color: #fff;
         background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2);
         -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
         transition: background .25s ease, transform .25s ease; }
.glass:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.glass b { display: block; font-size: 26px; font-family: var(--serif); font-weight: 400; }
.glass .host { color: var(--flame); font-size: 14px; }
.glass span.d { display: block; margin-top: 8px; color: rgba(255,255,255,.82); font-size: 15.5px; }
.band .credit { position: absolute; right: 18px; bottom: 12px; z-index: 2; font-size: 12.5px; color: rgba(255,255,255,.65); }
.band .credit a { color: inherit; }
@media (max-width: 720px) { .band { padding: 90px 0; } }

/* ── Company + roadmap ── */
.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 30px; align-items: stretch; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-bottom: 8px; }
.panel p { margin: 10px 0; }
a.panel { display: block; color: inherit; } a.panel .go { color: var(--accent); } a.panel { transition: transform .25s ease, border-color .25s ease; }
a.panel:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.btn { display: inline-block; margin-top: 10px; padding: 10px 20px; border-radius: 99px; font-weight: 600;
       background: var(--accent); color: #fff; }
.btn:hover { filter: brightness(1.08); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ── Footer ── */
.foot { margin-top: 96px; padding: 34px 0 40px; border-top: 1px solid var(--line);
        color: var(--muted); font-size: 14.5px; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.foot .ver { opacity: .7; }

/* ── Arrivals ── */
.rise { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.rise.seen { opacity: 1; transform: none; }
.rise.d1 { transition-delay: .12s; } .rise.d2 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .slide.on img, .shelfrun .track, .hero .cue::after { animation: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  .band .bg { transform: none !important; }
}

/* ── Inner pages (books, roadmap) ── */
.pagehead { padding: 120px 0 10px; text-align: center; }
.pagehead h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 62px); line-height: 1.05; }
.pagehead .intro { color: var(--muted); max-width: 600px; margin: 14px auto 0; font-size: 18px; }
.prose { margin-top: 18px; }
.prose p { margin: 12px 0; font-size: 17.5px; }
.prose a { font-weight: 600; }

/* Books page: each edition a card with its cover */
.bookgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
        padding: 18px; color: inherit; box-shadow: var(--shadow);
        transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card.bk { display: flex; gap: 18px; align-items: flex-start; }
.card.bk .cover { width: 112px; flex: none; border-radius: 3px 5px 5px 3px; background: var(--line);
                  box-shadow: inset 3px 0 5px rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.22); transition: transform .3s ease; }
.card.bk:hover .cover { transform: rotate(-1.5deg) translateY(-2px); }
.card b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; color: var(--ink); }
.card .host { display: block; font-family: var(--sans); color: var(--accent); font-size: 13.5px; margin-top: 4px; }
.card span.d { display: block; color: var(--muted); font-size: 15px; margin-top: 8px; }
@media (max-width: 820px) { .bookgrid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .card.bk .cover { width: 82px; } .card.bk { gap: 14px; padding: 14px; } }

/* Roadmap page */
.road { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 18px; }
.roadsec { margin-top: 56px; }
.roadsec h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; }
.roadsec h2 img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); }
.item h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 6px; }
.item p { margin: 0; font-size: 15.5px; }
.support { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
           border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.support p { margin: 0 0 10px; }
.support p:last-child { margin: 0; }
.support a { font-weight: 600; }
.foot .permit { font-size: 13px; margin-bottom: 6px; }
.roadsec h2 a { color: inherit; display: inline-flex; align-items: center; gap: 12px; }
.roadsec h2 a:hover { color: var(--accent); }

/* Roadmap: the invitation to give */
.give { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
        padding: 40px 44px; border-radius: 22px; border: 1px solid var(--line);
        background:
          radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--flame) 16%, transparent), transparent 60%),
          var(--card);
        box-shadow: var(--shadow); }
.give .kicker { margin-bottom: 8px; }
.give h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.8vw, 42px); line-height: 1.15; margin-bottom: 10px; display: block; }
.give p { margin: 10px 0 0; max-width: 620px; }
.give-act { justify-self: end; }
.give .btn { margin: 0; padding: 13px 28px; font-size: 16.5px; white-space: nowrap;
             box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
@media (max-width: 720px) {
  .give { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px; text-align: center; }
  .give p { margin-left: auto; margin-right: auto; }
  .give-act { justify-self: center; }
}

/* Ministry band: rfrmd.com on a phone, its screens taking turns */
.bandgrid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.phone { position: relative; width: min(100%, 330px); margin: 0 auto; aspect-ratio: 1320 / 2868;
         box-sizing: content-box; padding: 12px; border-radius: 54px; background: #0b0b0d;
         box-shadow: 0 0 0 2px #3a3833, 0 0 0 4px #1a1917, 0 40px 80px -24px rgba(0,0,0,.7); }
.phone .screen { position: absolute; inset: 12px; border-radius: 42px; overflow: hidden; background: #faf8f4; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
                     opacity: 0; transition: opacity 1.1s ease; }
.phone .screen img.on { opacity: 1; }
.phone::after { content: ""; position: absolute; z-index: 2; top: 23px; left: 50%; width: 31%; height: 3.2%;
                margin-left: -15.5%; border-radius: 99px; background: #000; }
.phone .tag { position: absolute; left: 0; right: 0; bottom: -44px; text-align: center; font-size: 14px;
              color: rgba(255,255,255,.8); transition: opacity .4s ease; }
@media (max-width: 860px) { .bandgrid { grid-template-columns: 1fr; gap: 40px; }
  .phone { width: min(76vw, 300px); padding: 10px; border-radius: 46px; } .phone .screen { inset: 10px; border-radius: 36px; }
  .band { padding-bottom: 130px; } }
.give-act { text-align: center; }
.give .btn { padding: 14px 44px; font-size: 18px; }
.give-alt { margin: 12px 0 0 !important; font-size: 14px; }
.give-alt a { font-weight: 600; }
.bar .brand img, .bar .brand picture { flex: none; }
@media (max-width: 360px) { .bar nav a:not(:first-child) { display: none; } .bar .brand { font-size: 18px; } }
.card .by { display: block; font-size: 14px; color: var(--ink); opacity: .75; margin-top: 2px; }
.card .host { display: block; margin-top: 6px; }
.card .proof { display: block; margin-top: 8px; font-size: 13.5px; font-style: italic; }

.chips a:hover { background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.panel .links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 14px; }
.panel .links .go { margin: 0; }
.panel h3 { line-height: 1.15; }

/* ── schriftohr.com: SchriftOhr's own orange ── */
:root { --accent: #b96500; --flame: #f5910c; }
@media (prefers-color-scheme: dark) { :root { --accent: #f5a742; } }
.bar .brand img { width: 26px; height: 26px; border-radius: 6px; }
.bar.solid .brand b, .bar.page .brand b { color: inherit; }

/* Product hero: warm dark, devices on the right, screens taking turns */
.prod { position: relative; overflow: hidden; color: #f4efe6; padding: 130px 0 90px;
  background: radial-gradient(90% 120% at 85% 10%, #4a2a0c 0%, #241609 45%, #14100b 100%); }
.prod::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 70% 60%, rgba(245,145,12,.22), transparent 70%); }
.prod .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.prod h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.4vw, 78px); line-height: 1.02; }
.prod h1 em { font-style: normal; color: var(--flame); }
.prod .lede { color: rgba(244,239,230,.86); font-size: 18.5px; margin-top: 18px; max-width: 540px; }
.prod .price { margin-top: 22px; color: rgba(244,239,230,.86); }
.prod .price strong { font-size: 26px; color: #fff; margin-right: 6px; }
.prod .acts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
.prod .store { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 12px;
  background: #fff; color: #111; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.prod .store svg { width: 18px; height: 22px; }
.prod .acts .go { color: var(--flame); margin: 0; }
.prod .needs { margin-top: 16px; font-size: 13.5px; color: rgba(244,239,230,.6); }
.stage { position: relative; min-height: 420px; }
.stage .device.pro { width: 100%; }
.stage .phone { position: absolute; right: -10px; bottom: -40px; width: min(31%, 200px); padding: 7px; border-radius: 34px; }
.stage .phone .screen { inset: 7px; border-radius: 28px; }
.stage .phone::after { top: 14px; }
.rot { position: relative; }
.rot img { transition: opacity 1s ease; }
.rot img + img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rot img:not(.on) { opacity: 0; }
.device.pro .rot { border-radius: 2.4% / 3.2%; overflow: hidden; }
@media (max-width: 900px) { .prod .wrap { grid-template-columns: 1fr; } .prod { padding: 110px 0 80px; }
  .stage { margin-top: 10px; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -34px; position: relative; z-index: 3; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.facts span { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } }

.feature ul { margin: 12px 0 0 0; padding-left: 0; list-style: none; }
.feature li { position: relative; padding-left: 22px; margin: 7px 0; color: var(--muted); font-size: 16px; }
.feature li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--flame); }
.feature .phone { width: min(100%, 280px); }
.duo-phones { display: flex; gap: 22px; justify-content: center; }
.duo-phones .phone { margin: 0; width: min(46%, 250px); }
.duo-phones .phone:last-child { margin-top: 60px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px; margin-top: 30px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); }
.tile h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; margin-bottom: 6px; }
.tile p { margin: 0; font-size: 15.5px; }
.plain { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 10px; }
@media (max-width: 760px) { .plain { grid-template-columns: 1fr; } }
.foot .small { font-size: 13px; }

/* Inner pages: documents and the books page */
.doc { padding-top: 112px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 58px); line-height: 1.05; margin-bottom: 8px; }
.doc .date { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 38px 0 8px; }
.doc h3 { font-size: 17.5px; margin: 22px 0 4px; }
.doc p, .doc li { color: var(--ink); opacity: .9; margin: 10px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 2px; }
.doc .muted { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc code { font-size: .92em; background: var(--card); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
.doc section { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 6px; }
.doc section:first-of-type { border-top: 0; }
.doc .sub { color: var(--muted); font-size: 18px; max-width: 600px; }
.src { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
       margin: 12px 0; color: inherit; text-decoration: none !important; box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease; }
.src:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.src b { display: block; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.2; color: var(--ink); }
.src .host { display: block; font-family: var(--sans); color: var(--accent); font-size: 13.5px; margin-top: 4px; }
.src span.d { display: block; color: var(--muted); font-size: 15px; margin-top: 6px; }
.src.bk { display: flex; gap: 18px; align-items: flex-start; }
.src.bk .cover { width: 104px; flex: none; border-radius: 3px 5px 5px 3px; background: var(--line);
                 box-shadow: inset 3px 0 5px rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.22); }
@media (max-width: 460px) { .src.bk .cover { width: 76px; } .src.bk { gap: 14px; padding: 14px; } }

/* Platform tags on the dark top section */
.prod .chips { margin-top: 18px; }
.prod .chips a { background: rgba(255,255,255,.08); border-color: rgba(245,145,12,.55); color: #f5a742; }
.prod .chips li.soon { background: transparent; border-color: rgba(255,255,255,.28); color: rgba(244,239,230,.65); }

/* Apple's official App Store badge */
.asbadge { display: inline-block; line-height: 0; }
.asbadge img { height: auto; display: block; }
.asbadge:hover { opacity: .85; }

/* Apple's product bezels (Design Resources). The screen sits behind the bezel at the bezel's own
   opening, measured on the full-size PNGs: iPhone 17 Pro Max 1320x2868 in 1470x3000, iPad Pro 13"
   landscape 2752x2064 in 3000x2300, iPad mini portrait 1488x2266 in 1780x2550. */
.bz { position: relative; display: block; margin: 0 auto; }
.bz > .bezel { position: relative; z-index: 2; display: block; width: 100%; height: auto; pointer-events: none;
               filter: drop-shadow(0 22px 32px rgba(0,0,0,.2)); }
.bz > .scr { position: absolute; z-index: 1; overflow: hidden; background: #000; }
.bz > .scr img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bz > .scr.rot img + img { position: absolute; inset: 0; }
.bz-iphone { width: min(100%, 300px); }
.bz-iphone > .scr { left: 5.102%; top: 2.2%; width: 89.796%; height: 95.6%; border-radius: 14.2% / 6.55%; }
.bz-ipad { width: 100%; }
.bz-ipad > .scr { left: 4.133%; top: 5.13%; width: 91.733%; height: 89.739%; border-radius: 2% / 2.66%; }
.bz-mini { width: min(100%, 380px); }
.bz-mini > .scr { left: 8.202%; top: 5.569%; width: 83.596%; height: 88.863%; border-radius: 2.84% / 1.87%; }
.trio .bz-iphone { margin: 0; width: min(30%, 250px); }
.trio .bz-iphone:nth-child(2) { margin-top: 40px; }
.duo-phones .bz-iphone { margin: 0; width: min(46%, 250px); }
.duo-phones .bz-iphone:last-child { margin-top: 60px; }
.feature .bz-iphone { width: min(100%, 280px); }
.stage { position: relative; }
.stage .bz-iphone { position: absolute; right: -10px; bottom: -40px; width: min(31%, 200px); z-index: 4; }
.phonewrap { position: relative; }
.phonewrap .bz-iphone { width: min(100%, 320px); }
.phonewrap .tag { position: static; margin-top: 16px; text-align: center; font-size: 14px; transition: opacity .4s ease; }
@media (max-width: 860px) { .phonewrap .bz-iphone { width: min(72vw, 300px); } }
.trio, .duo-phones { align-items: flex-start; }

/* ── The family strip (the same on every RFRMD Word Labs site) ── */
.fam { margin-top: 96px; padding: 30px 0 4px; border-top: 1px solid var(--line); text-align: center; }
.fam .lab { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.fam ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; list-style: none; margin: 0; padding: 0; }
.fam li a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15.5px; opacity: .78; transition: opacity .2s ease; }
.fam li a:hover, .fam li a[aria-current] { opacity: 1; }
.fam li a[aria-current] { font-weight: 600; }
.fam img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0,0,0,.08); }
.fam + .foot { margin-top: 0; border-top: 0; }
