/* SchriftAuge: styles for every page. One of the RFRMD Word Labs family (the serif, Apple's bezels and badges,
   the family strip), with its own look: white paper and graphite ink, orange only as a traced line, the way
   the camera traces a 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: #fcfcfb; --ink: #23252a; --muted: #61656c; --card: #ffffff; --line: #e3e4e6;
  --accent: #b25400;   /* orange for text: links and kickers */
  --trace: #f28a10;    /* the icon's stroke: lines, handles, marks */
  --desk: #2b2d31;
  --shadow: 0 1px 2px rgba(20,22,26,.05), 0 12px 32px rgba(20,22,26,.07);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141518; --ink: #e9eaec; --muted: #9ea2a9; --card: #1c1e22; --line: #2e3137;
          --accent: #f5a03a; --trace: #f5a03a; --desk: #0c0d0f;
          --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; }
p { color: var(--muted); }
p strong, p b { color: var(--ink); font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.go { display: inline-block; font-weight: 600; }
.go::after { content: " →"; transition: margin .2s ease; }
.go:hover::after { margin-left: 4px; }

/* ── Top bar: paper, with a hairline once scrolled ── */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 56px; display: flex; align-items: center; color: var(--ink);
       transition: background .3s ease, box-shadow .3s ease; }
.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: 26px; height: 26px; border-radius: 6px; flex: none; }
.bar nav { display: flex; gap: 22px; font-size: 15px; }
.bar nav a { color: inherit; opacity: .8; }
.bar nav a:hover { opacity: 1; }
.bar.solid, .bar.page { background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
@media (max-width: 640px) { .bar nav a.opt { display: none; } .bar .brand { font-size: 20px; } }

/* ── Hero: the words, and a page as photographed wiping to the page as finished ── */
.prod { padding: 112px 0 72px;
  background: radial-gradient(70% 90% at 80% 30%, color-mix(in srgb, var(--trace) 7%, transparent), transparent 70%), var(--bg); }
.prod .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.prod .lockup { width: min(240px, 58vw); margin-bottom: 26px; }
.prod h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.2vw, 76px); line-height: 1.02; }
.prod h1 em { font-style: normal; white-space: nowrap;
  background: linear-gradient(var(--trace), var(--trace)) 0 92% / 100% 3px no-repeat; padding-bottom: 2px; }
.prod .lede { font-size: 18.5px; margin-top: 20px; max-width: 540px; }
.prod .price { margin-top: 20px; max-width: 540px; }
.prod .price strong { font-size: 24px; margin-right: 4px; }
.prod .acts { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 24px; }
.soonbadge { display: inline-block; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
             color: var(--ink); border: 1px dashed color-mix(in srgb, var(--ink) 40%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; list-style: none; }
.chips li { font-size: 13.5px; padding: 4px 12px; border-radius: 99px; border: 1px dashed var(--line); color: var(--muted); }
.prod .needs { margin-top: 12px; font-size: 13.5px; }
@media (max-width: 900px) { .prod .wrap { grid-template-columns: 1fr; gap: 44px; } .prod { padding: 96px 0 56px; } }

.wipe { position: relative; width: min(100%, 440px); margin: 0 auto; padding: 22px; border-radius: 22px;
        background: var(--desk); box-shadow: 0 30px 60px -24px rgba(20,22,26,.45), 0 0 0 1px rgba(255,255,255,.04) inset; }
.wipe .page { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 656 / 1060;
              box-shadow: 0 10px 24px rgba(0,0,0,.35); touch-action: pan-y; cursor: ew-resize; --x: 50%; }
.wipe .page img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.wipe .after { clip-path: inset(0 0 0 var(--x)); }
.wipe .handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: var(--trace);
                box-shadow: 0 0 0 1px rgba(0,0,0,.08); pointer-events: none; }
.wipe .handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--trace); color: #fff; font: 600 15px/38px var(--sans);
  text-align: center; letter-spacing: 2px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.wipe input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.wipe input:focus-visible + .handle::after { outline: 3px solid color-mix(in srgb, var(--trace) 50%, transparent); outline-offset: 3px; }
.wipe .tags { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.7); }
.wipe .tags b { color: #fff; font-weight: 600; }

/* ── Three short facts under the hero ── */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.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; } }

/* ── Sections ── */
.sec { padding: 96px 0 0; }
.sec h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 54px); line-height: 1.12; margin-bottom: 12px; }
.sec .intro { max-width: 640px; font-size: 18px; }
.clears { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-top: 30px; list-style: none; }
.clears li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); color: var(--ink); font-size: 16.5px; }
.clears li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 18px; height: 11px;
  border: solid var(--trace); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(.8); border-radius: 1px; }
@media (max-width: 720px) { .clears { grid-template-columns: 1fr; gap: 0; } }

/* ── Features: picture and words, alternating ── */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; margin-top: 96px; }
.feature.flip { grid-template-columns: 1fr 1.15fr; }
.feature.flip .pic { order: 2; }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; }
.feature p { margin: 10px 0; font-size: 17.5px; }
.feature ul { margin: 12px 0 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: 0; top: .78em; width: 12px; height: 2.5px; border-radius: 2px; background: var(--trace); }
.pic .tilt { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pair { position: relative; padding-bottom: 40px; }
.pair .bz-iphone { position: absolute; right: -8px; bottom: 0; width: min(30%, 190px); z-index: 4; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 30px; margin-top: 72px; }
  .feature.flip .pic { order: 0; }
}

/* ── Tiles and panels ── */
.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 { font-size: 15.5px; }
.plain { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.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; line-height: 1.15; margin-bottom: 8px; }
.panel p { margin: 10px 0; }
@media (max-width: 760px) { .plain { grid-template-columns: 1fr; } }

/* ── Inner pages: the guide, support and privacy ── */
.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: 32px; line-height: 1.15; margin: 48px 0 8px;
          padding-top: 18px; border-top: 1px solid var(--line); }
.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 ol li::marker { color: var(--accent); font-weight: 600; }
.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 .topics { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 8px; }
.doc .topics li { margin: 0; opacity: 1; }
.doc .topics a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
                 color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.45; box-shadow: var(--shadow);
                 transition: border-color .2s ease, transform .2s ease; }
.doc .topics a b { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--ink); margin-bottom: 2px; }
.doc .topics a:hover { border-color: var(--trace); transform: translateY(-2px); }
@media (max-width: 600px) { .doc .topics { grid-template-columns: 1fr; } }

/* ── 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; }

/* ── Footer ── */
.foot { margin-top: 96px; padding: 30px 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 .small { font-size: 13px; }
.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; } .rise { opacity: 1; transform: none; transition: none; } }

/* 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. The screen carries the opening's corner radius. */
.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-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%; }
.feature .bz-iphone { width: min(100%, 280px); }
