/* Built by site/build.mjs: fonts, tokens from docs/mockups/tokens.js, then src/styles/site.css. */
@font-face { font-family: 'Mitr'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts-mitr-500-thai.1720286e3d.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Mitr'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts-mitr-500-latin.5165976dbe.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mitr'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts-mitr-600-thai.7d993a63a9.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Mitr'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts-mitr-600-latin.1c72b77ef2.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans Thai Looped'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts-looped-400-thai.701cf15a27.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Noto Sans Thai Looped'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts-looped-400-latin.c58f53b605.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans Thai Looped'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts-looped-600-thai.390a379e25.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Noto Sans Thai Looped'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts-looped-600-latin.d8446904ae.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --canvas: #F4FCFB;
  --surface: #FFFFFF;
  --surfaceMuted: #ECF6F6;
  --chip: #E3F0EF;
  --hairline: #CFE2E0;
  --ink: #232B2A;
  --inkSoft: #495655;
  --inkMuted: #5B6D6C;
  --inkFaint: #819493;
  --onBrand: #FFFFFF;
  --urgentGradEnd: #9E1B20;
  --aiGradEnd: #4B32B8;
  --okFill: #256F3E;
  --okInk: #1E5C33;
  --okSoft: #E3F4E9;
  --onOk: #FFFFFF;
  --warnFill: #F2B134;
  --warnInk: #7E5410;
  --warnSoft: #FDF3D9;
  --onWarn: #2E2420;
  --urgentFill: #C1272D;
  --urgentInk: #94151A;
  --urgentSoft: #FDECEC;
  --onUrgent: #FFFFFF;
  --aiFill: #6D4EF0;
  --aiInk: #4B32B8;
  --aiSoft: #EFEBFF;
  --onAi: #FFFFFF;
  --infoFill: #1C5094;
  --infoInk: #14427F;
  --infoSoft: #E4EDF9;
  --onInfo: #FFFFFF;
  --scanSurface: #FFFFFF;
  --onScanSurface: #161310;
  --spotlight: #221A16;
  --onSpotlight: #F8F0E8;
  --onSpotlightMuted: #C3B2A6;
  --brandFill: #0F6E68;
  --brandInk: #0D5E58;
  --brandBright: #4DEFE4;
  --brandGradEnd: #0B4F4B;
  --brandSoft: #E9FEFC;
  --cardShadow: 0 8px 24px rgba(45,118,113,.10), 0 1px 2px rgba(45,118,113,.04);
  --barShadow: 0 -8px 24px rgba(45,118,113,.08);
  --passportGradient: linear-gradient(140deg,#083D39 0%,#0D5E58 55%,#0F6E68 100%);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --canvas: #101515;
  --surface: #191F1F;
  --surfaceMuted: #202828;
  --chip: #273231;
  --hairline: #2C3837;
  --ink: #ECF4F4;
  --inkSoft: #BFCFCE;
  --inkMuted: #91A1A0;
  --inkFaint: #7C8C8B;
  --urgentGradEnd: #FFA9A5;
  --aiGradEnd: #C2B4FF;
  --okFill: #5FCB83;
  --okInk: #5FCB83;
  --okSoft: #1E3325;
  --onOk: #17110E;
  --warnFill: #F3C263;
  --warnInk: #F3C263;
  --warnSoft: #3A2E12;
  --onWarn: #17110E;
  --urgentFill: #FF7E7A;
  --urgentInk: #FF7E7A;
  --urgentSoft: #3A1D1C;
  --onUrgent: #17110E;
  --aiFill: #A791FF;
  --aiInk: #A791FF;
  --aiSoft: #2A2350;
  --onAi: #17110E;
  --infoFill: #6FA3E8;
  --infoInk: #6FA3E8;
  --infoSoft: #12233A;
  --onInfo: #17110E;
  --scanSurface: #FFFFFF;
  --onScanSurface: #161310;
  --spotlight: #221A16;
  --onSpotlight: #F8F0E8;
  --onSpotlightMuted: #C3B2A6;
  --brandFill: #61D1CA;
  --brandInk: #61D1CA;
  --brandBright: #81DAD4;
  --brandGradEnd: #81DAD4;
  --brandSoft: #153735;
  --onBrand: #092523;
  --cardShadow: none;
  --barShadow: none;
  --passportGradient: linear-gradient(140deg,#0D2B29 0%,#0B524E 60%,#0F6E68 100%);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --canvas: #101515;
    --surface: #191F1F;
    --surfaceMuted: #202828;
    --chip: #273231;
    --hairline: #2C3837;
    --ink: #ECF4F4;
    --inkSoft: #BFCFCE;
    --inkMuted: #91A1A0;
    --inkFaint: #7C8C8B;
    --urgentGradEnd: #FFA9A5;
    --aiGradEnd: #C2B4FF;
    --okFill: #5FCB83;
    --okInk: #5FCB83;
    --okSoft: #1E3325;
    --onOk: #17110E;
    --warnFill: #F3C263;
    --warnInk: #F3C263;
    --warnSoft: #3A2E12;
    --onWarn: #17110E;
    --urgentFill: #FF7E7A;
    --urgentInk: #FF7E7A;
    --urgentSoft: #3A1D1C;
    --onUrgent: #17110E;
    --aiFill: #A791FF;
    --aiInk: #A791FF;
    --aiSoft: #2A2350;
    --onAi: #17110E;
    --infoFill: #6FA3E8;
    --infoInk: #6FA3E8;
    --infoSoft: #12233A;
    --onInfo: #17110E;
    --scanSurface: #FFFFFF;
    --onScanSurface: #161310;
    --spotlight: #221A16;
    --onSpotlight: #F8F0E8;
    --onSpotlightMuted: #C3B2A6;
    --brandFill: #61D1CA;
    --brandInk: #61D1CA;
    --brandBright: #81DAD4;
    --brandGradEnd: #81DAD4;
    --brandSoft: #153735;
    --onBrand: #092523;
    --cardShadow: none;
    --barShadow: none;
    --passportGradient: linear-gradient(140deg,#0D2B29 0%,#0B524E 60%,#0F6E68 100%);
    color-scheme: dark;
  }
}

/* Plan 078: the marketing site's layout and components. Colours are the app's tokens (Teal), so no hex here
   except the brand mark's fixed Teal and white text on the passport gradient. Structure after the design audit of
   2026-10-02: a year-of-one-pet timeline instead of feature cards, a floating pill nav, a statement footer. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.7 'Noto Sans Thai Looped', system-ui, sans-serif;
}
h1, h2, h3 { font-family: 'Mitr', system-ui, sans-serif; font-weight: 600; line-height: 1.3; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(32px, 6.4vw, 54px); letter-spacing: -0.01em; }
h2 { font-size: clamp(25px, 4vw, 34px); }
h3 { font-size: 19px; font-weight: 500; }
p { margin: 0 0 14px; }
a { color: var(--brandInk); text-underline-offset: 3px; }
a:hover { color: var(--brandFill); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--brandBright); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--inkMuted); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.nowrap { white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* Motion: one curve, transform and opacity only. */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }

/* Nav: a floating pill, not a full-width bar. */
.site-header { position: sticky; top: 0; z-index: 5; padding: 10px 0 0; pointer-events: none; }
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
  max-width: 1056px; margin: 0 auto; padding: 8px 8px 8px 16px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border: 1px solid var(--hairline); border-radius: 999px;
  box-shadow: var(--cardShadow);
}
.site-header .wrap { padding: 0 12px; }
@media (min-width: 720px) { .site-header .wrap { padding: 0 32px; } }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { font: 600 21px/1 'Mitr', system-ui, sans-serif; }
.brand .paw { width: 30px; height: 31px; }
.nav { display: none; gap: 2px; margin-left: auto; }
.nav a { color: var(--inkSoft); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--chip); color: var(--ink); }
.nav-pill .btn-small { margin-left: auto; }
@media (min-width: 760px) { .nav { display: flex; } .nav-pill .btn-small { margin-left: 4px; } }
/* Plan 153: "English" / "ไทย", outside the nav so it shows on a phone too. */
.lang-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--inkSoft); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .04em; white-space: nowrap; }
/* The flag keeps a thin edge so Thailand's white stripes and the UK's show on a white page too. */
.flag { display: block; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
.lang-switch:hover { background: var(--chip); color: var(--ink); }
.lang-switch + .btn-small { margin-left: 4px; }
@media (max-width: 759px) { .lang-switch { display: none; } .lang-switch + .btn-small { margin-left: auto; } }
@media (min-width: 760px) { .lang-switch { margin-left: 4px; } }
/* A phone has no room for the nav: a menu button after "เปิดแอป" opens the same links in a panel under the pill.
   <details> needs no script; src.js closes it when a link is tapped or the page is tapped elsewhere. */
.menu { position: static; }
.menu summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--ink); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--chip); }
.menu summary:focus-visible { outline: 2px solid var(--brandFill); outline-offset: 2px; }
.menu-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  display: grid; padding: 8px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--cardShadow);
}
.menu-panel a { color: var(--ink); text-decoration: none; padding: 14px 16px; border-radius: 16px; font-weight: 600; font-size: 17px; }
.menu-panel a:hover { background: var(--chip); }
.menu-panel .menu-lang { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--hairline); border-radius: 0 0 16px 16px; color: var(--inkSoft); }
.nav-pill { position: relative; }
@media (min-width: 760px) { .menu { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; white-space: nowrap;
  background: var(--brandFill); color: var(--onBrand);
  font: 500 17px/1.2 'Mitr', system-ui, sans-serif; text-decoration: none;
  border: 2px solid var(--brandFill);
  transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out);
}
.btn:hover { background: var(--brandInk); border-color: var(--brandInk); color: var(--onBrand); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; transition: transform .2s var(--ease-out); }
.btn:hover .icon, .next-link:hover .icon { transform: translateX(3px); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.text-link { font-weight: 600; white-space: nowrap; }

/* Sections: deliberately uneven spacing. */
section { padding: 48px 0; }
.page-head { padding: 40px 0 56px; }
@media (min-width: 900px) { .page-head { padding: 72px 0 88px; } }
.lead { font-size: 18px; color: var(--inkSoft); max-width: 36em; }

/* Home hero */
.hero { padding: 40px 0 64px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; } .hero { padding: 88px 0 112px; } }
.hero h1 { max-width: 12em; }
/* Plan 153: English runs longer than Thai; a little smaller and wider keeps the hero line count close. */
.hero h1:lang(en),
.page-head h1:lang(en) { max-width: 14em; font-size: clamp(30px, 5.2vw, 46px); }

/* The illustrated pet ID card and reminder (drawn from the app's shapes, a made-up pet). */
.visual { position: relative; max-width: 440px; margin: 0 auto; width: 100%; padding-bottom: 72px; }
.idcard {
  background: var(--passportGradient); color: #fff; border-radius: 28px; padding: 22px;
  box-shadow: 0 20px 48px rgba(8, 61, 57, .28); aspect-ratio: 1.6; display: flex; flex-direction: column;
}
.idcard-top { display: flex; align-items: center; gap: 12px; }
.idcard-badge { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.idcard-badge svg { width: 28px; height: 29px; }
.idcard-kicker { font: 500 13px/1.6 'Mitr', system-ui, sans-serif; opacity: .85; }
.idcard-name { font: 600 24px/1.5 'Mitr', system-ui, sans-serif; }
.idcard-body { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; gap: 12px; }
.idcard-rows { font-size: 14px; line-height: 1.6; opacity: .92; }
.idcard-qr { background: #fff; color: #083D39; border-radius: 14px; padding: 8px; flex: none; }
.idcard-qr .icon { width: 64px; height: 64px; display: block; }
.toast {
  position: absolute; left: -8px; right: 24px; bottom: 0;
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); color: var(--ink); border-radius: 20px; padding: 14px 16px;
  box-shadow: var(--cardShadow); border: 1px solid var(--hairline);
}
@media (min-width: 480px) { .toast { left: -24px; right: 48px; } }
.toast-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--warnSoft); color: var(--warnInk); display: grid; place-items: center; flex: none; }
.toast strong { display: block; font: 500 15px/1.35 'Mitr', system-ui, sans-serif; }
.toast span { font-size: 13px; color: var(--inkMuted); }

