/* Perch marketing site - design handoff "Perch Website B" (editorial/cinematic) */
@font-face { font-family: 'Caprasimo'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/caprasimo-400.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/figtree-var.woff2') format('woff2'); }

:root {
  --ground: #f5ead8;
  --ink: #201e1d;
  --body: #645c50;
  --muted: #82796a;
  --faint: #a89a82;
  --hairline: #e3d5bb;
  --terra: #c67139;
  --terra-hover: #b05f2b;
  --terra-deep: #8a4a20;
  --terra-soft: #f3e0cd;
  --sage: #6e7c54;
  --sage-soft: #e9edda;
  --sage-num: #7a8a5e;
  --sage-ink: #3d472b;
  --sage-body: #55613e;
  --sage-faint: #7a8464;
  --dusk-1: #33291f;
  --dusk-2: #4a3323;
  --dusk-3: #7a4a28;
  --sun-1: #eec084;
  --sun-2: #d98d55;
  --wire-dark: #1f1710;
  --cream-text: #f7ecdb;
  --cream-sub: #d9c3a8;
  --cream-tag: #c9a184;
  --card: #fbf6ec;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: Figtree, sans-serif; overflow-x: hidden; }
h1, h2, h3 { font-family: Caprasimo, serif; font-weight: 400; }
a { color: var(--terra-deep); }
a:hover { color: var(--terra-hover); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
svg { display: block; }

.container { max-width: 1100px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 760px; }

@keyframes pb-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes pb-hop-fast { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-4px) rotate(-8deg); } }
@keyframes pb-fly { 0% { transform: translate(0,0) rotate(-14deg); } 50% { transform: translate(8px,-6px) rotate(-14deg); } 100% { transform: translate(0,0) rotate(-14deg); } }
@keyframes pb-glow { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hop, .hop-fast, .fly, .sun { animation: none !important; }
}

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-brand span { font-family: Caprasimo, serif; font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--body); }
.nav-links a:hover { color: var(--terra-deep); }
.btn-outline { color: var(--terra-deep) !important; border: 2px solid var(--terra); border-radius: 999px; padding: 9px 19px; font-weight: 700; }
.btn-outline:hover { background: var(--terra-soft); }

