/* yipwhistle.com — "night field" (approved Website.dc.html, 2026-07-31).
   Palette = the app's Night theme, exact tokens from Palette.swift. */
:root {
  --ground: #12160F; --surface: #1C211A; --surface2: #232921;
  --ink: #F2F1EC; --ink-soft: #B4BAAF; --ink-faint: #7E857A;
  --line: #2C332A; --primary: #8FD6A8; --on-primary: #0B0F09;
  --primary-tint: #24352B; --signal: #E9B872; --deep: #0B0F09;
}
* { box-sizing: border-box; margin: 0; }
body { background: var(--deep); color: var(--ink); line-height: 1.55;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; height: auto; display: block; }

nav { max-width: 1080px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 14px; }
.mark { background: var(--primary); color: var(--on-primary); border-radius: 10px; padding: 7px 12px; font-weight: 800; font-size: 17px; }
.navname { font-weight: 700; }
nav .links { margin-left: auto; display: flex; gap: 20px; font-size: 14px; }
nav .links a { color: var(--ink-soft); }

.hero { max-width: 1080px; margin: 0 auto; padding: 48px 24px 36px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); letter-spacing: -0.03em; line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .sub { color: var(--ink-soft); font-size: 18px; max-width: 560px; margin: 18px auto 0; }
.wave { display: flex; gap: 5px; align-items: flex-end; justify-content: center; height: 90px; margin: 40px auto 10px; }
.wave i { width: 7px; height: 12%; border-radius: 4px; background: var(--primary); opacity: .85; animation: pip 2.8s ease-in-out infinite; }
.wave i:nth-child(3n) { background: var(--primary-tint); }
@keyframes pip { 0%,100% { height: 12%; } 12% { height: 90%; } 24% { height: 12%; }
  36% { height: 90%; } 48% { height: 12%; } 60% { height: 90%; }
  72% { height: 26%; } 86% { height: 96%; } }
@media (prefers-reduced-motion: reduce) {
  .wave i { animation: none; height: 55%; }
  .wave i:nth-child(2n) { height: 25%; }
  video[autoplay] { display: none; }
  .phone .fallback { display: block !important; }
}
.hz { color: var(--ink-faint); font-size: 12px; letter-spacing: .14em; }

.phone { width: min(260px, 72vw); border-radius: 36px; border: 6px solid #2a2f28; background: var(--ground); padding: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.5); flex-shrink: 0; margin: 0 auto; }
.phone .screen { border-radius: 24px; overflow: hidden; background: var(--ground); border: 1px solid var(--line); }
.phone .fallback { display: none; }

section { max-width: 1080px; margin: 0 auto; padding: 48px 24px; }
.kicker { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h2 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.02em; margin: 8px 0 10px; }
.lead { color: var(--ink-soft); max-width: 520px; }
.feature { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.feature.rev { flex-direction: row-reverse; }
.feature .copy { flex: 1 1 340px; }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; }
.feature li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; }
.feature li b { color: var(--ink); display: block; font-size: 15.5px; }

.honest { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.honest .inner { max-width: 800px; margin: 0 auto; padding: 52px 24px; text-align: center; }
.honest h2 { color: var(--primary); }
.honest p { color: var(--ink-soft); margin-top: 10px; }
.honest .no { color: var(--ink-faint); font-size: 13px; margin-top: 18px; letter-spacing: .08em; }

.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 26px; }
.route { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.route b { font-size: 15px; } .route p { color: var(--ink-faint); font-size: 12.5px; margin-top: 6px; }
.route .tag { color: var(--primary); font-size: 10.5px; letter-spacing: .12em; }
.shots { display: flex; gap: 18px; margin-top: 30px; overflow-x: auto; padding-bottom: 8px; justify-content: center; }
.shots .phone { width: 200px; }

.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 40px; margin-top: 26px; }
.faq > div { border-top: 1px solid var(--line); padding-top: 14px; }
.faq b { font-size: 15px; } .faq p { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }

