/* ==========================================================================
   Recordly AI — Global Stylesheet
   Theme: Paper & Cobalt
   Font pairing: DM Serif Display (display) + Inter (body)
   ========================================================================== */

:root {
  --bg: #fafafa;
  --bg-elev: #f1f2f5;
  --ink: #111418;
  --ink-2: #2a2f37;
  --muted: #6b727d;
  --line: #e3e6ec;
  --accent: #1646e0;        /* cobalt */
  --accent-2: #0a2dab;
  --green: #0f7a4a;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --shadow: 0 1px 0 rgba(17,20,24,.04), 0 18px 50px -20px rgba(20,40,120,.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2 {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 .6em;
}
h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.4rem; line-height: 1.2; }
h4 { font-size: 1.1rem; }
p  { color: var(--ink-2); margin: 0 0 1rem; }
a  { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,91,31,.08);
  border: 1px solid rgba(255,91,31,.25);
  padding: .35rem .7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,250,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-size: .94rem;
  color: var(--ink-2);
  font-weight: 500;
}
.nav-links a.active { color: var(--ink); }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); color: var(--bg); }

/* ============== SECTIONS ============== */
section {
  padding: 96px 0;
}
.hero {
  padding: 100px 0 80px;
}
.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head.center { margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }

/* HERO */
.hero {
  padding: 100px 0 80px;
}
.hero h1 {
  max-width: 14ch;
  margin-bottom: 24px;
}
.hero .lead {
  font-size: 1.2rem;
  max-width: 56ch;
  color: var(--ink-2);
}
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .9rem;
}
.hero-meta strong { color: var(--ink); }

/* GRIDS */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* CARD */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--ink); }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: 32px 28px;
}
.stat .num {
  font-family: 'Inter', sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
}
.stat .label { color: var(--muted); font-size: .92rem; margin-top: 4px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* SPLIT */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* MEDIA PANEL (decorative "screenshot") */
.panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.panel-head span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--line);
}
.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .92rem;
}
.panel-row:last-child { border-bottom: none; }
.panel-row .who {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.tag {
  font-size: .72rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(26,122,76,.12);
  color: var(--green);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tag.warn { background: rgba(255,91,31,.12); color: var(--accent); }
.tag.info { background: rgba(31,59,255,.10); color: var(--accent-2); }

/* FAQ */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { content: '–'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: var(--muted);
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-top: 14px;
}

/* PRICE TABLE */
.price-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .price-table { grid-template-columns: 1fr; } }
.price {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.price.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.price.featured h3, .price.featured .amt { color: var(--bg); }
.price.featured p, .price.featured li { color: rgba(244,241,234,.78); }
.price h3 { font-size: 1.2rem; margin-bottom: 8px; }
.amt {
  font-family: 'Inter', sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -.03em;
  margin: 8px 0 4px;
}
.amt small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.price ul { padding: 0; list-style: none; margin: 22px 0; }
.price li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: .94rem;
  color: var(--ink-2);
}
.price.featured li { border-color: rgba(244,241,234,.12); }

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.tl-item {
  position: relative;
  padding-bottom: 36px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-item h4 { margin-bottom: 4px; font-family: 'Inter', sans-serif; }
.tl-item .when {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

/* QUOTE */
.quote {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.quote blockquote {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.quote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  color: var(--muted);
  font-size: .92rem;
}

/* LOGO STRIP */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
  opacity: .85;
}
.logos div {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  text-align: center;
  color: var(--muted);
  padding: 14px 0;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
@media (max-width: 900px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* CTA BAND */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
}
.cta-band h2 { color: var(--bg); margin: 0; max-width: 22ch; }
.cta-band p { color: rgba(244,241,234,.7); margin: 8px 0 0; }
.cta-band .btn-primary { background: var(--accent); color: #fff; }
.cta-band .btn-primary:hover { background: #fff; color: var(--ink); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 36px; } }

/* FEATURE LIST */
.feat-list { list-style: none; padding: 0; margin: 0; }
.feat-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.feat-list li:first-child { border-top: none; }
.feat-list .check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  margin-top: 2px;
}
.feat-list strong { display: block; font-family: 'Inter', sans-serif; }

/* FOOTER */
footer {
  background: var(--ink);
  color: rgba(244,241,234,.78);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
footer h5 {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 16px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { padding: 5px 0; }
footer a { color: rgba(244,241,234,.7); font-size: .94rem; }
footer a:hover { color: var(--accent); }
footer .brand { color: var(--bg); margin-bottom: 14px; }
footer .legal {
  border-top: 1px solid rgba(244,241,234,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: rgba(244,241,234,.55);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* PAGE HERO (interior pages) */
.page-hero {
  padding: 80px 0 60px;
}
.page-hero h1 { max-width: 18ch; }
.page-hero p { font-size: 1.15rem; max-width: 60ch; }

/* MOBILE NAV */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px;
    align-items: stretch;
    gap: 6px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .nav-cta { text-align: center; }
}

/* TABLE */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.compare th {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  font-weight: 600;
}
.compare tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--green); font-weight: 600; }
.compare .no  { color: var(--muted); }

/* BLOG CARDS */
.post {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--ink) 0%, #2a2a2e 100%);
  position: relative;
  display: flex; align-items: flex-end;
  padding: 20px;
  color: var(--bg);
}
.post .thumb.alt { background: linear-gradient(135deg, var(--accent) 0%, #b53d10 100%); }
.post .thumb.acc { background: linear-gradient(135deg, var(--accent-2) 0%, #0a1f99 100%); }
.post .thumb.grn { background: linear-gradient(135deg, var(--green) 0%, #0e4d2f 100%); }
.post .thumb span {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.post .body { padding: 22px; }
.post .meta { font-size: .8rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.post h3 { margin: 8px 0; font-size: 1.15rem; }

/* FORMS */
form.contact {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 16px;
}
form.contact label {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
form.contact input,
form.contact select,
form.contact textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
}
form.contact textarea { min-height: 130px; resize: vertical; }
form.contact input:focus,
form.contact select:focus,
form.contact textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

/* JOB ROW */
.job {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.job:last-child { border-bottom: 1px solid var(--line); }
.job h4 { margin: 0; font-family: 'Inter', sans-serif; }
.job .meta { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .job { grid-template-columns: 1fr; } }

/* DOTS DECOR */
.dots {
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
}
