/* HotelNative — hotelnative.com, the product's public site.
 *
 * Minimal, in a light and a dark mode. The first screens are a film drawn on a
 * canvas and moved by the scroll (assets/site.js); everything after is plain
 * type on the page's ground. The dark mode's ground and blue are the app's own
 * (mobile/src/theme.ts `ocean`), so the site and the app read as one thing.
 *
 *   1 tokens      4 film         7 steps        10 footer
 *   2 base        5 statement    8 places       11 legal pages
 *   3 header      6 product      9 faq, close   12 motion, small screens
 */

/* 1 ── tokens ──────────────────────────────────────────────────────── */
:root {
  --bg: #fafaf7;
  --bg-2: #f1f0ec;
  --card: #ffffff;
  --ink: #0d1014;
  --muted: #5a6370;
  --line: rgba(13, 16, 20, .1);
  --line-2: rgba(13, 16, 20, .18);
  --accent: #0b6aa2;
  --btn: #0d1014;
  --btn-ink: #fafaf7;
  --glass: rgba(250, 250, 247, .72);
  --shadow: 0 1px 2px rgba(13, 16, 20, .04), 0 12px 40px rgba(13, 16, 20, .07);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --bar-h: 56px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f14;
    --bg-2: #111a22;
    --card: rgba(255, 255, 255, .05);
    --ink: #f5f7fa;
    --muted: #94a3b8;
    --line: rgba(255, 255, 255, .1);
    --line-2: rgba(255, 255, 255, .2);
    --accent: #38bdf8;
    --btn: #f5f7fa;
    --btn-ink: #0b0f14;
    --glass: rgba(11, 15, 20, .66);
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f14;
  --bg-2: #111a22;
  --card: rgba(255, 255, 255, .05);
  --ink: #f5f7fa;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --accent: #38bdf8;
  --btn: #f5f7fa;
  --btn-ink: #0b0f14;
  --glass: rgba(11, 15, 20, .66);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* 2 ── base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background .4s, color .4s;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--bg); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: clamp(88px, 12vw, 176px) 0; }
.sec--tint { background: var(--bg-2); }

