/* Landing page — "polished product": layered depth, frosted cards, small live-looking UI previews */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.wrap.narrow { margin-inline: auto; }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-scrolled { background: var(--color-bg-glass); backdrop-filter: saturate(1.6) blur(14px); border-bottom-color: var(--color-border-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--color-body); text-decoration: none; font-weight: 500; font-size: 0.93rem; padding: 8px 14px; border-radius: 10px; transition: color .15s var(--ease), background .15s var(--ease); }
.site-nav a:hover { color: var(--color-ink); background: var(--color-hover); }
.header-cta { display: flex; gap: 6px; align-items: center; }
@media (max-width: 900px) { .site-nav { display: none; } }
@media (max-width: 420px) { .header-cta .btn-ghost { display: none; } }

/* ─── Shared bits ─── */
.glass {
  background: var(--color-glass-strong);
  backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
  border: 1px solid var(--color-glass-edge);
  box-shadow: var(--shadow-lg);
}
.avatars { display: inline-flex; }
.av {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font-size: 0.74rem; font-weight: 700; border: 2px solid var(--color-surface);
}
.avatars .av + .av { margin-left: -9px; }
.av-1 { background: var(--color-off); color: var(--color-off-deep); }
.av-2 { background: var(--color-pto); color: var(--color-pto-deep); }
.av-3 { background: var(--color-holiday); color: var(--color-holiday-deep); }
.av-4 { background: var(--color-approved); color: var(--color-approved-deep); }
.av-5 { background: var(--color-ink); color: var(--color-on-ink); }
.av-add { background: var(--color-surface); color: var(--color-muted); box-shadow: inset 0 0 0 1.5px var(--color-border-strong); border-style: solid; }

/* Landing buttons are pills, like the reference layout */
.btn-pill, .site-header .btn, .hero .btn, .section .btn, .final .btn, .mobile-cta .btn { border-radius: 999px; }
/* Serif wordmark on the landing page */
.site-header .wordmark, .site-footer .wordmark { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; font-size: 1.7rem; }

/* ─── Hero ─── */
.hero {
  position: relative; overflow: hidden;
  margin-top: -68px; padding-top: calc(68px + clamp(28px, 4vw, 56px)); padding-bottom: clamp(40px, 5vw, 72px);
  background: radial-gradient(760px 520px at -6% 8%, var(--color-sea), transparent 62%), var(--color-bg);
}
.hero-grid { position: static; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; min-height: clamp(540px, 46vw, 680px); }
.hero-copy { position: relative; z-index: 2; max-width: 560px; animation: rise .8s var(--ease) both; }
.hero h1 { font-size: clamp(2.6rem, 4.7vw, 4.4rem); line-height: 1.04; letter-spacing: -0.012em; margin-bottom: 0.32em; }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.34rem); color: var(--color-body); max-width: 30em; line-height: 1.5; }
.lede-sm { font-size: 1.08rem; color: var(--color-body); line-height: 1.6; }
.hero-ctas { margin-top: 30px; gap: 14px 22px; }
.hero-ctas .btn { min-width: 210px; }
.hero-link { color: var(--color-ink); font-weight: 600; text-decoration: none; }
.hero-link:hover { color: var(--color-link); }
.hero-features { list-style: none; padding: 0; margin: clamp(36px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px clamp(24px, 3.5vw, 48px); }
.hero-features li { display: grid; gap: 8px; justify-items: start; white-space: nowrap; font-size: 0.86rem; font-weight: 600; color: var(--color-body); line-height: 1.3; }
.hero-features svg { width: 30px; height: 30px; fill: none; stroke: var(--color-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* The photo bleeds off the right edge of the window and fades softly into the page on its left */
.hero-art { position: static; }
.hero-photo {
  position: absolute; top: 0; right: 0; bottom: clamp(24px, 4vw, 56px); width: 56vw; z-index: 0;
  border-bottom-left-radius: 56px; overflow: hidden; background: var(--color-sea);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%); mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
  animation: fade 1.2s var(--ease) both;
}
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 58% 38%; }
.hero-scribble {
  position: absolute; z-index: 2; top: calc(68px + clamp(36px, 5vw, 80px)); right: calc(56vw - 250px);
  font-size: clamp(1.6rem, 2.2vw, 2.15rem); transform: rotate(-7deg);
  text-shadow: 0 0 18px var(--color-bg), 0 0 6px var(--color-bg);
  animation: rise .9s var(--ease) .5s both;
}
.hero-polaroid {
  position: absolute; z-index: 2; right: clamp(28px, 7vw, 140px); bottom: clamp(4px, 1.5vw, 20px); width: clamp(210px, 19vw, 280px);
  transform: rotate(5deg); animation: drop-in .9s var(--ease-spring) .7s both;
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-18px) rotate(11deg) scale(.95); } to { opacity: 1; transform: rotate(5deg); } }

