/* Hype Buddy website. Colours and type follow the brand kit (BRAND.md). */
@font-face { font-family: Outfit; src: url(fonts/outfit-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --violet: #6A4BD9;
  --violet-dark: #5638C4;
  --lilac: #EFE9F8;
  --ink: #1E1433;
  --muted: #6C6188;
  --linen: #F7F4F0;
  --white: #FFFFFF;
  --line: #E7E0EE;
  --night: #120B24;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(30, 20, 51, .04), 0 12px 32px rgba(30, 20, 51, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: Outfit, system-ui, sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--linen); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--violet); }
h1, h2, h3 { line-height: 1.15; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--violet); color: var(--white); font: 600 1rem/1 Outfit, sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--violet-dark); transform: translateY(-1px); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--white); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: ' →'; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(247, 244, 240, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo img { width: 150px; height: auto; }
.site-header nav { display: flex; gap: 28px; margin-left: auto; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--violet); }
@media (max-width: 760px) { .site-header nav { display: none; } .header-row { justify-content: space-between; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--white); }
.eyebrow { color: var(--violet); font-weight: 600; font-size: .95rem; margin-bottom: .6em; }
.section-lead, .lead { color: var(--muted); font-size: 1.15rem; max-width: 34em; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); background: radial-gradient(60% 70% at 85% 40%, #ECE4FB 0%, rgba(236, 228, 251, 0) 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 500; }
.trust li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1FA67A; margin-right: 8px; vertical-align: 2px; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* Phones */
.phone { width: min(330px, 100%); aspect-ratio: 9 / 18.6; margin-inline: auto; border-radius: 48px; padding: 14px; background: var(--ink); box-shadow: 0 30px 60px rgba(30, 20, 51, .22); position: relative; }
.phone-lock { background: linear-gradient(165deg, #4A2F9E 0%, #6A4BD9 45%, #E7A4C8 100%); border: 10px solid var(--ink); padding: 24px 12px; overflow: hidden; }
.lock-time { display: flex; flex-direction: column; align-items: center; color: var(--white); margin: 18px 0 26px; }
.lock-day { font-weight: 500; opacity: .9; }
.lock-clock { font-size: 4.6rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note { display: grid; grid-template-columns: 34px 1fr 44px; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 20px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(16px); animation: drop .5s cubic-bezier(.2, .9, .3, 1.2); }
.note-icon { width: 34px; height: 34px; border-radius: 9px; }
.note-text { min-width: 0; font-size: .83rem; line-height: 1.3; }
.note-text p { margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-top { display: flex; justify-content: space-between; gap: 8px; }
.note-when { color: var(--muted); font-size: .75rem; }
.note-pic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; }
.note-pic img { width: 38px; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.97); } }

/* Meet the buddies */
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 40px; }
.buddy-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pick { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left; padding: 12px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--white); font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.pick img { grid-row: span 2; width: 64px; height: 64px; padding: 6px; border-radius: 16px; background: var(--tint); }
.pick-name { font-weight: 600; align-self: end; }
.pick-tag { color: var(--muted); font-size: .9rem; align-self: start; }
.pick:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pick[aria-checked="true"] { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(106, 75, 217, .15); }
.try-left { display: grid; gap: 24px; }
.try-side { display: flex; justify-content: center; }
.buddy-bio { background: var(--white); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.buddy-bio p:last-child { margin: 0; color: var(--muted); }
.phone-feed { width: 270px; background: var(--ink); }
.feed-card { height: 100%; border-radius: 36px; background: var(--tint, #FFF4D6); display: flex; flex-direction: column; align-items: center; padding: 34px 20px 24px; text-align: center; transition: background .3s; }
.feed-avatar { width: 104px; height: 104px; border-radius: 50%; background: rgba(255, 255, 255, .7); display: grid; place-items: center; }
.feed-name { color: var(--violet); font-weight: 500; margin: 10px 0 0; }
.feed-line { flex: 1; display: grid; place-items: center; font-size: 1.45rem; font-weight: 600; line-height: 1.25; margin: 0; padding: 8px 4px; }
.feed-btn { width: 100%; }
.buddy-bio h3 { font-size: 1.4rem; margin-bottom: .1em; }
.bio-tag { color: var(--violet); font-weight: 500; }
@media (max-width: 1000px) { .try-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .buddy-picker { grid-template-columns: 1fr 1fr; } .pick { grid-template-columns: 1fr; justify-items: center; text-align: center; } .pick img { grid-row: auto; } .pick-tag { display: none; } }

/* How it works */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--linen); border-radius: var(--radius); padding: 28px; }
.steps p { color: var(--muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--violet); color: var(--white); font-weight: 600; margin-bottom: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Screenshots and features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.features article { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.features p { color: var(--muted); margin: 0; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band { display: flex; gap: 32px; align-items: center; background: var(--night); color: #F5F1E8; border-radius: 32px; padding: clamp(28px, 5vw, 56px); }
.privacy-band img { flex: 0 0 auto; filter: brightness(1.15); }
.privacy-band p { color: #B3A9CC; max-width: 38em; }
.privacy-band .text-link { color: #C4B5FD; }
@media (max-width: 560px) { .privacy-band { flex-direction: column; align-items: flex-start; } }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.plan { border-radius: var(--radius); padding: 32px; background: var(--linen); }
.plan-premium { background: linear-gradient(160deg, #F1EBFF, #FBF2F7); box-shadow: inset 0 0 0 1.5px #D9CCFA; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.fine { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq-short, .faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--violet); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '−'; }
details p, details ul { color: var(--muted); margin: 12px 0 0; }

/* Final call to action */
.final-cta { text-align: center; }
.final-buddies { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.face { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--linen); }
.face img { width: 52px; }

/* Support page */
.page-head { padding: clamp(40px, 6vw, 72px) 0 8px; }
.faq-group { margin-top: 40px; }
.faq-group h2 { font-size: 1.4rem; }
.contact-card { margin: 56px 0 clamp(64px, 9vw, 112px); background: var(--white); border-radius: 32px; padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow); max-width: 760px; }
.contact-card .email { font-size: 1.3rem; font-weight: 600; }

/* Legal pages */
.legal { max-width: 760px; padding: clamp(40px, 6vw, 72px) 0 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal li { margin-bottom: .4em; }
.draft-banner { background: #FFF4D6; border-radius: 14px; padding: 12px 16px; font-weight: 500; }
mark.todo { background: #FFE7A8; padding: 0 4px; border-radius: 4px; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin: 12px 0 18px; }
.site-footer h2 { font-size: 1rem; margin-bottom: 12px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--violet); }
.footer-contact p { color: var(--muted); }
.footer-contact .email { font-weight: 600; font-size: 1.05rem; word-break: break-all; }
.footer-small { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; color: var(--muted); font-size: .88rem; }
.footer-small p { margin: 0 0 6px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.contact-note { margin-top: 16px; }
[id] { scroll-margin-top: 88px; }
.not-found { min-height: 55vh; padding-bottom: 96px; }
.features-top { margin-top: 40px; }
