/* RosaCue marketing site — shared stylesheet */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1a1a18;
  --body: #3d3b38;
  --muted: #65625d;
  --muted-extra: #6e6b65;
  --faint: #9a968f;
  --accent: #4a7c74;
  --accent-deep: #39615a;
  --accent-tint: rgba(74, 124, 116, 0.14);
  --accent-border: rgba(74, 124, 116, 0.28);
  --tag: #f4f1ec;
  --hairline: rgba(0, 0, 0, 0.05);
  --hairline-mid: rgba(0, 0, 0, 0.06);
  --hairline-strong: rgba(0, 0, 0, 0.07);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, monospace;
  --sev-1: #e8e4dc;
  --sev-2: #d9c9b4;
  --sev-3: #c49a79;
  --sev-4: #a97164;
  --sev-5: #7c4b45;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141313;
    --surface: #1e1d1c;
    --text: #f2f0ed;
    --body: #d4d0c9;
    --muted: #a8a39b;
    --muted-extra: #a8a39b;
    --faint: #a8a39b;
    --tag: #252322;
    --hairline: rgba(242, 240, 237, 0.06);
    --hairline-mid: rgba(242, 240, 237, 0.07);
    --hairline-strong: rgba(242, 240, 237, 0.08);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    --accent-tint: rgba(74, 124, 116, 0.2);
    --accent-border: rgba(74, 124, 116, 0.4);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-deep);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* —— Skip link —— */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  z-index: 9;
  color: var(--text);
  text-decoration: none;
}

.skip-link:focus {
  left: 24px;
}

/* —— Header —— */

.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}

.site-header__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: baseline;
  justify-content: space-between;
}

.wordmark {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  margin: -10px 0;
}

.site-nav a {
  font-size: 15px;
  color: var(--body);
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover {
  background: var(--tag);
  color: var(--accent-deep);
}

/* —— Main —— */

.site-main {
  flex: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
}

.page {
  padding: 80px 0 96px;
}

.page--home {
  padding: 88px 0 96px;
}

.page--narrow {
  max-width: 720px;
}

.page--support {
  max-width: 760px;
}

.page--terms {
  max-width: 700px;
}

/* —— Footer —— */

.site-footer {
  border-top: 1px solid var(--hairline-strong);
  background: var(--bg);
  margin-top: auto;
}

.site-footer__top {
  max-width: 1000px;
  margin: 0 auto;
  padding: 44px 28px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-footer__note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 420px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.footer-nav a {
  font-size: 15px;
  color: var(--body);
  text-decoration: none;
  padding: 12px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.site-footer__bottom {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 28px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.site-footer__meta {
  font-size: 13px;
  color: var(--muted-extra);
}

.site-footer__disclaimer {
  font-size: 13px;
  color: var(--muted-extra);
  max-width: 560px;
}

/* —— Typography helpers —— */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.eyebrow--page {
  margin-bottom: 16px;
}

.eyebrow--accent {
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 10px;
}

.eyebrow--callout {
  color: var(--accent-deep);
  margin-bottom: 14px;
}

.eyebrow--faq {
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero {
  max-width: 720px;
}

.hero h1 {
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 26px;
}

.hero__lead {
  font-size: 23px;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 18px;
  max-width: 660px;
  text-wrap: pretty;
}

.hero__sub {
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
  margin: 0;
  max-width: 620px;
}

.page-title {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 16px;
}

.page-title--spaced {
  margin-bottom: 32px;
}

.page-title--about {
  margin-bottom: 28px;
}

.section-title {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 34px;
}

.section-title--cards {
  margin-bottom: 32px;
  max-width: 700px;
}

.date-pill {
  display: inline-block;
  background: var(--tag);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--body);
}

.lead {
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
  margin: 28px 0 0;
  text-wrap: pretty;
}

.about-lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 22px;
  text-wrap: pretty;
}

.prose {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 18px;
  text-wrap: pretty;
}

.prose:last-child {
  margin-bottom: 0;
}

.prose--tight {
  margin-bottom: 14px;
}

.beta-line {
  margin: 56px 0 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
}

/* —— Severity ramp —— */

.severity {
  margin-top: 52px;
  max-width: 420px;
}

.severity__bar {
  display: flex;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
}

.severity__bar span {
  flex: 1;
  height: 9px;
}

.severity__bar span:nth-child(1) { background: var(--sev-1); }
.severity__bar span:nth-child(2) { background: var(--sev-2); }
.severity__bar span:nth-child(3) { background: var(--sev-3); }
.severity__bar span:nth-child(4) { background: var(--sev-4); }
.severity__bar span:nth-child(5) { background: var(--sev-5); }

.severity__labels {
  display: flex;
  margin-top: 9px;
}

.severity__labels span {
  flex: 1;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-extra);
  font-family: var(--mono);
}

.severity__labels span:last-child {
  text-align: right;
}

.severity__caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 14px 0 0;
}

/* —— Home sections —— */

.home-section {
  margin-top: 104px;
}

.home-section--measure {
  max-width: 760px;
}

/* —— Numbered steps —— */

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline-strong);
}

