/* Friendly Focus marketing site — palette and outline language from src/palette.ts:
   the outline is dark maroon #60202c, never black. */

@font-face {
  font-family: 'Coming Soon';
  src: url('fonts/ComingSoon-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --sky: #c8f5f6;
  --sky2: #bfe4f2;
  --ink: #60202c;
  --ink-soft: #7a3340;
  --burgundy: #590f20;
  --sheet: #7c2d3a;
  --cream: #fff9df;
  --plate: #e4e0bd;
  --peach: #f8c5a8;
  --coral: #e4757a;
  --gold: #f3d88d;
  --gold-deep: #d9a94b;
  --mint: #bfe4c5;
  --lilac: #d8c9ef;
  --sand: #d8ad80;
  --night: #2e3d59;
  --night2: #1f2b42;
  --line: 3px;
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Coming Soon', 'Comic Sans MS', cursive;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.centered { text-align: center; margin-inline: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: 0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}
.kicker.gold { color: var(--gold); }

.body-copy { font-size: 1.06rem; max-width: 60ch; }
.body-copy em { color: var(--ink-soft); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 0.8rem 1.6rem;
  border-radius: 16px;
  border: var(--line) solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn-coral { background: var(--coral); color: var(--cream); }
.btn-gold { background: var(--gold); }
.btn-cream { background: var(--cream); }
.btn-small { font-size: 0.85rem; padding: 0.55rem 1.1rem; }

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--burgundy);
  color: var(--cream);
  border: var(--line) solid var(--ink);
  box-shadow: 0 4px 0 rgba(96, 32, 44, 0.45);
  border-radius: 16px;
  padding: 0.55rem 1.3rem;
  line-height: 1.15;
  letter-spacing: 0.06em;
}
.badge-soon small { font-size: 0.62rem; letter-spacing: 0.18em; }
.badge-soon span:last-child { font-size: 1.15rem; }

.linklike {
  font-family: inherit; font-size: inherit; color: var(--ink);
  background: none; border: none; text-decoration: underline wavy var(--coral);
  cursor: pointer; padding: 0;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  background:
    linear-gradient(rgba(200, 245, 246, 0.72), rgba(200, 245, 246, 0.42) 45%, rgba(191, 228, 242, 0.05) 78%),
    url('assets/bg/panorama.png') center bottom / cover no-repeat;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
}

.hero-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cloud {
  position: absolute;
  width: 220px; height: 64px;
  background: #fffdf2;
  border-radius: 60px;
  opacity: 0.9;
  filter: drop-shadow(0 3px 0 rgba(96, 32, 44, 0.08));
}
.cloud::before, .cloud::after {
  content: ''; position: absolute; background: inherit; border-radius: 50%;
}
.cloud::before { width: 90px; height: 90px; top: -42px; left: 34px; }
.cloud::after { width: 64px; height: 64px; top: -26px; right: 40px; }
.cloud-a { top: 12%; left: -240px; animation: drift 85s linear infinite; }
.cloud-b { top: 26%; left: -240px; transform: scale(0.7); animation: drift 118s linear 22s infinite; }
.cloud-c { top: 6%; left: -240px; transform: scale(0.5); animation: drift 140s linear 60s infinite; }
@keyframes drift { to { transform: translateX(calc(100vw + 480px)); } }

.topbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; width: 100%;
  margin: 0 auto; padding: 20px 24px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; font-size: 1.15rem; letter-spacing: 0.14em; }
.brand img { border-radius: 12px; border: var(--line) solid var(--ink); }
.brand.small { font-size: 0.9rem; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px;
  max-width: 1100px; width: 100%;
  margin: 0 auto;
  padding: 24px;
  flex: 1;
}

