/* paircam.app — hand-written CSS, generated HTML (site/build.py). Logical properties only, so
   Arabic and Hebrew (dir="rtl") mirror without extra rules.
   Colour carries meaning everywhere: pink = back camera, blue = front camera, white where the
   two overlap (the app icon). The layout glyphs and the phone compositions use the same rule. */

:root {
  --bg: #f6f5fb;
  --surface: #ffffff;
  --ink: #15122b;
  --ink-2: #44405e;
  --muted: #645f7e;
  --line: #e1dfeb;
  --back: #ff4f9a;
  --front: #22d3f5;
  --overlap: #ffffff;
  --back-text: #c8185f;
  --front-text: #0a6f91;
  --glyph-bg: #d9d6e6;
  --shadow: 0 30px 60px -28px rgba(30, 20, 70, .45);
  --wrap: 1120px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 120px);
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", var(--text);
  --track: 0;
  --track-tight: 0;
  --lh: 1.65;
  --lh-head: 1.15;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110f24;
    --surface: #1a1833;
    --ink: #f3f2fa;
    --ink-2: #c6c3da;
    --muted: #a09db8;
    --line: #2d2a4a;
    --back-text: #ff7cb3;
    --front-text: #5fe2ff;
    --glyph-bg: #34315a;
    --shadow: 0 30px 70px -26px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
/* scripts: Latin and Cyrillic get tight display tracking and hyphenation; others keep their own metrics */
html[data-script="latn"], html[data-script="cyrl"] { --track: -.015em; --track-tight: -.03em; }
/* long compound words: hyphenate running text (never headings) in these languages */
:is(html:lang(de), html:lang(nl), html:lang(fi), html:lang(da), html:lang(sv), html:lang(nb), html:lang(ru), html:lang(uk), html:lang(pl)) :is(p, li, dd, td) { hyphens: auto; -webkit-hyphens: auto; }
html:lang(vi) { --lh-head: 1.3; }
html:lang(ja) { --text: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; --lh: 1.85; --lh-head: 1.35; }
html:lang(ko) { --text: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; --lh: 1.8; --lh-head: 1.35; }
html:lang(zh-Hans) { --text: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; --lh: 1.85; --lh-head: 1.35; }
html:lang(zh-Hant) { --text: system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; --lh: 1.85; --lh-head: 1.35; }
html:lang(th) { --text: system-ui, -apple-system, "Thonburi", "Noto Sans Thai", "Leelawadee UI", sans-serif; --lh: 1.85; --lh-head: 1.45; }
html:lang(hi) { --text: system-ui, -apple-system, "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", sans-serif; --lh: 1.85; --lh-head: 1.45; }
html:lang(ar) { --text: system-ui, -apple-system, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; --lh: 1.85; --lh-head: 1.45; }
html:lang(he) { --text: system-ui, -apple-system, "SF Hebrew", "Noto Sans Hebrew", "Segoe UI", Arial, sans-serif; --lh: 1.75; --lh-head: 1.3; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { word-break: auto-phrase; }
html:lang(ko) body { word-break: keep-all; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/var(--lh) var(--text); overflow-x: hidden; }
img, video, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--front); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: var(--lh-head); margin: 0; letter-spacing: var(--track); text-wrap: balance; overflow-wrap: break-word; }
p, li, dd { text-wrap: pretty; }
p, ul, ol, dl, figure { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }

/* header */
.top { padding: 14px 0; }
.top .wrap { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--display); flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 22.5%; }
.nav { display: flex; align-items: center; gap: 6px 20px; margin-inline-start: auto; font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.nav .lang { display: inline-flex; align-items: center; gap: 6px; }
.nav .lang svg { width: 17px; height: 17px; }
.nav .get { color: var(--bg); background: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.nav .get:hover { color: var(--bg); text-decoration: none; opacity: .88; }
@media (max-width: 860px) { .nav .hide-s { display: none; } }
@media (max-width: 400px) { .nav .get { display: none; } }

/* official App Store badge: Apple artwork, unaltered; >= 40px tall, clear space >= 1/4 of its height */
.badge { display: inline-block; padding: 12px; margin: -12px; line-height: 0; }
.badge img { height: 48px; width: auto; }

/* hero */
.hero { padding: clamp(16px, 3vw, 40px) 0 clamp(56px, 7vw, 96px); overflow-x: clip; } /* the circles behind the phone may be wider than the screen */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 74px); font-weight: 800; letter-spacing: var(--track-tight); line-height: calc(var(--lh-head) - .08); }
html:lang(ja) .hero h1, html:lang(zh-Hans) .hero h1, html:lang(zh-Hant) .hero h1, html:lang(ko) .hero h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.3; }
html:lang(th) .hero h1, html:lang(hi) .hero h1, html:lang(ar) .hero h1 { font-size: clamp(32px, 5vw, 60px); line-height: 1.35; }
.hero h1 .b { color: var(--back-text); }
.hero h1 .f { color: var(--front-text); }
.hero .lead { margin-top: 20px; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 32em; }
.hero .cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero .meta { font-size: 14px; color: var(--muted); max-width: 22em; line-height: 1.5; }
.stage { justify-self: center; display: grid; justify-items: center; gap: 14px; position: relative; isolation: isolate; }
.stage > .lens-bg { position: absolute; z-index: -1; top: 16%; left: 50%; width: 160%; max-width: none; transform: translateX(-50%); direction: ltr; }
.stage figcaption { font-size: 15px; color: var(--ink-2); text-align: center; max-width: 22em; line-height: 1.5; }
.stage figcaption strong { color: var(--ink); font-family: var(--display); }
.stage figcaption .ill { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage > .lens-bg { width: 130%; }
}

