/* =========================================================
   Lodgify Reviews — style.css
   Static site for Cloudflare Pages (HTML5 / CSS3 / vanilla JS)
   ========================================================= */

:root {
  --green: #00704A;
  --green-accent: #00754A;
  --green-house: #1E3932;
  --green-light: #D4E9E2;
  --cream: #F2F0EB;
  --card: #F7F7F7;
  --gold: #CBA258;
  --yellow: #F6EE71;        /* Lodgify logo yellow */
  --yellow-soft: #FCF9D2;
  --ink: #111111;
  --text: rgba(0, 0, 0, .87);
  --muted: rgba(0, 0, 0, .62);
  --line: rgba(0, 0, 0, .1);
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 2px 2px rgba(0,0,0,.06), 0 0 2px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.14);
  --wrap: 1120px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px; line-height: 1.6; color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--green-house); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Promo bar ---------- */
.promo-bar { background: var(--yellow); color: var(--ink); font-size: 15px; }
.promo-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; max-width: 1360px; }
.promo-bar strong { font-weight: 800; }
.promo-bar .countdown-inline { font-variant-numeric: tabular-nums; font-weight: 800; }
.promo-bar .btn { padding: 6px 16px; font-size: 14px; }
.promo-close { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 8px; margin-left: 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line), 0 2px 6px rgba(0,0,0,.06); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); max-width: 1360px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-house); font-weight: 800; font-size: 18px; letter-spacing: .01em; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: #fff; font-size: 20px; flex: 0 0 44px; }
.nav { display: flex; gap: 26px; flex: 1; }
.nav a { color: var(--text); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: 13px; }
.nav a:hover { color: var(--green); }
.header-cta { display: flex; gap: 10px; margin-left: auto; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 50px; padding: 8px 14px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }

