/* RecurBird website. Colors, type and radii follow the Figma landing page and the app. */

@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url("/fonts/Onest-Medium.ttf") format("truetype"); }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("/fonts/Onest-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url("/fonts/Onest-Bold.ttf") format("truetype"); }

:root {
  color-scheme: light;
  --ink: #0d0a14;
  --ink-body: rgba(13, 10, 20, 0.78);
  --ink-soft: rgba(13, 10, 20, 0.62);
  --ink-placeholder: rgba(13, 10, 20, 0.5);
  --accent: #743dff;
  --accent-soft: rgba(116, 61, 255, 0.08);
  --accent-badge: #f1ecff;
  --accent-badge-text: #6c45e0;
  --field: rgba(13, 10, 20, 0.03);
  --line: rgba(13, 10, 20, 0.06);
  --outline: rgba(13, 10, 20, 0.24);
  --success: #1a8f55;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
[id] { scroll-margin-top: 24px; }

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

.wrap { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 10;
  padding: 10px 18px; border-radius: 24px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 44px; border: 0; border-radius: 28px;
  background: var(--ink); color: #fff;
  font: inherit; font-weight: 600; line-height: 20px; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: #2a2433; }

/* Header */
.site-header { position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.brand { display: inline-flex; align-items: center; gap: 16px; font-size: 19px; font-weight: 600; line-height: 24px; text-decoration: none; }
.brand img { width: 56px; height: 56px; border-radius: 15px; }
.header-end { display: flex; align-items: center; gap: 48px; }
.nav { display: flex; gap: 48px; font-weight: 600; line-height: 20px; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

.menu { display: none; position: relative; }
.menu summary {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: 24px; background: var(--field);
  font-weight: 600; cursor: pointer; list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: 56px; width: min(280px, calc(100vw - 40px));
  display: grid; gap: 2px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}
.menu-panel a { padding: 11px 14px; border-radius: 18px; font-weight: 600; text-decoration: none; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

/* Hero */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px);
  gap: 64px; align-items: center; padding-top: 54px;
}
h1 { font-size: clamp(44px, 4.45vw, 64px); line-height: 1.1875; font-weight: 700; letter-spacing: 0; }
.accent { color: var(--accent); }
.hero-sub { max-width: 440px; margin-top: 32px; color: var(--ink-soft); font-size: 18px; line-height: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 48px; }
.soon {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 24px; border-radius: 28px;
  background: var(--accent-soft); color: var(--accent-badge-text); font-weight: 600; line-height: 20px;
}
.hero-visual { width: 100%; }

/* Sections */
.section { padding-top: 120px; }
.section-last { padding-bottom: 120px; }
.section-head { max-width: 784px; margin: 0 auto 64px; text-align: center; }
h2 { font-size: clamp(38px, 4.45vw, 64px); line-height: 1.1875; font-weight: 700; }
.section-head p { margin-top: 24px; color: var(--ink-soft); font-size: 18px; line-height: 28px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 45px; }
.card {
  overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: 40px; box-shadow: var(--card-shadow);
}
.feature-visual { width: 100%; aspect-ratio: 370 / 300; object-fit: cover; background: var(--ink); }
.feature-text { padding: 24px 32px 36px; text-align: center; }
.feature-text h3 { font-size: 28px; line-height: 36px; font-weight: 700; }
.feature-text p { max-width: 290px; margin: 12px auto 0; color: var(--ink-soft); line-height: 26px; }

/* Pricing */
.plan { position: relative; display: flex; flex-direction: column; padding: 40px 36px 36px; overflow: visible; }
.plan-best { border: 2px solid var(--accent); }
.plan-badge {
  position: absolute; top: -13px; left: 36px; padding: 2px 12px; border-radius: 13px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; letter-spacing: 0.03em;
}
.plan h3 { font-size: 22px; line-height: 28px; font-weight: 700; }
.price { margin-top: 20px; font-size: 44px; line-height: 52px; font-weight: 700; }
.price small { color: var(--ink-soft); font-size: 17px; font-weight: 600; }
.plan-note { min-height: 52px; margin-top: 8px; color: var(--ink-soft); line-height: 26px; }
.plan ul { flex: 1; display: grid; align-content: start; gap: 12px; margin: 24px 0 28px; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 30px; line-height: 24px; }
.plan li::before {
  content: ""; position: absolute; left: 3px; top: 5px; width: 13px; height: 7px;
  border-left: 2.5px solid var(--success); border-bottom: 2.5px solid var(--success); transform: rotate(-45deg);
}
.plan-status {
  padding: 15px 16px; border-radius: 26px; background: var(--field);
  color: var(--ink-soft); font-weight: 600; line-height: 22px; text-align: center;
}
.fine-print { max-width: 860px; margin: 40px auto 0; color: var(--ink-soft); font-size: 15px; line-height: 24px; text-align: center; }
.fine-print + .fine-print { margin-top: 12px; }
.fine-print a, .consent a, .form-note a { color: var(--accent); }

/* Contact form */
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 784px; margin-inline: auto; }
.field-wide, .consent, .form-end { grid-column: 1 / -1; }
.field input, .field textarea {
  display: block; width: 100%; padding: 28px 32px; border: 0; border-radius: 42px;
  background: var(--field); color: var(--ink);
  font: inherit; font-size: 18px; line-height: 28px;
}
.field textarea { height: 280px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-placeholder); opacity: 1; }
.consent { display: flex; align-items: flex-start; gap: 16px; color: var(--ink-soft); line-height: 24px; cursor: pointer; }
.consent input {
  appearance: none; flex: none; width: 24px; height: 24px; margin: 0;
  border: 2px solid var(--outline); border-radius: 7px; background: #fff; cursor: pointer;
}
.consent input:checked {
  border-color: var(--accent); background: var(--accent) center / 14px 11px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M1.5 5.5l4 4 7-8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.form-end { display: grid; justify-items: center; gap: 20px; margin-top: 48px; text-align: center; }
.form-end .btn { width: min(296px, 100%); min-height: 64px; border-radius: 32px; font-size: 17px; line-height: 22px; }
.form-note { max-width: 560px; color: var(--ink-soft); font-size: 15px; line-height: 24px; }
.form-status { color: var(--accent-badge-text); font-weight: 600; }
.form-status:empty { display: none; }

/* Inner pages: the wave header with a white sheet over it, as in the app */
.page-hero {
  padding: 72px 0 124px; color: #fff;
  background: #5e14e6 url("/assets/header-wave.jpg") center / cover no-repeat;
}
.page-hero .wrap { max-width: 856px; }
.eyebrow { display: block; margin-bottom: 10px; color: #e6dcff; font-size: 15px; font-weight: 600; line-height: 20px; }
.page-hero p { margin-top: 16px; color: #f1ecff; font-size: 18px; line-height: 28px; }
.sheet { position: relative; margin-top: -52px; padding: 64px 0 112px; background: #fff; border-radius: 52px 52px 0 0; }
.sheet .wrap { max-width: 856px; }

/* Long text */
.prose { color: var(--ink-body); font-size: 17px; line-height: 28px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 48px; color: var(--ink); font-size: 26px; line-height: 32px; }
.prose h3 { margin-top: 28px; color: var(--ink); font-size: 18px; line-height: 26px; font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); overflow-wrap: anywhere; }
.prose .updated { color: var(--ink-soft); font-size: 15px; }
.notice, .toc { padding: 24px 28px; border-radius: 32px; background: var(--field); }
.prose .notice-h { margin: 0 0 12px; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink); }
.notice > * + *, .toc > * + * { margin-top: 12px; }
.notice ul, .toc ol { margin-top: 0; }
.toc li + li { margin-top: 3px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.form-lines { line-height: 2; }

.facts { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0 24px; padding: 8px 28px; border-radius: 32px; background: var(--field); }
.facts dt, .facts dd { padding: 13px 0; border-top: 1px solid var(--line); }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { color: var(--ink); }

/* Footer */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer .brand { color: var(--ink); }
.site-footer .brand img { width: 44px; height: 44px; border-radius: 12px; }
.footer-tag { max-width: 300px; margin-top: 16px; font-size: 15px; line-height: 24px; }
.site-footer h2 { margin-bottom: 14px; color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 700; }
.site-footer ul { display: grid; gap: 8px; padding: 0; list-style: none; font-size: 15px; line-height: 22px; }
.site-footer ul a { overflow-wrap: anywhere; text-decoration: none; }
.site-footer ul a:hover { color: var(--accent); }
.footer-legal { display: grid; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 22px; }
.footer-legal strong { color: var(--ink); font-weight: 600; }

/* 404 */
.not-found { padding: 96px 0 128px; text-align: center; }
.not-found p { margin: 20px 0 36px; color: var(--ink-soft); font-size: 18px; line-height: 28px; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu { display: block; }
  .header-end { gap: 12px; }
  .site-header .btn { min-height: 48px; padding: 0 26px; border-radius: 24px; }
  .cards { gap: 24px; }
  .feature-text { padding-inline: 20px; }
  .plan { padding-inline: 26px; }
  .plan-badge { left: 26px; }
}

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 32px; }
  .hero-visual { max-width: 640px; margin-inline: auto; }
  .hero-sub { max-width: 560px; margin-top: 24px; }
  .hero-actions { margin-top: 32px; }
  .section { padding-top: 88px; }
  .section-last { padding-bottom: 88px; }
  .section-head { margin-bottom: 44px; }
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; }
  .plan-note { min-height: 0; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 20px; }
  .site-header .wrap { min-height: 76px; gap: 10px; }
  .brand { gap: 10px; font-size: 17px; }
  .brand img { width: 44px; height: 44px; border-radius: 12px; }
  .site-header .btn { display: none; }
  .hero-actions .btn, .soon { width: 100%; justify-content: center; }
  .contact-form { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .field input, .field textarea { padding: 18px 24px; border-radius: 32px; }
  .field input { border-radius: 32px; }
  .field textarea { height: 220px; }
  .consent { margin-top: 8px; }
  .form-end { margin-top: 24px; }
  .page-hero { padding: 48px 0 104px; }
  .sheet { padding: 44px 0 80px; border-radius: 36px 36px 0 0; margin-top: -36px; }
  .prose { font-size: 16px; line-height: 26px; }
  .prose h2 { margin-top: 40px; font-size: 23px; line-height: 30px; }
  .notice, .toc { padding: 20px 22px; border-radius: 26px; }
  .facts { grid-template-columns: minmax(0, 1fr); padding: 8px 22px; border-radius: 26px; }
  .facts dt { padding-bottom: 0; }
  .facts dd { padding-top: 2px; border-top: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-contact { grid-column: 1 / -1; }
}
