/* family.crowon.app (server/family.mjs serves it as /family/static/site.css). Built the way Apple's child-safety page
   (apple.com/jp/families → /jp/child-safety/, measured 2026-11-10) is built, in CrowOn's words and colours:
   - the hero: the family photo full bleed (792px high), a 28/600 label and a 64/71 600-weight headline in white at lower left
   - section heads left-aligned: a small label, a 48/55 600-weight statement ending in a full stop, a short lead
   - galleries of 372×452 tiles with 28px corners that scroll sideways, 36px round previous / next buttons; each tile carries
     the product's own UI, the caption under it starts with its name in bold, then grey text (17/21)
   - the real setup screen beside numbered steps; related-info cards; questions in ruled rows with a chevron
   Backgrounds stay #fff / #000 (user rule); tiles are #f5f5f7 / #1c1c1e. Motion only for galleries, questions opening and
   the jump to a section (user rule 2026-11-10). */
:root {
  color-scheme: light dark;
  --bg: #fff; --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b; --line: #d2d2d7; --tile: #f5f5f7; --btn: #1d1d1f; --btn-ink: #fff;
  --ui: #fff; --ui-line: #ececec; --ui-shadow: 0 2px 6px rgba(0, 0, 0, .06), 0 16px 40px rgba(0, 0, 0, .14);
  --navbtn: rgba(210, 210, 215, .64); --w: 1260px; --g: 90px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b; --line: #424245; --tile: #1c1c1e; --btn: #f5f5f7; --btn-ink: #000;
    --ui: #2c2c2e; --ui-line: #3a3a3c; --ui-shadow: 0 16px 40px rgba(0, 0, 0, .6); --navbtn: rgba(66, 66, 69, .72); }
}
@media (max-width: 1068px) { :root { --g: 48px; } }
@media (max-width: 734px) { :root { --g: 20px; } }
html { scrollbar-width: none; scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .f * { transition: none !important; } }
html::-webkit-scrollbar { display: none; }
* { box-sizing: border-box; }
body.f { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 "SF Pro JP", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif; -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
.f:lang(ja) { line-height: 1.7; letter-spacing: 0; }
.f :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
.f :where(ul, ol) { list-style: none; padding: 0; }
.f :where(a) { color: inherit; text-decoration: none; }
.f:lang(ja) :where(h1, h2, h3, p, summary, li, span, b) { word-break: auto-phrase; line-break: strict; }
.f img { display: block; max-width: 100%; }
.f svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f :focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; border-radius: 8px; }
.nb { display: inline-block; }
.f-skip { position: absolute; left: -999px; top: 8px; z-index: 60; padding: 8px 14px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); }
.f-skip:focus { left: 12px; }
.f-wrap { max-width: calc(var(--w) + var(--g) * 2); margin: 0 auto; padding: 0 var(--g); }

/* header: the shared bar (web/public/site-header.css, loaded before this file). Nothing about it is styled here. */
/* the button style the intro uses */
.f-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 16px; border-radius: 999px; background: var(--btn); color: var(--btn-ink) !important; font-size: 13px; font-weight: 600; white-space: nowrap; }
.f-btn:active { opacity: .8; }

/* hero */
.f-hero { position: relative; height: 792px; overflow: hidden; background: #000; color: #f5f5f7; }
.f-hero-pic { position: absolute; inset: 0; background: var(--tone); }
.f-hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 30%); }
/* a soft shade under the words so white text stays readable on a bright photo */
.f-hero-pic::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.f-hero-t { position: absolute; left: 0; right: 0; bottom: 72px; }
.f-hero-label { font-size: 28px; line-height: 1.18; font-weight: 600; margin-bottom: 12px; }
.f-hero h1 { font-size: 64px; line-height: 1.11; font-weight: 600; letter-spacing: -0.015em; max-width: 14em; }
.f:lang(ja) .f-hero h1 { line-height: 1.22; letter-spacing: 0; }
.f-intro { padding: 72px 0 0; }
.f-intro-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; }
.f-intro p { max-width: 40em; font-size: 21px; line-height: 1.5; font-weight: 600; color: var(--ink-2); }
.f-intro .f-btn { min-height: 44px; padding: 0 22px; font-size: 17px; }
@media (max-width: 734px) {
  .f-hero { height: 640px; } .f-hero-t { bottom: 32px; } .f-hero-label { font-size: 19px; } .f-hero h1 { font-size: 32px; }
  .f-intro { padding-top: 40px; } .f-intro p { font-size: 17px; }
}

