/* Careory marketing site. Colors match the Careory apps. */
@font-face {
  font-family: 'Inter';
  src: url('/assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #3c78d8;
  --brand-dark: #2f66c0;
  --brand-tint: #eef4fd;
  --ink: #1f2a44;
  --muted: #5f6b82;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --radius: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.5vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.lead { font-size: 20px; color: var(--muted); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--brand-dark); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.site-header .logo img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--brand-dark); }
.nav-links { display: flex; gap: 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background 150ms ease; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--brand-tint); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 80px 0 72px; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .lead { margin-bottom: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 15px; color: var(--muted); }
.trust span::before { content: '✓'; color: var(--brand); font-weight: 700; margin-right: 6px; }

/* Product mockup (drawn with HTML, no screenshots) */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 48px rgba(31, 42, 68, 0.1); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; padding: 20px; }
.mock-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 14px; }
.mock-card strong { display: block; font-size: 14px; margin-bottom: 8px; }
.slot { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; padding: 7px 10px; border-radius: 8px; background: var(--bg-soft); margin-top: 6px; font-size: 13px; }
.slot.booked { background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; }
.video { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: #1f2a44; display: flex; align-items: flex-end; justify-content: space-between; padding: 10px; color: #fff; font-size: 12px; }
.video .pip { position: absolute; top: 10px; right: 10px; width: 34%; aspect-ratio: 4 / 3; border-radius: 8px; background: #3b4866; }
.video .controls { display: flex; gap: 6px; }
.video .controls i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.video .controls i.end { background: #e5484d; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e5f4e4; color: #2b7a3d; font-size: 12px; font-weight: 600; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* Security band */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; }
.checks li::before { content: ''; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f66c0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Pricing */
.price-card { max-width: 480px; margin: 0 auto; text-align: left; border: 2px solid var(--brand); border-radius: 16px; padding: 36px; background: #fff; box-shadow: 0 20px 48px rgba(60, 120, 216, 0.12); }
.price { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-yearly { margin: 10px 0 24px; color: var(--muted); }
.price-card .btn { width: 100%; margin: 24px 0 8px; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: 14px; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

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

/* Call to action band */
.cta { background: var(--brand); color: #fff; border-radius: 20px; padding: 56px; text-align: center; }
.cta p { color: rgba(255, 255, 255, 0.88); }
.cta .btn-primary { background: #fff; color: var(--brand-dark); }

/* Simple pages (legal, trial) */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 760px; }
.notice { background: #fdf6e3; border: 1px solid #f2e2b3; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 32px; font-size: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--brand-dark); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Phones and small tablets */
@media (max-width: 860px) {
  .hero .wrap, .split, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
  .cta { padding: 40px 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links { gap: 14px; }
  .nav-links .hide-sm, .site-nav .hide-sm { display: none; }
  .site-nav { gap: 14px; }
  .site-nav .btn { padding: 9px 16px; font-size: 15px; }
  .site-header .logo img { height: 30px; }
  .mock-body { grid-template-columns: 1fr; }
  .price-card { padding: 28px 22px; }
  .hero { padding: 48px 0; }
}