/* phone compositions: the same back + front photo pair placed in a layout (direction stays physical) */
.phone {
  --w: min(280px, 64vw);
  position: relative; direction: ltr; width: var(--w); aspect-ratio: 9 / 19.5; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--w) * .15); border: calc(var(--w) * .028) solid #0b0a16; background: #0b0a16; box-shadow: var(--shadow);
}
.phone picture, .phone img { position: absolute; }
.phone img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-back img { object-position: var(--bp, 50% 50%); }
.ph-front img { object-position: var(--fp, 50% 50%); }
.phone .ph-cut img { object-fit: contain; object-position: 50% 100%; transform: scale(1.12); transform-origin: 50% 100%; }
.ph-back { inset: 0; transition: inset .7s cubic-bezier(.2, .8, .2, 1); }
.ph-front {
  top: 4.5%; left: 6%; width: 38%; height: 25%; border-radius: calc(var(--w) * .06); overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 10px 24px -8px rgba(0, 0, 0, .6);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: top .7s, left .7s, width .7s, height .7s, border-radius .7s, box-shadow .7s, clip-path .7s, opacity .45s;
  transition-timing-function: cubic-bezier(.2, .8, .2, 1);
}
.ph-cut { inset: 0; opacity: 0; transition: opacity .5s, transform .7s; transform: translateY(8%); }
.ph-label {
  position: absolute; bottom: 4.5%; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  padding: 5px 13px; border-radius: 999px; background: rgba(12, 10, 24, .72); color: #fff; font: 600 13px/1.3 var(--text);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.l-circle .ph-front { width: 42%; height: calc(42% * 9 / 19.5); border-radius: 50%; }
.l-tb .ph-back { inset: 0 0 50% 0; }
.l-tb .ph-front { top: 50%; left: 0; width: 100%; height: 50%; border-radius: 0; box-shadow: 0 0 0 0 transparent; }
.l-lr .ph-back { inset: 0 50% 0 0; }
.l-lr .ph-front { top: 0; left: 50%; width: 50%; height: 100%; border-radius: 0; box-shadow: 0 0 0 0 transparent; }
.l-diag .ph-front { top: 0; left: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: 0 0 0 0 transparent; clip-path: polygon(0 74%, 100% 40%, 100% 100%, 0 100%); }
.l-cut .ph-front { top: 0; left: 0; width: 100%; height: 100%; border-radius: 0; opacity: 0; box-shadow: 0 0 0 0 transparent; }
.l-cut .ph-cut { opacity: 1; transform: none; }
.ph-rec {
  position: absolute; top: 4.5%; right: 6%; z-index: 3; display: flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(12, 10, 24, .6); color: #fff; font: 600 12px/1.3 var(--text);
  font-variant-numeric: tabular-nums;
}
.ph-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: rec 1.2s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .phone * { transition: none !important; animation: none !important; } }

/* screenshot gallery: native horizontal scroll with snap */
.gallery-sec { padding-bottom: var(--sec); }
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.gallery-head p { font-size: 14px; color: var(--muted); }
.gallery { margin-top: 22px; overflow-x: auto; scroll-snap-type: inline mandatory; scroll-padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); padding-block: 6px 18px; scrollbar-width: thin; }
.gallery:focus-visible { outline-offset: -3px; }
.gallery ul { list-style: none; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 21%, 236px); gap: 18px;
  padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); width: max-content; }
.gallery li { scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 18px 40px -24px rgba(30, 20, 70, .55); }
@media (max-width: 700px) { .gallery ul { grid-auto-columns: 70vw; gap: 14px; } }

/* sections */
.sec { padding: 0 0 var(--sec); }
.sec h2, .gallery-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: var(--track-tight); }
.sec h2 { margin-bottom: 18px; }
html:lang(ja) .sec h2, html:lang(zh-Hans) .sec h2, html:lang(zh-Hant) .sec h2, html:lang(ko) .sec h2, html:lang(ja) .gallery-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.intro { color: var(--ink-2); max-width: 38em; }
.intro + .intro { margin-top: 12px; }

