/* FirstWise site: same design language as the app (Roboto, cool grey page, white rounded cards,
   the app's feature colours, and a dark theme that follows the visitor's device). */
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url(fonts/roboto-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url(fonts/roboto-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url(fonts/roboto-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 900; font-display: swap; src: url(fonts/roboto-latin-900-normal.woff2) format("woff2"); }

:root {
  --bg: #F3F5F2; --paper: #FFFFFF; --ink: #1E2A2F; --soft: #56636B; --faint: #8A969C; --line: #E1E6E3; --card: #F4F6F4;
  --accent: #FF7A59; --accent-ink: #FFFFFF; --sel-bg: #D5EEC2; --sel-ink: #24501A; --yellow: #FFC93C;
  --feed: #EE8A5B; --pump: #9A7BDC; --sleep: #4F67C2; --diaper: #E3B23C; --bath: #3FA2D3; --play: #62A856; --health: #D4546E; --growth: #2E9A8D; --meals: #DD5B42;
  --t-feed: #FDEEE6; --t-pump: #F1ECFB; --t-sleep: #E9ECF8; --t-diaper: #FBF3DF; --t-bath: #E4F2FA; --t-play: #E9F4E6; --t-health: #FBE8EC; --t-growth: #DFF1EE; --t-meals: #FCE8E3;
  --shadow: 0 30px 60px -22px rgba(30,42,47,.4), 0 12px 24px -12px rgba(30,42,47,.28);
  --hero-a: #FFF1CF; --hero-b: #E4F2FA; --status: #111111;
  --radius: 28px; --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111518; --paper: #1A2024; --ink: #E9EEF0; --soft: #AEB9BF; --faint: #7E8A90; --line: #2B3439; --card: #222A2F;
    --accent: #FF8F72; --accent-ink: #1A2024; --sel-bg: rgba(122,190,82,.26); --sel-ink: #CFEFB8;
    --t-feed: rgba(238,138,91,.16); --t-pump: rgba(154,123,220,.18); --t-sleep: rgba(111,134,222,.2); --t-diaper: rgba(227,178,60,.16);
    --t-bath: rgba(63,162,211,.18); --t-play: rgba(98,168,86,.18); --t-health: rgba(212,84,110,.2); --t-growth: rgba(46,154,141,.2); --t-meals: rgba(221,91,66,.2);
    --sleep: #7B8FE0; --shadow: 0 30px 60px -22px rgba(0,0,0,.8), 0 12px 24px -12px rgba(0,0,0,.6);
    --hero-a: #2a2618; --hero-b: #16232b; --status: #FFFFFF;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -.2px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top nav { margin-left: auto; display: flex; gap: 4px; }
.top nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--soft); padding: 8px 14px; border-radius: 999px; }
.top nav a:hover { background: var(--card); color: var(--ink); }
.soon { font-weight: 700; font-size: 14px; background: var(--sel-bg); color: var(--sel-ink); padding: 8px 16px; border-radius: 999px; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(160deg, var(--hero-a) 0%, var(--bg) 46%, var(--hero-b) 100%); padding: 40px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.hero .copy { padding-bottom: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; background: var(--paper); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--play); }
h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -1.5px; font-weight: 900; margin: 0 0 18px; }
h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
.lead { font-size: clamp(18px, 1.9vw, 20.5px); line-height: 1.55; color: var(--soft); max-width: 34em; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 16px var(--font); text-decoration: none; padding: 15px 26px; border-radius: 999px; border: 2px solid transparent; }
.btn.main { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn.main.static { cursor: default; }
.dots { display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; }
.hero-note { color: var(--soft); font-size: 15px; margin: 12px 0 0; }

/* ---------- phone (an iPhone-style frame around a real screenshot) ---------- */
.phone { position: relative; width: 100%; max-width: var(--pw, 300px); padding: 3px; border-radius: 15.5cqw; border-radius: 56px; flex: none;
  background: linear-gradient(140deg, #cfd5d8 0%, #7d868b 30%, #b4bbbf 52%, #6a7378 78%, #c3c9cc 100%); box-shadow: var(--shadow); }
.phone .bezel { background: #050607; border-radius: 53px; padding: 9px; }
.phone .screen { position: relative; aspect-ratio: 390 / 844; border-radius: 44px; overflow: hidden; background: #000; container-type: inline-size; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .status { position: absolute; left: 0; right: 0; top: 0; height: 12.2cqw; padding: 3.7cqw 7cqw 0 8.4cqw; display: flex; justify-content: space-between; align-items: flex-start; color: var(--status); pointer-events: none; }
.phone .status b { font-weight: 700; font-size: 4.1cqw; letter-spacing: -.1px; line-height: 5cqw; }
.phone .status span { display: flex; gap: 1.5cqw; align-items: center; height: 5cqw; }
.phone .status svg { height: 3.2cqw; width: auto; fill: currentColor; display: block; }
.phone .island { position: absolute; left: 50%; top: 2.9cqw; width: 30cqw; height: 8.6cqw; transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone .homebar { position: absolute; left: 50%; bottom: 2.1cqw; width: 34cqw; height: 1.3cqw; transform: translateX(-50%); border-radius: 999px; background: var(--status); opacity: .85; }
.phone i.k { position: absolute; width: 3px; border-radius: 2px; background: #7b8489; }
.phone i.k1 { left: -3px; top: 15%; height: 3.2%; } .phone i.k2 { left: -3px; top: 21%; height: 6.4%; } .phone i.k3 { left: -3px; top: 29%; height: 6.4%; }
.phone i.k4 { right: -3px; top: 25%; height: 10%; }
.phone.light { --status: #111111; } .phone.dark { --status: #FFFFFF; }

.duo { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; --pw: 285px; padding-top: 12px; }
.duo .phone { transform-origin: bottom center; }
.duo .p1 { z-index: 2; margin-right: -34px; }
.duo .p2 { --pw: 255px; transform: translateY(40px); }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: .8px; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
h2 { text-wrap: balance; font-size: clamp(30px, 3.8vw, 42px); line-height: 1.1; letter-spacing: -.8px; font-weight: 900; margin: 0 0 14px; }
.sub { font-size: 18.5px; color: var(--soft); max-width: 38em; margin: 0 0 28px; }
.center { text-align: center; } .center .sub { margin-left: auto; margin-right: auto; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px 20px; }
.tile .badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; margin-bottom: 10px; }
.tile h3 { font-size: 18px; margin: 0 0 3px; }
.tile p { margin: 0; color: var(--soft); font-size: 15.5px; line-height: 1.5; }
.c-feed { background: var(--t-feed); color: var(--feed); } .c-sleep { background: var(--t-sleep); color: var(--sleep); } .c-diaper { background: var(--t-diaper); color: var(--diaper); }
.c-pump { background: var(--t-pump); color: var(--pump); } .c-bath { background: var(--t-bath); color: var(--bath); } .c-play { background: var(--t-play); color: var(--play); }
.c-growth { background: var(--t-growth); color: var(--growth); } .c-meals { background: var(--t-meals); color: var(--meals); } .c-health { background: var(--t-health); color: var(--health); }

.day { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.moment { border-radius: 24px; padding: 22px 22px 24px; }
.moment .time { display: inline-block; font-weight: 900; font-size: 15px; background: var(--paper); border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; color: var(--ink); }
.moment h3 { margin: 0 0 6px; font-size: 20px; } .moment p { margin: 0; color: var(--soft); font-size: 16px; }
.m1 { background: var(--t-sleep); } .m2 { background: var(--t-play); } .m3 { background: var(--t-meals); }

.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.feature.flip { grid-template-columns: 1.1fr .9fr; } .feature.flip .stage { order: -1; }
.feature h2 { margin-top: 12px; }
.feature p { color: var(--soft); font-size: 18px; margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-weight: 500; font-size: 14.5px; background: var(--paper); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.chips li.on { background: var(--sel-bg); border-color: transparent; color: var(--sel-ink); font-weight: 700; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .chips li { background: var(--bg); }
.icon-lg { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; }

/* a coloured panel with screens sitting on it, cut off at the bottom like the app peeking in */
.stage { --pw: 270px; border-radius: 34px; padding: 36px 24px 0; display: flex; justify-content: center; align-items: flex-start; gap: 22px; height: 600px; overflow: hidden; background: var(--st, var(--t-sleep)); }
.stage .phone + .phone { margin-top: 70px; --pw: 250px; }
.stage.s-feed { --st: var(--t-feed); } .stage.s-sleep { --st: var(--t-sleep); } .stage.s-growth { --st: var(--t-growth); } .stage.s-meals { --st: var(--t-meals); }
.stage.s-health { --st: var(--t-health); } .stage.s-pump { --st: var(--t-pump); } .stage.s-play { --st: var(--t-play); }
.stage.crops { flex-direction: column; align-items: center; gap: 18px; padding-top: 44px; }
.crop { width: 100%; max-width: 440px; aspect-ratio: 780 / 420; border-radius: 22px; border: 1px solid var(--line); background-size: 100% auto; background-repeat: no-repeat; box-shadow: var(--shadow); flex: none; }
.crop.c1 { background-image: url(img/home-light.jpg); background-position: 0 60.5%; }
.crop.c2 { background-image: url(img/home-light.jpg); background-position: 0 35.5%; aspect-ratio: 780 / 380; }
@media (prefers-color-scheme: dark) { .crop.c1, .crop.c2 { background-image: url(img/home-dark.jpg); } }
.stage .email { width: 100%; max-width: 380px; height: auto; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); align-self: center; margin-top: -4px; }
.stage.mail { align-items: center; padding-top: 0; height: auto; padding-bottom: 36px; padding-top: 36px; }

.steps { display: grid; gap: 10px; margin-top: 6px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; }
.step b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 900; flex: none; }
.step h3 { margin: 0 0 1px; font-size: 17px; } .step p { margin: 0; color: var(--soft); font-size: 15.5px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.panel h3 { font-size: 21px; margin: 0 0 6px; } .panel p { color: var(--soft); margin: 0 0 14px; font-size: 16.5px; }
.modes { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; --pw: 250px; }
.modes .lbl { text-align: center; font-weight: 700; color: var(--soft); margin-top: 12px; }

.final { background: linear-gradient(160deg, var(--hero-a), var(--bg) 55%, var(--hero-b)); text-align: center; padding: 64px 0; }
.final .logo { width: 80px; height: 80px; border-radius: 22px; margin: 0 auto 18px; }
.final .sub { margin-left: auto; margin-right: auto; }
.final .cta { justify-content: center; }
footer { padding: 28px 0 40px; color: var(--soft); font-size: 14.5px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
footer a { text-underline-offset: 3px; } footer .sp { margin-left: auto; }
.disclaimer { font-size: 14.5px; color: var(--soft); max-width: 46em; }

@media (max-width: 900px) {
  .hero .wrap, .feature, .feature.flip, .two, .tiles, .day { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; } .hero .copy { padding-bottom: 24px; } section { padding: 40px 0; }
  .feature { gap: 24px; } .feature.flip .stage { order: 0; }
  .top nav { display: none; } .top .wrap { gap: 12px; } .soon { margin-left: auto; }
  .duo { --pw: 250px; } .duo .p2 { --pw: 215px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .stage { height: 560px; --pw: 250px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; } .tiles { grid-template-columns: 1fr; }
  .duo { --pw: 230px; } .duo .p2 { display: none; } .duo .p1 { margin-right: 0; }
  .stage { padding: 28px 12px 0; height: 520px; --pw: 240px; } .stage .phone + .phone { display: none; }
  .btn { padding: 14px 22px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* same layout in every feature section: icon, headline, one line, three points, You do / You get */
.line { font-size: 19.5px; line-height: 1.5; color: var(--soft); margin: 0 0 16px; }
.feature p.line { font-size: 19.5px; }
.points { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.points li { display: flex; gap: 12px; align-items: center; font-size: 16.5px; line-height: 1.4; }
.points .pi { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; flex: none; }
.dg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dg > div { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; font-size: 15.5px; line-height: 1.4; }
.band .dg > div { background: var(--bg); }
.dg b { display: block; font-size: 12px; letter-spacing: .7px; text-transform: uppercase; margin-bottom: 3px; }
.dg .do b { color: var(--accent); } .dg .get b { color: var(--growth); }
@media (max-width: 560px) { .dg { grid-template-columns: 1fr; } }

/* no hairline outlines around cards (Ken, Oct 26) */
.eyebrow, .btn.ghost, .tile, .step, .dg > div, .panel, .chips li, .crop, .stage .email { border: 0; }
.btn.ghost { box-shadow: none; }

/* ---------- round 4: less template-like ---------- */
.hero { background: var(--bg); padding-top: 56px; }
.hero .wrap { grid-template-columns: 1.02fr .98fr; }
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); line-height: 1; letter-spacing: -2px; }
.mark { background: linear-gradient(transparent 60%, var(--yellow) 60% 93%, transparent 93%); padding: 0 .08em; margin: 0 -.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .mark { background: linear-gradient(transparent 60%, rgba(255,201,60,.38) 60% 93%, transparent 93%); } }
.textlink { font-weight: 700; font-size: 16px; text-decoration: none; padding: 15px 4px; border-bottom: 2px solid currentColor; align-self: center; line-height: 1.1; }
.hero-note { margin-top: 16px; }
.duo::before { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; background: var(--yellow); left: 50%; top: 70px; transform: translateX(-60%); z-index: 0; }
@media (prefers-color-scheme: dark) { .duo::before { opacity: .22; } }
.duo .phone { z-index: 1; } .duo .p1 { z-index: 2; }
.scribble { position: absolute; left: -18px; top: 22px; z-index: 3; margin: 0; max-width: 150px; font: italic 500 15px/1.25 var(--font); color: var(--soft); transform: rotate(-4deg); }
.scribble svg { width: 64px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; margin: 2px 0 0 54px; }

h2.left { max-width: 17em; margin-bottom: 12px; }
.inside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 44px; margin-top: 8px; }
.inside .tile { background: none; border: 0; border-radius: 0; padding: 0; }
.inside .tile .badge { margin-bottom: 12px; }
.inside .tile h3 { font-size: 19px; margin-bottom: 4px; }
.inside .tile p { font-size: 16px; }

.day { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 22px; }
.moment { background: none !important; border-radius: 0; padding: 4px 0 4px 20px; border-left: 5px solid var(--mc, var(--sleep)); }
.m1 { --mc: var(--sleep); } .m2 { --mc: var(--play); } .m3 { --mc: var(--meals); }
.moment .time { background: none; padding: 0; margin: 0 0 4px; font-size: 40px; line-height: 1.1; letter-spacing: -1px; color: var(--mc); display: block; }
.moment h3 { font-size: 20px; margin: 0 0 6px; } .moment p { font-size: 16.5px; }

.dg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 4px; }
.dg > div, .band .dg > div { background: none; border: 0; padding: 0; border-radius: 0; font-size: 16.5px; }
.dg b { display: inline; margin: 0 6px 0 0; font-size: 12.5px; }
.dg .do::after { content: "\2192"; margin-left: 14px; color: var(--accent); font-weight: 900; font-size: 20px; }

.stage { overflow: visible; clip-path: inset(-140px 0 0 0 round 0 0 34px 34px); padding-top: 0; }
.stage .phone { margin-top: -44px; } .stage .phone + .phone { margin-top: 24px; }
.stage.crops, .stage.mail { clip-path: none; overflow: hidden; }
.stage.crops { padding-top: 44px; }

.panel { background: none; padding: 0; }
.two { gap: 40px; }
.chips li { background: var(--paper); }
.band .chips li { background: var(--bg); }

.final { background: #FFC93C; color: #1E2A2F; }
.final .sub, .final .disclaimer { color: #3b4a50; }
.final .btn.main { background: #1E2A2F; color: #FFFFFF; }
.final .logo { box-shadow: 0 10px 24px -10px rgba(30,42,47,.5); }

@media (max-width: 900px) {
  .inside { grid-template-columns: 1fr 1fr; } .day { grid-template-columns: 1fr; gap: 24px; }
  .scribble { display: none; } .duo::before { width: 340px; height: 340px; top: 60px; }
}
@media (max-width: 560px) { .inside { grid-template-columns: 1fr; } .hero h1 { letter-spacing: -1.2px; } }

.ps { margin: 8px 0 0; font: italic 500 15px/1.4 var(--font); color: var(--soft); max-width: 30em; } .ps b { font-style: normal; color: var(--accent); }
.duo::before { width: 540px; height: 540px; top: 20px; left: 50%; transform: translateX(-50%); }
.dg { display: grid; gap: 4px; }
.dg .do::after { content: none; }
.dg > div { display: flex; gap: 10px; align-items: baseline; }
.dg b { flex: none; min-width: 58px; }
.dg { grid-template-columns: 1fr; }
.crop.c1 { background-position: 0 69%; aspect-ratio: 780 / 400; }
.crop.c2 { background-position: 0 38%; aspect-ratio: 780 / 400; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .duo::before { width: 330px; height: 330px; top: 40px; left: 50%; transform: translateX(-50%); }
  .hero h1 { font-size: clamp(42px, 12vw, 64px); }
}
@media (max-width: 560px) { .duo::before { width: 290px; height: 290px; } .ps { max-width: none; } }
@media (max-width: 900px) {
  .stage { clip-path: none; overflow: hidden; padding-top: 28px; }
  .stage .phone { margin-top: 0; } .stage .phone + .phone { margin-top: 40px; }
}

/* whole Home cards, framed with even margins */
.stage.crops { height: auto; padding: 36px 32px; gap: 18px; justify-content: center; }
.stage.crops picture { width: 100%; max-width: 400px; }
.stage .card { width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow); background: var(--paper); }

.hero .lead { margin-bottom: 16px; }
.hero .points { margin: 0 0 24px; gap: 12px; }
.hero .points li { font-size: 18.5px; }
.hero .points .pi { width: 40px; height: 40px; font-size: 21px; }

/* Light / Dark pair: each phone gets a real width (without one the frames shrank to slivers) */
.modes > div { flex: 0 1 var(--pw); width: var(--pw); max-width: 100%; min-width: 0; }
@media (max-width: 640px) { .modes { gap: 16px; --pw: calc((100vw - 48px) / 2); } }

/* Canada & US: three cards with real pieces of the app */
.local { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; align-items: stretch; }
.lcard { background: var(--paper); border-radius: var(--radius); padding: 14px 14px 22px; display: flex; flex-direction: column; }
.lcard .lshot { border-radius: 16px; overflow: hidden; background: var(--bg); aspect-ratio: 5 / 4; display: flex; align-items: flex-start; }
.lcard .lshot picture, .lcard .lshot img { display: block; width: 100%; height: auto; }
.lcard h3 { font-size: 20px; margin: 18px 10px 6px; }
.lcard p { color: var(--soft); margin: 0 10px; font-size: 16px; }
@media (max-width: 900px) { .local { grid-template-columns: 1fr; max-width: 520px; } .lcard .lshot { aspect-ratio: auto; } }
.lcard .lshot { aspect-ratio: auto; display: block; }
.lcard .lshot img { margin-bottom: -7px; }

/* Canada & US: heading and chips on the left, points on the right */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.where .sub { margin-bottom: 20px; }
.where .points { margin: 0; }
@media (max-width: 800px) { .where { grid-template-columns: 1fr; gap: 24px; } }

/* Language switch in the top bar, and Chinese type */
.langsw { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--soft); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.langsw:hover { background: var(--card); color: var(--ink); }
.top nav + .langsw { margin-left: 4px; }
html[lang="zh-Hant"] { --font: "Roboto", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif; }
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2, html[lang="zh-Hant"] h3, html[lang="zh-Hant"] .brand, html[lang="zh-Hant"] .moment .time { letter-spacing: 0; }
html[lang="zh-Hant"] h1 { line-height: 1.2; } html[lang="zh-Hant"] h2 { line-height: 1.25; }
html[lang="zh-Hant"] .dg b, html[lang="zh-Hant"] .kicker { text-transform: none; letter-spacing: .5px; }
html[lang="zh-Hant"] body { line-height: 1.75; }
@media (max-width: 800px) { .top .wrap .langsw { margin-left: auto; } .top .wrap .langsw + .soon { margin-left: 0; } }

/* Phones scrolled past quickly: show a soft placeholder, not a black screen, until the picture arrives */
html { background: var(--bg); color-scheme: light dark; }
.phone .screen { background: var(--card); }
.phone .screen img { background: var(--card); }

/* Phone corners and bezel scale with the phone, so small phones keep the right shape */
.phone { border-radius: 18.6% / 8.6%; }
.phone .bezel { border-radius: 17.7% / 8.2%; padding: 3%; }
.phone .screen { border-radius: 16% / 7.4%; }

/* Phones: the nine "what's inside" items sit two to a row, so the list is half as long */
@media (max-width: 560px) {
  .inside { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .inside .tile .badge { width: 42px; height: 42px; margin-bottom: 8px; }
  .inside .tile h3 { font-size: 17px; line-height: 1.25; }
  .inside .tile p { font-size: 14.5px; line-height: 1.5; }
}
@media (max-width: 560px) { .inside .tile:last-child:nth-child(odd) { grid-column: 1 / -1; } .inside .tile:last-child:nth-child(odd) p { max-width: 34em; } }

/* Scroll animation (see reveal.js). Uses the separate `translate` and `scale` properties, so it never fights the transforms the page already uses.
   Only when the script runs and the visitor hasn't asked for less motion. */
.rv [data-reveal] { opacity: 0; transition: opacity .7s ease, translate .85s cubic-bezier(.2, .7, .2, 1), scale .85s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.rv [data-reveal="text"] { translate: 0 22px; }
.rv [data-reveal="item"] { translate: 0 14px; transition-duration: .6s, .7s, .7s; }
.rv [data-reveal="phone"] { translate: 0 56px; scale: .965; transition-duration: .9s, 1.05s, 1.05s; }
.rv [data-reveal].in { opacity: 1; translate: none; scale: none; }
@media (max-width: 700px) {
  .rv [data-reveal="text"] { translate: 0 14px; } .rv [data-reveal="item"] { translate: 0 10px; }
  .rv [data-reveal="phone"] { translate: 0 34px; scale: .98; }
  .rv [data-reveal] { transition-duration: .55s, .65s, .65s; }
}
@media (prefers-reduced-motion: reduce) { .rv [data-reveal] { opacity: 1; translate: none; scale: none; transition: none; } }