.hero-copy .lede { margin: 1.1rem 0 1.6rem; font-size: 1.08rem; max-width: 48ch; }
.hero-copy {
  background: rgba(255, 249, 223, 0.55);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.cta-row.centered { justify-content: center; }

.hero-art { position: relative; min-height: 420px; z-index: 2; margin-bottom: -84px; }
.hero-hotel {
  position: absolute; right: 4%; top: 0;
  width: min(330px, 58%);
  filter: drop-shadow(0 10px 0 rgba(96, 32, 44, 0.12));
}
.hero-casey {
  position: absolute; left: 0; bottom: -12px;
  width: min(300px, 56%);
  filter: drop-shadow(0 8px 0 rgba(96, 32, 44, 0.14));
}
.float-slow { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.coin {
  position: absolute;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, var(--gold-deep));
  border: var(--line) solid var(--ink);
  color: transparent;
  overflow: hidden;
  animation: bob 4.5s ease-in-out infinite;
}
.coin::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 16px; transform: translate(-50%, -54%);
  background: var(--ink);
  border-radius: 50% 50% 20% 20%;
  clip-path: polygon(20% 0, 80% 0, 80% 45%, 65% 45%, 65% 100%, 35% 100%, 35% 45%, 20% 45%);
}
.coin-1 { right: 2%; bottom: 26%; }
.coin-2 { left: 44%; top: 8%; transform: scale(0.72); animation-delay: 1.4s; }

.hero-hills { position: relative; z-index: 1; margin-top: auto; }
.hero-hills svg { display: block; width: 100%; height: 120px; }

/* ---------------------------------------------------------------- story */