/* the three scenes */
.scenes { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(40px, 6vw, 96px); }
.scene { flex: 0 1 300px; }
.scene { display: grid; justify-items: center; align-content: start; gap: 20px; text-align: center; }
.scene .phone { --w: min(232px, 62vw); }
.scene h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: var(--track-tight); }
.scene p { margin-top: 6px; color: var(--ink-2); max-width: 20em; margin-inline: auto; }
.quiet { margin-top: 36px; text-align: center; font-size: 15px; }
.quiet a { color: var(--muted); }
@media (max-width: 760px) { .scenes { gap: 56px; } }

/* free and pro in a few lines */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.tiers p { padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.tiers p.pro { border-color: var(--back); box-shadow: inset 0 0 0 1px var(--back); }
.tiers strong { color: var(--ink); }
.price-line { margin-top: 18px; color: var(--ink); }
.note { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 52em; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }

/* layout glyphs: 9:16 diagrams, pink = back, blue = front */
.g { width: 27px; height: 48px; flex: none; direction: ltr; }
.sp-b { fill: var(--back); }
.sp-f { fill: var(--front); }
.sp-bg { fill: var(--glyph-bg); }
.sp-o { fill: var(--overlap); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-inline-end: 7px; vertical-align: -1px; }
.legend .lb::before { background: var(--back); }
.legend .lf::before { background: var(--front); }
.layouts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 1px solid var(--line); }
.layouts li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.layouts strong { display: block; color: var(--ink); font: 700 17px/1.35 var(--display); margin-bottom: 3px; }
@media (max-width: 560px) { .layouts { grid-template-columns: 1fr; } }
.tag { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; font: 600 12px/1.5 var(--text); vertical-align: 2px; border: 1px solid var(--line); color: var(--muted); }
.tag--pro { border-color: transparent; background: var(--ink); color: var(--bg); }

/* faq + prose */
.faq > *, .prose > * { max-width: 46rem; }
.faq h3, .prose h3 { font-size: 20px; font-weight: 700; margin: 34px 0 8px; }
.faq p, .prose p, .prose li { color: var(--ink-2); }
.prose h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; margin: 56px 0 14px; letter-spacing: var(--track); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin-top: 12px; }
.prose ul.layouts, .prose ul.cases { padding-inline-start: 0; }
.prose li + li { margin-top: 6px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-top: 8px; }
.prose a { color: var(--front-text); }

/* guide pages */
.page-head { padding: clamp(24px, 5vw, 64px) 0 clamp(16px, 3vw, 32px); }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: var(--track-tight); max-width: 18em; }
html:lang(ja) .page-head h1, html:lang(zh-Hans) .page-head h1, html:lang(zh-Hant) .page-head h1, html:lang(ko) .page-head h1 { font-size: clamp(28px, 4vw, 44px); }
.page-head .lead { margin-top: 16px; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 36em; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.steps { list-style: none; counter-reset: s; padding: 0 !important; margin-top: 18px; }
.steps > li { counter-increment: s; position: relative; padding-block: 0 22px; padding-inline-start: 52px; margin: 0 !important; }
.steps > li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 16px/34px var(--display); text-align: center; }
.steps strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; }
.cases { list-style: none; padding: 0 !important; margin-top: 10px; }
.cases > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.cases .gs { display: flex; gap: 6px; }
.cases h2 { margin: 0 0 6px; font-size: 23px; }
.cases .use { margin-top: 10px; font-size: 15px; color: var(--muted); }
.cases .use b { color: var(--ink); font-weight: 600; }
.aside-cta { margin-top: 48px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; justify-content: space-between; }
.aside-cta p { color: var(--ink-2); max-width: 30em; }

/* closing */
.closing { padding: var(--sec) 0; text-align: center; border-top: 1px solid var(--line); }
.closing .mark { width: 140px; margin: 0 auto 22px; direction: ltr; }
.closing h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: var(--track-tight); }
.closing p { margin: 12px auto 26px; color: var(--ink-2); max-width: 30em; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: start; }
.foot a { color: var(--ink-2); }
.foot address { font-style: normal; }
.langs { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; }
.langs h2 { font: 600 14px/1.4 var(--text); color: var(--ink-2); margin-bottom: 10px; letter-spacing: 0; }
.langs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.langs a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: none; }
.legal { grid-column: 1 / -1; font-size: 12.5px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }
.closing .cta { display: inline-block; text-decoration: none; color: var(--bg); background: var(--ink); padding: 12px 24px; border-radius: 999px; font-weight: 600; }
.closing .cta:hover { color: var(--bg); text-decoration: none; opacity: .88; }
.posting { margin-top: 18px; }
/* Chinese headings: break only at spaces / <wbr> in the strings, not inside words */
:lang(zh-Hans) h1, :lang(zh-Hant) h1 { word-break: keep-all; overflow-wrap: anywhere; }
