/* Huddle site styles. Edit here, not in public/ (the build writes a hashed copy). */

:root {
  --primary: #2E7CF6;
  --primary-press: #1F66D6;
  --deep: #0B3B8C;
  /* The app's own ink (ThemeTokens.textOnSky), for the wordmark. */
  --ink: #0B2A5E;
  --sky-1: #7FB8FF;
  --sky-2: #CFE5FF;
  --sky-3: #F4F9FF;
  --surface: #FFFFFF;
  --border: #D6E7FF;
  --border-strong: #B9D5FB;
  --text: #0E1B33;
  --text-2: #3A4A68;
  --text-3: #6A7A97;
  --tint: #EAF3FF;
  --radius: 20px;
  --radius-sm: 14px;
  --pill: 999px;
  --shadow: 0 10px 30px rgba(11, 59, 140, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 59, 140, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--sky-1) 0, var(--sky-2) 380px, var(--sky-3) 820px) no-repeat, var(--sky-3);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--text); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: var(--pill); }
.skip:focus { left: 8px; }

.shell { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.shell.narrow { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--pill);
  background: var(--primary); color: #fff; font-weight: 650; font-size: 16px;
  box-shadow: 0 10px 24px rgba(46, 124, 246, 0.32);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--primary-press); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.75); color: var(--deep); box-shadow: none; border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: #fff; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 20px 8px 16px; border-radius: var(--radius-sm);
  background: var(--text); color: #fff;
}
.store:hover { text-decoration: none; background: #000; }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-copy { display: flex; flex-direction: column; line-height: 1.1; }
.store-copy small { font-size: 11px; opacity: .8; }
.store-copy strong { font-size: 18px; font-weight: 650; }
.store-soon { background: rgba(14, 27, 51, 0.72); cursor: default; }
.store-soon:hover { background: rgba(14, 27, 51, 0.72); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.nav-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--pill);
  box-shadow: var(--shadow);
  padding: 8px 8px 8px 18px;
  max-width: 1072px;
}
/* The app's own wordmark: lowercase "huddle" in a rounded face with the blue
   dot after it (ios BrandWordmark). The site used to set it as "Huddle" in the
   body font with no dot, so the two products signed their names differently. */
.logo { display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 900; font-size: 22px; letter-spacing: -0.03em; text-transform: lowercase; }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 9px; align-self: center; }
.logo-dot { width: 0.26em; height: 0.26em; border-radius: 50%; background: var(--primary); margin-left: -0.04em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--text-2); font-weight: 560; font-size: 15px; padding: 10px 14px; border-radius: var(--pill); }
.nav-links a:hover { background: var(--tint); color: var(--deep); text-decoration: none; }
.nav-links a.nav-cta { background: var(--primary); color: #fff; margin-left: 6px; }
.nav-links a.nav-cta:hover { background: var(--primary-press); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-in { flex-wrap: wrap; border-radius: 26px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: var(--pill);
    background: var(--tint); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--deep); border-radius: 2px; position: relative; content: "";
    transition: transform .2s, background .2s;
  }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 6px 4px 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-links a.nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 14px; color: var(--text-2); padding: 14px 0 0; }
.crumbs .shell { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--deep); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }

/* ---------- Home: hero ---------- */
.hero { padding: 40px 0 72px; position: relative; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.hero .lede { font-size: 19px; color: var(--text-2); margin-top: 20px; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--text-2); font-weight: 560; }

.hero-art { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center; }
.cloud-box { position: absolute; inset: 0; }
/* The character stickers are drawn with a flat die-cut bottom: inside a
   circle that edge shows as a cut-off chin. The app hides it by drawing the
   sticker a touch large; here the image's own view box is pulled in, which
   needs no second copy of the artwork. */
.float, .chat-faces img, .msg-row img, .download-faces img {
  object-fit: cover;
  object-view-box: inset(4% 4% 9% 4%);
}

.float {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  border-radius: 50%; border: 4px solid #fff; background: #fff;
  box-shadow: 0 12px 28px rgba(11, 59, 140, 0.18);
  animation: bob 6s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }

