/* The home page (quick 261031-night-site): the "Night" design Miles approved on 31 Oct 2026, from
   design-refs/onchocks-previews. Loaded after site.css on / only, and built on its tokens, so the
   header toggle switches it between dark (the default here, set on <html>) and light. The hero and the
   closing panel are dark photo panels in both themes; their colours are fixed below, not tokens. */

body.home { background: var(--bg); }
.h-wrap { max-width: 1240px; margin: 0 auto; padding: 0 5%; }
.h-center { text-align: center; }
.h-center .h-sub { margin-left: auto; margin-right: auto; }
.h-h2 { font: 500 clamp(30px, 3.2vw, 46px)/1.14 Poppins, Inter, sans-serif; letter-spacing: -0.025em; text-wrap: balance; }
.h-sub { color: var(--lb2); font-size: 18px; margin-top: 14px; max-width: 52ch; }
.h-sub a { color: var(--lb); text-underline-offset: 3px; }
.h-sec { padding: 112px 0; scroll-margin-top: 16px; }
.h-band { background: var(--sf); }
.h-two { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; }

/* ---------- the header over the hero photo ---------- */
.h-nav { position: absolute; z-index: 20; top: 8px; left: 8px; right: 8px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px 28px 28px; border-radius: 16px 16px 0 0; color: #F2EFEA; background: linear-gradient(180deg, rgba(11,9,7,.78) 0%, rgba(11,9,7,.45) 60%, rgba(11,9,7,0) 100%); }
.h-navlinks { display: flex; gap: 26px; font: 500 15px Inter, sans-serif; }
.h-navlinks a, .h-pill { color: #F2EFEA; text-decoration: none; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.h-navlinks a:hover { text-decoration: underline; text-underline-offset: 4px; }
.h-nav .brand { color: #F2EFEA; justify-self: center; white-space: nowrap; }
.h-navright { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.h-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font: 500 14.5px Inter, sans-serif; background: rgba(18,17,15,.62); border: 1px solid rgba(242,239,234,.24); text-shadow: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.h-pill:hover { background: rgba(18,17,15,.8); }
.h-nav .theme-toggle { color: #F2EFEA; border-color: rgba(242,239,234,.3); background: rgba(18,17,15,.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.h-nav .theme-toggle:hover { background: rgba(18,17,15,.85); color: #FFFFFF; }
.h-nav .btn.beta, .h-hero .btn.beta, .h-close .btn.beta { background: #F2EFEA; color: #12110F; border-radius: 999px; }
.h-nav .btn.beta:hover, .h-hero .btn.beta:hover, .h-close .btn.beta:hover { background: #FFFFFF; }
.h-nav a.btn.beta { color: #12110F; }
.h-nav .btn.beta, .h-nav .store { white-space: nowrap; flex: none; }
.h-nav :focus-visible, .h-hero :focus-visible, .h-end :focus-visible { outline-color: #F2EFEA; }
.h-menu { display: none; position: relative; }
.h-menu summary { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(18,17,15,.62); border: 1px solid rgba(242,239,234,.3); cursor: pointer; }
.h-menu summary span { display: block; width: 16px; height: 2px; border-radius: 1px; background: #F2EFEA; }
.h-menu[open] summary { background: rgba(18,17,15,.9); }
.h-menupanel { position: absolute; right: 0; top: 50px; width: 220px; padding: 8px; border-radius: 14px; background: #1A1917; border: 1px solid #34312C; box-shadow: 0 20px 50px rgba(0,0,0,.5); display: grid; }
.h-menupanel a { color: #F2EFEA; text-decoration: none; padding: 11px 12px; border-radius: 10px; font: 500 15px Inter, sans-serif; }
.h-menupanel a:hover { background: #2B2926; }

/* ---------- framed photo hero: dark in both themes ---------- */
.h-hero { position: relative; margin: 8px; border-radius: 16px; overflow: hidden; min-height: max(640px, calc(100vh - 16px)); background: #0B0907; color: #F2EFEA; display: flex; flex-direction: column; justify-content: flex-end; }
.h-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 62%; background: url(/home/tokyo-night.jpg) center / cover no-repeat; }
.h-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0B0907 0%, rgba(11,9,7,.35) 38%, rgba(11,9,7,0) 60%), linear-gradient(0deg, #0B0907 0%, rgba(11,9,7,0) 32%); }
.h-glow { position: absolute; right: 16%; top: 10%; width: min(46vw, 760px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(233,161,90,.42) 0%, rgba(233,161,90,0) 68%); }
/* The text sits in the flow at the foot of the photo (quick 261031-seo), so the launch-day form under the
   buttons grows the hero instead of running into the header on a short screen. */
.h-herobody { position: relative; z-index: 2; margin: 120px 40px 116px; max-width: 37rem; }
.h-check { font-size: 15px; color: rgba(242,239,234,.9); }
.h-h1 { margin-top: 18px; font: 500 clamp(40px, 4.6vw, 70px)/1.03 Poppins, Inter, sans-serif; letter-spacing: -0.03em; color: #FFFFFF; }
.h-lead { margin-top: 20px; font-size: 19px; line-height: 1.5; color: rgba(242,239,234,.88); max-width: 32rem; }
.h-ctas { margin-top: 30px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.h-hero .needs, .h-close .needs { color: rgba(242,239,234,.75); }
.h-glass { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font: 600 15px Inter, sans-serif; color: #FFFFFF; text-decoration: none; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.h-glass:hover { background: rgba(255,255,255,.22); }
.h-needs { margin-top: 16px; }
/* The launch-day form in the hero, on the dark photo in both themes (quick 261031-seo). */
.h-hero .launch, .h-hero .launch-done { margin-top: 22px; max-width: 30rem; scroll-margin-top: 96px; }
.h-hero .launch-row input { background: rgba(255,255,255,.1); border-color: rgba(242,239,234,.35); color: #FFFFFF; border-radius: 999px; padding: 0 18px; }
.h-hero .launch-row input::placeholder { color: rgba(242,239,234,.65); }
.h-hero .launch-row .btn { background: rgba(255,255,255,.14); color: #FFFFFF; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; }
.h-hero .launch-row .btn:hover { background: rgba(255,255,255,.22); }
.h-hero .launch-note, .h-hero .launch-note a { color: rgba(242,239,234,.72); }
.h-hero .launch-error { color: #E9AB4B; }
.h-hero .launch-done { color: #7CC3A0; font-size: 17px; }
.h-hero .launch-share, .h-hero .launch-share-lead, .h-hero .launch-share-count { color: rgba(242,239,234,.82); }
.h-hero .launch-share input { background: rgba(255,255,255,.1); border-color: rgba(242,239,234,.35); color: #FFFFFF; border-radius: 999px; }
.h-hero .launch-share .btn { background: #F2EFEA; color: #12110F; border-radius: 999px; }
.h-hero .launch-share .btn.ghost { background: transparent; color: #F2EFEA; border-color: rgba(242,239,234,.45); }
.h-hero .h-heroPhone { position: absolute; z-index: 2; right: 8%; bottom: -120px; width: 300px; transform: rotate(4deg); }
.h-ticker { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; list-style: none; display: flex; gap: 40px; padding: 16px 40px; font-size: 14.5px; color: rgba(242,239,234,.9); border-top: 1px solid rgba(255,255,255,.12); background: linear-gradient(0deg, rgba(11,9,7,.85), rgba(11,9,7,.35)); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.h-ticker::-webkit-scrollbar { display: none; }
.h-ticker b { font-weight: 600; color: #FFFFFF; }

/* ---------- phones holding real app screenshots ---------- */
.h-phone { position: relative; width: 300px; max-width: 100%; padding: 9px; border-radius: 46px; background: #141415; box-shadow: 0 30px 70px rgba(0,0,0,.32), inset 0 0 0 1.5px #2a2a2c; }
.h-phone img { width: 100%; height: auto; border-radius: 37px; }

/* ---------- only crew recommendations, and the six categories ---------- */
.h-proof { padding: 72px 0 8px; text-align: center; }
.h-proof .h-sub { margin-left: auto; margin-right: auto; max-width: 60ch; }
.h-cats { list-style: none; margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 26px; font: 500 16px Poppins, Inter, sans-serif; }
.h-cats li { display: inline-flex; align-items: center; gap: 9px; }
.h-cats i { width: 11px; height: 11px; border-radius: 50%; }
.h-cats i[data-cat="eat"] { background: var(--pinEat); }
.h-cats i[data-cat="coffee"] { background: var(--pinCoffee); }
.h-cats i[data-cat="drinks"] { background: var(--pinDrinks); }
.h-cats i[data-cat="wellness"] { background: var(--pinWellness); }
.h-cats i[data-cat="essentials"] { background: var(--pinEssentials); }
.h-cats i[data-cat="do"] { background: var(--pinDo); }

/* ---------- how it works ---------- */
.h-steps { list-style: none; margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: left; }
.h-stepmedia { position: relative; height: 430px; border-radius: 16px; background: var(--sf); display: flex; justify-content: center; align-items: flex-start; padding-top: 36px; overflow: hidden; }
.h-stepmedia .h-phone { width: 232px; border-radius: 38px; padding: 7px; }
.h-stepmedia .h-phone img { border-radius: 31px; }
.h-num { position: absolute; z-index: 2; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 8px; background: rgba(17,17,18,.78); color: #FFFFFF; font: 600 14px/30px Inter, sans-serif; text-align: center; }
.h-step h3 { margin-top: 18px; font: 500 20px/1.3 Poppins, Inter, sans-serif; letter-spacing: -0.015em; }
.h-step p { margin-top: 8px; color: var(--lb2); font-size: 15.5px; }

/* ---------- what's in the app ---------- */
.h-features { list-style: none; margin-top: 24px; }
.h-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.h-feature:first-child { border-top: 0; }
.h-rev .h-ftext { order: 2; }
.h-eyebrow { color: var(--gr); font: 500 15px Inter, sans-serif; }
.h-ftext h3 { margin-top: 10px; font: 500 clamp(24px, 2.4vw, 34px)/1.2 Poppins, Inter, sans-serif; letter-spacing: -0.02em; }
.h-ftext p:not(.h-eyebrow):not(.h-note) { margin-top: 14px; color: var(--lb2); font-size: 17px; max-width: 52ch; }
.h-ftext q { quotes: none; color: var(--lb); font-weight: 500; }
.h-note { margin-top: 14px; font-size: 13.5px; color: var(--lb3); }
.h-fmedia { height: 560px; border-radius: 18px; background: var(--card); display: flex; justify-content: center; padding-top: 44px; overflow: hidden; }
.h-fmedia .h-phone { width: 320px; }

/* ---------- picks, cities, privacy, questions ---------- */
.home .picks-head .h-sub { margin-top: 12px; }
.h-cities { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.h-cities li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font: 500 18px Poppins, Inter, sans-serif; }
.h-n { font: 400 15px Inter, sans-serif; color: var(--lb2); }
.h-cities a { color: var(--lb); text-decoration: underline; text-decoration-color: var(--lb3); text-underline-offset: 4px; }
.h-cities a:hover { text-decoration-color: currentColor; }
.home .facts { border-top: 1px solid var(--line); }
.home .facts li { color: var(--lb); border-bottom: 1px solid var(--line); }
.home .facts a { color: var(--lb); text-underline-offset: 3px; }
.home .faq { padding: 112px 0; }
.home .faq .qa { margin-top: 0; }
.home .faq .wrap { max-width: none; }

/* ---------- closing photo panel and the footer card: the panel is dark in both themes ---------- */
.h-end { position: relative; margin: 8px; border-radius: 16px; overflow: hidden; background: #0B0907; color: #F2EFEA; padding: 128px 40px 16px; }
.h-endphoto { position: absolute; inset: 0; background: url(/home/bkk-street.jpg) center 35% / cover no-repeat; opacity: .55; }
.h-endphoto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0B0907 8%, rgba(11,9,7,.25) 70%); }
.h-close { position: relative; max-width: 36rem; scroll-margin-top: 16px; }
.h-close .h-h2 { font-size: clamp(38px, 4.2vw, 64px); line-height: 1.05; color: #FFFFFF; }
.h-close .h-lead { margin-top: 18px; }
.h-close .launch { margin-top: 28px; }
.h-close .launch-row input { background: rgba(255,255,255,.1); border-color: rgba(242,239,234,.35); color: #FFFFFF; border-radius: 999px; padding: 0 18px; }
.h-close .launch-row input::placeholder { color: rgba(242,239,234,.65); }
.h-close .launch-row .btn { background: #F2EFEA; color: #12110F; border-radius: 999px; }
.h-close .launch-note, .h-close .launch-note a { color: rgba(242,239,234,.72); }
.h-close .launch-error { color: #E9AB4B; }
.h-close .launch-done { color: #7CC3A0; font-size: 17px; }
.h-close .launch-share, .h-close .launch-share-lead, .h-close .launch-share-count { color: rgba(242,239,234,.82); }
.h-close .launch-share .btn.ghost { color: #F2EFEA; border-color: rgba(242,239,234,.45); border-radius: 999px; }
.h-closecta { margin-top: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.h-reducers { margin-top: 16px; font-size: 14px; color: rgba(242,239,234,.75); }
.h-foot { position: relative; margin-top: 112px; padding: 36px 36px 24px; border-radius: 16px; background: var(--card); color: var(--lb); }
.h-footgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.h-foot h2 { font: 600 13px Inter, sans-serif; color: var(--lb3); margin-bottom: 12px; }
.h-foot ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.h-foot ul a { color: var(--lb2); text-decoration: none; overflow-wrap: anywhere; }
.h-foot ul a:hover { color: var(--lb); }
.h-foot .brand { color: var(--lb); }
.h-foot .small { font-size: 13.5px; color: var(--lb2); margin-top: 12px; max-width: 30ch; }
.h-foot .legal { margin: 28px 0 0; padding: 18px 0 0; max-width: none; }

@media (prefers-reduced-motion: no-preference) {
  .h-hero .h-heroPhone { animation: h-rise 1s cubic-bezier(.16,1,.3,1) both; }
  @keyframes h-rise { from { transform: translateY(30px) rotate(4deg); opacity: 0; } to { transform: translateY(0) rotate(4deg); opacity: 1; } }
}

@media (max-width: 1100px) {
  .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-hero .h-heroPhone { width: 250px; right: 4%; }
}

@media (max-width: 900px) {
  .h-nav { grid-template-columns: auto 1fr; padding: 14px 16px 24px; }
  .h-navlinks, .h-pill { display: none; }
  .h-nav .brand { justify-self: start; }
  .h-menu { display: block; }
  /* Phones get a 720 px WebP of the same photo (41 KB, not the 147 KB JPEG): it is the largest paint there. */
  .h-photo { width: 100%; opacity: .6; background-image: url(/home/tokyo-night-720.webp); }
  .h-photo::after { background: linear-gradient(0deg, #0B0907 18%, rgba(11,9,7,.2) 70%); }
  .h-hero .h-heroPhone { display: none; }
  .h-herobody { margin: 104px 20px 92px; }
  .h-ticker { padding: 14px 20px; gap: 26px; }
  .h-sec, .home .faq { padding: 72px 0; }
  .h-two, .h-feature { grid-template-columns: 1fr; gap: 28px; }
  .h-rev .h-ftext { order: 0; }
  .h-feature { padding: 40px 0; }
  .h-fmedia { height: 480px; }
  .h-fmedia .h-phone { width: 280px; }
  .h-end { padding: 80px 20px 12px; }
  .h-footgrid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .h-nav { padding: 12px 10px 22px; gap: 6px; }
  .h-navright { gap: 6px; }
  .h-nav .brand { font-size: 15px; gap: 6px; }
  .h-nav .brand svg { width: 21px; height: 20px; }
  .h-nav .btn.sm.beta { min-height: 36px; padding: 0 11px; font-size: 12.5px; }
  .h-nav .theme-toggle, .h-menu summary { width: 36px; height: 36px; }
  .h-steps { grid-template-columns: 1fr; }
  .h-stepmedia { height: 400px; }
  .h-cities { grid-template-columns: 1fr; }
  .h-footgrid { grid-template-columns: 1fr; }
  .h-foot { padding: 24px 20px 18px; margin-top: 80px; }
}

/* Under 390 px (iPhone SE, most Android phones) the header keeps the mark and drops the word, so the
   founding-crew button, the toggle and the menu still fit on one line. The link keeps its label. */
@media (max-width: 389px) {
  .h-nav .h-word { display: none; }
  .h-nav { padding: 12px 10px 22px; }
}