/* Dusk hero */
.hero-head { margin-top: 36px; }
.hero { position: relative; background: linear-gradient(180deg, var(--dusk-1) 0%, var(--dusk-2) 55%, var(--dusk-3) 100%); border-radius: 36px; overflow: hidden; padding: 76px 64px 0; }
.sun { position: absolute; left: 50%; bottom: -90px; transform: translateX(-50%); width: 340px; height: 340px; border-radius: 999px; background: radial-gradient(circle, var(--sun-1) 0%, var(--sun-2) 55%, rgba(217,141,85,0) 72%); animation: pb-glow 6s ease-in-out infinite; }
.hero-copy { position: relative; max-width: 560px; }
.hero-copy h1 { font-size: clamp(42px, 5.5vw, 62px); line-height: 1.06; margin: 0 0 18px; color: var(--cream-text); text-wrap: pretty; }
.hero-copy p { font-size: 18px; line-height: 1.55; color: var(--cream-sub); margin: 0 0 28px; max-width: 46ch; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 56px; }
.btn-cream { display: inline-flex; align-items: center; gap: 10px; background: var(--sun-1); color: var(--dusk-2); text-decoration: none; border-radius: 999px; padding: 15px 30px; font-size: 16px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.btn-cream:hover { background: #f3d8bd; color: var(--dusk-2); }
.hero-tag { font-size: 13.5px; font-weight: 600; color: var(--cream-tag); }
.hero-wire { position: relative; height: 150px; margin: 0 -64px; }
.hero-wire > svg { position: absolute; inset: 0; }
.hero-wire .bird { position: absolute; color: var(--wire-dark); }
.hop { animation: pb-hop 1.6s ease-in-out infinite; }
.hop-fast { display: inline-block; animation: pb-hop-fast 0.9s ease-in-out infinite; }
.fly { display: inline-block; animation: pb-fly 2.6s ease-in-out infinite; }
.flip { transform: scaleX(-1); }

/* Menu bar strip floating over the hero seam */
.menubar { max-width: 620px; margin: -26px auto 0; position: relative; height: 40px; background: rgba(251,247,240,0.97); border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; display: flex; align-items: center; justify-content: flex-end; padding: 0 16px; gap: 14px; font-weight: 500; font-size: 13.5px; color: #33302c; box-shadow: 0 14px 34px rgba(50,35,20,0.22); }
.menubar-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(0,0,0,0.05); border-radius: 8px; padding: 5px 10px; font-variant-numeric: tabular-nums; }
.menubar-pill .hop { display: inline-flex; animation-duration: 1.4s; }
.menubar-clock { color: var(--muted); }
.menubar-caption { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 14px; }

/* Electron band */
.electron-section { padding-top: 90px; }
.electron { background: var(--sage-soft); border-radius: 36px; padding: 56px 56px 50px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.electron h2 { font-size: clamp(34px, 4.5vw, 48px); margin: 0 0 14px; color: var(--sage-ink); text-wrap: pretty; }
.electron .lede { font-size: 17px; line-height: 1.6; color: var(--sage-body); margin: 0 0 10px; max-width: 50ch; text-wrap: pretty; }
.electron .sub { font-size: 14.5px; line-height: 1.6; color: var(--sage-faint); margin: 0; max-width: 50ch; }
.electron-viz { display: flex; align-items: flex-end; justify-content: center; gap: 44px; padding-bottom: 6px; }
.electron-viz figure { margin: 0; text-align: center; }
.electron-viz .col { height: 190px; display: flex; align-items: flex-end; justify-content: center; }
.electron-viz .circle { width: 190px; height: 190px; border-radius: 999px; background: #aab88c; }
.electron-viz .bird-col { padding-bottom: 2px; }
.electron-viz figcaption { margin-top: 10px; }
.electron-viz .name { font-weight: 700; font-size: 13px; color: var(--sage-ink); }
.electron-viz .size { font-size: 12px; color: var(--sage-faint); }
.electron-footnote { text-align: center; font-size: 12px; color: var(--faint); margin-top: 10px; }

/* Features: editorial numbered rows, no heading */
.features { padding: 64px 24px 40px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; }
.feature { padding: 18px 0; border-top: 1.5px solid var(--hairline); }
.feature-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 5px; }
.feature-num { font-family: Caprasimo, serif; font-size: 19px; }
.feature h3 { font-size: 20px; margin: 0; }
.feature p { font-size: 14.5px; line-height: 1.55; color: var(--body); margin: 0; padding-left: 34px; text-wrap: pretty; }

/* Bird states on a long open wire */
.states { padding-top: 30px; padding-bottom: 90px; }
.states-title { text-align: center; font-family: Caprasimo, serif; font-size: 26px; margin-bottom: 6px; }
.states-sub { text-align: center; font-size: 15px; color: var(--body); margin-bottom: 10px; }
.states-wire { position: relative; height: 130px; }
.states-wire > svg { position: absolute; inset: 0; }
.states-wire .state { position: absolute; text-align: center; }
.state-label { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.states-caption { text-align: center; font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 62ch; margin: 18px auto 0; text-wrap: pretty; }

/* Dropdown showcase: deep sage slab */
.showcase { background: var(--sage); padding: 76px 24px 84px; }
.showcase h2 { font-size: clamp(32px, 4vw, 42px); margin: 0 0 8px; color: #f2f0e4; }
.showcase .sub { font-size: 16px; color: #ccd4b4; margin: 0 0 36px; }
.showcase-cards { display: flex; gap: 30px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.mock-card { background: var(--card); border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.mock-cozy { transform: rotate(-1.2deg); width: 324px; padding: 14px; }
.mock-wire { transform: rotate(1.4deg); width: 340px; padding: 16px 14px 14px; }
.mock-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; padding: 0 4px; }
.mock-head .day { font-weight: 700; font-size: 15px; }
.mock-head .date { font-weight: 500; font-size: 12px; color: #9a8d80; }
.mock-head .glyph { margin-left: auto; color: var(--terra); display: inline-flex; }
.mock-hero { background: linear-gradient(135deg, #f7e3ce, #f3d8bd); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.mock-hero .line { display: flex; align-items: baseline; gap: 8px; }
.mock-hero .title { font-weight: 600; font-size: 14px; }
.mock-hero .time { font-weight: 500; font-size: 12px; color: #8a6a4a; font-variant-numeric: tabular-nums; }
.mock-join { margin-top: 10px; background: var(--terra); color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.mock-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; }
.mock-row .time { font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; width: 56px; flex: none; text-align: right; color: #9a8d80; white-space: nowrap; }
.mock-row .dot { width: 8px; height: 8px; border-radius: 4px; }
.mock-row .name { font-weight: 500; font-size: 13px; }
.mock-date-line { padding: 0 6px 4px; font-size: 12px; color: #9a8d80; }
.mock-wire-viz { position: relative; height: 56px; margin: 0 6px 12px; }
.mock-wire-viz .line { position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: #d8cbb6; border-radius: 1px; }
.mock-wire-viz .wb { position: absolute; }
.mock-wire-viz .axis { position: absolute; top: 42px; font-weight: 500; font-size: 9.5px; color: #c9c0b2; }
.mock-wire-viz .wb-time { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-weight: 600; font-size: 10px; color: var(--terra); white-space: nowrap; }
.mock-next { background: #f7e8d4; border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.mock-next .up { font-size: 11px; color: #9a7a5c; }
.mock-next .up b { font-weight: 700; color: var(--terra-hover); }
.mock-next .title { font-family: Caprasimo, serif; font-size: 16px; margin-top: 1px; }
.mock-next .meta { font-weight: 500; font-size: 11.5px; color: #9a8d80; font-variant-numeric: tabular-nums; }
.mock-next .join { margin-left: auto; background: var(--terra); color: #fff; border-radius: 999px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* FAQ */
.faq { padding-top: 84px; padding-bottom: 84px; }
.faq h2 { font-size: clamp(32px, 4vw, 42px); margin: 0 0 32px; }
.faq-item { border-top: 1.5px solid var(--hairline); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; cursor: pointer; padding: 20px 4px; font-family: Caprasimo, serif; font-size: 19px; font-weight: 400; color: var(--ink); text-align: left; }
.faq-q:hover { color: var(--terra-deep); }
.faq-chevron { color: var(--terra-hover); display: grid; place-items: center; flex: none; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.faq-item.open .faq-chevron { transform: rotate(45deg); }
.faq-a { margin: 0; padding: 0 4px 22px; font-size: 15.5px; line-height: 1.6; color: var(--body); max-width: 62ch; text-wrap: pretty; }
.faq-a[hidden] { display: none; }

/* CTA: return to the dusk */
.cta-section { padding-bottom: 90px; }
.cta { position: relative; background: linear-gradient(180deg, var(--dusk-2), var(--dusk-3)); border-radius: 36px; padding: 68px 32px 84px; overflow: hidden; text-align: center; }
.cta .sun { bottom: -110px; width: 300px; height: 300px; animation: none; }
.cta-wire { position: absolute; left: 0; right: 0; bottom: 26px; }
.cta .bird { position: absolute; color: var(--wire-dark); }
.cta h2 { position: relative; font-size: clamp(30px, 4vw, 40px); margin: 0 0 12px; color: var(--cream-text); }
.cta p { position: relative; font-size: 16px; color: var(--cream-sub); margin: 0 0 28px; }
.cta .btn-cream { position: relative; padding: 15px 34px; }

/* Footer */
.footer { border-top: 1.5px solid #ebddc5; padding: 28px 24px 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-credit { white-space: nowrap; }
.footer-brand a { color: var(--terra-deep); font-weight: 600; text-decoration: none; }
.footer-brand a:hover { color: var(--terra-hover); }
.footer-robot { display: inline; margin-left: 2px; color: var(--terra-deep); vertical-align: -0.25em; }
.footer-links { display: flex; align-items: center; gap: 20px; font-weight: 600; }
.footer-links a { color: var(--terra-deep); text-decoration: none; }
.footer-links a:hover { color: var(--terra-hover); }

/* Privacy page */
.privacy-nav-brand .badge { width: 42px; height: 42px; border-radius: 999px; background: var(--terra); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(46,43,37,0.22); }
.privacy-main { padding: 56px 24px 90px; }
.privacy-main h1 { font-size: 44px; margin: 0 0 10px; }
.privacy-updated { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 36px; }
.privacy-summary { background: #eef2e4; border-radius: 28px; padding: 24px 28px; margin-bottom: 40px; }
.privacy-summary p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--sage-ink); font-weight: 600; }
.privacy-sections { display: flex; flex-direction: column; gap: 32px; font-size: 16px; line-height: 1.65; color: var(--body); }
.privacy-sections h2 { font-size: 24px; color: var(--ink); margin: 0 0 10px; }
.privacy-sections p { margin: 0; }
.privacy-sections p + p, .privacy-sections ul + p { margin-top: 12px; }
.privacy-sections ul { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.privacy-sections b { color: var(--ink); font-weight: 600; }

/* 404 */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.notfound h1 { font-size: 40px; margin: 10px 0 0; }
.notfound p { color: var(--body); margin: 0 0 10px; }

/* Responsive */
@media (max-width: 720px) {
  .hero { padding: 44px 26px 0; }
  .hero-wire { margin: 0 -26px; }
  .electron { grid-template-columns: 1fr; padding: 36px 26px 34px; gap: 26px; }
  .electron-viz .circle { width: 130px; height: 130px; }
  .electron-viz .col { height: 130px; }
  .features-grid { grid-template-columns: 1fr; gap: 0; }
  .states-wire { height: 170px; }
  .states-wire .state { transform: translateX(-50%); }
  .states-wire .state:nth-of-type(1) { left: 10% !important; }
  .states-wire .state:nth-of-type(2) { left: 37% !important; }
  .states-wire .state:nth-of-type(3) { left: 63% !important; }
  .states-wire .state:nth-of-type(4) { left: 89% !important; }
  .state-label { font-size: 11.5px; white-space: nowrap; }
  .menubar { margin-left: 16px; margin-right: 16px; }
  .cta { padding: 48px 24px 76px; }
  .showcase { padding: 52px 18px 60px; }
  .footer-credit { display: block; }
}
