/* The home page (index.html, home.js), on top of site.css. Built around what Huddle does: one
   sentence, and each person gets their part. Big type, full-width colour bands, and the app's own
   cards, faces and colours rather than generic marketing blocks. */

body.home { background: #F8F6FD; }
.home .top { background: rgba(248, 246, 253, 0.82); }

.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); }
.eyebrow.light { color: rgba(255, 255, 255, 0.7); }
.home h2 { font-size: clamp(44px, 6.4vw, 92px); line-height: 0.95; letter-spacing: -0.045em; }
.lead { margin: 22px 0 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--muted); max-width: 30ch; }
.pill.lg { min-height: 60px; padding: 0 30px; font-size: 18px; }
.center { text-align: center; }
.band { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.band-head { margin-bottom: clamp(40px, 6vw, 72px); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Things that rise into place as they scroll in (home.js adds .in). */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero: the sentence, and the family it goes to ---------- */
.hero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(70px, 9vw, 120px); text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(56px, 9.6vw, 148px); line-height: 0.9; letter-spacing: -0.05em; }
.hero h1 em { font-style: normal; color: var(--violet); }
.hero-sub { margin: 20px auto 0; max-width: 34ch; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.45; color: var(--muted); }

.say { max-width: 880px; margin: clamp(32px, 4vw, 48px) auto 0; text-align: left; }
.say-group { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 9px; margin: 0 0 12px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-soft); font-size: 15px; font-weight: 900; transition: opacity 0.3s; }
.say-group svg { width: 24px; height: 24px; }
.say-bar { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 12px 12px 12px 30px; border-radius: 42px; background: var(--surface); box-shadow: 0 24px 60px -24px rgba(30, 27, 46, 0.3), 0 0 0 1px var(--line); }
.say-text { flex: 1; min-width: 0; margin: 0; font-size: clamp(17px, 2vw, 25px); font-weight: 800; line-height: 1.35; min-height: 1.35em; }
.say-text:empty::before { content: 'Add something…'; color: var(--muted); }
.say-text span { border-radius: 8px; padding: 1px 3px; margin: 0 -3px; transition: background-color 0.35s; }
.say-text .caret { display: inline-block; width: 3px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--violet); border-radius: 2px; animation: blink 1s steps(1) infinite; padding: 0; }
@keyframes blink { 50% { opacity: 0; } }
.say-mic { width: 60px; height: 60px; flex: none; border-radius: 50%; background: var(--violet); display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(106, 77, 232, 0.7); }
.say-mic svg { width: 28px; height: 28px; }
.say-mic.listening { animation: pulse 1.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(106, 77, 232, 0.45); } 100% { box-shadow: 0 0 0 18px rgba(106, 77, 232, 0); } }

