@font-face { font-family: 'Fraunces'; src: url('/fonts/Fraunces.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #0e1622; --bg2: #0a111a; --panel: #131d2c; --panel2: #1a2638; --ink: #f1ede3; --muted: #aab4c3;
  --gold: #e8bd62; --gold-ink: #0e1622; --ok: #7fd6a4; --warn: #e8d29a; --bad: #f2b5b7;
  --serif: Fraunces, Georgia, serif; --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --gut: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, canvas { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg2); }
.nav .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap; }
.nav a.l { color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 4px; transition: color .3s var(--ease); }
.nav a.l:hover { color: var(--ink); }
.nav .minor { display: none; }
@media (min-width: 900px) { .nav .minor { display: inline; } .nav .wrap { gap: 20px; } }

/* buttons */
.btn { font: 600 16px/24px var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 0; background: var(--panel2); color: var(--ink); text-decoration: none; cursor: pointer; transition: transform .5s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.btn:hover:not(:disabled) { background: #243349; transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn.primary { background: var(--gold); color: var(--gold-ink); }
.btn.primary:hover:not(:disabled) { background: #f2cc7c; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px #33445e; }
.btn.small { min-height: 36px; padding: 4px 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: default; }

/* hero */
.hero { padding: 40px 0 64px; }
.hero .wrap { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(40px, 9.5vw, 80px); max-width: 14ch; }
.hero .lede { font-size: 18px; color: var(--ink); max-width: 46ch; margin-top: 24px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; color: var(--muted); font-size: 14px; padding: 0; list-style: none; }
.facts b { color: var(--ink); font-weight: 600; }
.collage { position: relative; display: grid; gap: 12px; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; }
.collage .shot { margin: 0; position: relative; overflow: hidden; border-radius: 12px; background: var(--panel); }
.collage .shot.big { grid-column: 1 / 3; }
.collage .shot canvas, .collage .shot img { width: 100%; height: auto; }
.collage figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--bg2); color: var(--ink); font-size: 13px; padding: 4px 12px; border-radius: 999px; }
@media (min-width: 960px) {
  .hero { padding: 64px 0 96px; }
  .hero .wrap { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 56px; }
}

/* sections */
section.s { padding: 64px 0; }
@media (min-width: 900px) { section.s { padding: 96px 0; } }
.s h2 { font-size: clamp(32px, 6vw, 56px); max-width: 16ch; }
.s .sub { color: var(--muted); max-width: 52ch; margin-top: 16px; font-size: 18px; }
.band { background: var(--bg2); }

/* steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 12px; }
.steps li { background: var(--panel); border-radius: 16px; padding: 24px; }
.steps h3 { font-size: 26px; margin-bottom: 8px; }
.steps p { color: var(--muted); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

/* category tiles */
.tiles { display: grid; gap: 12px; margin-top: 40px; }
.tile { position: relative; display: block; text-align: left; font: inherit; color: var(--ink); background: var(--panel); border: 0; border-radius: 16px; padding: 0; cursor: pointer; overflow: hidden; transition: transform .5s var(--ease); }
.tile:hover { transform: translateY(-4px); }
.tile .ph { aspect-ratio: 16 / 9; background: var(--panel2); }
.tile .ph canvas, .tile .ph img { width: 100%; height: 100%; object-fit: cover; }
.tile .tb { padding: 16px 24px 24px; }
.tile h3 { font-size: 28px; }
.tile p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.tile .from { display: block; margin-top: 16px; font-weight: 600; color: var(--gold); }
@media (min-width: 800px) { .tiles { grid-template-columns: 1.4fr 1fr 1fr; } .tile .ph { aspect-ratio: 4 / 3; } }

/* catalog */
.toolbar { display: grid; gap: 12px; margin: 32px 0 24px; }
.seg { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.seg button { flex: none; font: 600 14px/20px var(--sans); color: var(--ink); background: var(--panel); border: 0; border-radius: 999px; padding: 8px 16px; min-height: 40px; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.seg button:hover { background: var(--panel2); }
.seg button.on { background: var(--gold); color: var(--gold-ink); }
.ctl { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; font-size: 14px; }
.ctl label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.ctl select { font: inherit; color: var(--ink); background: var(--panel); border: 0; border-radius: 10px; padding: 8px 12px; min-height: 40px; }
.ctl input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--gold); }
.count { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1240px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; background: var(--panel); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), background .3s var(--ease); }
.card:hover { transform: translateY(-4px); background: var(--panel2); }
.card .ph { position: relative; aspect-ratio: 16 / 10; background: var(--bg2); overflow: hidden; }
.card .ph img, .card .ph canvas { width: 100%; height: 100%; object-fit: cover; }
.card .tag { position: absolute; left: 8px; top: 8px; background: var(--bg2); color: var(--ink); font-size: 12px; line-height: 16px; padding: 4px 10px; border-radius: 999px; }
.pill { position: absolute; right: 8px; top: 8px; font-size: 12px; line-height: 16px; padding: 4px 10px; border-radius: 999px; font-weight: 600; background: var(--bg2); }
.pill.available { color: var(--ok); } .pill.rented { color: var(--bad); } .pill.held, .pill.paused { color: var(--warn); }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 24px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card .meta { color: var(--muted); font-size: 14px; line-height: 20px; }
.card .pr { margin-top: auto; padding-top: 12px; font-size: 14px; color: var(--muted); }
.card .pr b { font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 600; }
.card .adv { font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); padding: 48px 0; }
.skel { background: var(--panel); border-radius: 16px; aspect-ratio: 4 / 3.4; }

/* faq */
.faq { margin-top: 40px; display: grid; gap: 8px; max-width: 820px; }
.faq details { background: var(--panel); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 16px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 56px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--gold); transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 24px; color: var(--muted); max-width: 64ch; }

