/* Hivetime website. Brand tokens match brand/tokens.json in the app. */

/* Headings and text use the device's own font, as the app does (San Francisco on Apple devices).
   Inter and Space Grotesk stay in fonts/ only for the booking pages (/b/*), which load them from here. */

:root {
  --honey: #FBBF24;
  --honey-deep: #F59E0B;
  --honey-soft: #FEF3C7;
  --link: #B45309;
  --ink: #1F1A14;
  --ink-2: #3A3128;
  --cream: #FFF8EC;
  --card: #FFFFFF;
  --muted: #6B5D4A;
  --line: #E6D8BF;
  --alex: #2563EB; --sam: #0F766E; --maya: #DB2777; --leo: #7C3AED; --elena: #B45309;
  --radius: 20px;
  --display: var(--text); /* Same font as the text, as in the app; headings differ only by weight and size. */
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --hex: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
mark.todo { background: #FDE68A; color: var(--ink); padding: 0 .25em; border-radius: 4px; outline: 1px dashed var(--honey-deep); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 248, 236, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(230, 216, 191, .7);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.3rem var(--display); letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--link); }
@media (max-width: 640px) {
  .nav { display: none; }
  .header-row .btn { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(31,26,20,.18); }
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-honey:hover { color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .92rem; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fineprint { font-size: .88rem; color: var(--muted); margin-top: 12px; }

/* ---------- Honeycomb background ---------- */
.comb {
  background-color: var(--honey);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 31V66m28-16l28 16M0 50l-28 16' fill='none' stroke='%23F59E0B' stroke-opacity='.45' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 56px 97px;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { padding-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  background: rgba(255,255,255,.7); border-radius: 999px; padding: 5px 14px 5px 7px;
  font-weight: 600; font-size: .88rem; color: var(--ink-2);
}
.eyebrow-mark { flex: none; }
.hero h1 { max-width: 13ch; }
.hero .lede { font-size: 1.2rem; max-width: 34ch; color: var(--ink-2); }
.hero-art { position: relative; justify-self: center; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 24px; }
  .hero h1, .hero .lede { max-width: none; }
}

/* ---------- Phones ---------- */
/* The screenshot sets the height (aspect-ratio of the image), so the whole screen shows, uncropped (except .phone-top below). */
.phone {
  width: 300px; max-width: 78vw;
  border-radius: 46px; padding: 10px; background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(31,26,20,.45), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.phone img { width: 100%; border-radius: 36px; background: var(--cream); }
.hero .phone { margin-bottom: 56px; }
/* The top part of a screen: the frame runs off the bottom and fades out. The mask would clip the
   frame's box-shadow, so the wrapper draws a drop-shadow that follows the fade instead. */
.phone-top-wrap { filter: drop-shadow(0 22px 26px rgba(31,26,20,.3)); }
.phone.phone-top { padding-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; -webkit-mask-image: linear-gradient(#000 90%, transparent); mask-image: linear-gradient(#000 90%, transparent); }
.phone.phone-top img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
@media (max-width: 860px) {
  .phone { width: 260px; }
}

/* ---------- Bees ---------- */
/* Bees hover in the empty space beside the hero phone (never over text or the screenshot). */
.bee { position: absolute; width: 34px; height: 30px; pointer-events: none; z-index: 2; }
.bee svg { width: 100%; height: 100%; }
.bee .wing { transform-origin: 50% 100%; animation: flap .12s ease-in-out infinite alternate; }
.bee-1 { top: 10%; left: -84px; animation: hover-1 6s ease-in-out infinite; }
.bee-2 { top: 46%; right: -78px; width: 28px; height: 25px; animation: hover-2 7s ease-in-out 1s infinite; }
.bee-2 svg { transform: scaleX(-1); }
.bee-3 { top: 74%; left: -70px; width: 24px; height: 21px; animation: hover-3 5.5s ease-in-out 2s infinite; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.55); } }
@keyframes hover-1 { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(8px, -14px); } 50% { transform: translate(2px, -24px); } 75% { transform: translate(-8px, -10px); } }
@keyframes hover-2 { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-8px, 16px); } 60% { transform: translate(6px, 26px); } 80% { transform: translate(8px, 8px); } }
@keyframes hover-3 { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(8px, -18px); } 70% { transform: translate(-6px, -8px); } }
@media (min-width: 861px) and (max-width: 1079px) {
  /* Two columns but little room beside the phone: tuck the bees in closer. */
  .bee-1 { left: -60px; width: 28px; height: 25px; }
  .bee-2 { right: -44px; width: 24px; height: 21px; }
}
@media (max-width: 860px) {
  /* Narrow screens: smaller bees in the gutters beside the phone, below the hero text. */
  .bee-1 { left: -42px; width: 26px; height: 23px; }
  .bee-2 { right: -40px; width: 24px; height: 21px; }
  .bee-3 { left: -36px; width: 20px; height: 18px; }
}
@media (max-width: 359px), (prefers-reduced-motion: reduce) {
  .bee { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; overflow-x: clip; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { font-size: 1.12rem; color: var(--ink-2); }
.kicker { font: 600 .85rem var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--link); margin-bottom: 10px; display: block; }
.dark { background: var(--ink); color: var(--cream); }
.dark .kicker { color: var(--honey); }
.dark .muted, .dark .section-head p { color: #D9CBB3; }
.dark a { color: var(--honey); }
.white { background: var(--card); }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .feature-art { order: -1; }
.feature > * { min-width: 0; }
.feature-art { display: flex; justify-content: center; }
.feature ul { padding: 0; margin: 20px 0 0; list-style: none; }
.feature li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.feature li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; background: var(--honey-deep); clip-path: var(--hex); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-art { order: 0; }
  .feature + .feature { margin-top: 80px; }
}

/* AI trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trio-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 26px; padding: 26px 22px; overflow: hidden; display: flex; flex-direction: column; }
.trio-card h3 { color: #fff; }
.trio-card p { color: #D9CBB3; font-size: .98rem; }
.trio-card .phone { width: 100%; max-width: 250px; margin: auto auto 0; border-radius: 40px; }
.trio-card .phone img { border-radius: 31px; }
.ai-note { margin-top: 40px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); border-radius: 18px; padding: 18px 20px; color: #F3E6CE; font-size: .98rem; }
.ai-note strong { color: #fff; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-top: 14px; }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.hex-icon { width: 48px; height: 48px; display: grid; place-items: center; clip-path: var(--hex); background: var(--honey); color: var(--ink); }
.hex-icon svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* People strip */
.people { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.people li { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 7px; font-size: .92rem; font-weight: 500; }
.people .swatch { width: 18px; height: 18px; clip-path: var(--hex); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
.price-card { background: var(--card); border: 2px solid var(--line); border-radius: 26px; padding: 32px; position: relative; }
.price-card.best { border-color: var(--ink); }
.price-badge { position: absolute; top: -14px; left: 28px; background: var(--honey); color: var(--ink); font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 999px; }
.price { font: 700 2.6rem var(--display); letter-spacing: -0.01em; margin: 6px 0 2px; }
.price small { font: 500 1rem var(--text); color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 0; }
.price-card li { padding: 8px 0 8px 28px; border-top: 1px solid var(--line); position: relative; font-size: .96rem; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 14px; width: 14px; height: 14px; background: var(--honey-deep); clip-path: var(--hex); }
.pricing-note { text-align: center; max-width: 640px; margin: 28px auto 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 600 1.4rem var(--display); color: var(--link); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 22px 18px; color: var(--ink-2); }
.faq .answer p:last-child { margin: 0; }

/* Closing CTA */
.closer { text-align: center; padding: 88px 0; }
.closer h2 { max-width: 18ch; margin: 0 auto .4em; }
.closer .cta-row { justify-content: center; }

/* ---------- Document pages (policies, support) ---------- */
.doc-hero { padding: 56px 0 36px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--honey-soft), var(--cream)); }
.doc-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .3em; }
.doc-hero p { color: var(--ink-2); max-width: 62ch; margin: 0; }
.doc-hero .meta { margin-top: 12px; font-size: .9rem; color: var(--muted); }
/* Bottom space sits on the article, not the grid, so the grid area (which bounds the sticky contents list) runs to the footer. */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 48px 20px 0; }
.toc { position: sticky; top: 88px; align-self: start; font-size: .9rem; max-height: calc(100vh - 104px); overflow-y: auto; }
.toc h2 { font: 600 .78rem var(--text); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--ink-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--link); border-left-color: var(--honey-deep); }
.doc { max-width: 72ch; }
.doc-layout > .doc { padding-bottom: 96px; }
.doc h2 { font-size: 1.5rem; margin: 2.2em 0 .6em; scroll-margin-top: 84px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.1rem; margin: 1.6em 0 .5em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .94rem; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--honey-soft); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--honey); border-radius: 14px; padding: 16px 20px; margin: 0 0 1.4em; }
.callout p:last-child { margin: 0; }
.summary-box { background: var(--ink); color: var(--cream); border-radius: 20px; padding: 24px 26px; margin-bottom: 2em; }
.summary-box h2 { color: #fff; font-size: 1.2rem; margin: 0 0 .7em; }
.summary-box ul { margin: 0; padding-left: 1.2em; }
.summary-box li { margin-bottom: .45em; color: #F3E6CE; }
.summary-box a { color: var(--honey); }
.contact-block { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; font-style: normal; }
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .toc { position: static; max-height: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
}

/* Steps (support, delete account) */
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 14px 50px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; background: var(--honey); clip-path: var(--hex); font: 700 .95rem var(--display); }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 0 2em; }
.help-grid .card { padding: 20px 22px; }
.help-grid .card h3 { margin-top: 0; }
@media (max-width: 640px) { .help-grid { grid-template-columns: 1fr; } }

