/* Brickhouse Vineyard Matchmaker
   The look follows brickhousevineyard.co.uk: sage green and warm cream, wide-tracked capitals,
   and the venue's Southland script for a few headline words. Photos are plain rectangles. */

@font-face {
  font-family: 'Southland';
  src: url('../fonts/southland.otf') format('opentype');
  font-display: swap;
}

:root {
  --sage: #7e8766;          /* the website's green */
  --sage-deep: #5f6749;     /* text-safe sage on cream */
  --sage-soft: #e6e7dc;
  --cream: #f4f0ed;         /* the website's background */
  --paper: #fbf9f7;
  --ink: #4f4a43;           /* body text, darker than the site's #8c857a so it passes contrast */
  --muted: #7a746b;
  --line: #ddd6cd;
  --grape: #5b3f52;
  --radius: 3px;
  --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --script: 'Southland', 'Brush Script MT', cursive;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 16px/1.65 var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage-deep); }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage-deep);
}
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.1; color: var(--sage-deep); }
.fine { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 12px; }
.note { margin-top: 14px; padding: 12px 14px; background: var(--sage-soft); border-left: 2px solid var(--sage); font-size: 15px; }

/* ---------- Header and footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 64px; padding: 8px var(--gutter);
  background: var(--sage); color: #fff;
}
.site-header__brand img { width: 48px; height: 48px; }
.site-header__side {
  color: #fff; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-header__side--l { justify-self: start; }
.site-header__side--r { justify-self: end; }
@media (max-width: 520px) { .site-header__side { font-size: 0; letter-spacing: 0; } .site-header__side--r::before { content: 'Call'; font-size: 12px; letter-spacing: 0.2em; } .site-header__side--l::before { content: 'Weddings'; font-size: 12px; letter-spacing: 0.2em; } }
@media (max-width: 330px) { .site-header__side { display: none; } .site-header { grid-template-columns: 1fr; justify-items: center; } }

.site-footer {
  margin-top: 64px; padding: 40px var(--gutter) 48px; text-align: center;
  border-top: 1px solid var(--line); background: var(--paper);
}
.site-footer__mark { width: 40px; height: 40px; margin: 0 auto 14px; }
.site-footer__line { font-size: 14px; margin-top: 4px; overflow-wrap: anywhere; }
.site-footer__line span { margin: 0 6px; color: var(--muted); }
.site-footer__links { margin-top: 14px; font-size: 13px; }
.site-footer__links span { margin: 0 6px; color: var(--muted); }
.site-footer .fine { max-width: 520px; margin: 14px auto 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 50px; padding: 12px 28px; border: 1px solid var(--sage); border-radius: var(--radius);
  background: var(--sage); color: #fff; text-decoration: none; cursor: pointer;
  font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .chip:focus-visible, .opt:focus-visible, .type:focus-visible, .cer__opt:focus-visible, .drink:focus-visible, .linkbtn:focus-visible { outline: 2px solid var(--grape); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--sage-deep); }
.btn--ghost:hover { background: var(--sage); color: #fff; }
.btn--full { width: 100%; }
.btn-row { margin-top: 28px; display: flex; }
.btn-row .btn { width: 100%; }
@media (min-width: 640px) { .btn-row .btn { width: auto; min-width: 240px; } }
.btn-row--2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.btn-row--2 .btn { width: 100%; min-width: 0; }
.linkbtn {
  background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; text-align: left;
  color: var(--sage-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-size: 15px;
}
.linkbtn.is-on { font-weight: 500; }

/* ---------- Coming soon ---------- */
.gate { max-width: 620px; margin: 0 auto; padding: 72px var(--gutter); text-align: center; }
.gate__script { font-size: 44px; }
.gate__t { margin-top: 10px; font-size: clamp(22px, 4vw, 30px); font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-deep); line-height: 1.35; }
.gate__p { margin-top: 16px; }