@media (max-width: 960px) {
  .hero { padding-bottom: 24px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { position: relative; margin: 8px calc(-1 * var(--gutter)) 0; }
  .hero-photo { position: relative; inset: auto; width: auto; height: clamp(320px, 70vw, 520px); border-radius: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%); mask-image: linear-gradient(180deg, transparent 0%, #000 18%); }
  .hero-scribble { top: 4px; right: auto; left: var(--gutter); font-size: 1.5rem; }
  .hero-polaroid { right: var(--gutter); bottom: -34px; width: 170px; }
  .hero-polaroid figcaption { font-size: 0.86rem; }
  .hero-features { margin-top: 32px; }
}
@media (max-width: 560px) {
  .hero-ctas .btn { flex: 1 1 100%; min-width: 0; }
  .hero-link { margin-inline: auto; }
  .hero-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .hero-features li { white-space: normal; }
}

/* ─── Sections ─── */
.section { padding-block: clamp(48px, 6vw, 92px); }
.section-tint { background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-canvas) 14%, var(--color-canvas) 86%, var(--color-bg) 100%); }
.section h2, .section-title { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.06; }
.section-head { max-width: 640px; }
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .btn { margin-top: 10px; }

/* Group chat over photo */
.photo-chat { position: relative; padding: 0 0 80px 56px; }
.photo-chat-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); background: var(--color-approved); }
.chat-card { position: absolute; left: 0; bottom: 0; width: min(340px, 80%); border-radius: 22px; padding: 14px 14px 16px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 12px; margin-bottom: 12px; border-bottom: 1px solid var(--color-border-soft); font-size: 0.9rem; line-height: 1.25; }
.chat-head strong { display: block; }
.chat-head .av { width: 28px; height: 28px; }
.chat-sub { display: block; font-size: 0.76rem; color: var(--color-muted); }
.chat { display: grid; gap: 6px; }
.bubble { margin: 0; max-width: 86%; padding: 8px 13px; border-radius: 18px; font-size: 0.9rem; line-height: 1.35; }
.bubble .who { display: block; font-size: 0.7rem; font-weight: 700; color: var(--color-muted); margin-bottom: 1px; }
.bubble.them { background: var(--color-bubble); color: var(--color-ink); border-bottom-left-radius: 6px; justify-self: start; }
.bubble.you { background: var(--color-primary); color: var(--color-on-primary); border-bottom-right-radius: 6px; justify-self: end; margin-top: 4px; }
.js-reveal .bubble[data-reveal] { transform: translateY(10px) scale(.96); transform-origin: left bottom; transition-duration: .5s; }
.js-reveal .bubble.you[data-reveal] { transform-origin: right bottom; }
@media (max-width: 560px) {
  .photo-chat { padding: 0; }
  .chat-card { position: relative; width: auto; margin: -64px 12px 0; }
}