/* section heads */
.f-sec { padding: 120px 0 104px; }
.f-head { max-width: 980px; margin-bottom: 48px; }
.f-label { font-size: 17px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.f-head h2 { font-size: 48px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.f:lang(ja) .f-head h2 { line-height: 1.25; letter-spacing: 0; }
.f-lead { max-width: 42em; margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.f-grey { border-top: 1px solid var(--line); }
.f-narrow { max-width: calc(860px + var(--g) * 2); }
.f-more { display: inline-flex; align-items: center; gap: 2px; font-size: 17px; color: #0066cc; }
.f-more:hover { text-decoration: underline; }
.f-more svg { width: 16px; height: 16px; }
@media (prefers-color-scheme: dark) { .f-more { color: #2997ff; } }
@media (max-width: 734px) { .f-sec { padding: 72px 0 64px; } .f-head { margin-bottom: 32px; } .f-head h2 { font-size: 32px; } .f-lead { font-size: 17px; } .f-label { font-size: 14px; } }

/* galleries: tiles that scroll sideways from the content edge */
.f-gal-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 max(var(--g), calc((100vw - var(--w)) / 2)) 8px; scroll-padding: 0 max(var(--g), calc((100vw - var(--w)) / 2)); }
.f-gal-track::-webkit-scrollbar { display: none; }
.f-tile { flex: none; width: 372px; scroll-snap-align: start; }
.f-tile-pic { position: relative; height: 452px; overflow: hidden; border-radius: 28px; background: var(--tile); }
.f-photo { position: relative; overflow: hidden; background: var(--tone); }
.f-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.f-tile-photo { position: absolute; inset: 0; }
.f-cap { margin-top: 24px; padding-right: 12px; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--ink-2); }
.f:lang(ja) .f-cap { line-height: 1.6; font-size: 16px; }
.f-cap b { color: var(--ink); }
.f-tile .f-more { margin-top: 12px; font-size: 15px; }
.f-gal-nav { display: flex; justify-content: flex-end; gap: 16px; margin-top: 28px; }
.f-gal-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--navbtn); color: var(--ink); cursor: pointer; }
.f-gal-btn:disabled { opacity: .4; cursor: default; }
.f-gal-btn svg { width: 18px; height: 18px; }
@media (max-width: 734px) { .f-tile { width: 300px; } .f-tile-pic { height: 380px; } .f-gal-nav { margin-top: 20px; } }

/* the app's own UI as a card, sitting in the lower part of a tile */
.f-ui { width: 100%; padding: 16px 18px; border-radius: 18px; background: var(--ui); color: var(--ink); box-shadow: var(--ui-shadow); font-size: 15px; line-height: 1.45; letter-spacing: 0; }
.f-ui.in-tile { position: absolute; left: 20px; right: 20px; bottom: 20px; width: auto; }
.f-ui-h { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.f-ui-h:not(:first-child) { margin-top: 10px; }
.f-ui-rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; border-top: 1px solid var(--ui-line); }
.f-ui-rows li:first-child { border-top: 0; }
.f-ui-rows b { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; white-space: nowrap; }
.f-ui-rows b svg { width: 14px; height: 14px; color: var(--ink-3); }
.f-ui-check { width: 18px !important; height: 18px !important; padding: 2px; border-radius: 5px; background: #0071e3; color: #fff; stroke-width: 3 !important; }
.f-ui-list li { position: relative; padding: 2px 0 2px 13px; font-size: 13.5px; }
.f-ui-list li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.f-ui-note { margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.f-ui-who { display: flex; align-items: center; gap: 12px; }
.f-ui-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #6b7280; color: #fff; font-weight: 700; flex: none; }
.f-ui-who > span:nth-child(2) { display: grid; flex: 1; line-height: 1.35; }
.f-ui-who small { font-size: 12px; color: var(--ink-2); }
.f-ui-who em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.f-ui-line { margin-top: 8px; font-size: 12px; color: var(--ink-2); }

/* what you see / don't */
.f-see { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.f-see-tile { padding: 40px; border-radius: 28px; background: var(--tile); }
.f-see-tile h3 { font-size: 28px; line-height: 1.2; font-weight: 600; margin-bottom: 24px; }
.f-see-tile li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; }
.f-see-tile li:first-child { border-top: 0; }
.f-see-tile .f-ui-check { margin-top: 3px; }
.f-see-tile.not svg { width: 18px; height: 18px; margin-top: 3px; padding: 2px; border-radius: 5px; background: var(--ink-3); color: #fff; stroke-width: 3; }
@media (max-width: 834px) { .f-see { grid-template-columns: 1fr; } .f-see-tile { padding: 28px 24px; } .f-see-tile h3 { font-size: 22px; } }

/* getting started: the real invite screen on a tile beside numbered steps */
.f-start { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.f-start-pic { display: grid; place-items: center; gap: 14px; padding: 64px 48px 40px; border-radius: 28px; background: var(--tile); }
.f-start-pic img { width: 100%; max-width: 460px; height: auto; border-radius: 14px; box-shadow: var(--ui-shadow); }
.f-start-pic figcaption { font-size: 12px; color: var(--ink-3); }
.f-path { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 17px; font-weight: 600; }
.f-path span { width: 100%; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.f-path i { font-style: normal; color: var(--ink-3); font-weight: 400; }
.f-steps { margin-top: 28px; }
.f-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.f-step-n { display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 14px; font-weight: 600; margin-top: 2px; }
.f-steps h3 { font-size: 19px; font-weight: 600; margin-bottom: 2px; }
.f-steps p { color: var(--ink-2); font-size: 16px; }
.f-need { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.f-need > p { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.f-need li { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; font-size: 16px; }
.f-need .f-ui-check { margin-top: 4px; }
@media (max-width: 834px) { .f-start { grid-template-columns: 1fr; gap: 40px; } .f-start-pic { padding: 32px 20px 20px; } }

/* related guides: three small cards in a row (no gallery needed for three) */
.f-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.f-tile.small { width: auto; }
.f-guide { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 28px; background: var(--tile); }
.f-guide-pic { aspect-ratio: 16 / 10; }
.f-guide-t { display: grid; gap: 8px; padding: 28px 28px 8px; }
.f-guide-t b { font-size: 21px; line-height: 1.3; font-weight: 600; }
.f-guide-t > span { font-size: 15px; color: var(--ink-2); }
.f-guide-go { display: grid; place-items: center; width: 36px; height: 36px; margin: auto 24px 24px auto; border-radius: 50%; background: var(--btn); color: var(--btn-ink); }
.f-guide-go svg { width: 16px; height: 16px; }
@media (max-width: 834px) { .f-guides { grid-template-columns: 1fr; } }

/* questions: ruled rows with a chevron */
.f-qa { max-width: 980px; border-top: 1px solid var(--line); }
.f-qa details { border-bottom: 1px solid var(--line); }
.f-qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 19px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.f-qa summary::-webkit-details-marker { display: none; }
.f-qa summary svg { color: var(--ink-2); transition: transform .2s; }
.f-qa details[open] summary svg { transform: rotate(180deg); }
.f-qa details p { padding: 0 48px 26px 0; color: var(--ink-2); }
.f-qa-h { margin: 64px 0 16px; font-size: 28px; font-weight: 600; }
@media (max-width: 734px) { .f-qa summary { font-size: 17px; padding: 20px 0; } .f-qa-h { font-size: 22px; } }

/* getting help */
.f-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 980px; }
.f-links a { display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 0 24px; border-radius: 18px; background: var(--tile); font-weight: 600; }
.f-links a:active { opacity: .8; }
@media (max-width: 734px) { .f-links { grid-template-columns: 1fr; } }

/* footer: Apple's small grey type */
.f-foot { padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.f-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 760px; }
.f-foot h2 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.f-foot li a { display: block; padding: 3px 0; }
.f-foot li a:hover { text-decoration: underline; }
.f-foot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.f-logo { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.f-logo b { font-weight: 700; letter-spacing: -0.03em; }
.f-foot-bar .f-logo b { font-size: 15px; color: var(--ink); }
.f-foot-bar .f-logo span { font-size: 12px; }
.f-foot-bar > a:last-child { margin-left: auto; }
@media (max-width: 734px) { .f-foot-cols { grid-template-columns: 1fr 1fr; } }

/* feature pages: a shorter photo hero, the lead, sections beside the app wording on a photo tile, the Help Center line */
.f-hero.page { height: 560px; }
.f-page { padding-top: 64px; }
.f-page-lead { max-width: 36em; font-size: 24px; line-height: 1.45; font-weight: 600; margin-bottom: 56px; }
.f-page-in { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: start; }
.f-page-t section + section { margin-top: 40px; }
.f-page-t h2 { font-size: 28px; line-height: 1.25; font-weight: 600; margin-bottom: 10px; }
.f-page-t p { font-size: 17px; color: var(--ink-2); max-width: 36em; }
.f-page-help { display: grid; gap: 4px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.f-page-help span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.f-page-m { position: sticky; top: 96px; }
.f-page-m .f-tile-pic { height: 520px; }
@media (max-width: 899px) {
  .f-page-in { grid-template-columns: 1fr; gap: 40px; } .f-page-m { position: static; order: -1; } .f-page-m .f-tile-pic { height: 420px; }
  .f-page-lead { font-size: 19px; margin-bottom: 32px; } .f-page-t h2 { font-size: 22px; }
}
@media (max-width: 734px) { .f-hero.page { height: 440px; } .f-page { padding-top: 40px; } }

/* home: the pages as entrances, in groups */
.f-group { padding: 72px 0 0; }
.f-group + .f-group { padding-top: 64px; }
.f-group-h { font-size: 28px; font-weight: 600; margin-bottom: 24px; }
.f-group:last-of-type { padding-bottom: 96px; }
@media (max-width: 734px) { .f-group { padding-top: 48px; } .f-group-h { font-size: 22px; } }
