/* Shared styles for the Starkey social mockups.
   Palette from the live Starkey site: blue #067cb9, navy #034364, sky #089ce9, plus black and white. */
:root {
  --bg: #eef3f6; --card: #ffffff; --fg: #000a0f; --fg-2: #51636e; --line: #d3dde4;
  --accent: #067cb9; --accent-fg: #ffffff; --navy: #034364; --sky: #089ce9;
  --blue-1: #e1eff8; --blue-2: #b6d8ec; --blue-deep: #056394;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #00080c; --card: #0c1a22; --fg: #f2f7fa; --fg-2: #9db2bf; --line: #23394a;
    --accent: #3fb0ef; --accent-fg: #00131c; --navy: #8fd0f5; --sky: #8ad4fa;
    --blue-1: #0f2c3e; --blue-2: #17445d; --blue-deep: #8fd0f5; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #00080c; --card: #0c1a22; --fg: #f2f7fa; --fg-2: #9db2bf; --line: #23394a;
  --accent: #3fb0ef; --accent-fg: #00131c; --navy: #8fd0f5; --sky: #8ad4fa;
  --blue-1: #0f2c3e; --blue-2: #17445d; --blue-deep: #8fd0f5; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.45; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 56px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
.wrap { max-width: 1000px; margin: 0 auto; }
.wrap.narrow { max-width: 860px; }

/* Mockup switcher */
.switch { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 14px 0 8px; font-size: 14px; }
.switch a { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 600; }
.switch a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.note { margin: 0 0 14px; font-size: 13px; color: var(--fg-2); text-align: center; }

/* Brand bits */
.emblem { display: block; background: url(images/logo-full-sm.png) left center / auto 100% no-repeat; }
.avatar-round { border-radius: 50%; background: #ffffff; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.er { color: var(--sky); }
.btn { min-height: 38px; padding: 0 16px; border-radius: 10px; border: 0; font-weight: 600; background: var(--blue-1); color: var(--blue-deep); }
.btn.p { background: var(--accent); color: var(--accent-fg); }
.pin { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--accent); }
.pin svg { width: 13px; height: 13px; fill: currentColor; }
.tx { display: grid; align-content: end; padding: 10px; background: var(--accent); color: var(--accent-fg); }
.tx.pale { background: var(--blue-1); color: var(--blue-deep); }
.tx.mid { background: var(--blue-2); color: #03283b; }
.tx.navy { background: #034364; color: #ffffff; }
.tx b { display: block; font-size: 17px; line-height: 1.05; letter-spacing: -0.03em; }
.tx span { display: block; margin-top: 4px; font-size: 11px; line-height: 1.2; opacity: .9; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; min-width: 0; }
.card h2 { font-size: 19px; margin-bottom: 10px; }

/* ---------- Facebook ---------- */
.fb-header { background: var(--card); border: 1px solid var(--line); border-radius: 0 0 20px 20px; overflow: hidden; }
.fb-cover { position: relative; aspect-ratio: 820 / 312; max-height: 380px; width: 100%; background: #034364; }
.fb-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.fb-cover .tag { position: absolute; right: 18px; bottom: 16px; background: rgba(255,255,255,.95); color: #056394; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.fb-who { display: flex; gap: 20px; align-items: flex-end; padding: 0 24px 18px; flex-wrap: wrap; }
.fb-avatar { width: 136px; height: 136px; border: 5px solid var(--card); margin-top: -52px; }
.fb-avatar .emblem { width: 100px; height: 100px; }
.fb-title { flex: 1 1 260px; min-width: 0; padding-top: 12px; }
.fb-title h1 { font-size: 28px; line-height: 1.15; font-weight: 700; }
.fb-title p { margin: 4px 0 0; color: var(--fg-2); }
.fb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-tabs { display: flex; gap: 4px; padding: 0 16px; border-top: 1px solid var(--line); overflow-x: auto; }
.fb-tabs span { padding: 14px 14px 12px; font-weight: 600; color: var(--fg-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.fb-tabs span.on { color: var(--accent); border-bottom-color: var(--accent); }
.fb-cols { display: grid; grid-template-columns: 340px 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.col { display: grid; gap: 16px; min-width: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.facts .ic { color: var(--accent); font-weight: 700; text-align: center; }
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.linklist a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--blue-1); color: var(--blue-deep); font-weight: 600; text-decoration: none; }
.linklist a:hover { filter: brightness(.97); }
.linklist small { font-weight: 400; color: var(--fg-2); }
.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.featured div { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--blue-1); }
.featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured span { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(255,255,255,.95); color: #056394; font-size: 11px; font-weight: 700; padding: 4px 7px; border-radius: 8px; line-height: 1.2; }
.featured .txt { display: grid; align-content: end; padding: 8px; font-weight: 700; line-height: 1.1; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 12px; overflow: hidden; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.post { padding: 0; overflow: hidden; }
.post-head { display: flex; gap: 10px; align-items: center; padding: 14px 16px 6px; }
.post-head .av { width: 42px; height: 42px; }
.post-head .av .emblem { width: 32px; height: 32px; }
.post-head b { display: block; font-size: 15px; line-height: 1.2; }
.post-head small { color: var(--fg-2); font-size: 13px; }
.post-text { padding: 6px 16px 12px; }
.post-text h3 { margin-bottom: 4px; font-size: 21px; line-height: 1.15; }
.post-text p { margin: 0; }
.post-text .disc { font-size: 13px; color: var(--fg-2); margin-top: 8px; }
.post-img { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: var(--blue-1); }
.linkbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px; background: var(--blue-1); }
.linkbar span { font-size: 13px; color: var(--fg-2); }
.linkbar b { display: block; font-size: 15px; }
.react { display: flex; border-top: 1px solid var(--line); }
.react span { flex: 1; text-align: center; padding: 10px; color: var(--fg-2); font-weight: 600; }
.quote { padding: 18px 20px; background: var(--navy); color: #ffffff; }
.quote p { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; }
.quote small { display: block; margin-top: 10px; opacity: .85; font-size: 13px; }
:root[data-theme="dark"] .quote { background: #0f3047; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quote { background: #0f3047; } }

/* ---------- Phone frames (Instagram, TikTok) ---------- */
.stage { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 360px); gap: 24px; justify-content: center; align-items: start; margin-top: 8px; }
.phone { background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.side h2 { font-size: 17px; margin-bottom: 4px; }
.side p { margin: 0 0 10px; font-size: 14px; color: var(--fg-2); }
.side .card + .card { margin-top: 14px; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; font-weight: 700; font-size: 17px; }
.top small { font-weight: 400; color: var(--fg-2); font-size: 13px; }
.head { display: grid; grid-template-columns: 86px 1fr; gap: 16px; align-items: center; padding: 8px 16px; }
.head .avatar-round { width: 86px; height: 86px; }
.head .emblem { width: 66px; height: 66px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats b { display: block; font-size: 17px; line-height: 1.2; }
.stats span { font-size: 13px; color: var(--fg-2); }
.bio { padding: 4px 16px 10px; font-size: 14px; line-height: 1.4; }
.bio b { display: block; }
.bio .cat { color: var(--fg-2); }
.bio .lk { color: var(--accent); font-weight: 600; }
.btns { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; padding: 0 16px 12px; }
.hl { display: flex; gap: 14px; padding: 4px 16px 14px; overflow-x: auto; }
.hl div { text-align: center; font-size: 12px; flex: none; width: 64px; }
.hl i { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--accent); margin-bottom: 4px; overflow: hidden; font-style: normal; font-weight: 700; color: var(--blue-deep); background: var(--blue-1); }
.hl img { width: 100%; height: 100%; object-fit: cover; display: block; border: 3px solid var(--card); border-radius: 50%; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.tabs span { display: grid; place-items: center; height: 42px; border-bottom: 2px solid transparent; color: var(--fg-2); }
.tabs span.on { color: var(--fg); border-bottom-color: var(--fg); }
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tile { position: relative; overflow: hidden; background: var(--blue-1); min-width: 0; aspect-ratio: 3 / 4; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .pinb { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.95); color: #056394; display: grid; place-items: center; }
.tile .pinb svg { width: 12px; height: 12px; fill: currentColor; }
/* Text tiles: the tile rule above sets a pale background, so these need a stronger selector */
.tile.tx { background: var(--accent); color: var(--accent-fg); }
.tile.tx.pale { background: var(--blue-1); color: var(--blue-deep); }
.tile.tx.mid { background: var(--blue-2); color: #03283b; }
.tile.tx.navy { background: #034364; color: #ffffff; }
/* Photo with words over it: a blue gradient keeps the text readable */
.tile.ptx::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,67,100,.10) 25%, rgba(3,67,100,.88)); }
.tile.ptx .ptx-in { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; color: #ffffff; }
.tile.ptx .ptx-in b { display: block; font-size: 19px; line-height: 1.05; letter-spacing: -0.03em; }
.tile.ptx .ptx-in span { display: block; margin-top: 4px; font-size: 11px; line-height: 1.2; opacity: .95; }
.tile .pinb { z-index: 2; }
/* Vector icon on a solid text tile */
.tile.tx .ic-svg { position: absolute; top: 14px; left: 10px; width: 62px; height: 62px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chip { position: absolute; left: 6px; bottom: 6px; background: rgba(255,255,255,.95); color: #056394; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; line-height: 1.3; max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl { display: flex; gap: 8px; padding: 2px 16px 12px; overflow-x: auto; }
.pl div { flex: none; width: 112px; padding: 10px; border-radius: 12px; background: var(--blue-1); color: var(--blue-deep); font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.pl small { display: block; font-weight: 400; color: var(--fg-2); margin-top: 2px; }

/* TikTok tiles are tall */
.tt .tile { aspect-ratio: 9 / 14; }
.tt .tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,10,15,.72)); }
.tt .cap { position: absolute; left: 7px; right: 7px; bottom: 7px; z-index: 1; color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.15; }
.tt .play { position: absolute; left: 7px; top: 7px; z-index: 1; display: flex; align-items: center; gap: 3px; color: #fff; font-size: 11px; font-weight: 600; }
.tt .play svg { width: 11px; height: 11px; fill: #fff; }
.tt .tile .pinb { z-index: 2; }
.tt .tile .txt { position: absolute; inset: 0; display: grid; align-content: center; padding: 10px; text-align: left; z-index: 1; }

/* Facebook: quick-action icon bar and Featured tiles with a wide 24/7 tile */
.qa { display: flex; justify-content: space-around; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.qa div { text-align: center; font-size: 13px; font-weight: 600; width: 84px; }
.qa i { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 6px; border-radius: 50%; background: var(--blue-1); color: var(--blue-deep); border: 2px solid var(--accent); }
.qa svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fx3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fx3 .tile { aspect-ratio: 1 / 1.1; border-radius: 14px; }
.fx3 .tile.tx { padding: 8px; }
.fx3 .tile.tx .ic-svg { width: 38px; height: 38px; top: 10px; left: 8px; position: absolute; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fx3 .tile.tx b { font-size: 12.5px; }
.fx3 .tile.tx span { display: none; }
.fx3 .tile.wide { grid-column: 1 / -1; aspect-ratio: auto; display: flex; align-items: center; gap: 14px; padding: 14px; }
.fx3 .tile.wide svg { width: 58px; height: 58px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fx3 .tile.wide b { font-size: 21px; }
.fx3 .tile.wide span { display: block; font-size: 12.5px; margin-top: 3px; }

/* Hub */
.hub { padding-top: 36px; }
.hub h1 { font-size: 32px; margin-bottom: 8px; }
.hub .lede { color: var(--fg-2); max-width: 66ch; margin: 0 0 24px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hub-card { display: block; text-decoration: none; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.hub-card:hover { border-color: var(--accent); text-decoration: none; }
.hub-card h2 { font-size: 22px; }
.hub-card p { margin: 6px 0 14px; color: var(--fg-2); font-size: 14px; }
.hub-card .btn { display: inline-flex; align-items: center; }
.hub .note2 { margin-top: 24px; font-size: 14px; color: var(--fg-2); max-width: 74ch; }

@media (max-width: 880px) {
  .fb-cols { grid-template-columns: 1fr; }
  .stage { grid-template-columns: minmax(0, 420px); }
  .fb-who { gap: 12px; padding: 0 16px 16px; }
  .fb-avatar { width: 112px; height: 112px; margin-top: -44px; }
  .fb-avatar .emblem { width: 82px; height: 82px; }
  .fb-title h1 { font-size: 23px; }
  .fb-actions { width: 100%; }
  .fb-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Floating link back to the overview page */
.back-pill { position: fixed; left: max(14px, env(safe-area-inset-left, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); z-index: 40; padding: 9px 16px; border-radius: 999px; background: var(--card); color: var(--accent); border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 4px 16px rgba(0, 10, 15, .14); }
.back-pill:hover { text-decoration: none; filter: brightness(.97); }
