/* prenog.ai — homepage hero styles. Values here are the source of truth. */

/* Manrope, served from this site: one variable file holds every weight the page uses. SIL Open Font License,
   fonts/OFL.txt. A new version of the file gets a new name, because the file is cached for a year. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/manrope-v20-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pn-bg: #F6F6F3;        /* page background, warm off-white */
  --pn-ink: #16181B;       /* primary text, logo, button */
  --pn-ink-hover: #2A2E33; /* button hover */
  --pn-body: #4A4F56;      /* subhead text */
  --pn-muted: #5E636A;     /* secondary text, Log in link */
  --pn-faint: #8A8F96;     /* ".ai" in the wordmark */
  --pn-rule: #E2E2DC;      /* hairline divider */
  --pn-accent: #3E5A76;    /* link hover */
  --pn-font: 'Manrope', system-ui, -apple-system, sans-serif;
  --pn-max: 1200px;
  --pn-gutter: 24px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--pn-bg);
  color: var(--pn-ink);
  font-family: var(--pn-font);
  -webkit-font-smoothing: antialiased;
}

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

.pn-container {
  width: 100%;
  max-width: var(--pn-max);
  margin: 0 auto;
  padding-left: var(--pn-gutter);
  padding-right: var(--pn-gutter);
}

/* Header */
.pn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 28px;
}
.pn-logo { display: flex; align-items: center; text-decoration: none; }
.pn-logo img { height: 31px; width: auto; display: block; }
.pn-nav { display: flex; align-items: center; gap: 24px; }
.pn-nav a {
  font-size: 15px;
  text-decoration: none;
  min-height: 44px;
  padding: 12px 4px;
  display: inline-flex;
  align-items: center;
}
.pn-nav .pn-login { font-weight: 400; color: var(--pn-muted); }
.pn-nav .pn-login:hover { color: var(--pn-ink); }
.pn-nav .pn-book { font-weight: 500; }

/* Hero */
.pn-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  padding-top: 64px;
  padding-bottom: 96px;
}
.pn-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.015em;
}
.pn-hero .pn-sub {
  margin: 0;
  max-width: 660px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--pn-body);
}
.pn-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 8px; }
.pn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--pn-ink);
  color: var(--pn-bg);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s ease;
}
.pn-cta:hover { background: var(--pn-ink-hover); color: var(--pn-bg); }

/* Animated mark: the loop draws itself, then the dot slips out and drifts */
.pn-mark { width: 132px; height: 132px; }
.pn-mark .pn-loop {
  stroke-dasharray: 142;
  stroke-dashoffset: 142;
  animation: pn-draw 1.6s cubic-bezier(.4, 0, .2, 1) .2s forwards;
}
.pn-mark .pn-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pn-appear .9s ease-out 1.5s forwards, pn-drift 6s ease-in-out 2.4s infinite;
}
@keyframes pn-draw   { from { stroke-dashoffset: 142; } to { stroke-dashoffset: 0; } }
@keyframes pn-appear { from { opacity: 0; transform: translate(-6px, 6px); } to { opacity: 1; transform: translate(0, 0); } }
@keyframes pn-drift  { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2.5px, -2.5px); } }
@media (prefers-reduced-motion: reduce) {
  .pn-mark .pn-loop { animation: none; stroke-dashoffset: 0; }
  .pn-mark .pn-dot { animation: none; opacity: 1; }
}

/* Supporting lines */
.pn-points { padding-bottom: 112px; }
.pn-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  border-top: 1px solid var(--pn-rule);
  padding-top: 48px;
}
.pn-points h2 { margin: 0 0 10px; font-size: 19px; font-weight: 500; }
.pn-points p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--pn-muted); }