/* Small helpers (the site's CSP allows no inline styles) */
.cta-center { justify-content: center; margin-top: 24px; }
.section-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.page-pad { padding-top: 40px; padding-bottom: 96px; }
.faq-wide { max-width: none; }
.faq-group { font-size: 1.6rem; margin: 1.4em 0 .8em; }
.swatch-alex { background: var(--alex); } .swatch-sam { background: var(--sam); } .swatch-maya { background: var(--maya); }
.swatch-leo { background: var(--leo); } .swatch-elena { background: var(--elena); }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound .hexbig { width: 120px; height: 120px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9CBB3; padding: 56px 0 28px; font-size: .94rem; }
.site-footer a { color: #F3E6CE; text-decoration: none; }
.site-footer a:hover { color: var(--honey); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.brand-footer img { background: var(--cream); border-radius: 10px; padding: 3px; }
.site-footer .muted { color: #B8A88E; max-width: 40ch; }
.footer-h { font: 600 .78rem var(--text); text-transform: uppercase; letter-spacing: .08em; color: var(--honey); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; overflow-wrap: break-word; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .84rem; color: #9C8E77; }
.footer-base p { margin: 0; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Family invite page (/join/<code>, built at the edge by the JoinPage CloudFront Function) ---------- */
.invite { padding: 64px 0 88px; text-align: center; }
.invite .wrap { max-width: 680px; }
.invite .hexbig { width: 120px; height: 120px; margin: 0 auto 28px; }
.invite-lede { font-size: 1.12rem; color: var(--ink-2); }
/* Sized so any code, up to the 12-character HIVE-XXXX-XXXX-XXXX (all W), stays on one line down to a 280px-wide
   screen in San Francisco or a font as wide (checked at about 16em per code). overflow-wrap catches a wider fallback font. */
.invite-code {
  display: inline-block; margin: 8px 0 28px; padding: 14px; background: var(--card);
  border: 2px dashed var(--honey-deep); border-radius: 16px; overflow-wrap: anywhere;
  font: 700 clamp(.75rem, 4.6vw, 2.2rem)/1.1 var(--display); letter-spacing: .02em;
  -webkit-user-select: all; user-select: all;
}
.invite-steps { text-align: left; max-width: 460px; margin: 36px auto 8px; }
.invite-footer { padding: 24px 0; text-align: center; }
.invite-footer p { margin: 0; }
