/* HolidAI website. Colours match the iOS app's Theme.swift. */
:root {
  --brand-blue: #006bff;   /* Theme.brandBlue */
  --button-blue: #0057d1;  /* Theme.buttonBlue */
  --sky-blue: #4ecdc4;     /* SkyBlue asset colour */
  --mist: #dbf7f5;         /* Theme.mist */
  --sunshine: #ffcc00;     /* Ask Holid-Ai button */
  --ink: #0b1b2b;
  --ink-soft: #3d4b5c;
  --line: #d9e2ec;
  --card: #ffffff;
  --bg: #f6fafc;
  --radius: 18px;
  --max: 1120px;
  --shadow: 0 10px 30px rgba(11, 27, 43, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--button-blue); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--sunshine); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--button-blue); }

/* Hero: the app's background gradient */
.hero { background: linear-gradient(180deg, var(--brand-blue) 0%, var(--sky-blue) 55%, var(--mist) 100%); color: var(--ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hero-logo { width: 240px; margin-bottom: 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.hero .lead { font-size: 1.15rem; max-width: 36em; margin: 0 0 24px; color: var(--ink); background: rgba(255, 255, 255, 0.78); border-radius: 14px; padding: 14px 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.pill svg { width: 20px; height: 20px; fill: currentColor; }
.button { display: inline-block; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 12px; }
.button-primary { background: var(--button-blue); color: #fff; }
.button-sun { background: var(--sunshine); color: #111; }
.hero-phone { justify-self: center; }

/* Phone frames around real screenshots */
.phone { width: 260px; border-radius: 38px; padding: 10px; background: #0b1b2b; box-shadow: var(--shadow); }
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 600 / 1305; object-fit: cover; background: #e8f0f7; }
.hero .phone { width: 280px; }

/* Sections */
section { padding: 64px 0; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-intro { color: var(--ink-soft); max-width: 44em; margin: 0 0 32px; }

.features { display: grid; grid-template-columns: 1fr; gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--ink-soft); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--button-blue); }
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.gallery-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; justify-items: center; }
.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.gallery .phone { width: 230px; }
.gallery figcaption { margin-top: 14px; text-align: center; font-weight: 600; color: var(--ink-soft); max-width: 230px; }

.steps { display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--button-blue); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps h3 { margin: 0 0 4px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.note { background: var(--mist); border-radius: var(--radius); padding: 24px; }
.note h2 { margin-top: 0; }

.contact-card { background: linear-gradient(135deg, var(--brand-blue), var(--sky-blue)); color: #fff; border-radius: var(--radius); padding: 32px; }
.contact-card h2 { margin-top: 0; color: #fff; }
.contact-card p { margin: 0 0 18px; }
.contact-card .button { background: #fff; color: var(--ink); }

/* Legal pages */
.page-hero { background: linear-gradient(180deg, var(--brand-blue) 0%, var(--sky-blue) 100%); color: #fff; padding: 40px 0 36px; }
.page-hero h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.page-hero p { margin: 0; font-weight: 600; }
.legal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; margin: 32px auto 64px; max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: 10px; }
.legal th { background: var(--bg); }
.table-scroll { overflow-x: auto; }
.toc { background: var(--bg); border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d6e3; padding: 36px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0; }
.site-footer p { margin: 0 0 6px; }

@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1.2fr 0.8fr; padding-top: 72px; padding-bottom: 80px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .legal { padding: 40px 48px; }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 520px) {
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
  .hero-logo { width: 190px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Utilities */
.pt-0{padding-top:0!important}
.mb-0{margin-bottom:0!important}