/* The two hero moments: the paw steps in toe by toe (PawLoader's rhythm), then the reminder arrives. */
.step-paw circle, .step-paw path { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .step-paw .t0 { animation: toe-in .5s var(--ease-out) .2s both; }
  .step-paw .t1 { animation: toe-in .5s var(--ease-out) .38s both; }
  .step-paw .t2 { animation: toe-in .5s var(--ease-out) .56s both; }
  .step-paw .pad { animation: pad-beat .6s var(--ease-out) .8s both; }
  .toast { animation: arrive .6s var(--ease-out) 1.2s both; }
  .toast-icon .icon { transform-origin: 50% 10%; animation: ring .7s var(--ease-out) 1.7s both; }
}
@keyframes toe-in { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pad-beat { 0% { transform: scale(.9); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes arrive { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(14deg); } 50% { transform: rotate(-10deg); } 75% { transform: rotate(5deg); } }

/* Feature pages */
.crumbs { font-size: 14px; color: var(--inkMuted); margin-bottom: 20px; }
.crumbs a { color: var(--inkMuted); }
.head-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .head-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; } }
.details { background: var(--surfaceMuted); padding: 56px 0 64px; }
@media (min-width: 900px) { .details { padding: 80px 0; } }
.prose > * { max-width: 720px; }
.prose h2 { margin-top: 44px; font-size: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose ul:not(.does) { padding-left: 1.2em; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
/* Plan 160: the "does" lists in the shape of the home page's 158 band: one white block split by hairlines, two
   columns on a wide screen, each row's icon in a soft brand circle. The gap shows the hairline behind. */
.prose > .does { max-width: none; }
.does { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 22px; overflow: hidden; }
@media (min-width: 760px) { .does { grid-template-columns: repeat(2, minmax(0, 1fr)); } .does li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.does li { background: var(--surface); padding: 20px 22px; margin: 0; }
.does h3 { display: flex; gap: 12px; align-items: center; font-size: 18px; margin-bottom: 6px; }
.does h3 .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--brandSoft); color: var(--brandInk); flex: none; }
.does p { margin: 0; color: var(--inkSoft); padding-left: 52px; }
/* One pet per page, peeking over the block's top edge at the right. */
.prose > .does-char { display: block; width: 84px; height: 84px; margin: -40px 24px -26px auto; position: relative; z-index: 1; max-width: none; }
.does-char .char { width: 100%; height: 100%; }
@media (max-width: 759px) { .prose > .does-char { width: 68px; height: 68px; margin: -30px 12px -20px auto; } .does p { padding-left: 0; } }
.does.urgent h3 .icon { color: var(--urgentInk); }
.does p { color: var(--inkSoft); margin: 0 0 0 32px; font-size: 15px; }
.note {
  border-radius: 20px; padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; margin: 0 0 28px;
  background: var(--warnSoft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warnFill) 40%, transparent);
}
.note .icon { color: var(--warnInk); margin-top: 2px; }
.note p { margin: 0; }
.note.urgent { background: var(--urgentSoft); border-color: color-mix(in srgb, var(--urgentFill) 35%, transparent); }
.note.urgent .icon { color: var(--urgentInk); }
.next { padding: 40px 0 8px; }
.next-link {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; color: var(--ink);
  padding: 24px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.next-link small { display: block; font-size: 14px; color: var(--inkMuted); }
.next-link strong { font: 500 clamp(20px, 3vw, 26px)/1.35 'Mitr', system-ui, sans-serif; }
.next-link .icon { width: 28px; height: 28px; color: var(--brandInk); transition: transform .2s var(--ease-out); }
.next-link:hover { color: var(--brandInk); }

/* Illustrations on feature pages: app-like panels with a made-up pet. */
.mock {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 20px;
  box-shadow: var(--cardShadow); max-width: 440px; width: 100%; margin: 0 auto;
}
.mock-title { font: 500 16px/1.4 'Mitr', system-ui, sans-serif; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.mock-title svg { width: 24px; height: 25px; }
.dose { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.dose strong { display: block; font-weight: 600; font-size: 15px; }
.dose span { font-size: 13px; color: var(--inkMuted); }
.chip { font: 500 13px/1 'Mitr', system-ui, sans-serif; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.chip.ok { background: var(--okSoft); color: var(--okInk); }
.chip.warn { background: var(--warnSoft); color: var(--warnInk); }
.chip.info { background: var(--infoSoft); color: var(--infoInk); }
.chip.urgent { background: var(--urgentSoft); color: var(--urgentInk); }
.scan-view { margin-top: 16px; }
.scan-view .mock-title { font-size: 15px; }
.scan-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 14px; }
.scan-row span { color: var(--inkMuted); }
.photo-slot {
  aspect-ratio: 4 / 3; border-radius: 16px; background: var(--ph, var(--brandSoft)); display: grid; place-items: center; margin-bottom: 14px;
}
.photo-slot svg { width: 72px; height: 74px; opacity: .55; }
.lost-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lost-title strong { font: 600 20px/1.3 'Mitr', system-ui, sans-serif; }
.mock .btn { width: 100%; margin-top: 14px; }
.place { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hairline); }
.place .icon { color: var(--urgentInk); }
.place strong { display: block; font-weight: 600; font-size: 15px; }
.place span { font-size: 13px; color: var(--inkMuted); }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; } .faq-head { position: sticky; top: 104px; align-self: start; } }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font: 500 17px/1.45 'Mitr', system-ui, sans-serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--brandInk); transition: transform .2s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { color: var(--inkSoft); }
.faq details > :last-child { padding-bottom: 18px; margin-bottom: 0; }

/* About */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .icon { color: var(--brandInk); }

/* 404 */
.not-found { text-align: center; padding: 96px 0; }
.not-found .paw { width: 93px; height: 96px; margin: 0 auto 24px; display: block; }
.not-found .lead { margin-left: auto; margin-right: auto; }
.not-found .cta-row { justify-content: center; }

/* Footer: one closing statement, one button, one row of links. */
.site-footer { background: var(--passportGradient); color: #fff; margin-top: 56px; padding: 64px 0 28px; }
@media (min-width: 900px) { .site-footer { padding: 96px 0 32px; } }
.site-footer a { color: #fff; }
.closing { font: 600 clamp(30px, 5.4vw, 52px)/1.25 'Mitr', system-ui, sans-serif; margin: 0 0 8px; max-width: 14em; text-wrap: balance; }
.closing-sub { color: rgba(255, 255, 255, .85); font-size: 17px; margin-bottom: 0; }
.site-footer .btn { background: #fff; color: #0D5E58; border-color: #fff; }
.site-footer .btn:hover { background: #E9FEFC; border-color: #E9FEFC; color: #083D39; }
.site-footer .text-link { color: #fff; }
.footer-brand { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 28px; text-decoration: none; }
.footer-brand span { font: 600 21px/1 'Mitr', system-ui, sans-serif; color: #fff; }
.footer-brand:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Plan 102: the takedown form, a plain form that posts to the API. */
.takedown-form { display: grid; gap: 6px; max-width: 640px; margin-top: 8px; }
.takedown-form label { font-weight: 600; margin-top: 14px; }
.takedown-form input[type='text'], .takedown-form input[type='url'], .takedown-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: inherit;
}
.takedown-form textarea { resize: vertical; }
.takedown-form .hint { color: var(--inkMuted); font-size: 14px; margin: 0; }
.takedown-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.takedown-form .check input { margin-top: 6px; width: 18px; height: 18px; flex: none; }
.takedown-form .btn { justify-self: start; margin-top: 20px; }
.prose h2[id] { scroll-margin-top: 96px; }
/* The header's "ฟีเจอร์" link lands on the home page's story (/#year), clear of the sticky header. */
#year { scroll-margin-top: 84px; }

/* ---- Plan 106: articles (/articles, /articles/<slug>), from docs/mockups/106-articles.html ---- */
.nav a[aria-current="page"] { background: var(--chip); color: var(--ink); }

/* List: a contents page grouped by topic, text first, small thumbnails. No card grid (078's audit). */
.articles-head { padding: 40px 0 24px; overflow: hidden; }
@media (min-width: 900px) { .articles-head { padding: 72px 0 40px; } }
.articles-head .lead { max-width: 30em; }
.shelf-grid { display: grid; gap: 8px; padding-bottom: 32px; position: relative; z-index: 1; background: var(--canvas); }
@media (min-width: 900px) { .shelf-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; } }
.topic-index { align-self: start; }
@media (min-width: 900px) { .topic-index { position: sticky; top: 104px; } }
.topic-index h2 { font: 500 14px/1.4 'Mitr', system-ui, sans-serif; color: var(--inkMuted); margin: 0 0 8px; }
.topic-index ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (max-width: 899px) { .topic-index ul { flex-direction: column; flex-wrap: nowrap; gap: 0; } .topic-index li { width: 100%; } }
@media (min-width: 900px) { .topic-index ul { display: block; } }
.topic-index a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; text-decoration: none; color: var(--inkSoft); font-weight: 600; font-size: 15px; }
@media (min-width: 900px) { .topic-index a { border-bottom: 1px solid var(--hairline); padding: 12px 0; } }
.topic-index a span { font-weight: 400; color: var(--inkMuted); }
.topic-index a:hover, .topic-index a[aria-current="page"] { color: var(--brandInk); }
.topic-index a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (min-width: 900px) { .topic-index a[aria-current="page"] { text-decoration: none; border-bottom-color: var(--brandFill); border-bottom-width: 2px; } }
.topic-index .soon { color: var(--inkFaint); font-weight: 400; }

.shelf { padding: 28px 0 8px; border-top: 2px solid var(--ink); }
.shelf + .shelf { margin-top: 40px; }
.shelf-head { display: grid; gap: 4px; margin-bottom: 8px; }
@media (min-width: 640px) { .shelf-head { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 24px; row-gap: 4px; } }
.shelf h2 { font-size: clamp(24px, 3.2vw, 30px); margin: 0; grid-row: 1; grid-column: 1; min-width: 0; }
.shelf-head p { color: var(--inkSoft); margin: 0; grid-row: 2; grid-column: 1 / -1; max-width: 36em; }
.shelf-head .text-link { font-size: 15px; text-decoration: none; grid-row: 1; grid-column: 2; }
@media (max-width: 639px) { .shelf-head .text-link { display: none; } }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; color: var(--ink); }
@media (min-width: 640px) { .entry { grid-template-columns: minmax(0, 1fr) 160px; gap: 32px; } }
.entries li:last-child .entry { border-bottom: 0; }
.entry h3 { font-size: 19px; margin: 0 0 6px; }
@media (min-width: 640px) { .entry h3 { font-size: 21px; } }
.entry p { color: var(--inkSoft); font-size: 15px; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry:hover h3 { color: var(--brandInk); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.date { font-size: 14px; color: var(--inkMuted); }
.thumb { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--brandSoft); }
@media (min-width: 640px) { .thumb { aspect-ratio: 4 / 3; border-radius: 16px; } }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.empty { display: grid; place-items: center; }
.thumb.empty svg { width: 40%; height: auto; opacity: .45; }
.more-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; margin-top: 8px; min-height: 44px; }
.more-link .icon { width: 18px; height: 18px; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.pager a, .pager span.off { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.pager span.off { color: var(--inkFaint); }
.pager .icon { width: 20px; height: 20px; }
.pager .back .icon { transform: scaleX(-1); }
.pager .count { color: var(--inkMuted); font-size: 14px; }
.shelf-empty { padding: 24px 0 8px; color: var(--inkSoft); }
.shelf-empty p { margin-bottom: 4px; }

/* Article */
.article-head { padding: 40px 0 28px; }
@media (min-width: 900px) { .article-head { padding: 64px 0 36px; } }
.article-head h1 { font-size: clamp(30px, 5.4vw, 46px); max-width: 18em; }
.article-head .lead { max-width: 38em; }
.byline { display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; max-width: 38em; }
.byline .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--brandSoft); }
.byline strong { font-weight: 600; font-size: 15px; }
.byline .bio { color: var(--inkSoft); font-size: 15px; }
.byline .meta { display: block; font-size: 14px; color: var(--inkMuted); margin-top: 2px; }
.byline p { margin: 0; line-height: 1.55; }
.article-cover { margin: 0 0 8px; }
.article-cover .frame { aspect-ratio: 2 / 1; border-radius: 28px; overflow: hidden; background: var(--brandSoft); }
@media (max-width: 639px) { .article-cover .frame { aspect-ratio: 4 / 3; border-radius: 20px; } }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: 13px; color: var(--inkMuted); margin-top: 8px; }

.article-grid { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 16px; }
@media (min-width: 1000px) { .article-grid { grid-template-columns: 240px minmax(0, 720px); gap: 64px; } .article-grid.single { grid-template-columns: minmax(0, 720px); } }
.toc { align-self: start; background: var(--surfaceMuted); border-radius: 20px; padding: 18px 20px; }
@media (min-width: 1000px) { .toc { position: sticky; top: 104px; background: none; padding: 4px 0 0; border-radius: 0; } }
.toc summary { list-style: none; cursor: pointer; font: 500 16px/1.4 'Mitr', system-ui, sans-serif; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '+'; color: var(--brandInk); font-size: 22px; line-height: 1; }
.toc details[open] summary::after { content: '\2212'; }
@media (min-width: 1000px) { .toc summary { pointer-events: none; color: var(--inkMuted); font-size: 14px; } .toc summary::after { display: none; } }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 0; color: var(--inkSoft); text-decoration: none; font-size: 15px; line-height: 1.5; }
.toc a::before { content: counter(toc); font: 500 14px/1.6 'Mitr', system-ui, sans-serif; color: var(--brandInk); min-width: 1em; }
.toc a:hover { color: var(--brandInk); }
@media (min-width: 1000px) { .toc a { border-left: 2px solid var(--hairline); padding-left: 14px; } .toc a.on { border-color: var(--brandFill); color: var(--ink); } .toc a::before { display: none; } }

.article-body { font-size: 17px; line-height: 1.85; }
.article-body > * { max-width: 720px; }
.article-body h2 { font-size: 26px; margin: 44px 0 12px; scroll-margin-top: 96px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 20px; margin: 28px 0 8px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 18px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--brandInk); }
.article-body figure { margin: 28px 0; }
.article-body figure img { border-radius: 20px; width: 100%; }
.article-body figure.portrait { max-width: 300px; margin-left: auto; margin-right: auto; }
.article-body figure.portrait img { border: 1px solid var(--hairline); }
.article-body figure.portrait figcaption { text-align: center; }
.callout { margin: 28px 0; padding: 2px 0 2px 20px; border-left: 4px solid var(--brandFill); }
.callout b { display: block; font: 500 14px/1.6 'Mitr', system-ui, sans-serif; color: var(--brandInk); }
.callout p { margin: 2px 0 0; font: 500 19px/1.6 'Mitr', system-ui, sans-serif; color: var(--ink); }

/* The app box shows the app itself: the same .mock panel as the 078 feature pages. */
.in-app { margin: 48px 0 8px; padding: 28px 0 0; border-top: 2px solid var(--ink); display: grid; gap: 24px; }
@media (min-width: 720px) { .in-app { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 32px; align-items: center; } }
.in-app .kicker { display: block; font: 500 14px/1.4 'Mitr', system-ui, sans-serif; color: var(--brandInk); margin-bottom: 6px; }
.in-app h2 { font-size: 24px; margin: 0 0 8px; }
.in-app p { color: var(--inkSoft); font-size: 16px; margin: 0; }
.in-app .cta-row { margin-top: 18px; }
.in-app .mock { margin: 0; max-width: none; }
.mock-foot { font-size: 13px; color: var(--inkMuted); margin-top: 10px; display: flex; gap: 6px; align-items: center; }
.mock-foot .icon { width: 16px; height: 16px; color: var(--brandInk); }

.related { padding-top: 48px; padding-bottom: 24px; }
.related .shelf { border-top-width: 2px; }

/* ---- Plan 110: the features built since 078, from docs/mockups/110-marketing-site-new-features.html ---- */

.tagline { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 500 15px/1.5 'Mitr', system-ui, sans-serif; color: var(--brandInk); }
.tagline svg { width: 18px; height: 18px; flex: none; }
.footer-motto { margin: 2px 0 0; font: 500 14px/1.5 'Mitr', system-ui, sans-serif; color: inherit; opacity: .9; }
.footer-motto span { display: block; font: 400 13px/1.6 inherit; font-family: inherit; opacity: .8; }
.soon { padding: 56px 0 8px; }
.soon-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .soon-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; } }
.soon h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 8px; }
.soon-lead { color: var(--inkSoft); margin: 0; }
.soon-list { list-style: none; margin: 0; padding: 0; }
.soon-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hairline); color: var(--inkSoft); }
.soon-list li:last-child { border-bottom: 1px solid var(--hairline); }
.pill-soon { display: inline-flex; gap: 6px; align-items: center; font: 500 13px/1 'Mitr', system-ui, sans-serif; padding: 7px 12px; border-radius: 999px; background: var(--infoSoft); color: var(--infoInk); white-space: nowrap; }
.pill-soon .icon { width: 15px; height: 15px; }