/* final cta + footer */
.final { background: var(--gold); color: var(--gold-ink); }
.final h2 { max-width: 14ch; font-size: clamp(36px, 8vw, 80px); }
.final p { margin-top: 16px; font-size: 18px; max-width: 46ch; }
.final .btn { margin-top: 32px; background: var(--gold-ink); color: var(--ink); }
.final .btn:hover:not(:disabled) { background: #1b2a40; }
footer.foot { background: var(--bg2); padding: 48px 0 64px; color: var(--muted); font-size: 14px; }
footer.foot .big { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 12vw, 128px); line-height: 1; color: var(--ink); letter-spacing: -0.03em; margin-bottom: 24px; }
footer.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
footer.foot a { color: var(--muted); }
footer.foot a:hover { color: var(--ink); }

/* banner */
.banner { padding: 12px var(--gut); font-size: 15px; text-align: center; background: var(--panel2); }
.banner.ok { color: var(--ok); } .banner.warn { color: var(--warn); }

/* mine */
#mine { padding: 64px 0; background: var(--bg2); }
#mine h2 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 24px; max-width: none; }
.rental { background: var(--panel); border-radius: 16px; padding: 16px 24px 24px; margin-bottom: 16px; max-width: 760px; }
.rental h3 { font-family: var(--sans); font-size: 18px; letter-spacing: 0; margin: 8px 0 4px; }
.rental .meta { color: var(--muted); font-size: 14px; }
.ad { background: var(--bg2); border-radius: 10px; padding: 12px 16px; margin-top: 8px; font-size: 14px; }
.ad small { color: var(--muted); display: block; }
.adthumb { max-width: 160px; max-height: 80px; border-radius: 6px; margin: 8px 0 0; }
.step { font-weight: 600; font-size: 16px; margin: 24px 0 4px; color: var(--gold); }
.hint { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.rules { color: var(--muted); font-size: 13px; margin-top: 8px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* forms */
.field { display: block; margin: 12px 0; font-size: 14px; }
.field > span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
input[type=email], input[type=text], input[type=file] { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg2); border: 0; border-radius: 10px; padding: 10px 12px; min-height: 44px; box-shadow: inset 0 0 0 2px #2a3a52; }
input[type=color] { width: 56px; height: 40px; padding: 0; background: none; border: 0; border-radius: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.err { color: var(--bad); font-size: 14px; min-height: 1.2em; margin: 8px 0 0; }
.okmsg { color: var(--ok); font-size: 14px; margin: 8px 0 0; }
.tabs { display: flex; gap: 8px; margin: 12px 0 8px; }
.tabs button { font: 600 14px/20px var(--sans); color: var(--ink); background: var(--panel2); border: 0; border-radius: 999px; padding: 8px 16px; min-height: 40px; cursor: pointer; }
.tabs button.on { background: var(--gold); color: var(--gold-ink); }
canvas.prev { width: 100%; height: auto; max-width: 600px; border-radius: 8px; background: var(--bg); margin: 8px 0; }
canvas.prev.tall { max-width: 170px; } canvas.prev.sign { max-width: 420px; }

/* modal + drawer */
.modal { position: fixed; inset: 0; background: rgba(4, 8, 14, 0.78); display: none; align-items: flex-end; justify-content: center; z-index: 50; }
.modal.open { display: flex; }
.sheet { background: var(--panel); border-radius: 20px 20px 0 0; padding: 8px 24px 32px; width: 100%; max-width: 560px; max-height: 94vh; overflow: auto; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.sheet h2 { font-size: 28px; margin: 24px 0 8px; max-width: none; }
@media (min-width: 700px) { .modal { align-items: center; padding: 16px; } .sheet { border-radius: 20px; } }
.drawer { align-items: stretch; justify-content: flex-end; }
.drawer .dsheet { background: var(--bg); width: 100%; max-width: 1040px; overflow: auto; padding: 0 0 48px; box-shadow: 0 0 80px rgba(0,0,0,.6); }
.dtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--gut); position: sticky; top: 0; background: var(--bg); z-index: 2; }
.dtop .crumb { color: var(--muted); font-size: 14px; }
.dbody { padding: 8px var(--gut) 0; display: grid; gap: 24px; }
.dview { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg2); }
.dview canvas { width: 100%; height: auto; }
.dview .live { position: absolute; left: 12px; bottom: 12px; background: var(--bg2); font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.dinfo h2 { font-size: clamp(28px, 5vw, 44px); max-width: none; }
.dinfo .meta { color: var(--muted); margin-top: 8px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 24px 0; font-size: 15px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
.incl { margin: 16px 0; padding-left: 20px; color: var(--ink); font-size: 15px; }
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 24px 0 16px; }
.plan button { font: inherit; text-align: left; color: var(--ink); background: var(--panel); border: 0; border-radius: 12px; padding: 12px 16px; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; transition: background .3s var(--ease); }
.plan button[aria-pressed=true] { background: var(--panel2); box-shadow: inset 0 0 0 2px var(--gold); }
.plan b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.plan span { color: var(--muted); font-size: 14px; }
.try { background: var(--panel); border-radius: 16px; padding: 8px 16px 16px; margin-top: 16px; }
.try h3 { font-family: var(--sans); font-size: 18px; letter-spacing: 0; margin: 16px 0 4px; }
@media (min-width: 960px) {
  .dbody { grid-template-columns: 1.3fr 1fr; align-items: start; padding: 8px 32px 0; }
  .dtop { padding: 12px 32px; }
  .dview { position: sticky; top: 64px; }
}
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.nojs .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover:not(:disabled), .card:hover, .tile:hover { transform: none; }
  .rv { transform: none; }
}