.story {
  background: linear-gradient(#b8dcae, var(--cream) 26%);
  padding: 72px 0 40px;
  text-align: center;
}
.story .body-copy { margin: 0 auto; }

.beforeafter {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 44px; flex-wrap: wrap;
}
.beforeafter figure {
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(96, 32, 44, 0.18);
  padding: 16px 16px 10px;
  width: min(330px, 84vw);
  transition: transform 0.2s ease;
}
.beforeafter figure:hover { transform: rotate(-1.2deg) translateY(-4px); }
.beforeafter figure + .ba-arrow + figure:hover { transform: rotate(1.2deg) translateY(-4px); }
.beforeafter figcaption { font-size: 0.78rem; letter-spacing: 0.2em; padding: 8px 0 4px; }
.ba-arrow { font-size: 2.2rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- how */

.how { padding: 64px 0 80px; background: var(--cream); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .body-copy { margin-top: 0.8rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.step-card {
  position: relative;
  background: var(--plate);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(96, 32, 44, 0.18);
  padding: 26px 20px 22px;
  text-align: center;
}
.step-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; line-height: 34px;
  background: var(--coral); color: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  font-size: 1.2rem;
}
.step-card h3 { margin: 16px 0 8px; }
.step-card p { font-size: 0.95rem; }

.phone {
  background: var(--burgundy);
  border: var(--line) solid var(--ink);
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 8px 0 rgba(96, 32, 44, 0.22);
  max-width: 250px;
  margin: 0 auto;
}
.phone img { border-radius: 20px; }

/* ---------------------------------------------------------------- demo */

.demo {
  margin-top: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  background: var(--mint);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 rgba(96, 32, 44, 0.18);
  padding: 34px;
}
.demo-stage { position: relative; text-align: center; }
.demo-stage img { width: min(280px, 70%); margin: 0 auto; transition: transform 0.2s; }
.bubble {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  padding: 6px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.bubble::after {
  content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--ink);
}
.demo-panel { text-align: center; }
.demo-timer {
  font-size: 3.4rem;
  letter-spacing: 0.1em;
  margin: 0.5rem 0 1rem;
  color: var(--burgundy);
}
.demo-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- night */

.night {
  position: relative;
  background: linear-gradient(var(--night), var(--night2));
  color: var(--cream);
  padding: 90px 0;
  overflow: hidden;
}
.night h2 { color: var(--cream); }
.night .body-copy { color: #e9e4d2; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars::before, .stars::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 8% 22%, #fff9df 50%, transparent 51%),
    radial-gradient(2px 2px at 22% 8%, #fff9df 50%, transparent 51%),
    radial-gradient(3px 3px at 36% 30%, #f3d88d 50%, transparent 51%),
    radial-gradient(2px 2px at 52% 12%, #fff9df 50%, transparent 51%),
    radial-gradient(2px 2px at 68% 26%, #fff9df 50%, transparent 51%),
    radial-gradient(3px 3px at 82% 9%, #f3d88d 50%, transparent 51%),
    radial-gradient(2px 2px at 93% 32%, #fff9df 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite alternate;
}
.stars::after { transform: translateY(38%); animation-delay: 2s; opacity: 0.6; }
@keyframes twinkle { to { opacity: 0.35; } }

.night-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.ticks { list-style: none; margin-top: 1.3rem; }
.ticks li { padding-left: 2rem; position: relative; margin-bottom: 0.6rem; }
.ticks li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 1.35rem; height: 1.35rem; line-height: 1.35rem;
  text-align: center;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 0.8rem;
}

.shield-card {
  background: var(--cream);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35);
  text-align: center;
  padding: 34px 28px;
  max-width: 360px;
  justify-self: center;
  transform: rotate(1.5deg);
}
.shield-icon img { width: 150px; margin: 0 auto 10px; }
.shield-card h3 { margin-bottom: 8px; }
.shield-card p { font-size: 0.95rem; margin-bottom: 18px; }

/* ---------------------------------------------------------------- build */

.build { padding: 80px 0; background: linear-gradient(var(--cream), #f3ecd2); }
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  justify-items: center;
  margin-bottom: 40px;
}
.prop-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  gap: 26px;
  padding: 18px 10px 0;
}
.prop-row img {
  width: 76px;
  transition: transform 0.18s ease;
}
.prop-row img:hover { transform: translateY(-8px) rotate(-3deg); }

/* ---------------------------------------------------------------- meet */

.meet { padding: 80px 0; background: var(--sky); }
.meet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
}
.valet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 1.6rem;
}
.valet-grid figure {
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 4px 0 rgba(96, 32, 44, 0.16);
  padding: 12px 8px 8px;
  text-align: center;
}
.valet-grid figure { display: flex; flex-direction: column; justify-content: flex-end; }
.valet-grid img { width: auto; height: 84px; object-fit: contain; margin: 0 auto; }
.valet-grid figcaption { font-size: 0.62rem; letter-spacing: 0.14em; margin-top: 6px; }

.meet-art { display: grid; gap: 20px; justify-items: center; }
.dog-spot { position: relative; }
.dog-spot img { width: 240px; cursor: pointer; transition: transform 0.15s; }
.dog-spot img:active { transform: scale(0.96); }
.dog-bubble { top: -30px; }

/* ---------------------------------------------------------------- guestbook */

.guestbook {
  padding: 80px 0;
  background:
    repeating-linear-gradient(transparent, transparent 42px, rgba(96, 32, 44, 0.07) 42px, rgba(96, 32, 44, 0.07) 45px),
    var(--plate);
}
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.review {
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(96, 32, 44, 0.18);
  padding: 26px 22px;
  text-align: center;
}
.review img { width: 84px; margin: 0 auto 8px; }
.keys { letter-spacing: 0.2em; margin-bottom: 10px; filter: sepia(1) saturate(2.4) hue-rotate(-12deg); }
.review blockquote { font-size: 0.98rem; margin-bottom: 12px; }
.review cite { font-style: normal; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--ink-soft); }

/* ---------------------------------------------------------------- final */

.final {
  padding: 90px 0 110px;
  background: linear-gradient(#f3ecd2, var(--peach));
  text-align: center;
  overflow: hidden;
}
.final-inner { position: relative; }
.final-casey { width: 190px; margin: 0 auto 14px; }
.final h2 { margin-bottom: 0.9rem; }
.final .cta-row { margin-top: 1.6rem; }
.postcards { position: relative; height: 0; }
.pc {
  position: absolute; width: 150px;
  border-radius: 10px;
  box-shadow: 0 5px 0 rgba(96, 32, 44, 0.2);
}
.pc-a { left: 4%; top: -260px; transform: rotate(-9deg); }
.pc-b { right: 4%; top: -180px; transform: rotate(7deg); }

/* ---------------------------------------------------------------- footer */

.footer { background: var(--burgundy); color: var(--cream); padding: 34px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.footer .brand img { border-color: var(--cream); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--cream); font-size: 0.78rem; letter-spacing: 0.16em; text-decoration: none; }
.footer-links a:hover { text-decoration: underline wavy var(--gold); }
.colophon { font-size: 0.72rem; letter-spacing: 0.14em; opacity: 0.75; }

/* ---------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cloud, .float-slow, .coin, .stars::before, .stars::after { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-art { min-height: 340px; width: min(480px, 100%); margin: 0 auto -70px; }
  .steps, .build-grid, .reviews { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .build-grid { gap: 34px; margin-bottom: 34px; }
  .demo { grid-template-columns: 1fr; text-align: center; }
  .night-grid, .meet-grid { grid-template-columns: 1fr; }
  .shield-card { transform: none; }
  .pc { display: none; }
  .footer-inner { justify-content: center; text-align: center; }
}
