/* Cognico — shared styles
   Warm, editorial, alive. Matches daynews.ai's personality:
   bold serif headlines, hand-drawn script accents, bordered cards,
   cream background — with modern motion and a startup pulse. */

/* Self-hosted fonts (no external dependency, works offline) */
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #faf8f3;
  --bg-2: #f4f1e9;
  --card: #fffdf8;
  --ink: #201d18;
  --ink-soft: #514c43;
  --ink-muted: #938d80;
  --line: #e4dfd3;
  --border-ink: #26221b;        /* daynews-style dark card border */
  --accent: #5b6b9a;            /* muted indigo — the script/link ink */
  --accent-deep: #45527a;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint dot-grid texture for subtle depth */
  background-image: radial-gradient(rgba(38,34,27,0.045) 1px, transparent 1.4px);
  background-size: 26px 26px;
  background-attachment: fixed;
}

.serif { font-family: "Playfair Display", Georgia, "Times New Roman", serif; }
.script { font-family: "Caveat", "Segoe Script", cursive; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px 0;
  background: rgba(250,248,243,0.82);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.scrolled { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.2px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta {
  border: 1.5px solid var(--border-ink);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--ink);
}
.nav .nav-cta:hover { background: var(--ink); color: var(--bg); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero .eyebrow {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 600; margin: 0 0 18px;
}
.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 92px;
  line-height: 0.98;
  letter-spacing: -1px;
  margin: 0;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.hero h1 .underline {
  display: block; width: 260px; height: 20px; margin: 6px 0 0 4px;
  color: var(--accent);
}
.hero .lead {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.28;
  color: var(--ink);
  margin: 30px 0 20px;
  max-width: 560px;
}
.hero .sub { font-size: 18px; color: var(--ink-soft); max-width: 500px; margin: 0 0 34px; }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--bg);
  padding: 13px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.2px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 0 rgba(38,34,27,0.04);
}
.btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(69,82,122,0.55); }
.btn svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.link-script {
  font-family: "Caveat", cursive;
  font-size: 25px; color: var(--accent); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 0.2s ease;
}
.link-script:hover { transform: translateX(2px); color: var(--accent-deep); }

/* Hero product card mock */
.hero-visual { display: flex; justify-content: center; }
.mock-card {
  width: 340px; max-width: 100%;
  background: var(--card);
  border: 1.5px solid var(--border-ink);
  border-radius: 20px;
  padding: 34px 30px 30px;
  text-align: center;
  box-shadow: 14px 18px 0 -2px rgba(38,34,27,0.06);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.mock-card .icon { color: var(--ink-muted); margin-bottom: 12px; }
.mock-card .kicker {
  font-size: 11.5px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 600;
}
.mock-card h3 {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: 34px; line-height: 1.06; margin: 8px 0 10px; color: var(--ink);
}
.mock-card .meta { font-size: 13.5px; color: var(--ink-muted); margin: 0 0 18px; }
.mock-card .row { display: flex; justify-content: center; gap: 22px; }
.mock-card .row .link-script { font-size: 23px; }
.mock-tag {
  margin-top: 16px; font-size: 12px; color: var(--ink-muted);
  letter-spacing: 0.3px;
}

/* ---------- Divider label ---------- */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 26px 0;
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: 54px; background: var(--line);
}
.divider .script { font-size: 24px; color: var(--ink-muted); }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
.eyebrow-c {
  font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 18px; font-weight: 600; text-align: center;
}

/* Product card */
.product {
  border: 1.5px solid var(--border-ink);
  border-radius: 20px;
  background: var(--card);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  box-shadow: 10px 12px 0 -2px rgba(38,34,27,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: 14px 18px 0 -2px rgba(38,34,27,0.07); }
.product .p-body { max-width: 520px; }
.product h3 {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: 40px; margin: 4px 0 12px; letter-spacing: -0.4px; color: var(--ink);
}
.product .tag {
  display: inline-block; font-size: 12px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px;
}
.product p { color: var(--ink-soft); margin: 14px 0 24px; }
.product p:last-child { margin-bottom: 0; }

.section-head {
  text-align: center;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.4px;
  margin: 0 0 30px;
  color: var(--ink);
}

/* second/quieter product tile */
.product + .product { margin-top: 22px; }
.product-soon {
  background: var(--bg-2);
  border-style: dashed;
  box-shadow: none;
  grid-template-columns: 1fr;
}
.product-soon:hover { transform: none; box-shadow: none; }
.product-soon h3 { color: var(--ink-soft); }
.tag-muted { color: var(--ink-muted) !important; }

/* Future / platform */
.future {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 52px 46px;
  text-align: center;
}
.future h2 {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: 38px; letter-spacing: -0.4px; margin: 0 0 14px; color: var(--ink);
}
.future p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 26px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  font-size: 14px; color: var(--ink-soft); font-weight: 500;
  border: 1px dashed #cfc9bb; border-radius: 999px; padding: 8px 18px;
  background: rgba(255,253,248,0.6);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--ink); }

/* Company */
.company { text-align: center; }
.company h2 {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: 30px; margin: 0 0 16px; color: var(--ink);
}
.company p { color: var(--ink-soft); max-width: 620px; margin: 0 auto; font-size: 19px; }
.contact-line { margin-top: 26px; font-size: 18px; color: var(--ink-soft); }
.contact-line a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 42px 0 64px;
  color: var(--ink-muted);
  font-size: 14.5px;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  align-items: flex-start; justify-content: space-between;
}
.site-footer .brand-sm {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: 18px; color: var(--ink-soft);
}
.site-footer .org { line-height: 1.55; }
.site-footer .legal a { color: var(--ink-soft); margin-right: 22px; font-weight: 500; }
.site-footer .legal a:hover { color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mock-card, .brand .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Legal pages ---------- */
.legal-page { padding-top: 8px; }
.legal-page h1 {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: 52px; letter-spacing: -0.6px; margin: 44px 0 6px; color: var(--ink);
}
.legal-page .updated { color: var(--ink-muted); font-size: 15px; margin: 0 0 36px; }
.legal-page h2 {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: 25px; margin: 40px 0 10px; color: var(--ink);
}
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.back-link { font-family: "Caveat", cursive; font-size: 22px; color: var(--accent); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 16px; margin: 30px 0 14px; }
.contact-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 22px 26px;
}
.contact-item .label {
  font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 600; margin: 0 0 6px;
}
.contact-item a { font-size: 20px; font-weight: 600; }
.contact-item .note { font-size: 14.5px; color: var(--ink-muted); margin: 6px 0 0; }
.contact-addr { color: var(--ink-soft); margin-top: 26px; line-height: 1.6; }
.contact-addr strong { color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { justify-content: flex-start; }
  .product { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 22px; }
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 62px; }
  .hero h1 .underline { width: 180px; }
  .hero .lead { font-size: 25px; }
  .hero .sub { font-size: 16.5px; }
  .mock-card { width: 100%; }
  .product { padding: 30px 26px; }
  .product h3 { font-size: 32px; }
  .future { padding: 38px 26px; }
  .future h2 { font-size: 30px; }
  .legal-page h1 { font-size: 38px; }
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
}