.chat {
  position: relative; z-index: 1; margin: 0; width: 72%; max-width: 360px;
  background: var(--surface); border-radius: 28px; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: #FBFDFF; }
.chat-head strong { display: block; font-size: 15px; }
.chat-head span { display: block; font-size: 12px; color: var(--text-3); }
.chat-faces { display: flex; }
.chat-faces img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; }
.chat-faces img:first-child { margin-left: 0; }
.chat-body { padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #F7FBFF, #FFFFFF); }
.msg { font-size: 14.5px; line-height: 1.4; padding: 9px 13px; border-radius: 18px; background: var(--tint); color: var(--text); max-width: 86%; }
.msg b { display: block; font-size: 12px; color: var(--deep); margin-bottom: 2px; }
.msg.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; }
.msg-row img { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.msg-row .msg { border-bottom-left-radius: 6px; }
.chat figcaption { font-size: 12px; color: var(--text-3); text-align: center; padding: 8px 16px 14px; }

/* ---------- Home: sections ---------- */
.section { padding: 60px 0; }
.head { max-width: 640px; margin-bottom: 36px; }
.head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.head p:not(.eyebrow) { color: var(--text-2); margin-top: 12px; font-size: 18px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step, .tile, .room, .card, .price-card, .cta-card, .answer, .toc, .faq-list details, .contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.step { padding: 28px; box-shadow: var(--shadow); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--tint); color: var(--primary); font-weight: 800; margin-bottom: 16px;
}
.step h3, .tile h3, .room h3 { font-size: 19px; margin-bottom: 8px; }
.step p, .tile p, .room p { color: var(--text-2); font-size: 16px; }

.rooms { margin-top: 36px; }
.rooms-title { font-weight: 700; color: var(--deep); margin-bottom: 14px; }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.room { padding: 20px 22px; background: rgba(255, 255, 255, 0.7); }
.room h3 { display: inline-block; font-size: 15px; background: var(--tint); color: var(--deep); padding: 4px 12px; border-radius: var(--pill); }

.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile-grid.two { grid-template-columns: repeat(2, 1fr); }
.tile { padding: 26px; }
.share { background: linear-gradient(180deg, rgba(207, 229, 255, 0) 0, rgba(207, 229, 255, 0.55) 50%, rgba(207, 229, 255, 0) 100%); }
.trust-link, .see-all { margin-top: 24px; font-weight: 650; }

.price-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; padding: 40px;
  box-shadow: var(--shadow-lg);
  background: radial-gradient(120% 140% at 0% 0%, #EAF3FF 0, #FFFFFF 55%);
}
.price-card h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.price-card > div > p:not(.eyebrow) { color: var(--text-2); font-size: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: var(--text-2); }
.checks li strong { color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary) 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/14px no-repeat;
}
.price-note { grid-column: 1 / -1; font-size: 14px; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 18px; }

.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 0; }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 650; position: relative; color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--primary);
  display: grid; place-items: center; font-weight: 700; line-height: 1;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details > :not(summary) { padding: 0 22px; margin: 0 0 16px; color: var(--text-2); }
.faq-list details > ul, .faq-list details > ol { padding-left: 44px; }

