/* TourFix — site and partner portal */
@font-face { font-family: "Barlow"; src: url(fonts/Barlow-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/Barlow-SemiBold.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(fonts/BarlowCondensed-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(fonts/BarlowCondensed-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(fonts/BarlowCondensed-ExtraBoldItalic.woff2) format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }

:root {
  --navy: #0F1B2D; --navy-2: #16263D; --navy-3: #22344F;
  --yellow: #F2C230; --green: #1F7A4D; --green-2: #2A9A63;
  --white: #F4F1EA; --card: #FBFAF6; --line: #D9D4C7; --steel: #8A94A3;
  --ink: #0F1B2D; --ink-2: #3A4250; --ink-3: #6A7180; --on-navy: #C9CFD8;
  --err: #B3261E; --err-bg: #FBEAE8; --ok-bg: #E6F2EB;
  --radius: 14px; --wrap: 1160px;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --text: "Barlow", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.55 var(--text); }
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { margin: 0; line-height: 1.08; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- header */
.top { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--navy-3); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav button.linkish { color: var(--on-navy); text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 12px; border-radius: 8px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav a:hover, .nav button.linkish:hover { color: var(--white); background: var(--navy-3); }
.nav form { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 17px/1 var(--text); padding: 14px 22px; border-radius: 10px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #F7D35A; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: #3A4D6B; }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); color: var(--white); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 9px 14px; font-size: 15px; border-radius: 8px; }
.nav .btn { padding: 10px 16px; font-size: 15px; }
.nav a.btn-yellow, .nav a.btn-yellow:hover { color: var(--navy); background: var(--yellow); padding: 10px 16px; }
.nav a.btn-yellow:hover { background: #F7D35A; }

/* ---------- hero */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; padding: 96px 0 210px; }
.hero::before, .hero::after { content: ""; position: absolute; left: -5%; right: -5%; height: 64px; transform: rotate(-6deg); transform-origin: left; }
.hero::before { bottom: -10px; background: var(--yellow); }
.hero::after { bottom: -46px; height: 14px; background: var(--green); }
.hero.photo { background-image: linear-gradient(90deg, rgba(15,27,45,.97) 0%, rgba(15,27,45,.9) 38%, rgba(15,27,45,.45) 75%, rgba(15,27,45,.25) 100%), var(--photo); background-size: cover; background-position: center right; }
.hero .wrap { position: relative; z-index: 1; }
.cardimg { display: block; width: calc(100% + 56px); max-width: none; height: 170px; object-fit: cover; margin: -28px -28px 18px; border-radius: var(--radius) var(--radius) 0 0; }
.who.feature .cardimg { opacity: .9; }
.eyebrow { font: 600 15px/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.display { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: none; letter-spacing: -.005em; }
.hero h1 { font-size: clamp(48px, 8vw, 104px); margin: 18px 0 22px; max-width: 900px; }
.hero h1 em { font-style: italic; color: var(--yellow); }
.hero .lede { font-size: clamp(19px, 2.2vw, 23px); color: var(--on-navy); max-width: 720px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero .soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 16px; color: var(--on-navy); }
.hero .soon::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 4px rgba(42,154,99,.25); }

/* ---------- sections */
.band { padding: 96px 0; }
.band.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.dark { background: var(--navy); color: var(--white); }
.band h2 { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 5vw, 56px); margin: 10px 0 18px; }
.band .intro { font-size: 20px; color: var(--ink-2); max-width: 760px; }
.band.dark .intro { color: var(--on-navy); }
.grid { display: grid; gap: 20px; margin-top: 44px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.band.alt .card { background: #fff; background: #FFFEFB; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 28px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 17px; }
.step .n { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1; color: var(--green); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip { background: var(--navy-2); color: var(--white); border: 1px solid var(--navy-3); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 16px; }
.band:not(.dark) .chip { background: #ECE7DC; color: var(--navy); border-color: var(--line); }

.who { display: flex; flex-direction: column; gap: 10px; }
.who .tag { font: 600 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.who p { flex: 1; }
.who a.more { font-weight: 600; text-decoration: none; margin-top: 6px; }
.who a.more::after { content: " →"; }
.who.feature, .band.alt .who.feature { background: var(--navy); border-color: var(--navy); color: var(--white); }
.who.feature h3 { color: var(--white); }
.who.feature p { color: var(--on-navy); }
.who.feature .tag { color: var(--yellow); }
.who.feature a.more { color: var(--yellow); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--on-navy); }
.facts li::before { content: ""; width: 14px; height: 14px; margin-top: 7px; background: var(--yellow); transform: skewX(-14deg); }
.facts b { color: var(--white); }

/* ---------- forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.f { display: block; font-weight: 600; font-size: 15px; color: var(--ink-2); }
label.f .opt { font-weight: 400; color: var(--ink-3); }
label.f input, label.f select, label.f textarea { margin-top: 6px; display: block; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], select, textarea {
  width: 100%; font: 400 17px/1.4 var(--text); color: var(--ink); background: #FFFEFB; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(242,194,48,.45); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15.5px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: 0 1px 0 rgba(15,27,45,.04), 0 18px 40px -28px rgba(15,27,45,.35); }
.band.dark .panel { color: var(--ink); }
.errors { margin: 0; padding: 14px 18px 14px 36px; background: var(--err-bg); color: var(--err); border-radius: 10px; font-size: 16px; }
.flash { padding: 14px 18px; border-radius: 10px; font-size: 16px; }
.flash.ok { background: var(--ok-bg); color: #165C39; }
.flash.err { background: var(--err-bg); color: var(--err); }
.small { font-size: 14.5px; color: var(--ink-3); }
.thanks { text-align: left; }
.thanks h3 { font-family: var(--display); font-size: 34px; font-style: italic; font-weight: 800; margin-bottom: 8px; }

/* ---------- narrow pages (sign-in, invite, messages) */
.page { padding: 72px 0 96px; min-height: calc(100vh - 76px - 160px); }
.narrow { max-width: 520px; margin: 0 auto; }
.mid { max-width: 820px; margin: 0 auto; }
.page h1 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(36px, 5vw, 50px); margin-bottom: 12px; }
.page .lead { color: var(--ink-2); margin-bottom: 26px; }
.stepper { display: flex; gap: 8px; margin-bottom: 22px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.stepper span { padding: 6px 12px; border-radius: 999px; background: #ECE7DC; }
.stepper span.on { background: var(--navy); color: var(--white); }
.stepper span.done { background: var(--ok-bg); color: #165C39; }
.terms { background: #FFFEFB; border: 1px solid var(--line); border-radius: 12px; padding: 26px 30px; max-height: 460px; overflow: auto; font-size: 16px; color: var(--ink-2); }
.terms h2 { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ink); margin: 0 0 4px; }
.terms h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 18px 0 6px; font-family: var(--text); }
.terms p, .terms li { margin: 0 0 8px; }
.terms ol, .terms ul { padding-left: 22px; margin: 0 0 8px; }
.links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 15.5px; }

/* ---------- portal */
.portal-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.deck { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease; }
.deck:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -22px rgba(15,27,45,.5); color: inherit; }
.deck img { aspect-ratio: 16/9; width: 100%; height: auto; object-fit: cover; background: var(--navy); }
.deck .body { padding: 20px 22px 22px; display: grid; gap: 6px; }
.deck .ref { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.deck h3 { font-family: var(--display); font-weight: 700; font-size: 26px; }
.deck .meta { font-size: 15px; color: var(--ink-3); }
.empty { padding: 34px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }
.receipt { margin-top: 40px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 15.5px; color: var(--ink-2); padding: 16px 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.receipt b { color: var(--ink); }

/* ---------- viewer */
body.is-viewer { background: #0A1320; }
body.is-viewer .foot { display: none; }
.viewer { color: var(--white); padding: 22px 0 40px; }
.viewer .wrap { max-width: min(1400px, calc((100vh - 250px) * 1.7778 + 48px)) !important; min-width: min(100%, 640px); }
.vbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.vbar h1 { font-family: var(--display); font-weight: 700; font-size: 26px; margin-right: auto; }
.vbar .count { font-variant-numeric: tabular-nums; color: var(--on-navy); font-size: 16px; min-width: 70px; text-align: center; }
.vbtn { background: var(--navy-3); color: var(--white); border: 0; border-radius: 8px; padding: 10px 14px; font: 600 15px/1 var(--text); cursor: pointer; text-decoration: none; }
.vbtn:hover { background: #2E4466; color: var(--white); }
.vbtn:disabled { opacity: .4; cursor: default; }
.stage { position: relative; aspect-ratio: 16/9; width: 100%; background: var(--navy); border-radius: 10px; overflow: hidden; user-select: none; -webkit-user-select: none; box-shadow: 0 30px 60px -30px #000; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.stage .slide { display: none; }
.stage .slide.on { display: block; }
.stage .wm { position: absolute; inset: -20%; pointer-events: none; transform: rotate(-18deg); display: grid; grid-template-columns: repeat(2, 1fr); align-content: space-around; gap: 120px 60px; padding: 40px; }
.stage .wm span { font: 600 15px/1 var(--text); color: rgba(255,255,255,.13); white-space: nowrap; text-shadow: 0 0 1px rgba(15,27,45,.25); mix-blend-mode: difference; }
.stage .tap { position: absolute; top: 0; bottom: 0; width: 30%; background: none; border: 0; cursor: pointer; }
.stage .tap.prev { left: 0; } .stage .tap.next { right: 0; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 16px 2px 6px; scrollbar-width: thin; }
.thumbs button { flex: none; width: 132px; aspect-ratio: 16/9; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--navy); cursor: pointer; opacity: .6; }
.thumbs button.on { border-color: var(--yellow); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vnote { color: var(--steel); font-size: 14px; margin-top: 12px; }
.stage:fullscreen { border-radius: 0; background: #000; }
/* document decks (portrait A4 pages): wider page, scroll down to read */
.viewer.portrait .wrap { max-width: min(940px, 100%) !important; min-width: 0; }
.stage.portrait { aspect-ratio: 794/1123; }
.thumbs.portrait button { width: 64px; aspect-ratio: 794/1123; }

/* ---------- admin */
.admin .page { padding-top: 40px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--navy); border-color: var(--yellow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: #ECE7DC; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tblwrap { overflow-x: auto; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #ECE7DC; color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: #165C39; }
.pill.wait { background: #FFF4CC; color: #7A5A00; }
.pill.off { background: var(--err-bg); color: var(--err); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 18px; font-size: 16px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; word-break: break-word; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.stat b { display: block; font-family: var(--display); font-size: 40px; line-height: 1; }
.stat span { color: var(--ink-3); font-size: 14.5px; }
.copy { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; background: #FFFEFB; border: 1px dashed var(--line); padding: 10px 12px; border-radius: 8px; word-break: break-all; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; }

/* ---------- footer */
.foot { background: var(--navy); color: var(--on-navy); padding: 44px 0; font-size: 15px; }
.foot .wrap { display: flex; gap: 24px 40px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot a { color: var(--white); }
.foot .mark { display: flex; align-items: center; gap: 14px; }
.foot .mark img { width: 40px; height: 40px; border-radius: 9px; }

/* ---------- responsive */
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero.photo { background-image: linear-gradient(180deg, rgba(15,27,45,.93), rgba(15,27,45,.8)), var(--photo); }
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .top .wrap { min-height: 64px; gap: 10px; }
  .brand img { height: 36px; }
  .nav .hide-sm { display: none; }
  .nav a, .nav button.linkish { padding: 8px; font-size: 15px; }
  .hero { padding: 64px 0 170px; }
  .band { padding: 68px 0; }
  .g4, .g3, .g2, .form .row { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px; }
  .terms { padding: 20px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 8px; }
  .stage .wm { grid-template-columns: 1fr; gap: 60px; }
  .stage .wm span { font-size: 11px; }
  .thumbs button { width: 96px; }
  .vbar { gap: 8px; }
  .vbar h1 { order: -1; flex-basis: 100%; font-size: 24px; }
  .vbar .vbtn { padding: 9px 11px; font-size: 14px; }
  .vbar .count { min-width: 52px; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