.eyebrow { font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.3rem; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.lead { max-width: 38rem; margin-top: 1.5rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); text-wrap: pretty; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: .98rem; font-weight: 550; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, opacity .3s;
}
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--btn); color: var(--btn-ink); }
.btn--solid:hover { opacity: .86; }
.btn--line { border: 1px solid var(--line-2); }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { height: 38px; padding: 0 16px; font-size: .9rem; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* 3 ── header ──────────────────────────────────────────────────────── */
.nav {
  position: fixed; z-index: 60; top: 12px; left: 50%;
  width: min(1180px, calc(100% - 24px)); height: var(--bar-h);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 0 8px 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  transition: transform .5s var(--ease), background .4s, border-color .4s, color .4s;
}
.nav.is-hidden { transform: translate(-50%, calc(-100% - 16px)); }
/* over the film the bar is glass on a photograph, whatever the mode */
.nav.on-film { background: rgba(10, 13, 17, .38); border-color: rgba(255, 255, 255, .16); color: #fff; }
.nav.on-film .btn--solid { background: #fff; color: #0b0f14; }
.nav.on-film .nav__link { color: rgba(255, 255, 255, .82); }
.nav.on-film .nav__link:hover { color: #fff; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; font-size: 1.05rem; margin-right: auto; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand .logo { height: 22px; width: auto; }
.foot .brand .logo { height: 26px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav__links { display: flex; gap: 4px; margin-right: 8px; }
.nav__link { padding: 8px 12px; font-size: .92rem; color: var(--muted); border-radius: 999px; transition: color .25s; }
.nav__link:hover { color: var(--ink); }
.theme { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; transition: background .25s; }
.theme:hover { background: var(--line); }
.theme svg { width: 18px; height: 18px; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: none; }
  :root:not([data-theme="light"]) .theme .moon { display: block; }
}

/* 4 ── film: the scroll-scrubbed opening ───────────────────────────── */
.film { position: relative; background: #0b0f14; color: #fff; }
.film__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film__stage canvas, .film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, .5) 0%, rgba(8, 10, 14, .12) 28%, rgba(8, 10, 14, .2) 52%, rgba(8, 10, 14, .82) 100%),
    rgba(8, 10, 14, .2);
}
.film__beats { position: relative; margin-top: -100vh; margin-top: -100svh; }
.beat {
  height: 130vh; height: 130svh;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) clamp(72px, 13vh, 150px);
}
.beat:first-child { height: 100vh; height: 100svh; }
.beat__in { width: 100%; max-width: 1240px; margin: 0 auto; }
.beat--right .beat__copy { margin-left: auto; text-align: right; }
.beat--mid { align-items: center; text-align: center; padding-bottom: 0; }
.beat--mid .beat__copy { margin: 0 auto; }
.beat__copy { max-width: 44rem; }
.beat .eyebrow { color: rgba(255, 255, 255, .78); }
.beat h1, .beat h2 {
  font-size: clamp(2.6rem, 7.4vw, 6.4rem); font-weight: 500; line-height: .98; letter-spacing: -.035em; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.beat p.sub { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: rgba(255, 255, 255, .86); max-width: 34rem; text-shadow: 0 1px 16px rgba(0, 0, 0, .5); }
.beat--right p.sub { margin-left: auto; }
.beat--mid p.sub { margin-left: auto; margin-right: auto; }
.beat__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.beat .btn--solid { background: #fff; color: #0b0f14; }
.beat .btn--line { border-color: rgba(255, 255, 255, .5); color: #fff; }
.beat .btn--line:hover { border-color: #fff; }
.beat__note { margin-top: 1.1rem; font-size: .88rem; color: rgba(255, 255, 255, .7); }

.film__rail { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; gap: 6px; pointer-events: none; }
.film__rail i { flex: 1; height: 2px; background: rgba(255, 255, 255, .22); border-radius: 2px; overflow: hidden; }
.film__rail i b { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.film__where { position: absolute; right: var(--gutter); bottom: 44px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); transition: opacity .4s; }

/* 5 ── statement ───────────────────────────────────────────────────── */
.statement p { font-size: clamp(1.7rem, 3.6vw, 3.1rem); font-weight: 500; line-height: 1.16; letter-spacing: -.022em; max-width: 21em; text-wrap: balance; }
.statement .w { opacity: .16; transition: opacity .5s; }
.statement .w.on { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 8px 0 0; font-size: 1.1rem; }

/* 6 ── product ─────────────────────────────────────────────────────── */
.product__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(48px, 7vw, 88px); }
.phone-col { position: sticky; top: calc(var(--bar-h) + 40px); }
.phone {
  width: min(340px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.6; padding: 10px;
  border-radius: 46px; background: #05070a; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .5);
}
.phone__screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: linear-gradient(180deg, #111a22, #0b0f14 40%); color: #f5f7fa; font-size: 13px; line-height: 1.35; }
.phone__island { position: absolute; top: 9px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #000; z-index: 3; }
.scr { position: absolute; inset: 0; padding: 52px 16px 70px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease); pointer-events: none; }
.scr.on { opacity: 1; transform: none; }
.scr h4 { margin: 0 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.scr .cap { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; margin: 14px 0 6px; }
.g { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px 12px; }
.g + .g { margin-top: 8px; }
.g small { display: block; color: #94a3b8; font-size: 11px; }
.g b { font-weight: 600; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pill { font-size: 10px; padding: 2px 8px; border-radius: 99px; background: rgba(56, 189, 248, .18); color: #7dd3fc; white-space: nowrap; }
.pill--w { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 6px; }
.cal span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: 11px; background: rgba(255, 255, 255, .05); }
.cal .bk { background: rgba(56, 189, 248, .28); color: #e0f2fe; }
.cal .cl { background: rgba(255, 255, 255, .02); color: #475569; text-decoration: line-through; }
.bub { max-width: 84%; padding: 8px 11px; border-radius: 14px; background: rgba(255, 255, 255, .08); margin-top: 8px; }
.bub--me { margin-left: auto; background: rgba(56, 189, 248, .22); }
.card-ai { margin-top: 10px; border: 1px solid rgba(56, 189, 248, .6); border-radius: 14px; padding: 10px 12px; }
.card-ai .apply { margin-top: 8px; height: 30px; border-radius: 99px; background: #38bdf8; color: #062436; font-weight: 600; display: grid; place-items: center; font-size: 12px; }
.phone__tabs { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 50px; border-radius: 26px; display: flex; align-items: center; justify-content: space-around; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: 9.5px; color: #94a3b8; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.phone__tabs span.on { color: #38bdf8; }

.feats { border-top: 1px solid var(--line); }
.feat { padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); cursor: default; transition: opacity .4s; }
.feats.has-on .feat:not(.on) { opacity: .42; }
.feat h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 500; letter-spacing: -.018em; display: flex; align-items: baseline; gap: 14px; }
.feat h3 span { font-size: .78rem; color: var(--muted); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.feat p { margin-top: .6rem; color: var(--muted); max-width: 34rem; padding-left: calc(14px + 1.3em); }

/* 7 ── steps ───────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 30px; counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); display: block; font-size: .8rem; letter-spacing: .1em; color: var(--accent); margin-bottom: 2.6rem; }
.step h3 { font-size: 1.2rem; font-weight: 550; letter-spacing: -.01em; }
.step p { margin-top: .5rem; color: var(--muted); font-size: .98rem; }
.steps__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--muted); font-size: .95rem; }

/* 8 ── places ──────────────────────────────────────────────────────── */
.places { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.place { position: relative; overflow: hidden; border-radius: 24px; background: var(--bg-2); min-height: 260px; }
.place--tall { grid-row: span 2; }
.place img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transform: scale(1.12); will-change: transform; }
.place figcaption { position: absolute; left: 18px; bottom: 16px; right: 18px; color: #fff; font-size: .9rem; text-shadow: 0 1px 14px rgba(0, 0, 0, .7); display: flex; justify-content: space-between; gap: 12px; }
.place::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.place figcaption { z-index: 1; }
.place--tall { aspect-ratio: 4 / 4.2; }

/* the AI section's two columns */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.duo > div { border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px; background: var(--card); }
.duo h3 { font-size: 1.2rem; font-weight: 550; }
.duo p { margin-top: .6rem; color: var(--muted); }

/* 9 ── faq, close ──────────────────────────────────────────────────── */
.faq { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 1.15rem; font-weight: 500; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--muted); transition: transform .35s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 44rem; }
.faq a, .legal a, .foot__legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.faq a:hover, .legal a:hover { text-decoration-color: currentColor; }

.close { text-align: center; }
.close .h2 { font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: -.035em; }
.close .lead { margin-left: auto; margin-right: auto; }
.close__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 2.4rem; }

/* 10 ── footer ─────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .94rem; }
.foot__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot__about { color: var(--muted); max-width: 26rem; margin-top: 14px; }
.foot h4 { margin: 0 0 14px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot li + li { margin-top: 8px; }
.foot li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot address { font-style: normal; color: var(--muted); }
.foot__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }

/* 11 ── legal pages ────────────────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: calc(var(--bar-h) + 88px) var(--gutter) 112px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.legal .meta { color: var(--muted); font-size: .92rem; margin-top: 14px; }
.legal h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; margin: 44px 0 10px; }
.legal p + p, .legal ul + p, .legal p + ul, .legal ol + p, .legal p + ol { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: 6px; }
.legal .intro { margin-top: 28px; font-size: 1.12rem; }
.legal .box { margin-top: 28px; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: var(--card); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; }

/* 12 ── motion, small screens ──────────────────────────────────────── */
.rise { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.rise.in { opacity: 1; transform: none; }
.no-js .rise, .no-js .statement .w { opacity: 1; transform: none; }
.no-js .scr:first-of-type { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .statement .w { opacity: 1; }
  .place img { transform: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .nav__links { display: none; }
  .product__grid { grid-template-columns: 1fr; }
  .phone-col { position: static; }
  .phone { width: 280px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding-left: 14px; }
  .nav .signin { display: none; }
  .beat { padding-bottom: 84px; }
  .beat--right .beat__copy { margin-left: 0; text-align: left; }
  .beat--right p.sub { margin-left: 0; }
  .film__where { display: none; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .step::before { margin-bottom: 1.4rem; }
  .places { grid-template-columns: 1fr; }
  .place--tall { grid-row: auto; aspect-ratio: 4 / 3.4; }
  .duo { grid-template-columns: 1fr; }
  .feat p { padding-left: 0; }
  .foot__top { grid-template-columns: 1fr; }
}