/* Family page panel: members and the invite code, as the app's family page. */
.member { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.member .av { width: 40px; height: 40px; border-radius: 50%; background: var(--brandSoft); color: var(--brandInk); display: grid; place-items: center; font: 600 15px/1 'Mitr', system-ui, sans-serif; flex: none; }
.member strong { display: block; font-weight: 600; font-size: 15px; }
.member span { font-size: 13px; color: var(--inkMuted); }
.code { margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--brandSoft); text-align: center; }
.code small { display: block; font-size: 13px; color: var(--brandInk); }
.code b { display: block; font: 600 28px/1.3 'Mitr', system-ui, sans-serif; letter-spacing: .12em; color: var(--brandInk); }
.code span { font-size: 12px; color: var(--inkMuted); }

/* Family tree panel: the mini tree card (107). */
.tree { position: relative; height: 210px; margin-top: 6px; }
.tree svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.tree .node { position: absolute; transform: translateX(-50%); text-align: center; font-size: 12px; color: var(--inkSoft); }
.tree .dot { width: 46px; height: 46px; border-radius: 50%; background: var(--brandSoft); border: 2px solid var(--brandFill); display: grid; place-items: center; margin: 0 auto 4px; font: 600 16px/1 'Mitr', system-ui, sans-serif; color: var(--brandInk); }
.tree .dot.big { width: 60px; height: 60px; border-width: 3px; font-size: 20px; }
.tree .dot.ghost { border-style: dashed; background: transparent; color: var(--inkMuted); }
.tree .litter { position: absolute; left: 50%; top: 104px; transform: translateX(-50%); font: 500 11px/1 'Mitr', system-ui, sans-serif; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); color: var(--inkSoft); }


/* Medicines panel: today's doses of a course, and the allergies with drugs first. */
.slot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hairline); font-size: 14px; }
.slot b { font-weight: 600; }
.allergy { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--urgentSoft); color: var(--urgentInk); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.allergy .icon { width: 20px; height: 20px; }
.chip.done { background: var(--okSoft); color: var(--okInk); }
.chip.next { background: var(--surfaceMuted); color: var(--inkSoft); }

/* Photo feed panel: a share card as the app draws it. */
.sharecard { border-radius: 22px; overflow: hidden; background: var(--passportGradient); color: #fff; }
.sharecard .photo { aspect-ratio: 4 / 3; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.sharecard .photo svg { width: 30%; height: auto; }
.sharecard .cap { padding: 14px 16px 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sharecard .cap small { display: block; font: 500 13px/1.4 'Mitr', system-ui, sans-serif; opacity: .85; }
.sharecard .cap strong { font: 600 22px/1.3 'Mitr', system-ui, sans-serif; }
.sharecard .qr { background: #fff; color: #083D39; border-radius: 12px; padding: 6px; flex: none; }
.feedmeta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }


/* Photos (Unsplash, site/src/images/photos/CREDITS.md). */
.photo-visual { position: relative; max-width: 540px; margin: 0 auto; width: 100%; }
.photo-visual > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; display: block; }
.photo-visual > .mock { position: relative; width: 74%; margin: -120px 0 0 -20px; max-width: none; }
@media (min-width: 900px) { .photo-visual > .mock { margin-left: -40px; } }
@media (max-width: 639px) { .photo-visual > .mock { width: auto; margin: -64px 12px 0; } }




/* Footer: the closing invitation, then links in titled columns, then one quiet base line with the brand. */
.site-footer { position: relative; overflow: hidden; }
.footer-paws { position: absolute; right: -40px; top: 24px; width: 420px; height: auto; opacity: .08; pointer-events: none; }
@media (max-width: 899px) { .footer-paws { width: 260px; right: -60px; top: 12px; } }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin: 56px 0 0; padding: 32px 0 0; border-top: 1px solid rgba(255, 255, 255, .22); }
/* Plan 116: five columns, with "ไปกับน้อง" second. */
@media (min-width: 900px) { .footer-cols { grid-template-columns: 2fr 1.3fr 1fr; gap: 48px; margin-top: 72px; } }
.footer-cols h2 { font: 500 13px/1.4 'Mitr', system-ui, sans-serif; letter-spacing: .02em; color: rgba(255, 255, 255, .6); margin: 0 0 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-cols .two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
@media (max-width: 899px) { .footer-cols .wide { grid-column: 1 / -1; } }
.footer-cols a { text-decoration: none; color: rgba(255, 255, 255, .92); font-size: 15px; }
.footer-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: rgba(255, 255, 255, .7); }
.footer-bottom p { margin: 0; }
.footer-bottom .footer-brand { margin: 0; }
.footer-bottom .footer-brand svg { width: 26px; height: 27px; }
.footer-bottom .footer-brand span { font-size: 18px; }


/* The hero card with the pet's photo, as the app's "เต็มบัตร" card style: the photo fills it, a gradient keeps the
   text readable. An <img>, as the site's CSP allows no inline style. */
.idcard.with-photo { position: relative; overflow: hidden; isolation: isolate; }
.idcard.with-photo > .idcard-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; z-index: -2; }
.idcard.with-photo::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,61,57,.15) 0%, rgba(8,61,57,0) 30%, rgba(8,61,57,.55) 62%, rgba(8,61,57,.92) 100%); }
.tree .n-mom { left: 31.6%; top: 6px; }
.tree .n-dad { left: 68.3%; top: 6px; }
.tree .n-me { left: 50%; top: 58px; }
.tree .n-k1 { left: 25%; top: 160px; }
.tree .n-k2 { left: 50%; top: 160px; }
.tree .n-k3 { left: 75%; top: 160px; }

/* ---- Plan 116: the stays and 24-hour hospital pages, from docs/mockups/116-public-directory-pages.html ---- */

.place-meta { font-size: 15px; color: var(--inkSoft); margin: 0 0 12px; }
.rule-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.chip.plain { background: var(--surfaceMuted); color: var(--inkSoft); }
.checked { font-size: 14px; color: var(--inkMuted); margin: 0; }
.origin { font: 500 13px/1.4 'Mitr', system-ui, sans-serif; color: var(--brandInk); margin: 0 0 6px; }

/* A row of the hospitals list: the phone is the action, so it is a button on the right (under, on a phone). */
.hosp-row { display: grid; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 640px) { .hosp-row { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; } }
.hosp-row h3 { font-size: 19px; margin: 0 0 4px; }
@media (min-width: 640px) { .hosp-row h3 { font-size: 21px; } }
.btn.call { background: var(--surface); color: var(--ink); border: 1.5px solid var(--hairline); justify-self: start; }
.btn.call .icon { color: var(--urgentInk); width: 20px; height: 20px; }
.btn.call:hover { border-color: var(--urgentFill); }

/* The notice above the hospitals list: 039's line and "call first". */
.places-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--urgentSoft); border: 1px solid color-mix(in srgb, var(--urgentFill) 35%, transparent); max-width: 44em; margin: 24px 0 0; }
.places-note .icon { color: var(--urgentInk); flex: none; margin-top: 2px; }
.places-note p { margin: 0; font-size: 15px; }
.places-note p + p { margin-top: 6px; font-weight: 600; }
.head-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 24px; }
.how { font-size: 14px; color: var(--inkMuted); max-width: 44em; margin: 16px 0 0; }

/* One stay: the rules on the left, what to do next on the right (under, on a phone). */
.stay-head { padding: 40px 0 8px; }
@media (min-width: 900px) { .stay-head { padding: 72px 0 16px; } }
.stay-head h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 8px; }
.stay-grid { display: grid; gap: 40px; padding-bottom: 24px; }
@media (min-width: 900px) { .stay-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; } }
.species { padding: 24px 0 8px; border-top: 2px solid var(--ink); }
.species + .species { margin-top: 24px; }
.species-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 8px; }
.species-head h2 { font-size: 24px; margin: 0; }
.rules { margin: 0; }
.rules div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 640px) { .rules div { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; } }
.rules div:last-child { border-bottom: 0; }
.rules dt { font-size: 15px; color: var(--inkMuted); }
.rules dd { margin: 0; font-weight: 600; }
.rules dd small { display: block; font-weight: 400; font-size: 15px; color: var(--inkSoft); margin-top: 2px; }
.general { margin-top: 28px; padding: 2px 0 2px 20px; border-left: 4px solid var(--brandFill); }
.general b { display: block; font: 500 14px/1.6 'Mitr', system-ui, sans-serif; color: var(--brandInk); }
.general p { margin: 2px 0 0; color: var(--inkSoft); }
.stay-side { display: grid; gap: 14px; }
@media (min-width: 900px) { .stay-side { position: sticky; top: 104px; } }
.stay-side .btn { justify-content: center; }
.side-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.side-links a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; min-height: 44px; }
.side-links .icon { width: 18px; height: 18px; }
.referral { font-size: 13px; color: var(--inkMuted); margin: -6px 0 0; }
.stale { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--warnInk); background: var(--warnSoft); border-radius: 12px; padding: 10px 12px; margin: 0; }
.stale .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.fit-box { margin-top: 10px; padding: 20px; border-radius: 20px; background: var(--brandSoft); }
.fit-box h2 { font-size: 20px; margin: 0 0 6px; }
.fit-box p { font-size: 15px; color: var(--inkSoft); margin: 0 0 14px; }
.wrong { font-size: 14px; color: var(--inkMuted); margin: 0; }


/* Photos lead (owner, 2026-10-10):
   a photo beside the heading, the areas as photo cards, a photo band over each area, stays as cards. The
   photos show the area, never a listed property (019: hotel photos belong to the hotel). */
.places-hero { padding: 32px 0 8px; }
@media (min-width: 900px) { .places-hero { padding: 56px 0 16px; } }
.places-hero .grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .places-hero .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; } }
.places-hero h1 { font-size: clamp(34px, 5.4vw, 56px); margin: 0 0 14px; }
.hero-photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--brandSoft); }
@media (min-width: 900px) { .hero-photo { aspect-ratio: 5 / 4; border-radius: 36px 36px 36px 120px; } }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.area-cards { list-style: none; margin: 0; padding: 28px 0 8px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .area-cards { grid-template-columns: repeat(5, 1fr); gap: 16px; padding-top: 40px; } }
.area-cards li:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .area-cards li:first-child { grid-column: auto; } }
.area-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; background: #0B3F3B; }
.area-cards li:first-child .area-card { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .area-cards li:first-child .area-card { aspect-ratio: 4 / 5; } }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.area-card:hover img { transform: scale(1.04); }
.area-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 30, 28, .82), rgba(6, 30, 28, 0) 58%); }
.area-card span { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; }
.area-card b { display: block; font: 600 22px/1.2 'Mitr', system-ui, sans-serif; }
.area-card small { font-size: 14px; opacity: .92; }

.area-block { padding-top: 56px; }
.area-band { position: relative; margin: 0 0 20px; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: #0B3F3B; color: #fff; }
@media (min-width: 720px) { .area-band { aspect-ratio: 16 / 5; } }
.area-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.area-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(6, 30, 28, .78), rgba(6, 30, 28, .05) 70%); }
.area-band div { position: absolute; z-index: 1; left: 24px; bottom: 20px; right: 24px; }
@media (min-width: 720px) { .area-band div { left: 36px; bottom: 28px; } }
.area-band h2 { color: #fff; font-size: clamp(30px, 4.6vw, 44px); margin: 0 0 2px; }
.area-band p { margin: 0; font-size: 15px; opacity: .95; }
.area-band a { color: #fff; font-weight: 600; }

.stay-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .stay-cards { grid-template-columns: 1fr 1fr; gap: 16px; } }
.stay-card { display: grid; gap: 14px; height: 100%; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--hairline); text-decoration: none; color: var(--ink); align-content: start; }
.stay-card:hover { border-color: var(--brandFill); }
.stay-card:hover h3 { color: var(--brandInk); }
.stay-card .top { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
.kind-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brandSoft); color: var(--brandInk); }
.kind-tile .icon { width: 26px; height: 26px; }
.stay-card h3 { font-size: 19px; margin: 0 0 2px; }
.stay-card .place-meta { margin: 0; font-size: 14px; }
.takes { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.takes div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hairline); align-items: baseline; }
.takes dt { font: 500 15px/1.4 'Mitr', system-ui, sans-serif; }
.takes dd { margin: 0; font-size: 15px; color: var(--inkSoft); }
.takes dd b { color: var(--okInk); font-weight: 600; }
.takes dd.none { color: var(--inkMuted); }
.card-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.card-foot .checked { font-size: 13px; }

.stay-photo { position: relative; margin: 0 0 28px; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--brandSoft); }
@media (min-width: 720px) { .stay-photo { aspect-ratio: 16 / 5; } }
.stay-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stay-photo figcaption { position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: #fff; background: rgba(6, 30, 28, .7); padding: 5px 10px; border-radius: 999px; }

.hosp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hosp-cards .hosp-row { padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--hairline); }
.province-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0 0; }
.province-chips a { font: 500 15px/1 'Mitr', system-ui, sans-serif; padding: 11px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); color: var(--ink); text-decoration: none; }
.province-chips a span { color: var(--inkMuted); font-weight: 400; margin-left: 4px; }
.province-chips a[aria-current="page"] { background: var(--brandFill); color: var(--onBrand); border-color: transparent; }
.province-chips a[aria-current="page"] span { color: inherit; opacity: .85; }
.province-block { padding-top: 40px; }
.province-block h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 0 0 16px; }
.places-bottom { padding-top: 48px; padding-bottom: 24px; }

/* A stay page has a map of the place and a
   "นำทาง" button; a hospital card has "นำทาง" beside the phone. The map is Google's embed in an iframe. */
.map-block { margin-top: 36px; padding-top: 24px; border-top: 2px solid var(--ink); }
.map-block h2 { font-size: 24px; margin: 0 0 14px; }
.map-frame { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surfaceMuted); border: 1px solid var(--hairline); }
@media (min-width: 720px) { .map-frame { aspect-ratio: 16 / 9; } }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
/* The map is put in by map.js when the visitor presses "แสดงแผนที่"; until then the frame and, without the script,
   the button stay hidden (.btn sets display, so the attribute needs help). */
