/* =========================================================
   Villager — site styles
   Palette pulled from the Villager brand poster
   ========================================================= */
:root {
  --navy: #0f2a3d;
  --ink: #16293a;
  --teal-900: #0b3a43;
  --teal-700: #145a63;
  --teal-600: #1f6f78;
  --teal-400: #2aa198;
  --green: #3aa57f;
  --purple: #7b52a8;
  --sun: #f6b56b;
  --sun-soft: #fde8cc;
  --cream: #fbf7f1;
  --white: #ffffff;
  --muted: #5b6b78;
  --line: #e6e1d8;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 42, 61, .12);
  --shadow-lg: 0 30px 60px rgba(15, 42, 61, .28);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
  --max: 1180px;
  --header-h: 76px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--teal-600); }
a:hover { color: var(--teal-900); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.container.narrow { max-width: 820px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600;
  color: var(--teal-600); margin-bottom: .6em;
}
.eyebrow.light { color: #8fd6cd; }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }

section { padding: clamp(64px, 9vw, 110px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem var(--font); padding: .85em 1.6em; border-radius: 999px;
  border: 0; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: 0 6px 16px rgba(20, 90, 99, .3); }
.btn-primary:hover { background: var(--teal-900); color: #fff; }
.btn-sm { padding: .55em 1.15em; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 247, 241, .86); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 42, 61, .06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.7rem; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.brand-tag { font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: var(--navy); margin-top: 5px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--teal-400); transform: scaleX(0); transition: transform .2s;
}
.site-nav a:not(.btn):hover::after, .site-nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 90px) 0 clamp(70px, 9vw, 120px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  /* Sunset gradient. To use a photo, add: url("../assets/img/hero.jpg") center/cover after the gradients */
  background:
    linear-gradient(90deg, rgba(251, 247, 241, .95) 0%, rgba(251, 247, 241, .75) 42%, rgba(251, 247, 241, 0) 75%),
    radial-gradient(ellipse 60% 55% at 62% 52%, #fff4dc 0%, rgba(255, 244, 220, 0) 70%),
    linear-gradient(180deg, #cfe0ea 0%, #f4dcb8 38%, #f1b87c 58%, #8a6a5a 78%, #3b3b46 100%);
}
.hero-bg::after {
  /* layered hills silhouette */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background:
    radial-gradient(120% 90% at 20% 100%, #2c3440 60%, transparent 61%),
    radial-gradient(90% 70% at 85% 100%, #3a3f4a 60%, transparent 61%),
    radial-gradient(140% 60% at 50% 110%, #4f4a52 60%, transparent 61%);
  opacity: .55;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }

.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; line-height: 1.02; margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 34ch; color: var(--navy); }

.brush-tag {
  display: inline-block; font-family: var(--script); font-size: 1.6rem; line-height: 1.05; color: #fff;
  background: var(--teal-600); padding: .35em 1em .4em; margin-bottom: 1.2em;
  border-radius: 40% 12px 50% 10px / 20px 30% 12px 40%; transform: rotate(-4deg);
  box-shadow: 0 6px 18px rgba(31, 111, 120, .35);
}

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8em; }
.store-badges.center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff;
  padding: 9px 20px 9px 14px; border-radius: 10px; border: 1px solid #a6a6a6;
  text-decoration: none; min-width: 170px; transition: transform .15s;
}
.store-badge:hover { color: #fff; transform: translateY(-2px); }
.store-badge svg { width: 28px; height: 28px; }
.store-badge span { white-space: nowrap; display: flex; flex-direction: column; font-size: 1.25rem; font-weight: 500; line-height: 1.05; }
.store-badge small { font-size: .68rem; font-weight: 400; letter-spacing: .02em; }

/* Phone mockup */
.phone {
  justify-self: center; width: min(320px, 80vw); aspect-ratio: 9 / 19;
  padding: 12px; border-radius: 48px; background: linear-gradient(145deg, #3b4450, #10151b);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #59636f; transform: rotate(2deg);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden; color: #fff;
  background:
    linear-gradient(180deg, rgba(11, 30, 40, .05) 0%, rgba(11, 30, 40, .35) 45%, rgba(11, 30, 40, .85) 100%),
    linear-gradient(180deg, #a9c3d3 0%, #f0d2a8 35%, #b58866 55%, #4a4046 80%, #2b2a30 100%);
}
.phone-notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 34%; height: 26px; border-radius: 20px; background: #0a0d10; }
.phone-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 16px 26px; text-align: center; }
.phone-content h3 { color: #fff; font-size: 1.3rem; margin-bottom: .4em; }
.phone-content > p { font-size: .8rem; line-height: 1.45; opacity: .92; margin-bottom: 1.2em; }
.phone-card { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px; border-radius: 14px; margin-bottom: 10px; }
.phone-card-dark { background: rgba(20, 90, 99, .92); }
.phone-card-light { background: #fff; color: var(--navy); }
.pc-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15); }
.phone-card-light .pc-icon { background: #eef2f4; }
.pc-icon svg { width: 18px; height: 18px; }
.pc-text { flex: 1; display: flex; flex-direction: column; }
.pc-text strong { font-size: .88rem; }
.pc-text small { font-size: .66rem; opacity: .8; line-height: 1.3; }
.pc-arrow { font-size: 1.1rem; }
.phone-login { font-size: .74rem; margin: 6px 0 0; }

/* ---------- Features ---------- */
.features { background: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.feature {
  padding: 34px 28px; border-radius: var(--radius); background: var(--cream);
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; }
.feature-icon {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(15, 42, 61, .18);
}
.feature-icon svg { width: 36px; height: 36px; }
.feature-icon.teal { background: radial-gradient(circle at 30% 30%, #2c8a93, var(--teal-700)); }
.feature-icon.green { background: radial-gradient(circle at 30% 30%, #56c197, #2b8f6c); }
.feature-icon.purple { background: radial-gradient(circle at 30% 30%, #9a74c6, #6a4296); }

/* ---------- Video ---------- */
.video-section { background: linear-gradient(180deg, var(--white) 0%, var(--sun-soft) 100%); text-align: center; }
.video-embed, .video-frame {
  position: relative; margin: 40px auto 0; max-width: 960px; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy);
}
.video-embed { cursor: pointer; }
.video-embed iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-image:
    linear-gradient(180deg, rgba(11, 58, 67, .1), rgba(11, 58, 67, .65)),
    linear-gradient(180deg, #b7cfdc 0%, #f3d4a4 40%, #d99a66 62%, #4c4550 100%);
  transition: transform .5s;
}
.video-embed:hover .video-poster { transform: scale(1.03); }
.video-play {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--teal-700);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s;
}
.video-play svg { width: 38px; height: 38px; margin-left: 5px; }
.video-embed:hover .video-play, .video-embed:focus-visible .video-play { transform: scale(1.08); }
.video-caption { position: absolute; left: 0; right: 0; bottom: 22px; color: #fff; font-family: var(--script); font-size: 1.8rem; }

/* ---------- How ---------- */
.how { background: var(--cream); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.how-card { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); position: relative; }
.how-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 18px;
  background: var(--teal-700); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.how-card p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin: 8px 0; font-size: .96rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Accordions (FAQ + legal) ---------- */
.accordion { margin-top: 36px; display: grid; gap: 12px; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.accordion details, .legal-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .2s; }
.accordion details[open], .legal-doc[open] { box-shadow: var(--shadow); }
.accordion summary, .legal-doc summary {
  position: relative; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 1.08rem; color: var(--navy);
}
.accordion summary::after, .legal-doc summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sun-soft); color: var(--teal-700); font-size: 1.3rem; transition: transform .25s;
}
.accordion details[open] summary::after, .legal-doc[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 24px 20px; color: var(--muted); }
.acc-body p { margin: 0; }

/* ---------- Help ---------- */
.help { background: var(--white); }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; align-items: start; }
.help-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.help-card summary { display: flex; gap: 16px; align-items: center; padding: 22px 24px; }
.help-card summary span:last-child { display: flex; flex-direction: column; }
.help-card summary strong { color: var(--navy); font-size: 1.1rem; }
.help-card summary small { color: var(--muted); }
.help-ic { font-size: 1.6rem; width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: #fff; border-radius: 14px; box-shadow: 0 4px 12px rgba(15, 42, 61, .08); }
.help-card ol, .help-card ul { margin: 0; padding: 0 24px 22px 48px; color: var(--muted); }
.help-card li { margin: 6px 0; }

/* ---------- Support ---------- */
.support { background: var(--teal-900); color: #d7e9ea; position: relative; overflow: hidden; }
.support::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 161, 152, .35), transparent 70%);
}
.support h2 { color: #fff; }
.support a { color: #8fd6cd; }
.support-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; position: relative; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { margin: 8px 0; }
.contact-list strong { color: #fff; }

.support-form { background: #fff; color: var(--ink); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.support-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.support-form input, .support-form select, .support-form textarea {
  font: 400 1rem var(--font); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--cream); color: var(--ink); width: 100%;
}
.support-form input:focus, .support-form select:focus, .support-form textarea:focus {
  outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(42, 161, 152, .2); background: #fff;
}
.support-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .9rem; color: var(--teal-700); min-height: 1.2em; }

/* ---------- Legal ---------- */
.legal { background: var(--cream); }
.legal-note { color: var(--muted); font-size: .95rem; }
.legal-doc { margin-top: 16px; }
.legal-body { padding: 0 24px 24px; }
.legal-body h4 { font-size: 1rem; margin: 1.2em 0 .3em; }
.legal-body p { color: var(--muted); font-size: .96rem; }

/* ---------- CTA ---------- */
.cta {
  background: var(--teal-900); color: #fff; text-align: center; padding: 70px 0 60px;
  border-top-left-radius: 50% 40px; border-top-right-radius: 50% 40px;
  margin-top: -40px; position: relative;
}
.script { font-family: var(--script); font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0; line-height: 1.1; }
.script::after {
  content: ""; display: block; width: 220px; height: 5px; margin: 10px auto 0; border-radius: 5px;
  background: linear-gradient(90deg, transparent, var(--teal-400) 20%, var(--teal-400) 80%, transparent); transform: rotate(-1.5deg);
}

/* ---------- Footer ---------- */
.site-footer { background: #082d34; color: #a9c7c9; padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-tag { letter-spacing: .3em; text-transform: uppercase; font-size: .82rem; margin: 0; color: #d7e9ea; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: #a9c7c9; text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.copyright { margin: 0; font-size: .88rem; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--teal-700); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .store-badges { justify-content: center; }
  .hero-bg { background:
      linear-gradient(180deg, rgba(251, 247, 241, .92) 0%, rgba(251, 247, 241, .7) 45%, rgba(251, 247, 241, 0) 70%),
      linear-gradient(180deg, #cfe0ea 0%, #f4dcb8 38%, #f1b87c 58%, #8a6a5a 78%, #3b3b46 100%); }
  .phone { transform: none; margin-top: 12px; }
  .feature-grid, .how-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .support-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 8px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 14px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-mark { width: 42px; }
  .brand-name { font-size: 1.4rem; }
  .brand-tag { font-size: .5rem; letter-spacing: .2em; }
  .help-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .support-form { padding: 22px; }
  .support-form .btn { justify-self: stretch; }
  .video-play { width: 64px; height: 64px; }
  .video-play svg { width: 28px; height: 28px; }
  .video-caption { font-size: 1.4rem; bottom: 12px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .store-badge { min-width: 0; flex: 1 1 150px; justify-content: center; padding-inline: 10px; }
  .store-badge span { font-size: 1.1rem; }
}