.step:last-child {
  border-bottom: 1px solid var(--hairline-strong);
}

.step__num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 5px;
}

.step h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 8px;
}

.step p {
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
  margin: 0;
  max-width: 600px;
  text-wrap: pretty;
}

/* —— Cards —— */

.card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--hairline);
  box-shadow: var(--card-shadow);
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.feature-card {
  padding: 22px 24px;
}

.feature-card h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
  max-width: 620px;
  text-wrap: pretty;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  max-width: 900px;
}

.tile {
  background: var(--tag);
  border-radius: 12px;
  padding: 20px 22px;
}

.tile p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
  text-wrap: pretty;
}

.policy-link {
  font-size: 16px;
  line-height: 1.6;
  margin: 22px 0 0;
}

/* —— Callout —— */

.callout {
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 28px 30px;
}

.callout p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  max-width: 620px;
  text-wrap: pretty;
}

.callout--compact {
  padding: 20px 22px;
  margin-top: 24px;
}

.callout--compact p {
  font-size: 16px;
  line-height: 1.6;
  max-width: none;
}

/* —— Chip —— */

.chip {
  background: var(--tag);
  border-radius: 10px;
  padding: 16px 18px;
}

.chip p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
  font-family: var(--mono);
}

.chip--terms {
  padding: 18px 20px;
}

.chip--terms p {
  line-height: 1.6;
}

/* —— Privacy —— */

.toc {
  margin: 40px 0 0;
  padding: 20px 24px;
}

.toc__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc__links a {
  font-size: 16px;
  padding: 10px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.policy-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline-strong);
}

.policy-section:first-of-type,
.policy-section--first {
  margin-top: 56px;
}

.policy-section h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 16px;
}

.policy-section p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 16px;
  text-wrap: pretty;
}

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

.policy-section code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--tag);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* —— Support —— */

.support-card {
  padding: 26px 28px;
}

.support-card h2 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 10px;
}

.support-card__body {
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
  margin: 0 0 14px;
  max-width: 560px;
  text-wrap: pretty;
}

.support-card__note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}

.faq-section {
  margin-top: 72px;
}

.faq-section .eyebrow {
  margin-bottom: 28px;
}

.faq-featured {
  padding: 30px 32px;
  margin-bottom: 34px;
  border-color: var(--accent-border);
}

.faq-featured h3 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 16px;
}

.faq-featured__body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 14px;
  max-width: 600px;
  text-wrap: pretty;
}

.faq-featured__body--last {
  margin-bottom: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 28px 0;
  border-top: 1px solid var(--hairline-strong);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--hairline-strong);
}

.faq-item h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 10px;
}

.faq-item p {
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
  margin: 0;
  max-width: 620px;
  text-wrap: pretty;
}

.faq-item__link {
  font-size: 16px;
  line-height: 1.6;
  margin: 14px 0 0;
}

/* —— Terms —— */

.terms-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline-strong);
}

.terms-section--first {
  margin-top: 52px;
}

.terms-section h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 14px;
}

.terms-section p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  margin: 0;
  text-wrap: pretty;
}

.terms-section p + .chip {
  margin-top: 18px;
}

/* —— About business details —— */

.business {
  margin-top: 64px;
}

.business .eyebrow {
  margin-bottom: 18px;
}

.def-table {
  overflow: hidden;
}

.def-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline-mid);
  align-items: baseline;
}

.def-row:last-child {
  border-bottom: none;
}

.def-row dt {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.def-row dd {
  font-size: 15px;
  color: var(--muted-extra);
  font-family: var(--mono);
  margin: 0;
}

.def-row dd a {
  font-family: var(--font);
}

/* —— Responsive —— */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero__lead {
    font-size: 20px;
  }

  .page-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 24px;
  }

  .step {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .def-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .faq-featured {
    padding: 24px 22px;
  }

  .faq-featured h3 {
    font-size: 22px;
  }

  .callout {
    padding: 22px 20px;
  }

  .site-header__inner,
  .site-main,
  .site-footer__top,
  .site-footer__bottom {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* —— Print —— */

@media print {
  .skip-link,
  .site-header,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-main {
    max-width: none;
    padding: 0;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }

  .card,
  .callout,
  .tile,
  .faq-featured {
    box-shadow: none;
    break-inside: avoid;
  }
}