/* ─── Bento ─── */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.tile {
  position: relative; display: flex; flex-direction: column; padding: 14px 14px 28px; border-radius: 26px;
  background: var(--color-surface); box-shadow: var(--shadow-sm);
}
.tile > :not(.tile-visual) { padding-inline: 14px; }
.tile-wide { grid-column: span 2; order: 1; }
.tile-full { order: 2; grid-column: 1 / -1; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; align-items: center; padding: 14px; }
.tile-full .tile-copy { padding: 18px 14px 18px 22px; }
.tile-full .tile-visual { margin: 0; }
.tile h3 { font-size: 1.3rem; margin: 4px 0 6px; }
.tile p { color: var(--color-body); margin: 0; max-width: 34em; }
.tile-num { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; color: var(--color-link); }
.tile-visual {
  position: relative; overflow: hidden; border-radius: 18px; margin-bottom: 22px; min-height: 210px; padding: 22px;
  background: radial-gradient(420px 220px at 85% 0%, var(--color-sea), transparent 70%), var(--color-surface-2);
  box-shadow: inset 0 0 0 1px var(--color-border-soft);
}
.tile-visual-center { display: grid; place-items: center; align-content: center; gap: 18px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide, .tile-full { grid-column: auto; }
  .tile-full { grid-template-columns: 1fr; }
  .tile-full .tile-copy { order: 2; padding: 6px 14px 14px; }
}

/* availability overlap visual */
.avail { display: grid; grid-template-columns: 34px repeat(14, minmax(0, 1fr)); grid-auto-rows: 34px; row-gap: 8px; column-gap: 0; align-items: center; position: relative; }
.avail .dl { font-size: 0.68rem; font-weight: 700; color: var(--color-muted); text-align: center; grid-row: 1; }
.avail .dl.we { color: var(--color-off-deep); }
.avail .av { grid-column: 1; width: 28px; height: 28px; z-index: 1; }
.avail .bar {
  height: 14px; border-radius: 999px; z-index: 1; margin-inline: 3px;
  background: linear-gradient(90deg, var(--color-off), var(--color-off-deep));
  transform-origin: left; transition: transform .9s var(--ease); transition-delay: calc(200ms + var(--i) * 120ms);
}
.js-reveal .tile:not(.is-in) .avail .bar { transform: scaleX(0); }
.avail .band {
  align-self: stretch; margin: -4px 0; border-radius: 12px; z-index: 0; position: relative;
  background: var(--color-surface); box-shadow: 0 0 0 1.5px var(--color-primary), 0 10px 26px -10px var(--color-primary-glow);
}
.avail .band em {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap;
  font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--color-on-primary);
  background: var(--color-primary); padding: 3px 10px; border-radius: 999px;
}
.avatars-lg .av { width: 46px; height: 46px; font-size: 0.95rem; border-width: 3px; }
.avatars-lg .av + .av { margin-left: -12px; }
.link-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--color-surface); box-shadow: var(--shadow-xs); font-size: 0.84rem; color: var(--color-body); max-width: 100%; }
.link-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-pill b { background: var(--color-ink); color: var(--color-on-ink); font-size: 0.76rem; padding: 5px 10px; border-radius: 8px; }

/* votes visual */
.votes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.votes li { display: grid; grid-template-columns: minmax(150px, 0.9fr) 1.3fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--color-surface); box-shadow: var(--shadow-xs); }
.votes li.is-top { box-shadow: 0 0 0 1.5px var(--color-primary), 0 10px 24px -12px var(--color-primary-glow); }
.vote-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 0.92rem; }
.vote-track { height: 10px; border-radius: 999px; background: var(--color-surface-2); overflow: hidden; }
.vote-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--color-primary-top), var(--color-primary)); transition: width 1s var(--ease) .3s; }
.js-reveal .tile:not(.is-in) .vote-track i { width: 0; }
.vote-n { font-size: 0.82rem; font-weight: 600; color: var(--color-muted); }
@media (max-width: 560px) { .votes li { grid-template-columns: 1fr auto; } .vote-track { grid-column: 1 / -1; grid-row: 2; } }

/* ─── PTO plan card ─── */
.plan-card, .privacy-card { position: relative; background: var(--color-surface); border-radius: 26px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg); }
.plan-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px 240px at 100% 0%, var(--color-sea), transparent 65%);
}
.plan-card > * { position: relative; }
.plan-big { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; margin: 18px 0 20px; letter-spacing: -0.025em; }
.plan-num { color: var(--color-link); white-space: nowrap; font-variant-numeric: tabular-nums; }
.yearbar { position: relative; height: 12px; border-radius: 999px; background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-border-soft); }
.yearbar i { position: absolute; top: -3px; width: 12px; height: 18px; border-radius: 6px; background: var(--color-primary); box-shadow: 0 0 0 3px var(--color-surface), 0 4px 10px -2px var(--color-primary-glow); }
.year-months { display: flex; justify-content: space-between; margin: 8px 0 18px; font-size: 0.72rem; font-weight: 600; color: var(--color-muted); }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--color-border-soft); }
.plan-list li > span:first-child { display: grid; line-height: 1.35; }
.plan-pill { flex: none; font-size: 0.8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--color-off); color: var(--color-off-deep); }
.plan-note { margin: 12px 0 0; }

