/* ===== prisca marketing site ===== */

:root {
  /* Brand accents (shared across themes) */
  --teal:   #98BBC2;
  --sage:   #A8B28F;
  --orange: #FC894B;
  --yellow: #FEE27E;

  /* Primary action / accent */
  --accent: #A8B28F;       /* sage */
  --accent-strong: #8e9a74; /* slightly deeper sage for hover */
  --on-accent: #272727;    /* text on accent surfaces */

  /* Type */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1080px;
  --radius: 16px;
  --radius-pill: 999px;
}

/* Color tokens */
:root {
  --bg: #ffffff;
  --surface: #fbfaf8;
  --surface-2: #f4f2ee;
  --text: #272727;
  --text-muted: #6b6b6b;
  --border: rgba(39, 39, 39, 0.10);
  --shadow: 0 8px 30px rgba(39, 39, 39, 0.06);
  --btn-bg: #272727;
  --btn-fg: #ffffff;
  --btn-bg-hover: #3d3d3d;
  --pill-bg: #eef4f5;
  --pill-text: #4d6f76;
  --pill-border: #d9e6e8;
}

/* ===== base ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

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

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 8px; z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== logo ===== */
.logo { height: 30px; width: auto; }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(39, 39, 39, 0.18); }

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap; gap: 24px; height: 68px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }

.nav { display: flex; align-items: center; }
.nav-menu {
  display: flex; align-items: center; flex-wrap: nowrap;
  white-space: nowrap; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a:not(.btn) { font-size: 15px; color: var(--text-muted); transition: color 0.2s ease; }
.nav-menu a:not(.btn):hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== hero ===== */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  text-align: center;
  padding: 48px 0;
}
.hero-inner { width: 100%; margin: 0 auto; }
.hero-title { margin-left: auto; margin-right: auto; }

.hero-title { font-size: clamp(30px, 5.2vw, 52px); white-space: nowrap; margin-bottom: 22px; }
.type-word { color: var(--accent-strong); }
.type-cursor {
  display: inline-block; width: 0.07em; height: 0.95em;
  background: var(--accent-strong); margin-left: 0.06em;
  vertical-align: -0.12em; border-radius: 1px;
  animation: cursor-blink 1.05s steps(1, end) infinite;
}
@keyframes cursor-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.hero-micro { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

/* ===== waitlist form ===== */
.waitlist-form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  position: relative;
}
.waitlist-form input {
  font-family: var(--font-body); font-size: 15px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 13px 22px; width: 320px; max-width: 100%;
  transition: border-color 0.2s ease;
}
.waitlist-form input::placeholder { color: var(--text-muted); }
.waitlist-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(168, 178, 143, 0.30); }
.form-message {
  flex-basis: 100%; font-size: 13px; margin-top: 8px; min-height: 1em;
}
.form-message.success { color: var(--sage); }
.form-message.error { color: var(--orange); }

/* ===== sections ===== */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12px; font-weight: 700; color: var(--accent-strong); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); }

/* features — clickable group cards that open a modal */
.feature-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.fcard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 13px;
  min-height: 190px; width: 100%; text-align: left; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid transparent; border-radius: 18px;
  padding: 24px 22px; cursor: pointer;
  transition: transform 0.35s cubic-bezier(.22, 1, .36, 1), background 0.3s ease, box-shadow 0.3s ease;
}
.fcard:hover { transform: translateY(-4px); background: var(--surface-2); box-shadow: var(--shadow); }
.fcard .feature-icon { margin: 0; }
.fcard .feature-icon svg { width: 40px; height: 40px; }
.fcard-title {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.18;
}
.fcard-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.fcard-cue {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
  font-size: 13px; font-weight: 600; color: var(--accent-strong);
}
.fcard-cue svg { width: 15px; height: 15px; transition: transform 0.3s ease; }
.fcard:hover .fcard-cue svg { transform: translateX(3px); }

/* individual feature (shown inside the modal) */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.feature-icon { display: inline-flex; color: var(--accent-strong); margin-bottom: 12px; }
.feature-icon svg { width: 26px; height: 26px; filter: url(#rough); }
.feature h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 7px; }
.feature p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(20, 20, 20, 0.45);
  opacity: 0; transition: opacity 0.3s ease;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-dialog {
  position: relative; z-index: 1; width: 100%; max-width: 820px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--bg); border: 1px solid var(--border); border-radius: 22px;
  padding: 40px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.22, 1, .36, 1);
}
.modal.open .modal-dialog { opacity: 1; transform: none; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: background 0.2s ease;
}
.modal-close:hover { background: var(--surface-2); }
.modal-close svg { width: 18px; height: 18px; }
.modal-icon { display: inline-flex; color: var(--accent-strong); margin-bottom: 14px; }
.modal-icon svg { width: 30px; height: 30px; }
.modal-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 30px; }
.modal-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 32px; }

/* about */
.about-inner {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center;
}
.about-mark {
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.about-mark img { width: 150px; height: auto; }
.about-copy h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 18px; }
.about-copy p { color: var(--text-muted); margin-bottom: 16px; font-size: 16px; }

/* cta */
.cta { text-align: center; }
.cta-inner { max-width: 620px; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.cta-inner > p { color: var(--text-muted); font-size: 18px; margin-bottom: 30px; }
.cta-contact { margin-top: 22px; font-size: 14px; color: var(--text-muted); }
.cta-contact a { color: var(--accent-strong); font-weight: 600; }
.platforms {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px; list-style: none; margin: 0 0 28px; padding: 0;
}
.platforms li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 16px; border-radius: var(--radius-pill);
}
.platforms li svg { width: 16px; height: 16px; }

/* ===== footer ===== */
.site-footer { padding: 40px 0 36px; background: var(--bg); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap; padding-bottom: 28px;
}
.footer-tag { color: var(--text-muted); font-size: 14px; margin-top: 12px; max-width: 260px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 15px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 12px;
}

/* ===== legal / terms page ===== */
.legal { padding: 64px 0 96px; }
.legal-inner { max-width: 760px; }
.back-link { display: inline-block; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.back-link:hover { color: var(--accent-strong); }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; }
.legal-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.legal-note {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 36px;
  font-size: 14px; color: var(--text-muted);
}
.legal h2 { font-size: 22px; margin: 38px 0 12px; }
.legal p { color: var(--text-muted); margin-bottom: 14px; }
.legal ul { color: var(--text-muted); margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent-strong); font-weight: 600; }

/* ===== responsive ===== */
@media (max-width: 1040px) {
  .feature-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 22px 24px; transform: translateY(-130%);
    transition: transform 0.28s ease; z-index: -1;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-actions { width: 100%; justify-content: space-between; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-mark { padding: 40px; }
  .section { padding: 70px 0; }
  .hero { padding: 56px 0; }
}

@media (max-width: 720px) {
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .modal-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .hero-title { white-space: normal; font-size: clamp(30px, 8.5vw, 42px); }
}

@media (max-width: 560px) {
  .feature-cards { grid-template-columns: 1fr; }
  .fcard { min-height: 0; }
  .modal-dialog { padding: 30px 24px; }
  .modal-features { grid-template-columns: 1fr; }
}

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
