/* Vacabookly marketing homepage */

.small { font-size: 0.86rem; }

.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-in { height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-in > .btn { margin-left: auto; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 6vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; max-width: 12ch; }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-2); margin-top: 24px; max-width: 42ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
/* One listing card: wide photo with an attached booking bar. Nothing overlaps the photo. */
.stay-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.stay-card:hover { transform: translateY(-3px); }
.stay-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.stay-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform 1s var(--ease); }
.stay-card:hover .stay-photo img { transform: scale(1.025); }
.stay-bar { display: grid; gap: 16px; padding: 18px 20px 20px; }
.stay-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.stay-name { font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.2; }
.stay-where { font-size: 0.88rem; color: var(--ink-2); }
.stay-sync { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ink-2); padding: 6px 12px; border-radius: var(--pill); background: var(--surface-2); white-space: nowrap; }
.stay-sync i { color: var(--ok); font-size: 0.95rem; }
.stay-open { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.stay-label { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.stay-chip { display: inline-grid; padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: 0.84rem; line-height: 1.25; }
.stay-chip small { font-size: 0.74rem; color: var(--ink-3); }
.stay-chip.is-skel { width: 104px; height: 44px; background: var(--surface-2); border-color: transparent; animation: pulse 1.4s ease-in-out infinite; }
.stay-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--pill); background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 90ms; }
  .hero-copy > :nth-child(3) { animation-delay: 180ms; }
  .stay-card { animation: rise 1s 0.2s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) { .stay-chip.is-skel { animation: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .hero-visual { max-width: 820px; }
}
@media (max-width: 600px) {
  .stay-photo { aspect-ratio: 4 / 3; }
  .stay-cta { margin-left: 0; width: 100%; justify-content: center; }
}

/* Journey */
.how { padding-block: clamp(56px, 8vw, 120px); }
.how h2 { font-size: clamp(2rem, 4vw, 3.3rem); max-width: 16ch; }
.journey { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.journey li { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; align-content: start; }
.journey h3 { font-size: 1.3rem; margin-top: 10px; }
.journey p { color: var(--ink-2); max-width: 36ch; }
.j-visual { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; padding: 20px; }
.j-photo { padding: 0; }
.j-photo img { width: 100%; height: 100%; object-fit: cover; }
.house-card { width: min(260px, 90%); aspect-ratio: 1.75; background: #ffffff; color: #0b2235; border-radius: 6px; padding: 16px 18px; display: grid; align-content: space-between; box-shadow: var(--shadow); transform: rotate(-3deg); }
.hc-name { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.hc-line { font-size: 0.82rem; color: #44566a; line-height: 1.35; }
.hc-url { font-size: 0.72rem; color: #007a73; }
.j-welcome { background: var(--brand-navy); border: 1px solid var(--line); align-content: center; gap: 12px; }
.wb { display: flex; gap: 10px; align-items: start; color: #e8eef2; font-size: 0.88rem; width: 100%; }
.wb i { color: #2cc4b8; font-size: 1.3rem; }
.wb-total { width: 100%; display: flex; justify-content: space-between; padding: 12px 14px; border-radius: var(--radius-sm); background: rgb(255 255 255 / 0.08); color: #e8eef2; font-size: 0.9rem; }
@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; gap: 40px; }
}

/* Sync */
.sync-sec { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(56px, 8vw, 112px); }
.sync-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.eyebrow { font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.sync-copy h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 16ch; }
.sync-copy > p:not(.eyebrow) { color: var(--ink-2); margin-top: 18px; max-width: 48ch; }
.sync-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.sync-points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.sync-points i { width: 40px; height: 40px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.15rem; }
.sync-points div { display: grid; gap: 2px; }
.sync-points span { color: var(--ink-2); font-size: 0.95rem; }

.flow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.flow-col { display: grid; gap: 10px; }
.flow-node { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-weight: 550; font-size: 0.92rem; white-space: nowrap; }
.flow-mono { width: 22px; height: 22px; border-radius: var(--pill); display: grid; place-items: center; background: #1c4695; color: #fff; font-size: 0.72rem; font-weight: 700; }
.flow-pipes { display: grid; gap: 22px; padding-inline: 10px; min-width: 90px; }
.pipe { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 11px); background-size: 22px 2px; }
.pipe em { position: absolute; top: -22px; left: 50%; translate: -50% 0; font-style: normal; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-2); white-space: nowrap; }
.pipe-out em { top: 8px; }
.pipe::after { content: ''; position: absolute; top: -4px; width: 0; height: 0; border-block: 5px solid transparent; }
.pipe-in::after { right: -2px; border-left: 7px solid var(--ink-3); }
.pipe-out::after { left: -2px; border-right: 7px solid var(--accent); }
.pipe-out { background-image: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); }
@media (prefers-reduced-motion: no-preference) {
  .pipe-in { animation: flowR 1.2s linear infinite; }
  .pipe-out { animation: flowL 1.2s linear infinite; }
}
@keyframes flowR { to { background-position: 22px 0; } }
@keyframes flowL { to { background-position: -22px 0; } }
.flow-hub { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 22px 18px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--accent); max-width: 190px; }
.flow-hub img { width: 44px; height: auto; }
.flow-hub span { font-size: 0.68rem; opacity: 0.75; word-break: break-all; }
@media (max-width: 960px) { .sync-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .flow-col { grid-template-columns: 1fr 1fr; width: 100%; }
  .flow-node { padding: 8px 12px; font-size: 0.84rem; }
  .flow-pipes { transform: rotate(90deg); margin-block: 30px; }
}

/* Example */
.example { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; align-items: center; padding-block: clamp(56px, 8vw, 120px); }
.ex-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; display: block; background: var(--surface-2); }
.ex-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.ex-media:hover img { transform: scale(1.03); }
.ex-panel { margin-left: -72px; position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 22px; justify-items: start; }
.ex-panel h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--ink-2); }
.ex-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.ex-list i { color: var(--accent); font-size: 1.2rem; padding-top: 2px; }
@media (max-width: 900px) {
  .example { grid-template-columns: 1fr; }
  .ex-panel { margin: -48px 12px 0; }
}

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 80px); padding-block: clamp(40px, 6vw, 96px); align-items: start; }
.faq h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); position: sticky; top: 100px; }
.faq-list { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-family: var(--font-mono); font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: rotate 0.3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 800px) { .faq { grid-template-columns: 1fr; } .faq h2 { position: static; } }

/* Closer */
.closer { padding-bottom: clamp(56px, 8vw, 112px); }
.closer-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
.closer-in h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); max-width: 18ch; }
.closer-in .btn-primary { background: var(--ink); color: var(--bg); }
.closer-in .btn-primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--accent)); }

.footer { border-top: 1px solid var(--line); padding-block: 32px; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .brand img { height: 28px; }
.journey .wb p { color: #e8eef2; max-width: none; }
/* The printed card stays paper-colored in both themes. */
.house-card .hc-name { color: #0b2235; }
.house-card .hc-line { color: #44566a; max-width: none; }
.house-card .hc-url { color: #007a73; }
.stay-chips-wrap { display: contents; }