/* ---------- The cover ---------- */
.intro { position: relative; }
.intro__hero { margin: 0; }
.intro__hero img { width: 100%; height: min(62vh, 560px); object-fit: cover; object-position: 50% 45%; }
.intro__panel {
  position: relative; z-index: 2; max-width: 680px; margin: -72px auto 0; padding: 32px var(--gutter) 36px;
  background: var(--cream); text-align: center;
}
.intro__script { font-size: clamp(40px, 8vw, 64px); margin-bottom: 6px; }
.intro__t { margin-top: 12px; font-size: clamp(17px, 3.4vw, 26px); font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.35; color: var(--ink); }
/* Narrow phones: sentence case is far narrower than tracked capitals, so the headline keeps to two lines. */
@media (max-width: 360px) { .intro__t { text-transform: none; letter-spacing: 0.02em; font-size: 18px; } }
.intro__p { margin: 16px auto 0; max-width: 520px; }
.intro__cta { margin-top: 26px; min-width: 240px; }
.facts { list-style: none; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.facts li { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
body.intro-gone .intro { display: none; }
@media (max-width: 759px) { .intro__hero img { height: 46vh; min-height: 260px; } .intro__panel { margin-top: -40px; } }

/* ---------- Progress: the vine ---------- */
#planner { scroll-margin-top: var(--header-h); }
.progress {
  position: sticky; top: var(--header-h); z-index: 20; background: rgba(244, 240, 237, 0.96);
  padding: 10px var(--gutter) 6px; border-bottom: 1px solid var(--line);
}
.vine { position: relative; max-width: var(--wrap); margin: 0 auto; height: 30px; }
.vine__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vine__track, .vine__cane { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.vine__track { stroke: var(--line); stroke-width: 2; }
.vine__cane {
  stroke: var(--sage); stroke-width: 2.5; stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - var(--grow, 0)); transition: stroke-dashoffset 0.7s var(--ease);
}
.vine__leaf {
  position: absolute; top: 2px; width: 13px; height: 13px; margin-left: -6px;
  background: var(--sage); border-radius: 0 100% 0 100%;
  transform: rotate(-20deg) scale(0); transform-origin: 0 100%;
  transition: transform 0.45s var(--ease);
}
.vine__leaf--down { top: 15px; transform: rotate(160deg) scale(0); transform-origin: 0 100%; }
.vine__leaf.is-on { transform: rotate(-20deg) scale(1); }
.vine__leaf--down.is-on { transform: rotate(160deg) scale(1); }
.vine__cluster {
  position: absolute; right: 0; top: 8px; width: 22px; height: 22px;
  display: grid; grid-template-columns: repeat(3, 6px); justify-content: center; gap: 1px;
  opacity: 0; transform: translateY(-4px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.vine__cluster i { width: 6px; height: 6px; border-radius: 50%; background: var(--grape); }
.vine__cluster i:nth-child(4) { grid-column: 1 / span 1; margin-left: 3px; }
.vine__cluster i:nth-child(6) { grid-column: 2; }
.vine__cluster.is-on { opacity: 1; transform: none; }
.progress__meta { max-width: var(--wrap); margin: 2px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); min-height: 32px; }
.progress__meta span { margin-left: auto; }
.backlink { background: none; border: 0; padding: 6px 0; min-height: 44px; cursor: pointer; color: var(--sage-deep); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.backlink::before { content: '‹ '; }

/* ---------- Steps ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 0; }
.step { min-width: 0; }
.step--photo { display: grid; gap: 22px; }
.step__photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sage-soft); }
.step__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; max-height: 220px; }
@media (min-width: 860px) {
  .step--photo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
  .step__photo { position: sticky; top: calc(var(--header-h) + 90px); }
  .step__photo img { aspect-ratio: 4 / 5; max-height: none; }
}
.step__body { min-width: 0; }
.step__hello { margin-bottom: 10px; }
.step__title { font-size: clamp(21px, 3.2vw, 28px); font-weight: 300; letter-spacing: 0.06em; line-height: 1.3; color: var(--ink); }
.step__lede { margin-top: 10px; color: var(--muted); }
.step__sub { margin-top: 26px; margin-bottom: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-deep); }

/* Fields */
.field { display: block; margin-top: 18px; }
.field__label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 6px; }
p.field__label { margin-top: 22px; }
.field__hint { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 16px/1.3 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.input:focus { outline: 2px solid var(--sage); outline-offset: 0; border-color: var(--sage); }
.input--small { max-width: 140px; }
.form-error { margin-top: 18px; color: #9b2f2f; font-weight: 400; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 46px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  cursor: pointer; text-align: left; display: inline-flex; flex-direction: column; justify-content: center;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chip:hover { border-color: var(--sage); }
.chip.is-on { background: var(--sage); border-color: var(--sage); color: #fff; }
.chip.is-on .chip__s { color: rgba(255, 255, 255, 0.85); }
.chip.is-off { opacity: 0.4; cursor: not-allowed; }
.chip__t { font-size: 15px; font-weight: 400; }
.chip__s { font-size: 13px; color: var(--muted); }
.chips--months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chips--months .chip { align-items: center; padding: 10px 4px; }
.chips--months .chip:last-child { grid-column: 1 / -1; }
@media (min-width: 640px) { .chips--months { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.chips--matters .chip { flex: 1 1 calc(50% - 8px); min-width: min(220px, 100%); }
.matters__count { margin-top: 10px; }

/* Option rows */
.opts { display: grid; gap: 10px; margin-top: 22px; }
.opt {
  display: grid; gap: 4px; text-align: left; padding: 16px 18px; min-height: 56px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.opt:hover { border-color: var(--sage); }
.opt.is-on { border-color: var(--sage); box-shadow: inset 3px 0 0 var(--sage); }
.opt__t { font-size: 17px; font-weight: 400; }
.opt__s { color: var(--muted); font-size: 15px; }

/* Wedding type cards */
/* auto-fill, so a lone card stays card-sized instead of stretching the full width */
.types { display: grid; gap: 14px; margin-top: 22px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.type {
  display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
}
.type:hover { border-color: var(--sage); transform: translateY(-2px); }
.type.is-on { border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage); }
.type__photo { margin: 0; }
.type__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.type__text { display: grid; gap: 6px; padding: 16px 18px 18px; }
.type__t { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep); }
.type__q { font-family: var(--script); font-size: 26px; line-height: 1.15; color: var(--ink); }
.type__s { font-size: 14px; color: var(--muted); }
.types__unsure { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .type:hover { transform: none; } }

/* Ceremony cards */
.cer { display: grid; gap: 12px; margin-top: 22px; }
.cer__opt {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.cer__opt:hover { border-color: var(--sage); }
.cer__opt.is-on { border-color: var(--sage); box-shadow: inset 3px 0 0 var(--sage); }
.cer__photo { margin: 0; }
.cer__photo img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius); }
.cer__text { display: grid; gap: 4px; }
.cer__t { font-size: 16px; font-weight: 400; }
.cer__s { font-size: 14px; color: var(--muted); }
@media (max-width: 340px) { .cer__opt { grid-template-columns: 1fr; } .cer__photo img { width: 100%; height: 110px; } }

/* Drinks cards */
.drinks { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 1000px) { .drinks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.drink {
  display: grid; align-content: start; gap: 10px; text-align: left; padding: 16px 18px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.drink:hover { border-color: var(--sage); }
.drink.is-on { border-color: var(--sage); box-shadow: 0 0 0 1px var(--sage); }
.drink__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.drink__t { font-size: 16px; font-weight: 500; letter-spacing: 0.06em; }
.drink__p { font-size: 15px; color: var(--sage-deep); }
.drink__list { display: grid; gap: 6px; }
.drink__row { display: grid; gap: 1px; }
.drink__k { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.drink__v { font-size: 14px; }
.upgrades { margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--line); }

/* Checks */
.checks { display: grid; gap: 10px; margin-top: 22px; }
.checkrow { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 12px 14px; min-height: 44px; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--sage); }
.check__photo { margin: 0; flex: none; }
.check__photo img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); }
.check__t { display: grid; gap: 2px; min-width: 0; }
.check__name { font-size: 16px; font-weight: 400; }
.check__s { font-size: 14px; color: var(--muted); }
.check__p { font-size: 14px; color: var(--sage-deep); font-weight: 500; }
.check__count { padding: 0 14px 14px; }
.check--none { margin-top: 6px; padding-left: 0; }
.check--consent { margin-top: 22px; padding: 0; font-size: 14px; }
@media (max-width: 380px) { .check__photo { display: none; } }

/* Guest slider */
.guests { margin-top: 22px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper__btn {
  width: 50px; height: 50px; flex: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  font-size: 22px; cursor: pointer; color: var(--sage-deep);
}
.stepper__btn:disabled { opacity: 0.35; cursor: default; }
.stepper__input {
  width: 96px; min-height: 50px; text-align: center; font: 300 26px/1 var(--sans); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -moz-appearance: textfield;
}
.stepper__input::-webkit-inner-spin-button, .stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.range { width: 100%; margin: 20px 0 4px; height: 28px; background: transparent; -webkit-appearance: none; appearance: none; }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--sage) var(--fill, 50%), var(--line) var(--fill, 50%)); }
.range::-moz-range-track { height: 3px; border-radius: 2px; background: var(--line); }
.range::-moz-range-progress { height: 3px; background: var(--sage); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11.5px; border-radius: 50%; background: #fff; border: 2px solid var(--sage); cursor: grab; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--sage); cursor: grab; }
.range-ends { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.guests__line { margin-top: 10px; font-size: 15px; min-height: 3em; }

/* Cards and notices */
.card { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.card--notice { background: #f6efe6; border-color: #e2d2bd; }
.card--soft { background: var(--sage-soft); border-color: transparent; font-size: 15px; }
.card__t { font-weight: 500; margin-bottom: 6px; }

/* Loader */
.loader { padding: 64px 0; text-align: center; }
.loader__script { font-size: clamp(40px, 8vw, 60px); }
.loader__t { margin-top: 10px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Results ---------- */
.view-result .wrap { padding-top: 0; }
.result { max-width: 860px; margin: 0 auto; }
.result__head { text-align: center; padding: 40px 0 26px; }
.result__names { font-size: clamp(44px, 9vw, 76px); margin-top: 6px; }
.result__title { margin: 12px auto 0; max-width: 620px; font-size: clamp(19px, 3vw, 24px); font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; }
.result__hero { margin: 0; border-radius: var(--radius); overflow: hidden; }
.result__hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.result__body > section, .result__body > figure { margin-top: 44px; }
.sec { text-align: center; margin-bottom: 20px; }
.sec__t { font-size: 13px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage-deep); }
.sec__t::after { content: ''; display: block; width: 48px; height: 1px; margin: 12px auto 0; background: var(--sage); }

.summary { margin-top: -40px !important; position: relative; z-index: 2; margin-inline: clamp(0px, 3vw, 40px); padding: 26px 22px; background: var(--paper); border-top: 3px solid var(--sage); border-radius: var(--radius); text-align: center; box-shadow: 0 10px 30px rgba(79, 74, 67, 0.08); }
.summary__kind { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.summary__fig { margin-top: 8px; display: flex; justify-content: center; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.summary__from { font-family: var(--script); font-size: 30px; color: var(--sage-deep); }
.summary__fig strong { font-size: clamp(38px, 8vw, 54px); font-weight: 300; letter-spacing: 0.02em; color: var(--ink); }
.summary__sub { font-size: 15px; }
.summary__change { margin-top: 8px; font-size: 14px; color: var(--muted); }
.summary__note { margin: 12px auto 0; max-width: 560px; font-size: 14px; padding: 10px 12px; background: var(--sage-soft); border-radius: var(--radius); text-align: left; }
.offer {
  display: grid; gap: 2px; margin: 16px auto 0; max-width: 560px; padding: 12px 14px; text-align: left; text-decoration: none;
  border: 1px dashed var(--sage); border-radius: var(--radius); color: var(--ink);
}
.offer:hover { background: var(--sage-soft); }
.offer__k { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grape); }
.offer__t { font-size: 15px; }

.day__p { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 2px; background: var(--sage-soft); }
.timeline__i { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 24px; padding: 9px 0; }
.timeline__i::before { content: ''; position: absolute; left: 87px; top: 15px; width: 12px; height: 12px; border-radius: 0 100% 0 100%; background: var(--sage); transform: rotate(-45deg); }
.timeline__time { text-align: right; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--sage-deep); padding-top: 2px; }
.timeline__what { font-size: 16px; }
@media (max-width: 360px) { .timeline__i { grid-template-columns: 62px minmax(0, 1fr); gap: 20px; } .timeline::before { left: 72px; } .timeline__i::before { left: 67px; } }

.bill { width: 100%; border-collapse: collapse; }
.bill td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.bill td:first-child { padding-right: 14px; }
.bill__amt { text-align: right; white-space: nowrap; font-weight: 400; }
.bill__sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.bill__total td { border-bottom: 0; border-top: 2px solid var(--sage); font-weight: 500; padding-top: 14px; }
@media (max-width: 340px) { .bill__amt { white-space: normal; } }

.other, .dates, .slider-card, .included, .stay { padding: 26px 22px; background: var(--paper); border-radius: var(--radius); }
.other { text-align: center; }
.other__fig { display: grid; gap: 2px; }
.other__k { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.other__fig strong { font-size: 30px; font-weight: 300; }
.other__p { margin: 10px auto 0; max-width: 520px; }
.other .fine { max-width: 560px; margin-inline: auto; }

.dates__p { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.dates__list { list-style: none; margin: 0; padding: 0; }
.dates__i { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dates__i:last-child { border-bottom: 0; }
.dates__i.is-on .dates__when { color: var(--sage-deep); }
.dates__when { display: block; font-weight: 500; }
.dates__sub { display: block; font-size: 13px; color: var(--muted); }
.dates__n { white-space: nowrap; font-size: 17px; }
@media (max-width: 340px) { .dates__i { flex-direction: column; align-items: flex-start; } }

.slider-card__p { text-align: center; color: var(--muted); font-size: 15px; }

.included__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
@media (min-width: 700px) { .included__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; } }
.included__list li { position: relative; padding-left: 20px; font-size: 15px; }
.included__list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 0 100% 0 100%; background: var(--sage); transform: rotate(-45deg); }

.matters__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.matters__photo { margin: 0; }
.matters__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.matters__t { margin-top: 12px; font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-deep); }
.matters__s { margin-top: 6px; font-size: 15px; }

.quote { margin-left: 0; margin-right: 0; text-align: center; padding: 10px clamp(0px, 4vw, 40px); }
.quote__t { margin: 0; font-size: clamp(17px, 2.6vw, 20px); line-height: 1.6; font-weight: 300; font-style: italic; }
.quote__by { margin-top: 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.stay { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px; }
.stay__t { flex: 1 1 260px; font-size: 15px; }

.actions { text-align: center; max-width: 520px; margin-left: auto; margin-right: auto; display: grid; gap: 10px; }
.actions__script { font-size: 40px; }
.actions__links, .actions__tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
.actions .linkbtn { text-align: center; }

.photo--missing { display: grid; place-items: center; min-height: 120px; background: var(--sage-soft); }
.photo__ph { font-size: 13px; color: var(--muted); }

/* Reveal: each part settles in once. Hidden only while JS has marked it and it is still below the fold;
   a 3 second failsafe in main.js shows everything regardless. */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .vine__cane, .vine__leaf, .vine__cluster, .btn, .type { transition: none; }
}

/* Sticky total on phones, results page only */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.sticky.is-on { transform: none; visibility: visible; transition: transform 0.3s var(--ease); }
.sticky__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--wrap); margin: 0 auto; }
.sticky__t { display: block; font-size: 18px; font-weight: 500; }
.sticky__s { display: block; font-size: 12px; color: var(--muted); }
.sticky__btn { min-height: 44px; padding: 8px 14px; font-size: 11px; letter-spacing: 0.14em; flex: none; }
@media (max-width: 300px) { .sticky__btn { display: none; } }

.toast {
  position: fixed; left: 50%; top: calc(var(--header-h) + 16px); z-index: 60; transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-size: 14px; max-width: calc(100vw - 32px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.preview-badge { position: fixed; right: 10px; bottom: 10px; z-index: 70; background: var(--grape); color: #fff; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius); }
.has-preview .sticky { bottom: 0; }

/* ---------- Embedded in the venue's own page ---------- */
html.is-embedded .site-header, html.is-embedded .site-footer, html.is-embedded .intro { display: none; }
html.is-embedded body { --header-h: 0px; background: transparent; }
html.is-embedded .progress { position: static; }
html.is-embedded .step__photo { position: static; }
html.is-embedded .sticky, html.is-embedded .preview-badge { display: none; }
html.is-embedded .toast { position: absolute; top: 24px; }

/* ---------- Print: the results page as a letter ---------- */
@media print {
  .site-header, .site-footer, .progress, .sticky, .toast, .preview-badge, .actions, .slider-card { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .result__body > section { break-inside: avoid; }
}