/* ─── Privacy ─── */
.privacy-card { box-shadow: var(--shadow); }
.privacy-sub { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--color-border-soft); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); }
.privacy-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.privacy-list li { padding-left: 34px; position: relative; line-height: 1.45; }
.privacy-list li::before { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; }
.privacy-list .yes { font-weight: 600; }
.privacy-list .yes::before { content: '✓'; background: var(--color-off); color: var(--color-off-deep); }
.privacy-list .no { color: var(--color-muted); }
.privacy-list .no::before { content: '✕'; background: var(--color-approved); color: var(--color-approved-deep); }

/* ─── FAQ ─── */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-intro { position: sticky; top: 100px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-intro { position: static; } }
.faq { background: var(--color-surface); border-radius: 24px; box-shadow: var(--shadow-sm); padding: 6px 26px; }
.faq details { border-bottom: 1px solid var(--color-border-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 1.02rem; transition: color .15s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--color-link); }
.faq summary::after {
  content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 500; color: var(--color-ink); background: var(--color-surface-2);
  transition: transform .3s var(--ease), background .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--color-sea); }
.faq details p { color: var(--color-body); margin: -4px 0 20px; max-width: 46em; animation: rise .35s var(--ease) both; }

/* ─── Final CTA ─── */
.final-wrap { padding-block: 0 clamp(56px, 7vw, 96px); }
.final {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; text-align: center;
  padding: clamp(80px, 11vw, 150px) var(--gutter); background: var(--color-navy); box-shadow: var(--shadow-lg);
}
.final-bg, .final-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.final-bg img { object-fit: cover; object-position: 50% 45%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.final.is-in .final-bg img { transform: scale(1); }
.final::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--color-photo-scrim-soft) 0%, var(--color-photo-scrim) 100%); }
.final-title { color: var(--color-on-navy); font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 12px; }
.final-sub { color: var(--color-on-navy); opacity: 0.9; font-size: 1.08rem; margin-bottom: 30px; }

/* ─── Footer ─── */
.site-footer { padding-block: 44px calc(110px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--color-border-soft); background: var(--color-canvas); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-tag { margin: 10px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-nav a { color: var(--color-body); text-decoration: none; }
.footer-nav a:hover { color: var(--color-ink); }
.footer-fine { margin-top: 28px; }
@media (min-width: 761px) { .site-footer { padding-bottom: 40px; } }

.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, transparent 0%, var(--color-bg) 40%);
  }
}

/* ─── Scrapbook accents in the lower sections ─── */
.section-scribble { font-size: clamp(1.4rem, 2vw, 1.75rem); color: var(--color-link); margin: 0 0 6px; transform: rotate(-3deg); transform-origin: left; display: inline-block; }
.plan-scribble { position: absolute; top: -78px; right: -6px; margin: 0; font-size: clamp(1.35rem, 1.9vw, 1.7rem); transform: rotate(6deg); }
.plan-card > .plan-arrow { position: absolute; width: 74px; height: 56px; top: -40px; right: 136px; }
.privacy-polaroid { width: min(260px, 70%); margin-top: 34px; transform: rotate(-4deg); }
.privacy-polaroid img { aspect-ratio: 4 / 3; }
.privacy-heart { width: 34px; height: 30px; right: -16px; bottom: 22px; transform: rotate(12deg); }
.final-scribble { color: var(--color-on-navy); font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 0 0 6px; transform: rotate(-4deg); }
@media (max-width: 900px) {
  .plan-card { margin-top: 64px; }
  .plan-scribble { right: 10px; }
  .plan-card > .plan-arrow { right: 150px; }
}