.map-block [hidden] { display: none; }
.map-block button.btn { cursor: pointer; }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-note { font-size: 13px; color: var(--inkMuted); margin: 10px 0 0; }
.map-frame { margin-bottom: 12px; }
.map-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.map-foot .credit { font-size: 13px; color: var(--inkMuted); margin: 0; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--hairline); }
.btn.ghost .icon { color: var(--brandInk); width: 20px; height: 20px; }
.btn.ghost:hover { border-color: var(--brandFill); }
.hosp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 640px) { .hosp-actions { flex-direction: column; align-items: stretch; } .hosp-actions .btn { justify-content: center; } }
.area-plain { font-size: clamp(26px, 3.6vw, 34px); margin: 0 0 16px; }

/* ---- Plan 118: the Turnstile check in the takedown form ---- */
.takedown-form .cf-turnstile { margin: 20px 0 4px; min-height: 65px; }

/* Plan 126: the app's look (plan 122) on the home page. The sky, the characters and the sparse paw pattern; the
   colours of the sky and of the characters are their own, as in the app, and are not palette tokens. */
.char { display: block; width: 100%; height: auto; }
.hero.sky { position: relative; overflow: hidden; margin-top: -70px; padding-top: 110px; background: linear-gradient(#AEE3FB, #DDF5FE 58%, var(--canvas)); }
@media (min-width: 900px) { .hero.sky { padding-top: 158px; } }
.hero.sky > .wrap { position: relative; z-index: 1; }
.hero.sky .tagline { display: inline-flex; background: rgba(255, 255, 255, .6); border-radius: 999px; padding: 5px 14px; }
.sky-art { position: absolute; inset: 0; pointer-events: none; }
.sky-sun { position: absolute; right: -28px; top: 44%; width: 104px; height: 104px; border-radius: 50%; background: #FFE071; box-shadow: 0 0 0 26px rgba(255, 243, 184, .55); }
@media (min-width: 900px) { .sky-sun { right: -34px; top: 30%; width: 176px; height: 176px; box-shadow: 0 0 0 42px rgba(255, 243, 184, .55); } }
.sky-moon, .sky-stars { display: none; }
.cloud { position: absolute; fill: #fff; opacity: .9; overflow: visible; }
.cloud.c1 { left: 58%; top: 92px; width: 84px; }
.cloud.c2 { left: -14px; top: 52%; width: 132px; }
.cloud.c3 { left: 34%; top: 150px; width: 62px; opacity: .8; }
@media (max-width: 899px) { .cloud.c3 { display: none; } .cloud.c1 { width: 60px; top: 76px; } .cloud.c2 { width: 96px; top: 60%; } }
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) .hero.sky { background: linear-gradient(#1A3148, #16232E 62%, var(--canvas)); }
:root:not([data-theme]) .hero.sky .tagline { background: rgba(255, 255, 255, .1); }
:root:not([data-theme]) .sky-sun { display: none; }
:root:not([data-theme]) .sky-moon { display: block; position: absolute; right: 9%; top: 108px; width: 54px; height: 54px; border-radius: 50%; box-shadow: inset -16px 6px 0 0 #FFF2C2; transform: rotate(-20deg); }
:root:not([data-theme]) .sky-stars { display: block; position: absolute; left: 12%; top: 96px; width: 4px; height: 4px; border-radius: 50%; background: #FFF7D6; opacity: .85;
    box-shadow: 18vw 28px 0 0 #FFF7D6, 34vw -14px 0 0 #FFF7D6, 52vw 46px 0 0 #FFF7D6, 66vw 6px 0 0 #FFF7D6, 8vw 150px 0 0 #FFF7D6, 46vw 170px 0 0 #FFF7D6; }
:root:not([data-theme]) .cloud { fill: #24384A; }
}
:root[data-theme="dark"] .hero.sky { background: linear-gradient(#1A3148, #16232E 62%, var(--canvas)); }
:root[data-theme="dark"] .hero.sky .tagline { background: rgba(255, 255, 255, .1); }
:root[data-theme="dark"] .sky-sun { display: none; }
:root[data-theme="dark"] .sky-moon { display: block; position: absolute; right: 9%; top: 108px; width: 54px; height: 54px; border-radius: 50%; box-shadow: inset -16px 6px 0 0 #FFF2C2; transform: rotate(-20deg); }
:root[data-theme="dark"] .sky-stars { display: block; position: absolute; left: 12%; top: 96px; width: 4px; height: 4px; border-radius: 50%; background: #FFF7D6; opacity: .85;
    box-shadow: 18vw 28px 0 0 #FFF7D6, 34vw -14px 0 0 #FFF7D6, 52vw 46px 0 0 #FFF7D6, 66vw 6px 0 0 #FFF7D6, 8vw 150px 0 0 #FFF7D6, 46vw 170px 0 0 #FFF7D6; }
:root[data-theme="dark"] .cloud { fill: #24384A; }
@media (prefers-color-scheme: dark) and (max-width: 899px) {
:root:not([data-theme]) /* A phone: the heading starts near 120px, :root:not([data-theme]) so the stars stay in the band above it rather than on the text. */
  .sky-stars { top: 92px; left: 8%; box-shadow: 20vw 8px 0 0 #FFF7D6, 38vw -2px 0 0 #FFF7D6, 56vw 10px 0 0 #FFF7D6; }
}
@media (max-width: 899px) {
:root[data-theme="dark"] /* A phone: the heading starts near 120px, :root[data-theme="dark"] so the stars stay in the band above it rather than on the text. */
  .sky-stars { top: 92px; left: 8%; box-shadow: 20vw 8px 0 0 #FFF7D6, 38vw -2px 0 0 #FFF7D6, 56vw 10px 0 0 #FFF7D6; }
}
@media (prefers-color-scheme: dark) and (min-width: 900px) {
:root:not([data-theme]) .sky-moon { width: 78px; height: 78px; top: 150px; box-shadow: inset -23px 8px 0 0 #FFF2C2; }
}
@media (min-width: 900px) {
:root[data-theme="dark"] .sky-moon { width: 78px; height: 78px; top: 150px; box-shadow: inset -23px 8px 0 0 #FFF2C2; }
}

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }



.closing-mascot { width: 104px; margin-bottom: 8px; }
@media (prefers-reduced-motion: no-preference) { .closing-mascot { animation: bob 3.2s ease-in-out infinite; } }

/* Plan 127: the sky of 126 behind the head of every other page, shorter and with nothing standing on it. One rule
   for the static pages' heads and for those the API renders. The band starts above the section, under the sticky
   header, and has a fixed height: a head can hold a whole list (the FAQ) or a long article title. */
.page-head, .articles-head, .article-head, .places-hero, .stay-head, .not-found { position: relative; }
.page-head > *, .articles-head > *, .article-head > *, .places-hero > *, .stay-head > *, .not-found > * { position: relative; z-index: 1; }
.page-head::before, .articles-head::before, .article-head::before, .places-hero::before, .stay-head::before, .not-found::before {
  content: ''; position: absolute; left: 0; right: 0; top: -70px; height: 360px; z-index: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-36 -32 72 46'%3E%3Cg fill='%23fff' opacity='.9'%3E%3Cellipse cx='0' cy='0' rx='34' ry='13'/%3E%3Ccircle cx='-12' cy='-8' r='13'/%3E%3Ccircle cx='8' cy='-13' r='17'/%3E%3Ccircle cx='24' cy='-4' r='10'/%3E%3C/g%3E%3C/svg%3E") 62% 84px / 78px auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-36 -32 72 46'%3E%3Cg fill='%23fff' opacity='.85'%3E%3Cellipse cx='0' cy='0' rx='34' ry='13'/%3E%3Ccircle cx='-12' cy='-8' r='13'/%3E%3Ccircle cx='8' cy='-13' r='17'/%3E%3Ccircle cx='24' cy='-4' r='10'/%3E%3C/g%3E%3C/svg%3E") -18px 210px / 120px auto no-repeat,
    radial-gradient(circle at 100% 150px, #FFE071 0 58px, rgba(255, 243, 184, .55) 58px 86px, transparent 87px),
    linear-gradient(#AEE3FB, #DDF5FE 55%, var(--canvas));
}
@media (min-width: 900px) {
  .page-head::before, .articles-head::before, .article-head::before, .places-hero::before, .stay-head::before, .not-found::before {
    height: 400px;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-36 -32 72 46'%3E%3Cg fill='%23fff' opacity='.9'%3E%3Cellipse cx='0' cy='0' rx='34' ry='13'/%3E%3Ccircle cx='-12' cy='-8' r='13'/%3E%3Ccircle cx='8' cy='-13' r='17'/%3E%3Ccircle cx='24' cy='-4' r='10'/%3E%3C/g%3E%3C/svg%3E") 58% 92px / 96px auto no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-36 -32 72 46'%3E%3Cg fill='%23fff' opacity='.85'%3E%3Cellipse cx='0' cy='0' rx='34' ry='13'/%3E%3Ccircle cx='-12' cy='-8' r='13'/%3E%3Ccircle cx='8' cy='-13' r='17'/%3E%3Ccircle cx='24' cy='-4' r='10'/%3E%3C/g%3E%3C/svg%3E") -22px 230px / 150px auto no-repeat,
      radial-gradient(circle at 100% 170px, #FFE071 0 84px, rgba(255, 243, 184, .55) 84px 124px, transparent 125px),
      linear-gradient(#AEE3FB, #DDF5FE 55%, var(--canvas));
  }
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) .page-head::before, :root:not([data-theme]) .articles-head::before, :root:not([data-theme]) .article-head::before, :root:not([data-theme]) .places-hero::before, :root:not([data-theme]) .stay-head::before, :root:not([data-theme]) .not-found::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M40 6a25 25 0 1 0 14 34a20 20 0 0 1 -14 -34z' fill='%23FFF2C2'/%3E%3C/svg%3E") calc(100% - 28px) 96px / 46px auto no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-36 -32 72 46'%3E%3Cg fill='%2324384A' opacity='.95'%3E%3Cellipse cx='0' cy='0' rx='34' ry='13'/%3E%3Ccircle cx='-12' cy='-8' r='13'/%3E%3Ccircle cx='8' cy='-13' r='17'/%3E%3Ccircle cx='24' cy='-4' r='10'/%3E%3C/g%3E%3C/svg%3E") -18px 210px / 120px auto no-repeat,
      radial-gradient(circle at 12% 92px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 31% 128px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 48% 84px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 67% 140px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 82% 200px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 22% 230px, #FFF7D6 0 1.6px, transparent 2px),
      linear-gradient(#1A3148, #16232E 60%, var(--canvas));
  }
}
:root[data-theme="dark"] .page-head::before, :root[data-theme="dark"] .articles-head::before, :root[data-theme="dark"] .article-head::before, :root[data-theme="dark"] .places-hero::before, :root[data-theme="dark"] .stay-head::before, :root[data-theme="dark"] .not-found::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M40 6a25 25 0 1 0 14 34a20 20 0 0 1 -14 -34z' fill='%23FFF2C2'/%3E%3C/svg%3E") calc(100% - 28px) 96px / 46px auto no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-36 -32 72 46'%3E%3Cg fill='%2324384A' opacity='.95'%3E%3Cellipse cx='0' cy='0' rx='34' ry='13'/%3E%3Ccircle cx='-12' cy='-8' r='13'/%3E%3Ccircle cx='8' cy='-13' r='17'/%3E%3Ccircle cx='24' cy='-4' r='10'/%3E%3C/g%3E%3C/svg%3E") -18px 210px / 120px auto no-repeat,
      radial-gradient(circle at 12% 92px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 31% 128px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 48% 84px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 67% 140px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 82% 200px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 22% 230px, #FFF7D6 0 1.6px, transparent 2px),
      linear-gradient(#1A3148, #16232E 60%, var(--canvas));
  }
@media (prefers-color-scheme: dark) and (min-width: 900px) {
:root:not([data-theme]) .page-head::before, :root:not([data-theme]) .articles-head::before, :root:not([data-theme]) .article-head::before, :root:not([data-theme]) .places-hero::before, :root:not([data-theme]) .stay-head::before, :root:not([data-theme]) .not-found::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M40 6a25 25 0 1 0 14 34a20 20 0 0 1 -14 -34z' fill='%23FFF2C2'/%3E%3C/svg%3E") calc(100% - 9%) 120px / 70px auto no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-36 -32 72 46'%3E%3Cg fill='%2324384A' opacity='.95'%3E%3Cellipse cx='0' cy='0' rx='34' ry='13'/%3E%3Ccircle cx='-12' cy='-8' r='13'/%3E%3Ccircle cx='8' cy='-13' r='17'/%3E%3Ccircle cx='24' cy='-4' r='10'/%3E%3C/g%3E%3C/svg%3E") -22px 230px / 150px auto no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-36 -32 72 46'%3E%3Cg fill='%2324384A' opacity='.9'%3E%3Cellipse cx='0' cy='0' rx='34' ry='13'/%3E%3Ccircle cx='-12' cy='-8' r='13'/%3E%3Ccircle cx='8' cy='-13' r='17'/%3E%3Ccircle cx='24' cy='-4' r='10'/%3E%3C/g%3E%3C/svg%3E") 58% 250px / 96px auto no-repeat,
      radial-gradient(circle at 12% 92px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 31% 128px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 48% 84px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 67% 140px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 82% 240px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 22% 250px, #FFF7D6 0 1.6px, transparent 2px),
      linear-gradient(#1A3148, #16232E 60%, var(--canvas));
  }
}
@media (min-width: 900px) {
:root[data-theme="dark"] .page-head::before, :root[data-theme="dark"] .articles-head::before, :root[data-theme="dark"] .article-head::before, :root[data-theme="dark"] .places-hero::before, :root[data-theme="dark"] .stay-head::before, :root[data-theme="dark"] .not-found::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M40 6a25 25 0 1 0 14 34a20 20 0 0 1 -14 -34z' fill='%23FFF2C2'/%3E%3C/svg%3E") calc(100% - 9%) 120px / 70px auto no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-36 -32 72 46'%3E%3Cg fill='%2324384A' opacity='.95'%3E%3Cellipse cx='0' cy='0' rx='34' ry='13'/%3E%3Ccircle cx='-12' cy='-8' r='13'/%3E%3Ccircle cx='8' cy='-13' r='17'/%3E%3Ccircle cx='24' cy='-4' r='10'/%3E%3C/g%3E%3C/svg%3E") -22px 230px / 150px auto no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-36 -32 72 46'%3E%3Cg fill='%2324384A' opacity='.9'%3E%3Cellipse cx='0' cy='0' rx='34' ry='13'/%3E%3Ccircle cx='-12' cy='-8' r='13'/%3E%3Ccircle cx='8' cy='-13' r='17'/%3E%3Ccircle cx='24' cy='-4' r='10'/%3E%3C/g%3E%3C/svg%3E") 58% 250px / 96px auto no-repeat,
      radial-gradient(circle at 12% 92px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 31% 128px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 48% 84px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 67% 140px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 82% 240px, #FFF7D6 0 1.6px, transparent 2px), radial-gradient(circle at 22% 250px, #FFF7D6 0 1.6px, transparent 2px),
      linear-gradient(#1A3148, #16232E 60%, var(--canvas));
  }
}

/* Cards as in the app, on these pages too. */
.mock, .faq details, .stay-card, .hosp-cards .hosp-row { box-shadow: var(--cardShadow); }
@media (prefers-color-scheme: light) {
:root:not([data-theme]) .mock, :root:not([data-theme]) .faq details, :root:not([data-theme]) .stay-card, :root:not([data-theme]) .hosp-cards .hosp-row { border-color: transparent; }
}
:root[data-theme="light"] .mock, :root[data-theme="light"] .faq details, :root[data-theme="light"] .stay-card, :root[data-theme="light"] .hosp-cards .hosp-row { border-color: transparent; }

.faq-mascot { display: block; width: 84px; margin-top: 8px; }
@media (min-width: 900px) { .faq-mascot { width: 132px; margin-top: 28px; } }
.not-found .char { width: 132px; margin: 0 auto 20px; }

/* ---- Plan 133: the home page, from docs/mockups/133-site-home-refresh.html ----
   Every class is hm-*, so nothing here reaches another page. The app's screens are drawn at the app's size inside a
   phone frame; the frame's near-black is the device, not a token. */
.hm-hero-grid { display: grid; gap: 40px; align-items: center; }
/* Top-aligned, not centred: when the web font arrives the text column's height changes, and centring moved the
   whole column (a 0.13 layout shift on a first visit, measured 2026-10-24). */
@media (min-width: 900px) { .hm-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; } .hm-hero-grid > div:first-child { padding-top: 96px; } }
.hm-hero .lead { font-size: 19px; }
.hm-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.hm-line:hover { color: var(--brandInk); }
/* LINE's own green, as LINE asks its button to look. */
.hm-line-mark { width: 26px; height: 26px; border-radius: 8px; background: #06C755; color: #fff; display: grid; place-items: center; font: 700 9px/1 system-ui, sans-serif; flex: none; }
.hm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--hairline); max-width: 420px; }
/* A phone: one fact per row, the big word beside its line, so no row is left with one fact on its own. */
@media (max-width: 559px) { .hm-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; } .hm-facts > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; align-items: baseline; } :lang(en) .hm-facts > div { grid-template-columns: 9em minmax(0, 1fr); } }
.hm-facts dt { font: 600 20px/1.3 'Mitr', system-ui, sans-serif; }
.hm-facts dd { margin: 0; font-size: 14px; color: var(--inkSoft); }

/* The phone frame, shared by the hero and the story. */
.hm-phone { width: 300px; height: 610px; border-radius: 44px; background: #14181B; padding: 11px; position: relative; box-shadow: 0 40px 80px -30px rgba(9, 40, 38, .55); flex: none; }
.hm-phone::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 14px; background: #14181B; z-index: 3; }
.hm-screen { width: 100%; height: 100%; border-radius: 34px; background: var(--canvas); overflow: hidden; position: relative; font-size: 13px; line-height: 1.5; }
.hm-sbar { height: 46px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 24px 6px; font: 600 12px/1 system-ui, sans-serif; }
.hm-apph { display: flex; align-items: center; gap: 10px; padding: 4px 16px 10px; }
.hm-apph b { display: block; font: 600 17px/1.3 'Mitr', system-ui, sans-serif; }
.hm-apph small { color: var(--inkMuted); font-size: 11.5px; }
.hm-av { width: 40px; height: 40px; border-radius: 50%; background: var(--brandSoft); overflow: hidden; flex: none; display: grid; place-items: center; }
.hm-av .char { width: 46px; height: 46px; }
.hm-av-line { background: #06C755; color: #fff; font: 700 10px/1 system-ui, sans-serif; }
.hm-card { position: relative; margin: 6px 14px 0; height: 300px; padding: 18px; border-radius: 24px; overflow: hidden; color: #fff; background: var(--passportGradient); }
.hm-card-short { height: 250px; }
.hm-card-t { display: block; padding-right: 58px; font: 600 18px/1.3 'Mitr', system-ui, sans-serif; }
.hm-ok { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 11.5px; }
.hm-ok .icon { width: 14px; height: 14px; }
.hm-card dl { margin: 14px 0 0; max-width: 68%; font-size: 11px; line-height: 1.3; }
.hm-card dt { opacity: .75; }
.hm-card dd { white-space: nowrap; margin: 0 0 9px; font: 600 14px/1.3 'Mitr', system-ui, sans-serif; }
.hm-qr { position: absolute; right: 14px; top: 14px; width: 46px; height: 46px; border-radius: 10px; background: #fff; color: #14181B; display: grid; place-items: center; }
.hm-qr .icon { width: 38px; height: 38px; }
.hm-card-pet { position: absolute; right: -18px; bottom: -22px; width: 150px; height: 150px; }
.hm-card-pet .char, .hm-lost-pet .char, .hm-fc .char, .hm-ph .char, .hm-peek .char { width: 100%; height: 100%; }
.hm-rows { margin: 12px 14px 0; padding: 4px 14px; border-radius: 20px; background: var(--surface); }
.hm-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.hm-row:last-child { border-bottom: 0; }
.hm-row > div { flex: 1; min-width: 0; }
.hm-row b { display: block; font-size: 13px; }
.hm-row small { color: var(--inkMuted); font-size: 11.5px; }
.hm-row .icon { width: 20px; height: 20px; color: var(--inkSoft); }
.hm-chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.hm-chip.ok { background: var(--okSoft); color: var(--okInk); }
.hm-chip.warn { background: var(--warnSoft); color: var(--warnInk); }
.hm-chip.urg { background: var(--urgentSoft); color: var(--urgentInk); }
.hm-msgs { display: grid; gap: 10px; padding: 10px 14px; }
.hm-msgs .hm-rows { margin: 0; }
.hm-ring { box-shadow: 0 0 0 2px var(--brandFill); }
.hm-lost { margin: 4px 14px 0; padding: 16px; border-radius: 22px; background: var(--urgentFill); color: var(--onUrgent); }
.hm-lost b { display: block; margin: 10px 0 2px; font: 600 22px/1.3 'Mitr', system-ui, sans-serif; }
.hm-chip-on { background: rgba(255, 255, 255, .2); color: inherit; }
.hm-lost-pet { display: block; width: 150px; height: 150px; margin: 6px auto 0; }
.hm-verdict { margin: 6px 14px 0; padding: 14px; border-radius: 20px; background: var(--urgentSoft); color: var(--urgentInk); }
.hm-verdict b { display: block; font: 600 16px/1.4 'Mitr', system-ui, sans-serif; }
.hm-verdict small { font-size: 12px; }

/* Hero stage: the phone, the LINE reminder beside it, the mascot at its foot. */
.hm-stage { position: relative; display: flex; justify-content: center; perspective: 1200px; padding: 20px 0 10px; }
.hm-tilt { transform: rotateY(-12deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .25s var(--ease-out); }
.hm-bubble { position: absolute; z-index: 2; right: 0; top: 0; width: 250px; display: flex; gap: 10px; padding: 12px 14px; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .35); }
.hm-bubble .hm-line-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 10px; }
.hm-bubble small { display: block; font-size: 11.5px; color: var(--inkMuted); }
.hm-bubble b { display: block; font-size: 13.5px; line-height: 1.35; }
.hm-peek { position: absolute; z-index: 2; left: 4px; bottom: 0; width: 96px; height: 96px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .15)); }
@media (max-width: 899px) {
  .hm-stage { height: 560px; }
  .hm-tilt { transform: scale(.86); transform-origin: top center; }
}
@media (min-width: 900px) { .hm-bubble { right: -30px; top: 70px; width: 270px; } .hm-peek { left: -10px; bottom: -26px; width: 150px; height: 150px; } }
/* The reminder slides in without ever being hidden: transform only, so a slow phone still shows it at once. */
@media (prefers-reduced-motion: no-preference) { .hm-bubble { animation: hm-slide .6s var(--ease-out) .3s both; } }
@keyframes hm-slide { from { transform: translate(24px, -8px) scale(.96); } to { transform: none; } }

/* Section heads and plain subheads of this page. */
.hm-head { max-width: 640px; margin-bottom: 32px; }
.hm-head h2, .hm-home h2, .hm-spot h2, .hm-go h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.2; }
.hm-head p, .hm-sub { font-size: 18px; color: var(--inkSoft); margin: 12px 0 0; }

/* The story. Phones: each step with its own screen under it. Wide screens with the script: one phone, sticky. */
.hm-story { padding: 72px 0 40px; }
.hm-story-phone { display: none; }
.hm-steps { list-style: none; margin: 0; padding: 0; }
.hm-step { padding: 34px 0; border-top: 1px solid var(--hairline); }
.hm-n { display: block; font: 600 54px/1 'Mitr', system-ui, sans-serif; color: var(--brandSoft); -webkit-text-stroke: 2px var(--brandInk); letter-spacing: -.02em; }
.hm-step.urgent .hm-n { color: var(--urgentSoft); -webkit-text-stroke-color: var(--urgentInk); }
.hm-when { display: block; margin: 14px 0 6px; font: 600 15px/1.4 'Mitr', system-ui, sans-serif; color: var(--brandInk); }
.hm-step.urgent .hm-when { color: var(--urgentInk); }
.hm-step h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.25; margin: 0; }
.hm-step p { font-size: 17px; color: var(--inkSoft); max-width: 500px; margin: 12px 0 14px; }
.hm-step a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.hm-step a .icon { width: 18px; height: 18px; }
.hm-inline { margin-top: 18px; height: 420px; position: relative; overflow: hidden; border-radius: 26px; border: 1px solid var(--hairline); background: var(--canvas); }
.hm-inline .hm-shot { position: absolute; inset: -40px 0 0; }
@media (min-width: 900px) {
  .hm-story { padding: 120px 0 60px; }
  .hm-story-on .hm-story-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 80px; }
  .hm-story-on .hm-story-phone { display: block; position: sticky; top: 110px; height: 610px; }
  .hm-story-on .hm-inline { display: none; }
  .hm-story-on .hm-step { min-height: min(68vh, 560px); display: flex; flex-direction: column; justify-content: center; border-top: 0; opacity: .32; transition: opacity .3s var(--ease-out); }
  .hm-story-on .hm-step.on { opacity: 1; }
  .hm-story-on .hm-n { font-size: 76px; }
  #hm-screens .hm-shot { position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease-out); }
  #hm-screens .hm-shot.on { opacity: 1; }
}

/* One home, one book: the characters as a family on a floor line, the features as rows. */
.hm-home { padding: 72px 0; }
.hm-home-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hm-home { padding: 110px 0; } .hm-home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; } }
.hm-floor { position: relative; height: 260px; border-radius: 32px; background: radial-gradient(120% 90% at 50% 100%, var(--brandSoft) 0%, transparent 70%); }
.hm-floor::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: 44px; height: 2px; background: var(--hairline); }
.hm-fc { position: absolute; bottom: 40px; width: 110px; height: 110px; }
.hm-fc.c1 { left: 6%; } .hm-fc.c2 { left: 33%; width: 150px; height: 150px; } .hm-fc.c3 { right: 6%; }
.hm-tag { position: absolute; z-index: 1; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--cardShadow); font: 500 13px/1.3 'Mitr', system-ui, sans-serif; white-space: nowrap; }
.hm-tag.t1 { left: 2%; top: 22px; } .hm-tag.t2 { left: 34%; top: 0; } .hm-tag.t3 { right: 2%; top: 46px; }
@media (min-width: 900px) {
  .hm-floor { height: 330px; }
  .hm-floor::after { bottom: 56px; }
  .hm-fc { bottom: 52px; width: 150px; height: 150px; }
  .hm-fc.c1 { left: 9%; } .hm-fc.c2 { left: 36%; width: 190px; height: 190px; } .hm-fc.c3 { right: 8%; }
  .hm-tag.t1 { left: 4%; top: 24px; } .hm-tag.t2 { left: 40%; top: 6px; } .hm-tag.t3 { right: 3%; top: 40px; }
}
.hm-feat { list-style: none; margin: 26px 0 0; padding: 0; }
.hm-feat li { border-top: 1px solid var(--hairline); }
.hm-feat li:last-child { border-bottom: 1px solid var(--hairline); }
.hm-feat a, .hm-go-row { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.hm-feat a { padding: 16px 0; }
.hm-feat a > span:nth-child(2), .hm-go-row > span:nth-child(2) { flex: 1; min-width: 0; }
.hm-feat b, .hm-go-row b { display: block; font: 600 18px/1.4 'Mitr', system-ui, sans-serif; }
.hm-feat span span, .hm-go-row span span { color: var(--inkSoft); font-size: 15px; }
.hm-feat a > .icon, .hm-go-row > .icon { color: var(--brandInk); transition: transform .2s var(--ease-out); }
.hm-feat a:hover > .icon, .hm-go-row:hover > .icon { transform: translateX(3px); }
.hm-ico { width: 48px; height: 48px; border-radius: 15px; background: var(--brandSoft); color: var(--brandInk); display: grid; place-items: center; flex: none; }
.hm-ico.ok { background: var(--okSoft); color: var(--okInk); }
.hm-ico.urg { background: var(--urgentSoft); color: var(--urgentInk); }

/* Spotted pets: photo frames as the feed shows them. */
.hm-spot { padding: 72px 0; background: var(--brandSoft); overflow: hidden; }
.hm-spot-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hm-spot { padding: 100px 0; } .hm-spot-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 50px; } }
.hm-safe { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 26px; max-width: 440px; font-size: 15px; color: var(--inkSoft); }
.hm-safe .icon { color: var(--brandInk); }
.hm-polas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* A print is white in both modes, as a photo is. */
.hm-pola { position: relative; padding: 10px 10px 12px; border-radius: 6px; background: #fff; color: #1D2427; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .35); }
.hm-ph { display: grid; place-items: center; height: 130px; border-radius: 3px; background: var(--ph); }
.hm-ph .char { width: 110px; height: 110px; }
.hm-pola b { display: flex; align-items: center; gap: 5px; margin-top: 8px; font: 500 12.5px/1.4 'Mitr', system-ui, sans-serif; }
.hm-lab { display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px 1px 4px; border-radius: 999px; background: #E4F0FB; color: #1F5A8C; font-size: 11.5px; }
.hm-lab .icon { width: 13px; height: 13px; }
.hm-pola small { display: block; margin-top: 2px; padding-right: 34px; font-size: 11px; color: #6B7478; }
.hm-pola b { padding-right: 30px; }
.hm-likes { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: #C2415A; }
.hm-likes .icon { width: 12px; height: 12px; }
.hm-pola.p1 { transform: rotate(-4deg); } .hm-pola.p2 { transform: rotate(3deg); } .hm-pola.p3 { transform: rotate(2deg); } .hm-pola.p4 { transform: rotate(-3deg); }
@media (min-width: 900px) {
  .hm-polas { display: block; position: relative; height: 420px; }
  .hm-pola { position: absolute; width: 200px; }
  .hm-ph { height: 180px; } .hm-ph .char { width: 150px; height: 150px; }
  .hm-pola.p1 { left: 0; top: 30px; transform: rotate(-7deg); }
  .hm-pola.p2 { left: 170px; top: 0; transform: rotate(4deg); z-index: 2; }
  .hm-pola.p3 { left: 340px; top: 60px; transform: rotate(-3deg); }
  .hm-pola.p4 { left: 110px; top: 200px; transform: rotate(6deg); z-index: 3; }
}

/* Where to go with the pet: two wide rows, no photos here. */
.hm-go { padding: 72px 0 24px; }
.hm-go-rows { display: grid; gap: 14px; margin-top: 26px; }
@media (min-width: 720px) { .hm-go-rows { grid-template-columns: 1fr 1fr; gap: 18px; } }
.hm-go-row { padding: 22px; border-radius: 24px; border: 1.5px solid var(--hairline); transition: border-color .2s var(--ease-out); }
.hm-go-row:hover { border-color: var(--brandFill); color: var(--ink); }
.hm-go-row .hm-ico { width: 60px; height: 60px; border-radius: 18px; }

/* The stance: a full-width band. */
.hm-stance { margin-top: 64px; padding: 72px 0; background: var(--ink); color: var(--canvas); }
.hm-stance-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .hm-stance { padding: 90px 0; } .hm-stance-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; } }
.hm-stance h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; }
.hm-stance ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.hm-stance li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
.hm-stance li .icon { color: var(--brandBright); }
.hm-stance strong { display: block; font: 600 18px/1.4 'Mitr', system-ui, sans-serif; }
.hm-stance a { color: inherit; }

@media (prefers-color-scheme: dark) {
:root:not([data-theme]) .hm-phone { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .7); }
:root:not([data-theme]) .hm-rows, :root:not([data-theme]) .hm-bubble, :root:not([data-theme]) .hm-tag { background: var(--surfaceMuted); }
:root:not([data-theme]) .hm-spot { background: var(--surfaceMuted); }
:root:not([data-theme]) .hm-stance { background: var(--surface); color: var(--ink); }
}
:root[data-theme="dark"] .hm-phone { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .7); }
:root[data-theme="dark"] .hm-rows, :root[data-theme="dark"] .hm-bubble, :root[data-theme="dark"] .hm-tag { background: var(--surfaceMuted); }
:root[data-theme="dark"] .hm-spot { background: var(--surfaceMuted); }
:root[data-theme="dark"] .hm-stance { background: var(--surface); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .hm-tilt, #hm-screens .hm-shot, .hm-story-on .hm-step { transition: none; } }

/* Pets running across the foot of the hero's sky, now and then (home.js moves them; each one hops as it goes). */
.hm-run { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none; overflow: hidden; }
.hm-runner { position: absolute; left: 0; bottom: 8px; width: 58px; height: 58px; visibility: hidden; will-change: transform; }
.hm-runner.go { visibility: visible; }
.hm-runner .char { width: 100%; height: 100%; animation: hm-hop .34s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.hm-runner.back .char { animation-name: hm-hop-back; }
@keyframes hm-hop { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-14px) rotate(6deg); } }
@keyframes hm-hop-back { from { transform: translateY(0) rotate(6deg) scaleX(-1); } to { transform: translateY(-14px) rotate(-6deg) scaleX(-1); } }
@media (max-width: 899px) { .hm-run { z-index: 2; } }
@media (min-width: 900px) { .hm-run { bottom: 90px; } .hm-runner { width: 72px; height: 72px; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .hm-run { display: none; } }

/* Plan 133: bots and automated browsers (src.js sets .quiet) get no motion at all, on every page. */
.quiet *, .quiet *::before, .quiet *::after { animation: none !important; transition: none !important; }
.quiet .hm-run { display: none; }

/* Plan 157: the theme button at the bottom right and its menu (the device's setting, light, dark). Shown only once
   theme.js has run, since it cannot work without it. The button shows the choice: auto, sun or moon. */
.theme-fab { display: none; position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 6; }
:root[data-theme] .theme-fab { display: block; }
.theme-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .16); cursor: pointer; padding: 0; }
.theme-btn:hover { background: var(--chip); }
.theme-btn .tb { display: none; }
:root[data-theme-pref="system"] .tb-system, :root[data-theme-pref="light"] .tb-light, :root[data-theme-pref="dark"] .tb-dark { display: grid; }
.theme-menu { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 176px; display: grid; gap: 2px; padding: 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.theme-menu[hidden] { display: none; }
.theme-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 600 15px/1.3 'Noto Sans Thai Looped', system-ui, sans-serif; text-align: left; cursor: pointer; }
.theme-menu button:hover { background: var(--chip); }
.theme-menu button[aria-checked="true"] { background: var(--brandSoft); color: var(--brandInk); }
.theme-menu .icon { width: 20px; height: 20px; }
/* The footer's last lines stay clear of the button. */
.site-footer { padding-bottom: 72px; }

/* Plan 158: "เตือนสามครั้งก่อนถึงนัด" under the hero: three times in order, each with ข้าวปั้น in a mood. One white
   block split by hairlines on a wide screen (from the parked site-directions mockup, direction A), stacked on a phone. */
.hm-three { padding: 56px 0 24px; }
@media (min-width: 900px) { .hm-three { padding: 72px 0 32px; } }
.hm-three-lead { color: var(--inkSoft); max-width: 40em; }
.hm-three-row { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 22px; overflow: hidden; }
@media (min-width: 760px) { .hm-three-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hm-three-row li { background: var(--surface); padding: 20px 22px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; }
.hm-three-char { display: block; width: 72px; height: 72px; }
.hm-three-char .char { width: 100%; height: 100%; }
.hm-three-row b { display: block; font: 600 24px/1.25 'Mitr', system-ui, sans-serif; color: var(--brandInk); }
.hm-three-row li div > span { display: block; color: var(--inkSoft); font-size: 15px; line-height: 1.5; margin-top: 2px; }

/* The hero phone and the three-reminder band take turns between ข้าวปั้น and ส้มโอ, a dog and a cat (owner,
   2026-11-06). home.js sets .cat on each now and then; without it (no script, reduced motion, bots) the dog stays. The screen dips while they swap. */
:is(.hm-stage, .hm-three) .hm-cat { display: none; }
:is(.hm-stage, .hm-three).cat .hm-dog { display: none; }
:is(.hm-stage, .hm-three).cat .hm-cat { display: contents; }
:is(.hm-stage, .hm-three) .hm-dog { display: contents; }
.hm-screen, .hm-bubble, .hm-three-char { transition: opacity .25s var(--ease-out); }
.hm-stage.swapping .hm-screen, .hm-stage.swapping .hm-bubble, .hm-three.swapping .hm-three-char { opacity: 0; }

/* ---- Plan 161: "คืนที่น้องป่วยตอนตีสอง" on the symptom check page. Three scenes in one 20 s loop, drawn with HTML,
   SVG and the site's characters: sick at night with the emergency sheet; the map with pins other owners placed; well
   again, a new pin dropped and a cat following it. The three steps beside it are the real text and light up with
   their scene. Still (the last scene, the plain list) with reduced motion and for bots. ---- */
.er-story { padding: 56px 0 24px; }
@media (min-width: 900px) { .er-story { padding: 72px 0 32px; } }
.er-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .er-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; } }
.er-lead { color: var(--inkSoft); }
.er-steps { list-style: none; counter-reset: er; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.er-steps li { counter-increment: er; position: relative; padding: 12px 14px 12px 52px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); }
.er-steps li::before { content: counter(er); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brandSoft); color: var(--brandInk); font: 600 14px/1 'Mitr', system-ui, sans-serif; }
.er-steps b { display: block; font: 600 17px/1.4 'Mitr', system-ui, sans-serif; }
.er-steps span { display: block; color: var(--inkSoft); font-size: 15px; line-height: 1.55; }
.er-note { font-size: 13px; color: var(--inkMuted); margin-top: 12px; }

.er-stage { position: relative; aspect-ratio: 16 / 11; border-radius: 26px; overflow: hidden; background: linear-gradient(#1A3148, #16232E 70%, #121C24); box-shadow: var(--cardShadow); color: #fff; }
.er-scene { position: absolute; inset: 0; opacity: 0; }
.er-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.er-map path { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 14; stroke-linecap: round; }
.er-stage .char { width: 100%; height: 100%; }

/* Scene 1: the moon, the clock, ข้าวปั้น unwell, the emergency sheet sliding up. */
.er-moon { position: absolute; right: 9%; top: 10%; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset -14px 6px 0 0 #FFF2C2; transform: rotate(-20deg); }
.er-stars { position: absolute; left: 12%; top: 12%; width: 4px; height: 4px; border-radius: 50%; background: #FFF7D6; box-shadow: 70px 18px 0 #FFF7D6, 150px -6px 0 #FFF7D6, 230px 30px 0 #FFF7D6; opacity: .85; }
.er-clock { position: absolute; left: 7%; top: 9%; font: 600 30px/1 'Mitr', system-ui, sans-serif; color: #FFF2C2; letter-spacing: .02em; }
.er-s1 .er-pet { position: absolute; left: 8%; bottom: 8%; width: 34%; aspect-ratio: 1; }
.er-sheet { position: absolute; right: 6%; bottom: 0; width: 50%; padding: 12px; border-radius: 18px 18px 0 0; background: var(--surface); color: var(--ink); box-shadow: 0 -8px 30px rgba(0, 0, 0, .3); }
.er-sheet-h { display: flex; align-items: center; gap: 6px; margin: -12px -12px 10px; padding: 10px 12px; border-radius: 18px 18px 0 0; background: var(--urgentFill); color: #fff; font: 600 15px/1.2 'Mitr', system-ui, sans-serif; }
.er-sheet-h .icon { width: 18px; height: 18px; }
.er-row { display: flex; gap: 8px; align-items: flex-start; }
.er-row .icon { width: 22px; height: 22px; color: var(--urgentInk); flex: none; }
.er-row b { display: block; font-size: 13.5px; line-height: 1.35; }
.er-row small { display: block; font-size: 12px; color: var(--inkSoft); }

/* Scene 2: where you are, the checked hospital far off, pins popping up near home with how many confirmed. */
.er-you { position: absolute; left: 47%; top: 55%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: #4DA3FF; box-shadow: 0 0 0 4px rgba(77, 163, 255, .3); }
.er-far { position: absolute; left: 5%; top: 7%; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .12); font-size: 12px; }
.er-far .icon { width: 18px; height: 18px; color: #FF9F9A; }
.er-pin { position: absolute; width: 38px; height: 38px; margin: -38px 0 0 -19px; transform-origin: 50% 100%; }
.er-pin::before { content: ''; position: absolute; inset: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.er-pin .paw { position: absolute; left: 7px; top: 6px; width: 24px; height: 25px; }
.er-s2 .p1 { left: 58%; top: 50%; }
.er-s2 .p2 { left: 36%; top: 72%; }
.er-s2 .p3 { left: 70%; top: 30%; }
.er-tag { position: absolute; left: 50%; top: 52%; margin-left: 28px; padding: 6px 10px; border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }

/* Scene 3: well again at the clinic; your pin drops with a ripple; a cat comes along to it. */
.er-s3 .er-well { position: absolute; left: 6%; bottom: 6%; width: 30%; aspect-ratio: 1; }
.er-s3 .er-new { left: 52%; top: 56%; width: 46px; height: 46px; margin: -46px 0 0 -23px; }
.er-s3 .er-new::before { box-shadow: 0 0 0 4px var(--brandBright), 0 8px 18px rgba(0, 0, 0, .4); }
.er-s3 .er-new .paw { left: 9px; top: 8px; width: 28px; height: 29px; }
.er-ripple { position: absolute; left: 52%; top: 56%; width: 120px; height: 44px; margin: -22px 0 0 -60px; border-radius: 50%; border: 2px solid var(--brandBright); opacity: 0; }
.er-bubble { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); padding: 8px 14px; border-radius: 16px; background: var(--surface); color: var(--ink); font: 600 15px/1.3 'Mitr', system-ui, sans-serif; white-space: nowrap; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.er-cat { position: absolute; right: 4%; bottom: 6%; width: 24%; aspect-ratio: 1; }
/* A phone: the picture between the lead and the steps, so the lit step and its scene are seen together. */
@media (max-width: 899px) {
  .er-grid { gap: 0; }
  .er-text { display: contents; }
  .er-text h2 { order: 1; } .er-lead { order: 2; } .er-stage { order: 3; margin: 6px 0 4px; } .er-steps { order: 4; } .er-note { order: 5; }
}
@media (max-width: 520px) { .er-tag { left: 50%; top: auto; bottom: 6%; margin-left: 0; transform: translateX(-50%); } }
@media (max-width: 520px) { .er-clock { font-size: 22px; } .er-tag, .er-far { font-size: 11px; } .er-bubble { font-size: 13px; } .er-pin { width: 30px; height: 30px; margin: -30px 0 0 -15px; } .er-pin .paw { left: 5px; top: 5px; width: 19px; height: 20px; } }

/* The loop: 20 s, a third each. Every moving part keys on the same clock, so the steps and the scenes stay together. */
@media (prefers-reduced-motion: no-preference) {
  .er-scene, .er-steps li, .er-sheet, .er-pin, .er-tag, .er-ripple, .er-bubble, .er-cat { animation-duration: 20s; animation-iteration-count: infinite; animation-timing-function: linear; }
  .er-s1 { animation-name: er-s1; } .er-s2 { animation-name: er-s2; } .er-s3 { animation-name: er-s3; }
  .er-steps li:nth-child(1) { animation-name: er-l1; } .er-steps li:nth-child(2) { animation-name: er-l2; } .er-steps li:nth-child(3) { animation-name: er-l3; }
  .er-sheet { animation-name: er-sheet; }
  .er-s2 .p1 { animation-name: er-pop1; } .er-s2 .p2 { animation-name: er-pop2; } .er-s2 .p3 { animation-name: er-pop3; }
  .er-tag { animation-name: er-tag; }
  .er-s3 .er-new { animation-name: er-drop; }
  .er-ripple { animation-name: er-ripple; }
  .er-bubble { animation-name: er-bubble; }
  .er-cat { animation-name: er-cat; }
}
@keyframes er-s1 { 0%, 30% { opacity: 1; } 33.3%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes er-s2 { 0%, 30% { opacity: 0; } 33.3%, 63.3% { opacity: 1; } 66.6%, 100% { opacity: 0; } }
@keyframes er-s3 { 0%, 63.3% { opacity: 0; } 66.6%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes er-l1 { 0%, 31% { opacity: 1; border-color: var(--brandFill); } 33.3%, 98% { opacity: .5; border-color: var(--hairline); } 100% { opacity: 1; border-color: var(--brandFill); } }
@keyframes er-l2 { 0%, 31% { opacity: .5; border-color: var(--hairline); } 33.3%, 64% { opacity: 1; border-color: var(--brandFill); } 66.6%, 100% { opacity: .5; border-color: var(--hairline); } }
@keyframes er-l3 { 0%, 64% { opacity: .5; border-color: var(--hairline); } 66.6%, 98% { opacity: 1; border-color: var(--brandFill); } 100% { opacity: .5; border-color: var(--hairline); } }
@keyframes er-sheet { 0%, 6% { transform: translateY(110%); } 13%, 100% { transform: none; } }
@keyframes er-pop1 { 0%, 37% { transform: scale(0); } 40%, 100% { transform: scale(1); } }
@keyframes er-pop2 { 0%, 41% { transform: scale(0); } 44%, 100% { transform: scale(1); } }
@keyframes er-pop3 { 0%, 45% { transform: scale(0); } 48%, 100% { transform: scale(1); } }
@keyframes er-tag { 0%, 50% { opacity: 0; } 53%, 100% { opacity: 1; } }
@keyframes er-drop { 0%, 70% { transform: translateY(-160px); opacity: 0; } 71% { opacity: 1; } 75% { transform: none; } 77% { transform: scale(1.12, .9); } 79%, 100% { transform: none; opacity: 1; } }
@keyframes er-ripple { 0%, 75% { opacity: 0; transform: scale(.4); } 77% { opacity: .9; } 86%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes er-bubble { 0%, 79% { opacity: 0; transform: translate(-50%, 8px); } 82%, 100% { opacity: 1; transform: translate(-50%, 0); } }
@keyframes er-cat { 0%, 83% { opacity: 0; transform: translateX(60%); } 85% { opacity: 1; } 92%, 100% { opacity: 1; transform: none; } }
/* Still: the last scene and the plain list. */
@media (prefers-reduced-motion: reduce) { .er-s3 { opacity: 1; } }
.quiet .er-scene { opacity: 0 !important; }
.quiet .er-s3 { opacity: 1 !important; }
.quiet .er-steps li { opacity: 1 !important; }

/* Plan 161 follow-up: step 05's phone on the home page tells "คืนที่น้องป่วยตอนตีสอง" in four screens over 20 s: the
   symptom check's verdict, the emergency sheet with the far 24-hour hospital and pins near home, the map with the
   pins and how many confirmed, and your own pin dropped. Still on the first screen with reduced motion and for bots. */
.hm-er-f { position: absolute; left: 0; right: 0; top: 40px; bottom: 0; }
.hm-er-f.f1 { opacity: 1; }
.hm-er-f.f2, .hm-er-f.f3, .hm-er-f.f4 { opacity: 0; }
.hm-er-h { display: flex; align-items: center; gap: 6px; margin: 8px 14px 0; padding: 10px 12px; border-radius: 16px; background: var(--urgentFill); color: #fff; font: 600 15px/1.2 'Mitr', system-ui, sans-serif; }
.hm-er-h .icon { width: 18px; height: 18px; }
.hm-er-map { top: 40px; background: linear-gradient(#1A3148, #16232E); }
.hm-er-map .er-you { left: 46%; top: 58%; }
.hm-er-map .p1 { left: 60%; top: 52%; } .hm-er-map .p2 { left: 32%; top: 74%; } .hm-er-map .p3 { left: 70%; top: 32%; }
.hm-er-tag { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); padding: 6px 10px; border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.hm-er-tag.top { top: 9%; bottom: auto; font: 600 13px/1.3 'Mitr', system-ui, sans-serif; }
.hm-er-pet { position: absolute; left: 6%; bottom: 5%; width: 42%; max-width: 130px; aspect-ratio: 1; }
.hm-er-pet .char { width: 100%; height: 100%; }
.hm-er-map .hm-er-new { left: 60%; top: 54%; width: 46px; height: 46px; margin: -46px 0 0 -23px; }
.hm-er-map .hm-er-new::before { box-shadow: 0 0 0 4px var(--brandBright), 0 8px 18px rgba(0, 0, 0, .4); }
.hm-er-map .hm-er-new .paw { left: 9px; top: 8px; width: 28px; height: 29px; }
.hm-er-map .er-ripple { left: 60%; top: 54%; }
@media (prefers-reduced-motion: no-preference) {
  .hm-er-f, .hm-er .er-pin, .hm-er .er-ripple, .hm-er-tag { animation-duration: 20s; animation-iteration-count: infinite; animation-timing-function: linear; }
  .hm-er-f.f1 { animation-name: hm-er1; } .hm-er-f.f2 { animation-name: hm-er2; } .hm-er-f.f3 { animation-name: hm-er3; } .hm-er-f.f4 { animation-name: hm-er4; }
  .hm-er .f3 .p1 { animation-name: hm-er-pop1; } .hm-er .f3 .p2 { animation-name: hm-er-pop2; } .hm-er .f3 .p3 { animation-name: hm-er-pop3; }
  .hm-er .f3 .hm-er-tag { animation-name: hm-er-tag3; }
  .hm-er .hm-er-new { animation-name: hm-er-drop; } .hm-er .er-ripple { animation-name: hm-er-ripple; } .hm-er .f4 .hm-er-tag { animation-name: hm-er-tag4; }
}
@keyframes hm-er1 { 0%, 23% { opacity: 1; } 25%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hm-er2 { 0%, 23% { opacity: 0; } 25%, 48% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes hm-er3 { 0%, 48% { opacity: 0; } 50%, 73% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes hm-er4 { 0%, 73% { opacity: 0; } 75%, 98% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hm-er-pop1 { 0%, 52% { transform: scale(0); } 55%, 100% { transform: scale(1); } }
@keyframes hm-er-pop2 { 0%, 56% { transform: scale(0); } 59%, 100% { transform: scale(1); } }
@keyframes hm-er-pop3 { 0%, 60% { transform: scale(0); } 63%, 100% { transform: scale(1); } }
@keyframes hm-er-tag3 { 0%, 64% { opacity: 0; } 67%, 100% { opacity: 1; } }
@keyframes hm-er-drop { 0%, 77% { transform: translateY(-160px); opacity: 0; } 78% { opacity: 1; } 82% { transform: none; } 84% { transform: scale(1.12, .9); } 86%, 100% { transform: none; opacity: 1; } }
@keyframes hm-er-ripple { 0%, 82% { opacity: 0; transform: scale(.4); } 84% { opacity: .9; } 93%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes hm-er-tag4 { 0%, 86% { opacity: 0; } 89%, 100% { opacity: 1; } }
.quiet .hm-er-f.f1 { opacity: 1 !important; }
.quiet .hm-er-f.f2, .quiet .hm-er-f.f3, .quiet .hm-er-f.f4 { opacity: 0 !important; }

/* Step 04's phone on the home page in four screens over 20 s: ข้าวปั้น is not home and the notice is one tap away; the
   poster, shared to groups; owners nearby who opted in hear of it (within 5 km, as `LOCATION_RULES` in the API sends); a finder writes in the app and
   ข้าวปั้น is home. Still on the poster with reduced motion and for bots. */
.hm-lf-f { position: absolute; left: 0; right: 0; top: 40px; bottom: 0; opacity: 0; }
.hm-lf-f.f2 { opacity: 1; }
.hm-lf-ask { position: relative; margin: 10px 14px 0; padding: 18px; border-radius: 22px; background: var(--surface); box-shadow: var(--cardShadow); text-align: center; display: grid; justify-items: center; gap: 4px; }
.hm-lf-pet { width: 110px; height: 110px; }
.hm-lf-pet .char, .hm-lf-home .char { width: 100%; height: 100%; }
.hm-lf-ask b { font: 600 17px/1.3 'Mitr', system-ui, sans-serif; }
.hm-lf-ask small { color: var(--inkSoft); font-size: 12px; }
.hm-lf-btn { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 14px; background: var(--urgentFill); color: #fff; font-weight: 600; font-size: 14px; }
.hm-lf-btn .icon { width: 18px; height: 18px; }
.hm-lf-ring { position: absolute; left: 46%; top: 58%; width: 190px; height: 190px; margin: -95px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); background: rgba(77, 163, 255, .08); }
.hm-lf-bell { position: absolute; width: 30px; height: 30px; margin: -15px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--urgentInk); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.hm-lf-bell .icon { width: 17px; height: 17px; }
.hm-lf-bell.b1 { left: 30%; top: 44%; } .hm-lf-bell.b2 { left: 66%; top: 47%; } .hm-lf-bell.b3 { left: 38%; top: 74%; } .hm-lf-bell.b4 { left: 62%; top: 70%; }
.hm-lf-chat { margin: 14px 14px 0; display: grid; gap: 8px; }
.hm-lf-msg { justify-self: start; max-width: 85%; padding: 9px 12px; border-radius: 4px 16px 16px 16px; background: var(--surface); box-shadow: var(--cardShadow); font-size: 13px; }
.hm-lf-msg.me { justify-self: end; border-radius: 16px 4px 16px 16px; background: var(--brandFill); color: var(--onBrand); }
.hm-lf-safe { display: flex; align-items: center; gap: 5px; justify-self: center; color: var(--inkMuted); font-size: 11.5px; }
.hm-lf-safe .icon { width: 14px; height: 14px; }
.hm-lf-home { position: absolute; left: 50%; bottom: 8%; width: 46%; max-width: 140px; aspect-ratio: 1; transform: translateX(-50%); }
.hm-lf-found { justify-self: center; margin-top: 6px; padding: 6px 12px; border-radius: 12px; background: var(--okSoft); color: var(--okInk); font: 600 13px/1.3 'Mitr', system-ui, sans-serif; }
@media (prefers-reduced-motion: no-preference) {
  .hm-lf-f, .hm-lf-btn, .hm-lf-bell, .hm-lf-ring, .hm-lf .hm-er-tag, .hm-lf-msg, .hm-lf-found { animation-duration: 20s; animation-iteration-count: infinite; animation-timing-function: linear; }
  .hm-lf-f.f1 { animation-name: hm-er1; } .hm-lf-f.f2 { animation-name: hm-er2; } .hm-lf-f.f3 { animation-name: hm-er3; } .hm-lf-f.f4 { animation-name: hm-er4; }
  .hm-lf-btn { animation-name: hm-lf-tap; }
  .hm-lf-ring { animation-name: hm-lf-ring; }
  .hm-lf-bell.b1 { animation-name: hm-er-pop1; } .hm-lf-bell.b2 { animation-name: hm-er-pop2; } .hm-lf-bell.b3 { animation-name: hm-er-pop3; } .hm-lf-bell.b4 { animation-name: hm-lf-pop4; }
  .hm-lf .f3 .hm-er-tag { animation-name: hm-er-tag3; }
  .hm-lf-msg { animation-name: hm-lf-msg; } .hm-lf-msg.me { animation-name: hm-lf-reply; }
  .hm-lf-found { animation-name: hm-er-tag4; }
}
@keyframes hm-lf-tap { 0%, 15% { transform: none; } 17% { transform: scale(.92); } 19%, 100% { transform: none; } }
@keyframes hm-lf-ring { 0%, 50% { transform: scale(.2); opacity: 0; } 56%, 100% { transform: none; opacity: 1; } }
@keyframes hm-lf-pop4 { 0%, 64% { transform: scale(0); } 67%, 100% { transform: scale(1); } }
@keyframes hm-lf-msg { 0%, 76% { opacity: 0; transform: translateY(8px); } 79%, 100% { opacity: 1; transform: none; } }
@keyframes hm-lf-reply { 0%, 81% { opacity: 0; transform: translateY(8px); } 84%, 100% { opacity: 1; transform: none; } }
.quiet .hm-lf-f { opacity: 0 !important; }
.quiet .hm-lf-f.f2 { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) { .hm-lf-f.f2 { opacity: 1; } }

/* Plan 160: the feature pages' pictures are the characters on a soft ground, like the home page's "เจอน้องระหว่างทาง"
   cards, in place of stock photos (the owner has no photos to use, 2026-11-06). The app card overlaps the lower part. */
.photo-visual > .photo-art { aspect-ratio: 4 / 3; border-radius: 28px; background: var(--ph); display: flex; justify-content: center; align-items: center; gap: 2%; padding: 0 6% 22%; }
.photo-art .pa-char { display: block; flex: 0 1 auto; width: 34%; aspect-ratio: 1; }
.photo-art.n1 .pa-char { width: 46%; }
.photo-art.n4 .pa-char { width: 23%; }
.pa-char .char { width: 100%; height: 100%; }
.photo-slot .pa-char { width: 58%; aspect-ratio: 1; }
.sharecard .photo .pa-char { width: 70%; aspect-ratio: 1; display: block; }
.sharecard .photo[class*="ph-"] { background: var(--ph); }
.photo-slot .pa-char svg, .sharecard .photo .pa-char svg { width: 100%; height: 100%; opacity: 1; }

/* Steps 01 to 03's phones on the home page, short loops like 04 and 05. Still (the step's own screen: the book, all
   three messages, what the scanner sees) with reduced motion and for bots, whose .quiet stops every animation. */
.hm-fr { position: absolute; left: 0; right: 0; top: 40px; bottom: 0; }
.hm-fx3 .hm-fr.f1, .hm-fx3 .hm-fr.f2, .hm-fx2 .hm-fr.f1 { opacity: 0; }
/* 01: the camera over a vaccine book page, a line sweeping it; the entries AI read, to check; the book. */
.hm-scan { position: relative; margin: 10px 14px 0; height: 236px; border-radius: 14px; background: #FBF6EC; border: 1px solid #E7DCCF; overflow: hidden; padding: 12px 12px; font-size: 10px; color: #4A3F35; }
.hm-vhead, .hm-vrow { display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 8px; align-items: center; }
.hm-vhead { padding-bottom: 6px; border-bottom: 1px solid #E2D6C4; font-weight: 600; color: #8A7A68; }
.hm-vrow { padding: 8px 0; border-bottom: 1px dashed #E2D6C4; }
.hm-vrow .d, .hm-vrow .nx { font-variant-numeric: tabular-nums; }
.hm-vrow .nx { color: #1F5C9E; font: 500 11px/1.2 'Mitr', system-ui, sans-serif; transform: rotate(-3deg); }
.stk { display: block; padding: 4px 6px 5px; border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgba(74, 63, 53, .25); }
.stk b { display: block; font-size: 10.5px; line-height: 1.2; color: #2B241E; }
.stk small { display: block; font-size: 8.5px; line-height: 1.2; color: #8A7A68; }
.stk .bc { display: block; height: 10px; margin-top: 3px; background: repeating-linear-gradient(90deg, #2B241E 0 1px, transparent 1px 2px, #2B241E 2px 4px, transparent 4px 5px, #2B241E 5px 6px, transparent 6px 8px, #2B241E 8px 9px, transparent 9px 10px, #2B241E 10px 13px, transparent 13px 14px); }
.hm-scan-line { position: absolute; left: 0; right: 0; top: 10%; height: 3px; background: var(--brandBright); box-shadow: 0 0 14px var(--brandBright); }
.hm-shoot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 14px 0; padding: 11px; border-radius: 14px; background: var(--brandFill); color: var(--onBrand); font-weight: 600; font-size: 14px; }
.hm-shoot .icon { width: 18px; height: 18px; }
.hm-fx3 .f2 .hm-row .icon { width: 20px; height: 20px; color: var(--okInk); }
/* 03: the card's QR held up, the scanner's corners closing on it; then what the scanner sees. */
.hm-qrbig { position: relative; margin: 26px auto 0; width: 190px; height: 190px; display: grid; place-items: center; }
.hm-qrbox { width: 150px; height: 150px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: var(--cardShadow); color: #14181B; }
.hm-qrbox img { width: 120px; height: 120px; display: block; }
.hm-qr-c { position: absolute; inset: 0; border-radius: 22px; background:
  linear-gradient(var(--brandBright) 0 0) 0 0 / 34px 4px no-repeat, linear-gradient(var(--brandBright) 0 0) 0 0 / 4px 34px no-repeat,
  linear-gradient(var(--brandBright) 0 0) 100% 0 / 34px 4px no-repeat, linear-gradient(var(--brandBright) 0 0) 100% 0 / 4px 34px no-repeat,
  linear-gradient(var(--brandBright) 0 0) 0 100% / 34px 4px no-repeat, linear-gradient(var(--brandBright) 0 0) 0 100% / 4px 34px no-repeat,
  linear-gradient(var(--brandBright) 0 0) 100% 100% / 34px 4px no-repeat, linear-gradient(var(--brandBright) 0 0) 100% 100% / 4px 34px no-repeat; }
.hm-qr-pet { display: block; width: 120px; height: 120px; margin: 18px auto 0; }
.hm-qr-pet .char { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hm-fx3 .hm-fr, .hm-scan-line { animation-duration: 15s; animation-iteration-count: infinite; animation-timing-function: linear; }
  .hm-fx3 .hm-fr.f1 { animation-name: hm-f3a; } .hm-fx3 .hm-fr.f2 { animation-name: hm-f3b; } .hm-fx3 .hm-fr.f3 { animation-name: hm-f3c; }
  .hm-scan-line { animation-name: hm-sweep; }
  .hm-fx2 .hm-fr, .hm-qr-c { animation-duration: 10s; animation-iteration-count: infinite; animation-timing-function: linear; }
  .hm-fx2 .hm-fr.f1 { animation-name: hm-f2a; } .hm-fx2 .hm-fr.f2 { animation-name: hm-f2b; }
  .hm-qr-c { animation-name: hm-corners; }
  .hm-fx-line .hm-msgs .hm-rows, .hm-fx-line .hm-chip { animation-duration: 12s; animation-iteration-count: infinite; animation-timing-function: linear; }
  .hm-fx-line .hm-msgs .hm-rows:nth-child(1) { animation-name: hm-m1; } .hm-fx-line .hm-msgs .hm-rows:nth-child(2) { animation-name: hm-m2; } .hm-fx-line .hm-msgs .hm-rows:nth-child(3) { animation-name: hm-m3; }
  .hm-fx-line .hm-chip { animation-name: hm-done; }
}
@keyframes hm-f3a { 0%, 31% { opacity: 1; } 33.3%, 98% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hm-f3b { 0%, 31% { opacity: 0; } 33.3%, 64% { opacity: 1; } 66.6%, 100% { opacity: 0; } }
@keyframes hm-f3c { 0%, 64% { opacity: 0; } 66.6%, 98% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hm-sweep { 0% { top: 6%; } 15% { top: 92%; } 30% { top: 6%; } 100% { top: 6%; } }
@keyframes hm-f2a { 0%, 46% { opacity: 1; } 50%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hm-f2b { 0%, 46% { opacity: 0; } 50%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hm-corners { 0%, 8% { transform: scale(1.18); opacity: 0; } 16% { transform: none; opacity: 1; } 24% { opacity: .4; } 32%, 46% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; } }
@keyframes hm-m1 { 0%, 4% { opacity: 0; transform: translateY(10px); } 8%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes hm-m2 { 0%, 24% { opacity: 0; transform: translateY(10px); } 28%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes hm-m3 { 0%, 44% { opacity: 0; transform: translateY(10px); } 48%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes hm-done { 0%, 62% { transform: scale(0); } 66% { transform: scale(1.2); } 69%, 100% { transform: none; } }
/* Step 02 reminds in both places: the LINE chat for 12 s, then the app's own notifications for 12 s, the three
   reminders arriving in each. Still on LINE with reduced motion and for bots. */
.hm-fx-line .hm-fr.f2 { opacity: 0; }
.hm-av-app { background: var(--brandSoft); color: var(--brandInk); }
.hm-av-app .icon { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .hm-fx-line .hm-fr { animation-duration: 24s; animation-iteration-count: infinite; animation-timing-function: linear; }
  .hm-fx-line .hm-fr.f1 { animation-name: hm-f2a; } .hm-fx-line .hm-fr.f2 { animation-name: hm-f2b; }
}

/* Plan 160: a calmer footer. Three groups of links (features, more, contact), the policies as small links in the
   bottom row, and one fine line for the health note and the copyright. Same links as before. */
.footer-cols h2 { font-size: 14px; color: rgba(255, 255, 255, .72); }
.footer-cols a { font-size: 15.5px; }
.footer-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; }
.footer-bottom .footer-motto { margin: 0; font: 500 14px/1.5 'Mitr', system-ui, sans-serif; opacity: .85; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; }
.footer-legal a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-fine { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
@media (max-width: 759px) {
  .footer-bottom { grid-template-columns: auto minmax(0, 1fr); }
  .footer-legal { grid-column: 1 / -1; }
}
.footer-cols a, .footer-fine { overflow-wrap: anywhere; }

/* ---- Plan 162: the pet's daily tarot. The cards are 151's art (partials/tarot/*.svg). ---- */
.tarot-svg { display: block; width: 100%; height: auto; }
.hm-tarot { padding: 64px 0; background: linear-gradient(180deg, var(--canvas), color-mix(in srgb, #F3D89B 22%, var(--canvas))); }
@media (min-width: 900px) { .hm-tarot { padding: 90px 0; } }
.hm-tarot-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hm-tarot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.hm-tarot-lead { color: var(--inkSoft); font-size: 17px; }
.hm-tarot-note { display: flex; gap: 8px; align-items: flex-start; color: var(--inkMuted); font-size: 14px; margin-bottom: 22px; }
.hm-tarot-note .icon { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--inkMuted); }
/* Three backs fanned; the middle one lifts, flips to The Sun, and the pet's letter comes up. */
.tarot-stage { position: relative; height: 380px; max-width: 460px; width: 100%; margin: 0 auto; }
.tc { position: absolute; left: 50%; top: 40px; width: 150px; margin-left: -75px; filter: drop-shadow(0 14px 22px rgba(60, 40, 20, .22)); }
.tc-l { transform: translateX(-92px) rotate(-12deg); }
.tc-r { transform: translateX(92px) rotate(12deg); }
.tc-m { z-index: 2; transform: translateY(-14px); }
.tc-m .tc-back, .tc-m .tc-front { display: block; }
.tc-m .tc-back { position: absolute; inset: 0; transform: scaleX(0); }
.tarot-letter { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(340px, 100%); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--cardShadow); border: 1px solid var(--hairline); font: 500 15px/1.45 'Mitr', system-ui, sans-serif; z-index: 3; }
.tarot-pet { width: 56px; height: 56px; }
.tarot-pet .char { width: 100%; height: 100%; }
@media (max-width: 480px) { .tarot-stage { height: 340px; } .tc { width: 124px; margin-left: -62px; } .tc-l { transform: translateX(-76px) rotate(-12deg); } .tc-r { transform: translateX(76px) rotate(12deg); } }
@media (prefers-reduced-motion: no-preference) {
  .tc-l, .tc-r, .tc-m, .tc-back, .tc-front, .tarot-letter { animation-duration: 12s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
  .tc-l { animation-name: tc-l; } .tc-r { animation-name: tc-r; } .tc-m { animation-name: tc-m; }
  .tc-m .tc-back { animation-name: tc-back; } .tc-m .tc-front { animation-name: tc-front; }
  .tarot-letter { animation-name: tc-letter; }
}
/* 0-20% shuffle (the side cards slide in and out), 20-35% the middle lifts, 35-45% flip, 50% the letter, hold. */
@keyframes tc-l { 0%, 2% { transform: translateX(0) rotate(0); } 8% { transform: translateX(-60px) rotate(-6deg); } 12% { transform: translateX(0) rotate(0); } 18%, 92% { transform: translateX(-92px) rotate(-12deg); } 100% { transform: translateX(0) rotate(0); } }
@keyframes tc-r { 0%, 4% { transform: translateX(0) rotate(0); } 10% { transform: translateX(60px) rotate(6deg); } 14% { transform: translateX(0) rotate(0); } 20%, 92% { transform: translateX(92px) rotate(12deg); } 100% { transform: translateX(0) rotate(0); } }
@keyframes tc-m { 0%, 22% { transform: none; } 32%, 92% { transform: translateY(-14px) scale(1.06); } 100% { transform: none; } }
@keyframes tc-back { 0%, 34% { transform: scaleX(1); } 40%, 96% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes tc-front { 0%, 40% { transform: scaleX(0); } 46%, 94% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes tc-letter { 0%, 48% { opacity: 0; transform: translate(-50%, 10px); } 54%, 92% { opacity: 1; transform: translate(-50%, 0); } 98%, 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* The feature page's head: three cards face up in a fan. */
.tarot-fan { position: relative; height: 330px; max-width: 420px; width: 100%; margin: 0 auto; }
.tf { position: absolute; left: 50%; top: 20px; width: 160px; margin-left: -80px; filter: drop-shadow(0 14px 22px rgba(60, 40, 20, .22)); }
.tf-1 { transform: translateX(-110px) rotate(-12deg); }
.tf-2 { z-index: 2; transform: translateY(-10px); }
.tf-3 { transform: translateX(110px) rotate(12deg); }
@media (max-width: 480px) { .tarot-fan { height: 280px; } .tf { width: 130px; margin-left: -65px; } .tf-1 { transform: translateX(-84px) rotate(-12deg); } .tf-3 { transform: translateX(84px) rotate(12deg); } }

/* The places pages' drawn head: the same characters-on-a-soft-ground panel as the feature pages. */
.hero-art.photo-art { display: flex; justify-content: center; align-items: center; gap: 4%; padding: 6%; background: var(--ph); }
.hero-art .pa-char { width: 38%; aspect-ratio: 1; display: block; }
.photo-visual > .photo-art.solo { padding-bottom: 6%; }

/* The soft grounds behind the characters, as classes: the site's CSP (style-src 'self') blocks inline style
   attributes, so a style="--ph:..." never reached production. */
.ph-peach { --ph: #FFE3C8; } .ph-lilac { --ph: #E6E1F5; } .ph-green { --ph: #E1F2DF; }
.ph-sky { --ph: #D6EEF7; } .ph-apricot { --ph: #FFE9D6; } .ph-rose { --ph: #FDECEC; }

/* The FAQ in the home page's look (2026-11-06): the open answer marked like the 158 band, the mascot on phones too, and
   a closing "ask us" card with a pet. */
.faq details[open] { border-color: color-mix(in srgb, var(--brandFill) 35%, var(--hairline)); }
.faq details[open] summary { color: var(--brandInk); }
.faq-ask { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 16px; align-items: center; margin-top: 18px; padding: 18px 20px; border-radius: 22px; background: var(--brandSoft); }
.faq-ask-pet { width: 64px; height: 64px; }
.faq-ask-pet .char { width: 100%; height: 100%; }
.faq-ask b { display: block; font: 600 18px/1.35 'Mitr', system-ui, sans-serif; }
.faq-ask div span { display: block; color: var(--inkSoft); font-size: 15px; }
.faq-ask .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 760px) { .faq-ask { grid-template-columns: 64px minmax(0, 1fr) auto; } .faq-ask .btn { grid-column: auto; } }
/* A phone: the places head is one track that never grows past the screen (the hospitals head overflowed at 360). */
.places-hero .grid { grid-template-columns: minmax(0, 1fr); }
.places-hero .grid > * { min-width: 0; }
@media (min-width: 900px) { .places-hero .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
/* A long button never runs past a narrow screen: it wraps instead (the hospitals search at 360). */
.btn { max-width: 100%; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: left; line-height: 1.35; padding-top: 10px; padding-bottom: 10px; } }