@media (max-width: 1100px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 20px; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-block; }
}
@media (max-width: 600px) {
  .header-cta .btn-outline { display: none; }
  .brand .txt { display: none; }
  .site-header .wrap { gap: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 50px; padding: 10px 22px; font-weight: 800; font-size: 16px; line-height: 1.2;
  text-decoration: none; border: 1px solid var(--green-accent); cursor: pointer; font-family: inherit;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn-solid { background: var(--green-accent); color: #fff; }
.btn-solid:hover { background: var(--green); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--green-accent); }
.btn-outline:hover { background: rgba(0,117,74,.06); }
.btn-light { background: #fff; color: var(--green-house); border-color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.btn-yellow:hover { box-shadow: 0 0 0 3px rgba(0,0,0,.12); }
.btn-dark { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.btn-lg { padding: 15px 32px; font-size: 18px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { background: var(--green-house); color: #fff; padding: 64px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 13px; color: var(--gold); margin: 0 0 16px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 0 0 20px; font-weight: 800; letter-spacing: -.01em; }
.hero .lede { font-size: 21px; color: rgba(255,255,255,.88); margin: 0 0 28px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.meta { margin-top: 24px; font-size: 14px; color: rgba(255,255,255,.7); }
.hero-card { background: var(--yellow); color: var(--ink); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-lg); text-align: center; }
.hero-card img { width: 160px; margin: 0 auto 10px; border-radius: 12px; }
.hero-card .off { font-size: 56px; font-weight: 800; line-height: 1; }
.hero-card .sub { font-weight: 700; margin: 6px 0 14px; }
.hero-card .dates { font-size: 14px; margin-top: 12px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { max-width: 380px; } }

/* ---------- Coupon ---------- */
.coupon { display: flex; align-items: stretch; border: 2px dashed var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.coupon code { flex: 1; display: grid; place-items: center; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 24px; font-weight: 800; letter-spacing: .12em; color: var(--ink); padding: 10px 14px; }
.coupon button { border: 0; background: var(--ink); color: var(--yellow); font: inherit; font-weight: 800; font-size: 15px; padding: 0 18px; cursor: pointer; }
.coupon button.copied { background: var(--green); color: #fff; }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 10px; justify-content: center; font-variant-numeric: tabular-nums; }
.countdown div { background: var(--ink); color: var(--yellow); border-radius: 10px; padding: 8px 10px; min-width: 62px; text-align: center; }
.countdown b { display: block; font-size: 26px; line-height: 1.1; }
.countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #fff; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--cream); }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; margin: 0 0 20px; font-weight: 800; color: var(--green-house); }
h3 { font-size: 24px; line-height: 1.3; margin: 36px 0 12px; font-weight: 800; }
p { margin: 0 0 18px; }
ul, ol { padding-left: 24px; margin: 0 0 20px; }
li { margin-bottom: 8px; }

/* ---------- Cards / grids ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); }
.card.white { background: #fff; }
.card h3 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .card { padding: 28px 24px; } }

/* In brief */
.brief { margin-top: -48px; position: relative; z-index: 2; }
.brief .card { background: #fff; border-top: 6px solid var(--yellow); }
.brief h2 { font-size: 26px; margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%2300704A'/%3E%3C/svg%3E") center/15px no-repeat; }
.brief-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 0; }
.tile { background: var(--cream); border-radius: 12px; padding: 18px 20px; }
.tile b { display: block; font-size: 28px; color: var(--green-house); line-height: 1.1; }
.tile span { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* TOC */
.toc { counter-reset: toc; list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.toc li { counter-increment: toc; margin: 0; }
.toc a { display: flex; gap: 14px; align-items: baseline; text-decoration: none; color: var(--text); font-weight: 700; padding: 10px 0; border-bottom: 1px solid var(--line); }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--green); font-weight: 800; font-size: 14px; letter-spacing: .06em; }
.toc a:hover { color: var(--green); }
@media (max-width: 700px) { .toc { grid-template-columns: 1fr; } }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 24px 0; }
.checklist li { background: #fff; border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
.checklist label { display: flex; gap: 14px; align-items: flex-start; font-weight: 800; cursor: pointer; }
.checklist input { appearance: none; -webkit-appearance: none; flex: 0 0 24px; height: 24px; border: 2px solid var(--green); border-radius: 6px; margin: 3px 0 0; cursor: pointer; display: grid; place-items: center; }
.checklist input:checked { background: var(--green); }
.checklist input:checked::after { content: ""; width: 6px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.checklist p { margin: 6px 0 0 38px; color: var(--muted); font-size: 17px; }
.progress { font-size: 15px; color: var(--muted); font-weight: 700; }

/* Callouts */
.callout { border-radius: var(--radius); padding: 28px 32px; margin: 28px 0; background: var(--green-light); }
.callout h3, .callout h4 { margin: 0 0 10px; font-size: 21px; font-weight: 800; color: var(--green-house); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.warn { background: #FBF3E4; border-left: 6px solid var(--gold); }
.callout.dark { background: var(--green-house); color: #fff; }
.callout.dark h3, .callout.dark h4 { color: #fff; }
.callout.dark a:not(.btn) { color: var(--yellow); }
.callout .btn { margin-top: 8px; }

/* Inline CTA block (repeated) */
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--yellow); color: var(--ink); border-radius: var(--radius); padding: 24px 28px; margin: 36px 0 0; box-shadow: var(--shadow); }
.cta-strip p { margin: 0; font-weight: 700; font-size: 18px; flex: 1 1 320px; }
.cta-strip p strong { font-weight: 800; }
.cta-strip .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Media */
figure { margin: 32px 0; }
figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; text-align: center; }
.mock { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; display: grid; grid-template-columns: 1.1fr .9fr; }
.mock-left { padding: 40px; background: var(--green-house); color: #fff; }
.mock-left .h { font-size: 30px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.mock-left .t { color: rgba(255,255,255,.8); font-size: 16px; margin-bottom: 22px; }
.mock-left .b { display: flex; gap: 10px; flex-wrap: wrap; }
.mock-right { padding: 28px; background: var(--cream); display: flex; flex-direction: column; justify-content: center; }
.mock-phone { background: #fff; border-radius: 14px; padding: 18px; box-shadow: var(--shadow); font-size: 14px; }
.mock-phone .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mock-phone .row:last-of-type { border-bottom: 0; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 50px; background: var(--green-accent); color: #fff; font-weight: 700; font-size: 13px; }
.pill.ghost { background: transparent; border: 1px solid #fff; }
@media (max-width: 760px) { .mock { grid-template-columns: 1fr; } }

/* Lite YouTube */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000 center/cover no-repeat; cursor: pointer; border: 0; width: 100%; padding: 0; display: block; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.45)); }
.yt .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 54px; border-radius: 14px; background: var(--ink); z-index: 1; display: grid; place-items: center; transition: background .15s ease; }
.yt:hover .play { background: var(--green-accent); }
.yt .play::before { content: ""; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.yt .yt-label { position: absolute; left: 20px; bottom: 16px; z-index: 1; color: #fff; font-weight: 800; text-align: left; font-size: 16px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin: 24px 0; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 680px; }
th, td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--green-house); color: #fff; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
tbody th { font-weight: 800; background: var(--cream); width: 22%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.price { font-size: 26px; font-weight: 800; color: var(--green-house); }
td.price small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
td .btn { padding: 8px 16px; font-size: 14px; }
.badge { display: inline-block; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 50px; margin-left: 6px; vertical-align: middle; border: 1px solid var(--ink); }
.table-hint { font-size: 14px; color: var(--muted); display: none; }
@media (max-width: 720px) { .table-hint { display: block; } }

/* Payment cards */
.pay-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pay-card .top { background: var(--green); color: #fff; padding: 22px 28px; font-weight: 800; font-size: 20px; }
.pay-card.manual .top { background: var(--green-house); }
.pay-card dl { margin: 0; padding: 24px 28px; }
.pay-card dt { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); }
.pay-card dd { margin: 4px 0 18px; font-weight: 700; }
.pay-card dd:last-child { margin-bottom: 0; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow); margin: 0; }
.steps li::before { content: counter(s); flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* Promo section */
.promo { background: var(--yellow); color: var(--ink); }
.promo h2 { color: var(--ink); }
.promo-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.promo-box { background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); text-align: center; }
.promo-box .big { font-size: 64px; font-weight: 800; line-height: 1; }
.promo-box .coupon { margin: 16px 0; }
.promo-box .countdown { margin: 14px 0 18px; }
.promo-steps { counter-reset: p; list-style: none; padding: 0; }
.promo-steps li { counter-increment: p; position: relative; padding-left: 46px; margin-bottom: 14px; font-weight: 700; }
.promo-steps li::before { content: counter(p); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-weight: 800; }
.offer-ended .promo-live { display: none; }
.promo-ended { display: none; }
.offer-ended .promo-ended { display: block; }
@media (max-width: 860px) { .promo-grid { grid-template-columns: 1fr; } }

/* Pros/cons */
.pc h4 { margin: 0 0 12px; font-size: 15px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.pc.pro h4 { color: var(--green); }
.pc.con h4 { color: #A0561A; }
.pc ul { margin: 0; }

/* FAQ */
details { background: #fff; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 14px; }
summary { cursor: pointer; list-style: none; padding: 22px 26px; font-weight: 800; font-size: 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 28px; color: var(--green); font-weight: 600; line-height: 1; }
details[open] summary::after { content: "–"; }
details .ans { padding: 0 26px 22px; }
details .ans p:last-child { margin-bottom: 0; }

/* Final band */
.band { background: var(--green); color: #fff; text-align: center; padding: 72px 0; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.92); max-width: 640px; margin: 0 auto 28px; }
.band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.band .coupon { max-width: 360px; margin: 0 auto 24px; }

/* Sources & footer */
.sources { font-size: 15px; color: var(--muted); }
.sources ul { columns: 2; column-gap: 40px; }
@media (max-width: 700px) { .sources ul { columns: 1; } }
.disclosure { font-size: 14px; color: var(--muted); }
footer { background: var(--green-house); color: rgba(255,255,255,.78); padding: 40px 0 48px; font-size: 14px; }
footer a { color: #fff; }

/* Sticky mobile CTA bar */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ink); color: #fff; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px; box-shadow: 0 -4px 18px rgba(0,0,0,.2); transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta p { margin: 0; font-size: 14px; line-height: 1.3; flex: 1; }
.sticky-cta p strong { color: var(--yellow); }
.sticky-cta .btn { padding: 10px 16px; font-size: 15px; }
@media (max-width: 860px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
}

/* Floating desktop CTA */
.float-cta { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: none; opacity: 0; transform: translateY(16px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; box-shadow: var(--shadow-lg); }
.float-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (min-width: 861px) { .float-cta { display: inline-flex; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--green-house); color: #fff; padding: 12px 20px; border-radius: 50px; font-weight: 700; opacity: 0; transition: opacity .2s ease, transform .2s ease; z-index: 150; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Screenshots ---------- */
.shot picture, .shot > img { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream); }
.shot img { width: 100%; height: auto; }
.shot.phone { margin: 0 auto; max-width: 340px; }
.shot.phone picture { border-radius: 32px; border: 8px solid var(--ink); }

/* Feature split (text + phone screenshot) */
.feature-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; background: var(--cream); border-radius: 24px; padding: 48px; margin: 40px auto 8px; max-width: 980px; }
.feature-split .eyebrow { color: var(--green); }
.feature-split .btn { margin-top: 4px; }
@media (max-width: 860px) { .feature-split { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; } }

td small { color: var(--muted); font-size: 13px; }