.download { padding: 80px 0 96px; text-align: center; }
.download-in {
  background: linear-gradient(180deg, var(--sky-1), var(--primary));
  border-radius: 32px; padding: 56px 24px; color: #fff; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; max-width: 1072px; width: calc(100% - 48px);
}
.download h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 18px; }
.download p { margin: 10px 0 26px; font-size: 18px; opacity: .95; }
.download .stores { justify-content: center; }
.download .store-soon { background: rgba(11, 59, 140, 0.55); }
.download-alt { margin: 18px 0 0 !important; font-size: 14px !important; }
.download-faces { display: flex; }
.download-faces img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; margin-left: -12px; }
.download-faces img:first-child { margin-left: 0; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; color: var(--text); transition: transform .15s, box-shadow .15s; }
.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 19px; }
.card p { color: var(--text-2); font-size: 15.5px; flex: 1; }
.card-topic { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.card-meta { font-size: 13px; color: var(--text-3); }

.cta-card { margin: 48px 0; padding: 32px; box-shadow: var(--shadow); background: radial-gradient(120% 140% at 100% 0%, #EAF3FF 0, #FFFFFF 60%); }
.cta-card h2 { font-size: 26px; margin-bottom: 10px; }
.cta-card > p:not(.eyebrow):not(.cta-alt) { color: var(--text-2); margin-bottom: 20px; }
.cta-alt { margin-top: 14px; font-size: 14px; color: var(--text-3); }

/* ---------- Guides index / hubs ---------- */
.page-head { padding: 40px 24px 36px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.page-head .lede { font-size: 19px; color: var(--text-2); margin-top: 14px; max-width: 40em; }
.lede-meta { margin-top: 12px; font-size: 14px; color: var(--text-2); }
.topic-section { margin-bottom: 48px; }
.topic-head { margin-bottom: 18px; }
.topic-head h2 { font-size: 26px; }
.topic-head h2 a { color: var(--text); }
.topic-head p { color: var(--text-2); margin-top: 6px; }
.topic-nav { margin: 24px 0 72px; }
.topic-nav h2 { font-size: 20px; margin-bottom: 12px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 9px 16px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border); color: var(--deep); font-weight: 600; font-size: 15px; }
.pill:hover { text-decoration: none; border-color: var(--primary); }
.index-page .shell > .card-grid { margin-bottom: 8px; }

/* ---------- Articles and legal pages ---------- */
.guide, .legal { padding-bottom: 48px; }
.guide-head, .legal-head {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; margin: 24px 0 24px; box-shadow: var(--shadow);
}
.guide-head h1, .legal-head h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.topic-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--deep); background: var(--tint); padding: 5px 12px; border-radius: var(--pill); margin-bottom: 14px; }
.topic-tag:hover { text-decoration: none; }
.standfirst { font-size: 19px; color: var(--text-2); margin-top: 14px; }
.byline { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-3); margin-top: 16px; }
.updated { margin-top: 10px; font-size: 14px; color: var(--text-3); }

.answer { padding: 22px 24px; margin-bottom: 24px; border-left: 5px solid var(--primary); }
.answer-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin-bottom: 6px; }
.answer p { font-size: 17.5px; }
.toc { padding: 20px 24px; margin-bottom: 24px; }
.toc h2 { font-size: 15px; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--text-2); }
.toc li { margin: 4px 0; }

.prose { font-size: 17.5px; color: var(--text-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; margin-top: 1.8em; color: var(--text); scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; margin-top: 1.5em; color: var(--text); scroll-margin-top: 90px; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--border-strong); color: var(--text); }
.prose code { font-size: .9em; background: var(--tint); padding: 2px 6px; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); background: #F7FBFF; }
.prose tr:last-child td { border-bottom: 0; }

.note { border-radius: var(--radius-sm); padding: 16px 20px; background: var(--tint); border: 1px solid var(--border); color: var(--text); }
.note > * + * { margin-top: .6em; }
.note-warn { background: #FFF6E8; border-color: #FFE1B3; }
.note-evidence { background: #F2F4F8; border-color: #E0E5EE; }

.legal .prose h2 { font-size: 22px; }
.legal .prose h3 { font-size: 18px; }
.contact-card { padding: 22px 24px; background: var(--tint); }
.contact-card p + p { margin-top: 6px; }
.legal .faq-list summary { color: var(--text); }

.faq-block { margin-top: 48px; }
.faq-block h2 { font-size: 24px; margin-bottom: 16px; }
.disclaimer { margin-top: 40px; font-size: 14px; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 16px; }
.related { margin-top: 24px; }
.related h2 { font-size: 22px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 24px; }
.page-home .foot { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 14px; font-size: 14px; color: var(--text-3); max-width: 32em; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 4px; }
.foot-col a { color: var(--text-2); font-size: 15px; }
.foot-col a:hover { color: var(--primary); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-top: 24px; }
  .hero-art { min-height: 500px; max-width: 520px; width: 100%; margin: 0 auto; }
  .steps, .room-grid, .tile-grid { grid-template-columns: 1fr; }
  .tile-grid.two { grid-template-columns: 1fr 1fr; }
  .price-card { grid-template-columns: 1fr; padding: 32px 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .shell { padding: 0 18px; }
  .hero .lede { font-size: 17px; }
  .hero-art { min-height: 540px; }
  .chat { width: 80%; }
  .float { width: calc(var(--s) * .72); height: calc(var(--s) * .72); border-width: 3px; }
  .section { padding: 52px 0; }
  .tile-grid.two { grid-template-columns: 1fr; }
  .guide-head, .legal-head { padding: 24px 20px; }
  .cta-card { padding: 26px 20px; }
  .download-in { border-radius: 26px; padding: 44px 20px; width: calc(100% - 36px); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
