/* Reco site. Plain CSS, system fonts, no external requests. Light and dark via prefers-color-scheme. */

/* Visual language follows the Marketing Hub UI Kit: blue-grey canvas, white 24px cards, one teal accent,
   pill chips, and the teal gradient only on hero surfaces. */
:root {
  color-scheme: light dark;
  --bg: #eef2f3;
  --surface: #ffffff;
  --surface-2: #eaf0f1;
  --text: #0e191f;
  --text-2: #33454e;
  --text-muted: #586a73;
  --border: #d5dfe2;
  --primary: #00695f;
  --primary-hover: #00524b;
  --on-primary: #ffffff;
  --accent-soft: #ddf0ed;
  --warn: #8a4e00;
  --warn-soft: #fbebd2;
  --focus: rgb(0 105 95 / 28%);
  --grad: linear-gradient(135deg, #00524b, #00796b 55%, #0b8275);
  --on-grad: #ffffff;
  --grad-chip: rgb(255 255 255 / 18%);
  --shadow: 0 1px 2px rgb(14 25 31 / 4%), 0 8px 24px -12px rgb(14 25 31 / 12%);
  --radius: 24px;
  --r-ctl: 12px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --measure: 68ch;
  --wrap: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1118;
    --surface: #141e27;
    --surface-2: #1e2b36;
    --text: #e6edf0;
    --text-2: #bdcbd3;
    --text-muted: #9aacb7;
    --border: #2f404d;
    --primary: #4fd1c5;
    --primary-hover: #8be8de;
    --on-primary: #04211e;
    --accent-soft: #12403b;
    --warn: #f5b04a;
    --warn-soft: #3a2a0e;
    --focus: rgb(79 209 197 / 35%);
    --shadow: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

main {
  flex: 1;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--on-primary);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 48em) {
  .wrap {
    padding-inline: 2rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 2rem;
  height: 2rem;
}

.brand:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.site-nav a[aria-current="page"] {
  color: var(--primary);
  background: var(--accent-soft);
}

@media (max-width: 47.99em) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.5rem 1rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    width: 100%;
  }
}

/* Typography */
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 750;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 700;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 650;
}

p {
  margin: 0 0 1rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 46ch;
  color: var(--text-2);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.55;
}

.muted {
  color: var(--text-muted);
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--grad);
  color: var(--on-grad);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s, background-color 0.16s;
}

.btn:hover {
  color: var(--on-grad);
  box-shadow: 0 8px 20px -10px rgb(0 82 75 / 55%);
}

.btn:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: none;
}

/* Buttons sitting on the gradient hero */
.on-grad .btn {
  background: #ffffff;
  color: #00524b;
}

.on-grad .btn:hover {
  color: #00524b;
}

.on-grad .btn-secondary {
  background: var(--grad-chip);
  color: var(--on-grad);
}

.on-grad .btn-secondary:hover {
  background: rgb(255 255 255 / 28%);
  color: var(--on-grad);
}

/* Hero: the one gradient surface on a page */
.hero {
  padding-block: 1.5rem 1rem;
}

.hero-panel {
  padding: 2rem 1.25rem;
  background: var(--grad);
  color: var(--on-grad);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel h1,
.hero-panel .eyebrow,
.hero-panel .lead {
  color: var(--on-grad);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 48em) {
  .hero-panel {
    padding: 3rem;
  }
}

@media (min-width: 62em) {
  .hero {
    padding-block: 2rem 1.5rem;
  }

  .hero-panel {
    padding: 4rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

/* Invite illustration */
.invite-card {
  padding: 1.25rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 45%);
}

.invite-card .label {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.guest {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--r-ctl);
}

.guest + .guest {
  margin-top: 0.35rem;
}

.guest.is-reco {
  background: var(--accent-soft);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.is-reco .avatar {
  background: var(--grad);
  color: var(--on-grad);
}

.guest .who {
  min-width: 0;
  line-height: 1.3;
}

.guest .who strong {
  display: block;
  font-size: 0.95rem;
}

.guest .who span {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.invite-card .foot {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding-block: 1.5rem;
}

.section-alt {
  background: transparent;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40em) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62em) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding-block: 2.25rem;
  }
}

@media (min-width: 40em) and (max-width: 61.99em) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--text-muted);
}

.icon {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  padding: 0.65rem;
  border-radius: var(--r-ctl);
  background: var(--accent-soft);
  color: var(--primary);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--grad);
  color: var(--on-grad);
  font-weight: 700;
}

/* Page heading block on inner pages */
.page-head {
  padding-block: 3rem 1.5rem;
}

.page-head h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
}

.page-head .lead {
  margin-bottom: 0;
}

/* Prose (legal pages, long copy) */
.prose {
  padding-bottom: 3rem;
}

.prose > * {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--primary);
}

.meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Placeholders that Roman must fill; deliberately loud */
.ph {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: var(--warn-soft);
  color: var(--warn);
  font-family: var(--mono);
  font-size: 0.92em;
}

/* Steps list on How it works */
.steps {
  max-width: 48rem;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--grad);
  color: var(--on-grad);
  font-weight: 700;
}

.steps h2 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

/* Contact list */
.contact-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .contact-list {
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prose .contact-list li {
  margin-bottom: 0;
}

.contact-list .addr {
  display: inline-block;
  min-height: 44px;
  font-size: 1.2rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.contact-list p {
  margin: 0;
  color: var(--text-muted);
}

/* Call to action band */
.cta {
  padding: 2rem 1.5rem;
  background: linear-gradient(165deg, var(--accent-soft), var(--surface) 62%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 48em) {
  .cta {
    padding: 2.5rem 3rem;
  }
}

.cta p {
  max-width: 52ch;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-row p {
  margin: 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text);
}

/* Error page */
.center {
  padding-block: 5rem;
  text-align: center;
}

.center .lead {
  margin-inline: auto;
}

.center .actions {
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Product-site additions: mock call notice, permission table, help questions */
.mock-chip {
  flex: none;
  margin-left: auto;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.rec-dot {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 0 0 4px rgb(229 72 77 / 18%);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap th,
.table-wrap td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap th {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.faq {
  margin: 0 0 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
}

.faq summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.faq > div {
  padding: 0 1rem 0.25rem;
  color: var(--text-2);
}
