/* rebookmystay: prototype site
   Fonts are self-hosted (SIL OFL), so the page makes no third-party requests. */

@font-face {
  font-family: "Josefin Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/josefin-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Josefin Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/josefin-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
}

:root {
  --lobby: #e7ede8;       /* page: pale corridor wall */
  --paper: #fbfcfa;       /* the "cheaper rate" hanger */
  --ink: #1d2331;
  --plum: #591d3b;        /* corridor carpet */
  --plum-deep: #3e1229;
  --brass: #dcaa47;       /* brass on dark surfaces */
  --brass-deep: #7d5409;  /* brass on light surfaces */
  --drop: #0c6e47;        /* a price going down */
  --line: #b3c2b8;
  --focus: #1d2331;

  --display: "Josefin Sans", "Gill Sans", "Trebuchet MS", system-ui, sans-serif;
  --text: "Source Serif 4", "Iowan Old Style", Charter, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--lobby);
  color: var(--ink);
  font: 400 1.125rem/1.62 var(--text);
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px;
}

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: #fff; padding: .7rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.5rem;
  background: var(--plum); color: var(--lobby);
  font: 600 1.1rem/1.2 var(--display);
  text-decoration: none; border-radius: .3rem; white-space: nowrap;
  transition: background-color .15s;
}
.btn:hover { background: var(--plum-deep); }
.btn-small { min-height: 44px; padding: .5rem 1.05rem; font-size: 1rem; }
.band-dark .btn, .band-deep .btn { background: var(--brass); color: var(--ink); }
.band-dark .btn:hover, .band-deep .btn:hover { background: #ecc26b; }
.text-link { font: 600 1.05rem/1.2 var(--display); text-underline-offset: .3em; }

/* ---------- header ---------- */
.top { padding-block: 1.1rem; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 700 1.4rem/1 var(--display); letter-spacing: -.01em; text-decoration: none;
}
.brand-mark { width: 1.5rem; height: 1.5rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { font: 600 1rem/1 var(--display); text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: .35em; }
@media (max-width: 40rem) { .nav a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: 1.5rem 4.5rem; }
.hero-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 3.5rem; }
}
.hero h1 {
  font: 700 clamp(2.3rem, 5.6vw, 3.9rem)/1.06 var(--display);
  letter-spacing: -.015em;
  max-width: 17em;
}
.lede { margin-top: 1.4rem; max-width: 34rem; font-size: 1.25rem; }
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.fine { margin-top: 1.5rem; max-width: 34rem; font-size: 1rem; color: #3a4252; }

/* door hangers: the memorable thing on the page */
.hangers { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem clamp(1.4rem, 4vw, 2rem); }
.hangers figcaption { flex-basis: 100%; text-align: center; font-size: .95rem; color: #3a4252; margin-top: .5rem; }
.hanger {
  --rest: 0deg;
  position: relative;
  width: clamp(9rem, 38vw, 13.5rem);
  aspect-ratio: 200 / 400;
  container-type: inline-size;
  transform: rotate(var(--rest));
  transform-origin: 50% 15%;
  filter: drop-shadow(.35rem .7rem .45rem rgb(62 18 41 / .2));
}
@media (min-width: 56rem) { .hanger { width: clamp(9.25rem, 16.5vw, 14.5rem); } }
.hanger-quiet { --rest: -1.5deg; --fill: var(--plum); color: var(--lobby); }
.hanger-drop { --rest: 2deg; --fill: var(--paper); color: var(--ink); margin-top: 1.6rem; }
.hanger-shape { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--fill); }
.hanger-body {
  position: absolute; inset: 0;
  padding: 47cqw 10cqw 9cqw;
  display: flex; flex-direction: column; gap: 4cqw;
}
.hanger-title { font: 700 max(1.05rem, 12cqw)/1.05 var(--display); letter-spacing: -.005em; }
.hanger-text { font-size: max(.85rem, 8cqw); line-height: 1.32; }
.hanger-foot { margin-top: auto; font-size: max(.8rem, 7cqw); line-height: 1.3; }
.hanger-quiet .hanger-foot { color: var(--brass); }
.was { font-size: max(.9rem, 8.4cqw); text-decoration: line-through; text-decoration-thickness: 2px; }
.now { font: 700 max(2.1rem, 22cqw)/1 var(--display); color: var(--drop); font-variant-numeric: lining-nums; }
.saving { font-size: max(.85rem, 8cqw); line-height: 1.3; }

@keyframes swing {
  0%   { transform: rotate(15deg); }
  22%  { transform: rotate(-8deg); }
  42%  { transform: rotate(5deg); }
  62%  { transform: rotate(-2.4deg); }
  82%  { transform: rotate(1deg); }
  100% { transform: rotate(var(--rest)); }
}
@media (prefers-reduced-motion: no-preference) {
  .hanger-drop { animation: swing 2.6s cubic-bezier(.3, .1, .3, 1) .6s both; }
}

/* ---------- sections ---------- */
.band { padding-block: clamp(3rem, 6.5vw, 5rem); }
.band-light + .band-light { padding-top: 0; }   /* consecutive light sections share one gap */
.band-dark { background: var(--plum); color: var(--lobby); --focus: var(--brass); }
.band-deep { background: var(--plum-deep); color: var(--lobby); --focus: var(--brass); }
.section-title {
  font: 700 clamp(1.75rem, 3.6vw, 2.6rem)/1.1 var(--display);
  letter-spacing: -.01em; max-width: 26ch;
}
.prose { max-width: 38rem; }
.section-title + p { margin-top: 1.1rem; }
.prose p + p { margin-top: 1rem; }

/* how it works: a real sequence */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 2.25rem; counter-reset: step; }
@media (min-width: 50rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.steps li { counter-increment: step; border-top: 3px solid var(--brass-deep); padding-top: 1rem; }
.steps li::before {
  content: counter(step); display: block; margin-bottom: .5rem;
  font: 700 3.2rem/1 var(--display); color: var(--brass-deep);
}
.steps h3 { font: 600 1.4rem/1.2 var(--display); margin-bottom: .5rem; }
.steps p { max-width: 24rem; }

/* why the deadline matters */
.why-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .why-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4.5rem; } }
.chart { width: 100%; height: auto; }
.chart-fig figcaption { margin-top: .75rem; font-size: .95rem; color: #e2d3dc; }
.c-gain { fill: #39c68c; fill-opacity: .55; }
.c-paid { stroke: var(--brass); stroke-width: 2; stroke-dasharray: 6 5; }
.c-price { fill: none; stroke: var(--lobby); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.c-deadline { stroke: var(--lobby); stroke-width: 2; }
.c-axis { stroke: rgb(231 237 232 / .55); stroke-width: 1.5; }
.c-ticks line { stroke: var(--brass); stroke-width: 2; }
.c-dot { fill: var(--brass); stroke: var(--plum); stroke-width: 3; }
.c-lead { stroke: var(--lobby); stroke-width: 1.5; }
.c-label { font: 600 18px var(--display); fill: var(--lobby); }
.c-end { text-anchor: end; }
.c-mid { text-anchor: middle; }

/* like for like */
.facts { margin-top: 2.25rem; }
.facts > div { border-top: 1px solid var(--line); padding-block: 1.25rem; display: grid; gap: .4rem 3rem; }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 50rem) { .facts > div { grid-template-columns: 15rem minmax(0, 1fr); } }
.facts dt { font: 600 1.3rem/1.25 var(--display); }
.facts dd { max-width: 38rem; }

/* payment note and faq sit side by side on wide screens */
.split { display: grid; gap: 3.5rem; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4.5rem; align-items: start; } }

/* faq */
.faq { margin-top: 2rem; max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding-block: .9rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font: 600 1.2rem/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.7rem; line-height: 1; color: var(--brass-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: .5rem; max-width: 38rem; }

/* closing call to action and footer */
.closing h2 { font: 700 clamp(1.9rem, 4.2vw, 3rem)/1.08 var(--display); letter-spacing: -.01em; max-width: 18ch; }
.closing .btn { margin-top: 1.75rem; }
.closing .fine { color: #e0cfd9; }
.foot { padding-block: 2.5rem 3rem; border-top: 1px solid rgb(231 237 232 / .2); font-size: 1rem; }
.foot-grid { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 50rem) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot .brand { font-size: 1.25rem; }
.foot p + p { margin-top: .6rem; }
.foot small { font-size: .92rem; color: #e0cfd9; }

/* legal pages */
.legal { padding-block: 2rem 5rem; }
.legal h1 { font: 700 clamp(2rem, 4.5vw, 3rem)/1.08 var(--display); letter-spacing: -.01em; }
.legal h2 { font: 600 1.5rem/1.2 var(--display); margin-top: 2.5rem; }
.legal p, .legal ul { max-width: 40rem; margin-top: .8rem; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: .5rem; }
.legal .draft {
  margin-top: 1.25rem; max-width: 40rem; padding: .8rem 1rem;
  border-left: 4px solid var(--brass-deep); background: var(--paper); font-size: 1rem;
}
.legal .back { display: inline-block; margin-top: 2.5rem; font: 600 1.05rem/1.2 var(--display); }

/* guide article */
.crumbs { margin: .5rem 0 1.5rem; font: 600 .95rem/1.4 var(--display); }
.legal .crumbs ol { list-style: none; max-width: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.legal .crumbs li + li { margin-top: 0; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--brass-deep); }
.crumbs a { text-underline-offset: .25em; }
.legal .updated { margin-top: .9rem; font-size: 1rem; color: #3a4252; }
.legal .answer {
  margin-top: 1.4rem; max-width: 40rem; padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--brass-deep); background: var(--paper); font-size: 1.2rem; line-height: 1.55;
}
.legal ol { max-width: 40rem; margin: .8rem 0 0; padding-left: 1.4rem; }
.legal ol li + li { margin-top: .8rem; }
.legal ol li::marker { font: 700 1.1rem var(--display); color: var(--brass-deep); }
.legal .cta-box { margin-top: 1rem; }
.legal .cta-box .btn { margin-top: 1.25rem; }

/* booking form */
.add .intro { max-width: 40rem; margin-top: 1rem; font-size: 1.2rem; }
.form { max-width: 40rem; margin-top: 2rem; }
.form fieldset { border: 0; border-top: 3px solid var(--brass-deep); margin: 0 0 2rem; padding: 1rem 0 0; min-width: 0; }
.form legend { padding: 0; font: 700 1.4rem/1.2 var(--display); }
.form .choices { border: 0; margin: 0; padding: 0; }
.form .choices legend { font: 600 1.05rem/1.3 var(--display); margin-bottom: .4rem; }
.field { margin-top: 1.1rem; }
.form label { display: block; font: 600 1.05rem/1.3 var(--display); margin-bottom: .35rem; }
.form input[type="text"], .form input[type="email"], .form input[type="number"],
.form input[type="date"], .form input[type="datetime-local"], .form select, .form textarea {
  width: 100%; min-height: 48px; padding: .6rem .75rem;
  font: 400 1.1rem/1.4 var(--text); color: var(--ink);
  background: var(--paper); border: 2px solid #5f6d64; border-radius: .3rem;
}
.form textarea { min-height: 5rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 3px solid var(--brass-deep); outline-offset: 2px; border-color: var(--ink);
}
.form input:user-invalid, .form select:user-invalid, .form textarea:user-invalid { border-color: #9b1c1c; }
.hint { margin-top: .35rem; font-size: .95rem; color: #3a4252; max-width: none; }
.row2 { display: grid; gap: 0 1.5rem; }
@media (min-width: 36rem) { .row2 { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; align-items: center; gap: .6rem; min-height: 44px; font: 400 1.1rem/1.4 var(--text) !important; margin: 0 !important; }
.choice input { width: 1.4rem; height: 1.4rem; accent-color: var(--plum); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { max-width: 40rem; margin: 0 0 1.25rem; font-size: 1rem; color: #3a4252; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.status { max-width: 40rem; margin-top: 1.25rem; }
.status:empty { display: none; }
.status.is-error {
  padding: 1rem 1.25rem; border-left: 4px solid #9b1c1c; background: var(--paper); font-size: 1.05rem;
}
.status.is-error ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.status p { margin: 0; }
.done { max-width: 40rem; margin-top: 2rem; padding: 1.5rem; background: var(--paper); border-left: 4px solid var(--drop); }
.done h2 { margin-top: 0; }
.done .btn { margin-top: 1.25rem; }

.form .field + .btn { margin-top: 1.25rem; }

/* ── upgrade page ────────────────────────────────────────────── */

.upgrade-wrap { max-width: 36rem; }

.upgrade-why {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--lobby) 60%, var(--paper));
  border: 1px solid var(--line);
  border-radius: .5rem;
}
.upgrade-why-item {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-size: .95rem;
  line-height: 1.45;
  color: var(--ink);
}
.upgrade-why-icon { font-size: 1rem; flex-shrink: 0; }

/* ── pack list ── */
.packs {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: .75rem 0 1.25rem;
  list-style: none;
  padding: 0;
}

.pack {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  grid-template-rows: auto;
  align-items: center;
  column-gap: .75rem;
  row-gap: .2rem;
  padding: .9rem 1rem;
  border: 2px solid var(--line);
  border-radius: .5rem;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .12s, background .12s;
  text-align: left;
}
.pack:hover  { border-color: var(--plum-deep); }
.pack.chosen {
  border-color: var(--plum);
  background: color-mix(in srgb, var(--paper) 80%, var(--plum) 20%);
}

.pack input[type=radio] {
  accent-color: var(--plum);
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  cursor: pointer;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin-top: .15rem;
  flex-shrink: 0;
}

.pack-label {
  display: block;
  grid-column: 2;
  grid-row: 1;
  cursor: pointer;
}
.pack-name {
  display: block;
  font-weight: 700;
  font-size: .975rem;
  line-height: 1.25;
  color: var(--ink);
}
.pack-desc {
  display: block;
  font-size: .85rem;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  margin-top: .2rem;
  line-height: 1.35;
}
.pack-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--plum);
  white-space: nowrap;
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  padding-top: .1rem;
}

/* badge */
.pack-badge {
  display: none;
  grid-column: 3;
  grid-row: 2;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--plum);
  color: var(--paper);
  border-radius: 2rem;
  padding: .15rem .5rem;
  white-space: nowrap;
  justify-self: end;
  margin-top: .25rem;
}
.pack:has(.pack-badge) .pack-badge  { display: inline-block; }
.pack.chosen .pack-badge            { background: var(--brass); color: #1a0a10; }
.pack:has(.pack-badge) {
  grid-template-rows: auto auto;
  align-items: start;
}
.pack:has(.pack-badge) .pack-label { grid-row: 1 / span 2; align-self: center; }

/* ── pay row ── */
.pay-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.skip-link {
  font-size: .9rem;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.skip-link:hover { color: var(--ink); }

/* ── loading ── */
.loading-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 0;
  text-align: center;
}
.loading-wrap.visible { display: flex; }
.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--line);
  border-top-color: var(--plum);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { font-size: 1rem; color: color-mix(in srgb, var(--ink) 70%, transparent); }

/* hide status when empty */
.status:empty { display: none; }

/* upgrade page: dark mode — scoped to upgrade elements only, no site-wide changes */
@media (prefers-color-scheme: dark) {
  .upgrade-why          { background: #2a201c; border-color: #3a3530; }
  .upgrade-why-item     { color: #e0d8d0; }
  .pack                 { background: #2a201c; border-color: #3a3530; color: #e0d8d0; }
  .pack:hover           { border-color: #9b3060; }
  .pack.chosen          { background: #3a1f2a; border-color: #9b3060; }
  .pack-name            { color: #f0e8e0; }
  .pack-desc            { color: #a89888; }
  .pack-price           { color: #dcaa47; }
  .pack input[type=radio] { accent-color: #dcaa47; }
  .pack-badge           { background: #7a2850; color: #f0e8e0; }
  .pack.chosen .pack-badge { background: #dcaa47; color: #1a0a10; }
  .skip-link            { color: #a89888; }
  .loading-msg          { color: #ccc; }
  .spinner              { border-color: #3a3530; border-top-color: #dcaa47; }
}

/* ── share page ─────────────────────────────────────────────────── */
.share-hero   { margin-bottom: 1.75rem; }
.share-steps  { display: flex; flex-direction: column; gap: .75rem; margin: 1.5rem 0; }
.share-step   { display: flex; align-items: baseline; gap: 1rem;
                padding: .85rem 1rem; background: var(--paper);
                border: 1px solid var(--line); border-radius: .5rem; }
.share-step-n { font: 700 1.2rem/1 var(--display); color: var(--plum);
                flex-shrink: 0; width: 1.4rem; text-align: center; }
.share-step-text { font-size: .975rem; line-height: 1.45; color: var(--ink); }
.share-reward { margin: 1.5rem 0; padding: 1rem 1.25rem;
                background: color-mix(in srgb, var(--plum) 8%, var(--paper));
                border: 1px solid color-mix(in srgb, var(--plum) 25%, transparent);
                border-radius: .5rem; font-size: .975rem; line-height: 1.5; color: var(--ink); }
.share-reward p { margin: 0; }
.share-page-wrap { max-width: 40rem; }