.getit { text-align: center; padding: 56px 24px 64px; }
.getit .slot { display: inline-block; border: 2px dashed var(--line); color: var(--ink-faint); border-radius: 14px; padding: 16px 34px; font-size: 15px; }
footer { border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 12.5px; text-align: center; padding: 26px 24px; }
footer a { color: var(--ink-faint); }

/* legal pages */
.legal { max-width: 680px; margin: 0 auto; padding: 24px 24px 48px; }
.legal h1 { font-size: 30px; letter-spacing: -0.02em; }
.legal .tagline { color: var(--ink-soft); margin: 4px 0 20px; }
.legal h2 { font-size: 19px; margin-top: 30px; }
.legal p { margin: 8px 0; color: var(--ink-soft); }
.legal p b { color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 14px 0; }
.card.honesty { background: var(--primary-tint); border-color: var(--primary-tint); }
.card.honesty p, .card.honesty b { color: var(--ink); }

/* ---------- animated whistle demo (operator, 2026-07-31): the instrument
   with the breath bar sweeping up/down, pure CSS ---------- */
.whistle-demo { position: relative; aspect-ratio: 589/1280; background: var(--ground); overflow: hidden; }
.whistle-demo .guide { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); opacity: .05; }
.whistle-demo .hzread { position: absolute; top: 7%; right: 8%; color: var(--ink); font: 600 13px ui-monospace, Menlo, monospace; opacity: .9; }
.whistle-demo .hzread span { position: absolute; right: 0; top: 0; opacity: 0; animation: hzcycle 5.6s ease-in-out infinite; white-space: nowrap; }
.whistle-demo .hzread span:nth-child(2) { animation-delay: -2.8s; }
@keyframes hzcycle { 0%,45% { opacity: 1; } 50%,95% { opacity: 0; } 100% { opacity: 1; } }
.whistle-demo .bowl { position: absolute; left: 50%; top: 42%; width: 56%; aspect-ratio: 1.55; transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #9FDCB4, #5E9A79); border-radius: 12% 12% 50% 50% / 20% 20% 80% 80%;
  animation: bowlbreathe 2.8s ease-in-out infinite; }
.whistle-demo .bowl::before { content: ""; position: absolute; left: 50%; top: 38%; width: 20%; aspect-ratio: 1;
  transform: translate(-50%, -50%); background: var(--ground); border-radius: 50%; }
.whistle-demo .bowl::after { content: ""; position: absolute; left: 50%; top: -9%; width: 26%; height: 14%;
  transform: translateX(-50%); background: #9FDCB4; border-radius: 8px; }
@keyframes bowlbreathe { 0%,100% { transform: translate(-50%, -50%) scale(1); }
  30% { transform: translate(-50%, -50%) scale(1.035); } 60% { transform: translate(-50%, -50%) scale(1.01); } }
.whistle-demo .breath { position: absolute; left: 15%; right: 15%; height: 3px; border-radius: 2px;
  background: var(--signal); opacity: .9; animation: breathslide 5.6s ease-in-out infinite; box-shadow: 0 0 12px rgba(233,184,114,.45); }
@keyframes breathslide { 0% { top: 62%; } 25% { top: 24%; } 50% { top: 48%; } 75% { top: 18%; } 100% { top: 62%; } }
.whistle-demo .hint { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; color: var(--ink-faint); font-size: 11px; }
@media (prefers-reduced-motion: reduce) {
  .whistle-demo .breath, .whistle-demo .bowl, .whistle-demo .hzread span { animation: none; }
  .whistle-demo .hzread span:nth-child(2) { display: none; }
  .whistle-demo .hzread span:nth-child(1) { opacity: 1; }
}

/* mobile polish (operator, 2026-07-31) */
@media (max-width: 640px) {
  nav { padding: 16px 18px; gap: 10px; }
  nav .links { gap: 14px; font-size: 13px; }
  .hero { padding: 32px 18px 28px; }
  .hero .sub { font-size: 16px; }
  section { padding: 36px 18px; }
  .feature { gap: 28px; }
  .shots { justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  .shots .phone { width: 170px; }
  .getit { padding: 40px 18px 48px; }
}
