/* EntryFi landing — tokens lifted from Figma "AI Accounting Software Landing Page" (node 0:3) */

:root {
  /* palette */
  --ink:        #173c2b;  /* headings, dark sections */
  --ink-nav:    #172720;  /* nav labels */
  --green:      #1f6b4c;  /* primary button */
  --green-mid:  #42765b;  /* eyebrow on light */
  --green-soft: #4a8970;  /* accent text */
  --green-pale: #9ac6a9;  /* eyebrow on dark */
  --lime:       #d4f04c;  /* secondary button */
  --cream:      #fbfbf5;
  --sand:       #f6f7f3;  /* hero background */
  --sand-2:     #f6f7f2;  /* video frame background */
  --line:       #d8ddd5;
  --line-dark:  #4a6658;
  --on-dark:    #c5d0c8;
  --on-dark-dim:#82988a;

  /* type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:    "Montserrat", system-ui, -apple-system, sans-serif;
  --font-ui:      "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono:    "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --frame:   1380px;
  --gutter:  56px;
}

@media (max-width: 767px) {
  :root { --gutter: 24px; }
}

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

html { -webkit-text-size-adjust: 100%; }

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:where(a, button):focus-visible {
  outline: 2px solid var(--green-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── shared bits ─────────────────────────────────────────── */

.frame {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 16.5px;
  letter-spacing: 1.76px;
  text-transform: uppercase;
  color: var(--green-mid);
}
.eyebrow__rule {
  width: 32px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow--light { color: var(--green-pale); font-weight: 400; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: #1a5c41; }

.btn--lime {
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
}
.btn--lime:hover { background: #c7e63c; }

.logo img { width: 80px; height: auto; }

/* ── navigation ──────────────────────────────────────────── */

.nav { background: #fff; }

.nav__inner {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-nav);
}

.nav__link--underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink-nav);
}
.nav__link--underline img { width: 16px; height: 16px; }

/* ── hero ────────────────────────────────────────────────── */

.hero { background: var(--sand); }

.hero__inner {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding: 80px var(--gutter);
}

.hero__title {
  /* 634px in Figma — the width that breaks the line after "Can" */
  max-width: 640px;
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6.2vw, 70px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.hero__sub {
  max-width: 663px;
  margin: 12px 0 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--ink);
}

.hero .btn { margin-top: 32px; }

/* ── showcase ────────────────────────────────────────────── */

.showcase { background: #fff; }

.showcase__inner {
  width: 100%;
  max-width: calc(905px + var(--gutter) * 2);
  margin-inline: auto;
  padding: 80px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.showcase__lead {
  max-width: 470px;
  margin: 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  text-align: justify;
  color: var(--ink);
}

.accent { color: var(--green-soft); }
.accent--bold { font-weight: 600; }

/* video frame — click target. The Figma placeholder is 905×530; the real clip is
   16:9, so the frame follows the clip to avoid cropping the product UI. */
.player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--sand-2);
  overflow: hidden;
  cursor: pointer;
  /* three faint columns from the design, drawn as a background so the video sits on top */
  background-image:
    linear-gradient(to right, #ecefe9 1px, transparent 1px),
    linear-gradient(to right, #ecefe9 1px, transparent 1px);
  background-position: 37.4% 0, 74.8% 0;
  background-repeat: no-repeat;
  background-size: 1px 100%, 1px 100%;
}

/* absolute, not width/height:100% — a <button> does not resolve percentage
   heights for its children, so the video kept its intrinsic size and spilled out */
.player__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player__hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(23, 60, 43, .82);
  color: var(--cream);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  backdrop-filter: blur(4px);
  transition: background-color .18s ease;
}
.player:hover .player__hint { background: rgba(23, 60, 43, .95); }

/* ── closing CTA ─────────────────────────────────────────── */

.cta { background: var(--ink); }

.cta__inner {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding: 40px var(--gutter);
}

.cta__row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta__title {
  max-width: 860px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--cream);
}

/* ── footer ──────────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: var(--on-dark);
}

.footer__inner {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding: 40px var(--gutter) 32px;
}

.footer__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}

.footer__brand { max-width: 240px; }

.footer__tagline {
  margin: 16px 0 0;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  color: var(--on-dark);
}

.footer__links {
  display: flex;
  gap: 32px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
}
.footer__links a:hover { color: var(--cream); }

.footer__legal {
  margin: 56px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

/* ── full-screen fallback player ─────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(9, 24, 17, .94);
}
.lightbox[hidden] { display: none; }

.lightbox__video {
  width: 100%;
  max-width: 1200px;
  max-height: 100%;
  border-radius: 4px;
  background: #000;
}

.lightbox__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: var(--cream);
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .22); }

body.is-locked { overflow: hidden; }

/* ── responsive ──────────────────────────────────────────── */

@media (max-width: 900px) {
  .cta__row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 28px; }
}

@media (max-width: 767px) {
  .hero__inner { padding-block: 56px 64px; }
  .showcase__inner { padding-block: 56px; gap: 20px; }
  .showcase__lead { max-width: none; text-align: left; }
  .player { aspect-ratio: 16 / 9; }
  .player__hint { right: 12px; bottom: 12px; font-size: 12px; padding: 7px 12px; }
  .nav__actions { gap: 20px; }
  .footer__legal { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
  * { transition-duration: .01ms !important; }
}