.family { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); max-width: 1120px; margin: clamp(30px, 3.5vw, 48px) auto 0; }
.person { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.person .face { width: clamp(64px, 7vw, 92px); height: clamp(64px, 7vw, 92px); border-radius: 50%; object-fit: cover; border: 4px solid #FFFFFF; box-shadow: var(--shadow-soft); transition: transform 0.35s var(--ease-out), box-shadow 0.35s; }
.person.got .face { transform: scale(1.08); box-shadow: 0 0 0 5px var(--glow), var(--shadow-soft); }
.person .name { font-size: 17px; font-weight: 900; }
.slot { position: relative; z-index: 2; width: 100%; height: 96px; }
.mini { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 20px; text-align: left; box-shadow: var(--shadow-card); transition: transform 0.6s var(--ease-out), opacity 0.4s; }
.mini .ico { width: 30px; height: 30px; flex: none; }
.mini .ico svg { width: 100%; height: 100%; }
.mini b { display: block; font-size: 15px; font-weight: 900; line-height: 1.15; }
.mini small { display: block; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.mini.leaving { opacity: 0; transform: scale(0.92); pointer-events: none; }
.mini.flying { transition: none; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(28px, 4vw, 48px); }

@media (max-width: 760px) {
  .family { grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 460px; }
  .person { flex-direction: row; align-items: center; gap: 12px; }
  .person .face { width: 52px; height: 52px; border-width: 3px; }
  .person .name { width: 52px; font-size: 15px; text-align: left; }
  .slot { height: 60px; flex: 1; }
  .say-bar { padding-left: 20px; min-height: 72px; border-radius: 36px; }
  .say-mic { width: 50px; height: 50px; }
}

/* ---------- The real app, on ink ---------- */
.ink { background: var(--ink); color: #FFFFFF; }
.ink h2 { color: #FFFFFF; }
.recording { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 48px); }
.phone { position: relative; width: clamp(280px, 26vw, 380px); aspect-ratio: 380 / 790; border-radius: 60px; background: #0E0C17; padding: 12px; box-shadow: 0 0 0 2px #3A3650, 0 60px 120px -40px rgba(106, 77, 232, 0.55); }
.screen { position: relative; height: 100%; border-radius: 48px; overflow: hidden; background: var(--ground); }
.app-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ground); }
.notes-col { display: flex; flex-direction: column; gap: clamp(90px, 14vw, 200px); }
.notes-col.left { align-items: flex-end; text-align: right; }
.note-hand { margin: 0; font-family: 'Caveat', cursive; font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; line-height: 1.05; display: flex; align-items: center; gap: 10px; }
.note-hand svg { width: clamp(70px, 8vw, 120px); height: 50px; flex: none; }
.n1 { color: #FFD9C7; } .n2 { color: #C9F0DA; } .n3 { color: #FFE9A8; } .n4 { color: #CFE0FF; }
@media (max-width: 900px) {
  .recording { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .notes-col { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
  .notes-col.left, .notes-col.right { align-items: center; text-align: center; }
  .notes-col.left { order: -1; }
  .note-hand svg { display: none; }
}

/* ---------- Swipe the stack, on white (the cards bring the colour) ---------- */
.paper { background: #FFFFFF; }
.tally { margin: 26px 0 0; font-size: 18px; font-weight: 900; color: var(--done); min-height: 1.4em; }
.stage { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 90px; }
.stage::before { content: ''; position: absolute; left: 50%; top: 55%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(106, 77, 232, 0.12), rgba(255, 232, 220, 0.25) 40%, transparent 68%); pointer-events: none; }
.stack { position: relative; width: min(460px, 100%); height: 330px; touch-action: pan-y; }
.big { position: absolute; left: 0; right: 0; bottom: 0; height: 230px; border-radius: 34px; padding: 26px 26px 22px; display: flex; flex-direction: column; box-shadow: 0 24px 50px -20px rgba(30, 27, 46, 0.35); cursor: grab; user-select: none; -webkit-user-select: none; transition: transform 0.45s var(--ease-out), opacity 0.4s; background: #FFFFFF; }
.big.dragging { transition: none; cursor: grabbing; }
.big .row { display: flex; align-items: center; gap: 14px; }
.big .ico { width: 60px; height: 60px; flex: none; }
.big b { font-size: 27px; font-weight: 900; line-height: 1.08; flex: 1; letter-spacing: -0.01em; }
.big .face { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #FFFFFF; object-fit: cover; }
.big .meta { margin-top: 10px; font-size: 16px; font-weight: 800; color: var(--muted); }
.big .meta .late { color: var(--late); }
.big .hint { margin-top: auto; font-size: 16px; font-weight: 900; color: var(--violet-deep); }
.big .stamp { position: absolute; top: 22px; padding: 6px 16px; border-radius: 14px; font-size: 22px; font-weight: 900; letter-spacing: 0.06em; border: 3px solid; opacity: 0; background: rgba(255, 255, 255, 0.8); }
.big .stamp.done { left: 50%; transform: translateX(-50%) rotate(-8deg); color: var(--done); border-color: var(--done); }
.big .stamp.nudge { left: 50%; transform: translateX(-50%) rotate(8deg); color: var(--violet-deep); border-color: var(--violet-deep); }
.tap-row { display: flex; gap: 12px; margin-top: 28px; }
.banner { position: absolute; top: 0; left: 50%; width: min(400px, 100%); transform: translate(-50%, -20px); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 26px; background: rgba(30, 27, 46, 0.92); color: #FFFFFF; transition: transform 0.45s var(--ease-out), opacity 0.35s; z-index: 5; pointer-events: none; }
.banner.show { transform: translate(-50%, 0); opacity: 1; }
.banner img { width: 40px; height: 40px; border-radius: 10px; }
.banner b { display: block; font-size: 15px; font-weight: 900; }
.banner span { font-size: 14px; opacity: 0.85; }
.banner time { margin-left: auto; align-self: flex-start; font-size: 12px; opacity: 0.6; }
.confetti { position: absolute; width: 10px; height: 14px; border-radius: 3px; pointer-events: none; z-index: 6; animation: fall 1.2s cubic-bezier(0.2, 0.7, 0.4, 1) forwards; }
@keyframes fall { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* ---------- Three kinds of groups, each with its recording ---------- */
.kinds-intro { padding: clamp(90px, 12vw, 160px) 0 clamp(40px, 5vw, 64px); }
.kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.kinds a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px 12px 14px; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 900; box-shadow: var(--shadow-soft); transition: transform 0.2s var(--ease-out); }
.kinds a:hover { transform: translateY(-2px); }
.kinds svg { width: 30px; height: 30px; }

.kind { overflow: hidden; }
.kind-family { background: #FFF0E8; }
.kind-friends { background: #E9F1FF; }
.kind-trips { background: var(--violet); color: #FFFFFF; }
.kind-trips h2 { color: #FFFFFF; }
.kind-trips .lead { color: rgba(255, 255, 255, 0.82); }
.kind-trips::before { content: ''; position: absolute; right: -12vw; top: -10vw; width: 46vw; height: 46vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 65%); pointer-events: none; }
.kind h2 { font-size: clamp(42px, 5.2vw, 78px); }
.kind .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.kind .eyebrow svg { width: 26px; height: 26px; }
.kind-family .eyebrow { color: #C2562B; }
.kind-friends .eyebrow { color: #2F56B8; }
.kind-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'copy phone' 'feats phone'; column-gap: clamp(40px, 7vw, 120px); align-items: center; }
.kind-grid.flip { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'phone copy' 'phone feats'; }
.kind-copy { grid-area: copy; align-self: end; }
.kind-grid .phone { grid-area: phone; }
.kind-grid .feats { grid-area: feats; align-self: start; }
.kind .phone { box-shadow: 0 0 0 2px rgba(30, 27, 46, 0.12), 0 60px 100px -40px rgba(30, 27, 46, 0.45); }
.kind-trips .phone { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25), 0 60px 100px -30px rgba(20, 10, 80, 0.6); }
.feats { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.feats li { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.72); }
.kind-trips .feats li { background: rgba(255, 255, 255, 0.12); }
.feats svg { width: 44px; height: 44px; flex: none; }
.feats span { font-size: 15.5px; font-weight: 700; color: var(--muted); line-height: 1.4; }
.kind-trips .feats svg { background: #FFFFFF; border-radius: 14px; padding: 6px; }
.kind-trips .feats span { color: rgba(255, 255, 255, 0.78); }
.feats b { display: block; font-size: 18px; font-weight: 900; color: var(--ink); margin-bottom: 1px; }
.kind-trips .feats b { color: #FFFFFF; }
@media (max-width: 900px) {
  .kind-grid, .kind-grid.flip { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'phone' 'feats'; justify-items: center; row-gap: 40px; }
  .kind-copy, .kind-grid .feats { width: 100%; }
  .kind-grid .feats { margin-top: 0; }
}

/* ---------- The little things, as the app's cards ---------- */
.rows { display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: 0 auto; }
.frow { display: flex; align-items: center; gap: 18px; padding: 20px 26px 20px 22px; border-radius: 28px; box-shadow: 0 10px 24px -14px rgba(30, 27, 46, 0.3); transition: transform 0.25s var(--ease-out), opacity 0.8s var(--ease-out); }
.frow:hover { transform: translateX(6px); }
.frow .ico { width: 54px; height: 54px; flex: none; }
.frow .ico svg { width: 100%; height: 100%; }
.frow div { flex: 1; min-width: 0; }
.frow b { display: block; font-size: clamp(19px, 2vw, 24px); font-weight: 900; letter-spacing: -0.01em; }
.frow small { display: block; font-size: 15.5px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.frow .tag { flex: none; font-size: 14px; font-weight: 900; color: var(--muted); background: rgba(255, 255, 255, 0.7); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 640px) { .frow .tag { display: none; } .frow { padding: 16px 18px; gap: 14px; } .frow .ico { width: 44px; height: 44px; } }

/* ---------- Closing ---------- */
.closing { padding: clamp(90px, 12vw, 170px) 0; text-align: center; background: radial-gradient(ellipse at 50% 120%, var(--violet-soft), transparent 60%); }
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.closing img { width: 108px; height: 108px; border-radius: 26px; box-shadow: 0 24px 50px -16px rgba(106, 77, 232, 0.6); }
.closing h2 { font-size: clamp(54px, 9vw, 140px); line-height: 0.9; letter-spacing: -0.05em; }
.closing h2 em { font-style: normal; color: var(--violet); }

/* ---------- The tour: the showcase video, tall, with its words beside it ---------- */
.tour { background: linear-gradient(180deg, #F8F6FD, var(--violet-soft)); }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 110px); align-items: center; }
.tour-frame { width: clamp(280px, 30vw, 420px); aspect-ratio: 9 / 16; border-radius: 40px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 10px #FFFFFF, 0 60px 120px -40px rgba(106, 77, 232, 0.6); }
.tour-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .tour-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .tour .lead { margin-inline: auto; } }

/* ---------- The problem: a group chat and a to-do form, side by side ---------- */
.problem { background: #EFEFF4; }
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: clamp(24px, 4vw, 56px); align-items: start; }
.chat, .form { border-radius: 34px; background: #FFFFFF; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.25); font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; }
.chat { padding: 0 0 18px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 0; padding: 16px 20px; background: #FAFAFC; border-bottom: 1px solid #EEE; }
.chat-head img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #FFF; object-fit: cover; margin-right: -10px; }
.chat-head b { margin-left: 20px; flex: 1; font-size: 17px; }
.chat-head .unread { background: #E5484D; color: #FFF; font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 999px; }
.msg { display: flex; align-items: flex-end; gap: 10px; margin: 12px 18px 0; }
.msg img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.msg span { font-size: 16px; padding: 10px 15px; border-radius: 20px; background: #EEEEF3; color: #111; }
.msg.me { justify-content: flex-end; }
.msg.me span { background: #2F7BF6; color: #FFF; }
.form { padding: 22px 24px; }
.form-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.form-head b { font-size: 20px; }
.form-head span { font-size: 14px; font-weight: 700; color: #E5484D; background: #F1F1F4; padding: 6px 12px; border-radius: 999px; }
.form p { margin: 10px 0 0; }
.form small { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
.form p span { display: block; font-size: 15px; color: #333; border: 1.5px solid #E2E2E8; border-radius: 12px; padding: 9px 12px; }
.form .form-verdict { margin-top: 16px; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 24px; color: #E5484D; text-align: center; }
.problem-answer { margin: clamp(40px, 6vw, 70px) 0 0; text-align: center; font-size: clamp(30px, 4vw, 56px); font-weight: 900; letter-spacing: -0.03em; color: var(--violet); }
@media (max-width: 760px) { .problem-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bring everyone in ---------- */
.invite { background: #E3F6EA; overflow: hidden; }
.invite h2 { font-size: clamp(42px, 5.2vw, 78px); }
.invite .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #2E7D57; }
.invite .eyebrow svg { width: 26px; height: 26px; }
.invite .phone { box-shadow: 0 0 0 2px rgba(30, 27, 46, 0.12), 0 60px 100px -40px rgba(30, 27, 46, 0.45); }
.feat-face { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; border: 3px solid #FFF; }

/* ---------- Why families love Huddle: moments, as their notifications ---------- */
.love { background: #FFF6F2; }
.love h2 em { font-style: normal; color: var(--violet); }
.moments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); max-width: 1040px; margin: 0 auto; }
.moment { padding: 22px; border-radius: 32px; background: #FFFFFF; box-shadow: 0 20px 50px -26px rgba(30, 27, 46, 0.3); }
.moment .note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; background: #F5F4FA; font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; }
.moment .note .app { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.moment .note div { flex: 1; min-width: 0; }
.moment .note small { display: block; font-size: 11px; color: #8A8A93; letter-spacing: 0.04em; }
.moment .note b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moment .note span { display: block; font-size: 13.5px; color: #555; }
.moment .note .who { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #FFF; }
.moment h3 { margin: 18px 0 4px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 900; letter-spacing: -0.02em; }
.moment p { margin: 0; font-size: 16px; font-weight: 700; color: var(--muted); }
@media (max-width: 760px) { .moments { grid-template-columns: minmax(0, 1fr); } }
