/* Briefit landing — warm paper, one orange accent, defined cards. */

:root {
  --bg: #f7f6f4;
  --ink: #1f1d1a;
  --body: #3b3833;
  --muted: #6f6a62;
  --surface: #ffffff;
  --border: #e7e3db;
  --border-strong: #d8d3c9;
  --accent: #ff3e00;
  --accent-strong: #d93500;
  --accent-soft: #ffe9e1;
  --shadow: 0 18px 55px rgba(51, 46, 38, 0.08);
  --radius-card: 16px;
  --radius-btn: 999px;
  --serif: "Lora", Georgia, serif;
  --sans: "Nunito", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); }

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 244, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.wordmark .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}

.nav-links a:hover { color: var(--ink); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.login {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.login:hover { color: var(--accent-strong); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 22px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(217, 53, 0, 0.25);
}

.btn-ghost {
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
  background: var(--surface);
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-lg { padding: 14px 30px; font-size: 17px; }

/* ---------- Hero ---------- */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 24px clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.7rem, 6vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  border-bottom: 4px solid var(--accent);
  padding-bottom: 2px;
}

.hero .sub {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.65;
  max-width: 34em;
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.quiet-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}

.quiet-link:hover { color: var(--ink); }

/* Rotating prompt line */

.prompt-line {
  margin-top: 34px;
  display: flex;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.prompt-carousel {
  position: relative;
  display: inline-block;
  height: 1.6em;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--accent-strong);
}

.prompt-carousel span {
  display: block;
  height: 1.6em;
  animation: prompt-cycle 12.5s infinite;
}

@keyframes prompt-cycle {
  0%, 17%   { transform: translateY(0); }
  20%, 37%  { transform: translateY(-1.6em); }
  40%, 57%  { transform: translateY(-3.2em); }
  60%, 77%  { transform: translateY(-4.8em); }
  80%, 97%  { transform: translateY(-6.4em); }
  100%      { transform: translateY(-8em); }
}

/* Hero window mock */

.hero-visual { position: relative; }

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(closest-side, rgba(255, 62, 0, 0.07), transparent 70%);
  z-index: 0;
}

.window {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: #fbfaf8;
}

.wdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e3ded6;
}

.window-title {
  margin-left: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

.window-body { padding: 20px; }

.msg {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.5;
}

.msg-user {
  margin-left: auto;
  background: var(--ink);
  color: #f5f3ef;
  border-bottom-right-radius: 4px;
}

.msg-assistant {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--body);
  border-bottom-left-radius: 4px;
}

.steps {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-left: 4px;
}

.step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  flex: none;
}

.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12.5px;
  color: var(--ink);
}

/* staggered entrance for window steps */

.step, .msg-assistant.step-5 { opacity: 0; animation: step-in 420ms ease forwards; }
.step-1 { animation-delay: 500ms; }
.step-2 { animation-delay: 950ms; }
.step-3 { animation-delay: 1400ms; }
.step-4 { animation-delay: 1850ms; }
.step-5 { animation-delay: 2400ms; }

@keyframes step-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 24px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  letter-spacing: -0.015em;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 38em;
}

/* ---------- Bento ---------- */

.bento {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(51, 46, 38, 0.07);
}

.card-icon { font-size: 26px; }

.card h3 {
  margin: 14px 0 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17.5px;
}

.card p { font-size: 15px; color: var(--muted); }

/* ---------- Spotlights ---------- */

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.spotlight-flip .spot-copy { order: 2; }
.spotlight-flip .spot-visual { order: 1; }

.spot-copy h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.015em;
}

.spot-copy p { margin-top: 16px; max-width: 32em; }

.spot-foot { font-size: 15px; color: var(--muted); }

/* Briefing mock */

.brief-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 22px;
}

.brief-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.brief-day { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); }

.brief-time { font-size: 13px; font-weight: 700; color: var(--muted); }

.brief-row {
  padding: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.brief-tag {
  flex: none;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 2px 7px;
}

.brief-tag-mail { color: #315c9d; background: #e6edf7; }
.brief-tag-cal  { color: #3d7a45; background: #e7f2e8; }

/* Agent timeline mock */

.timeline {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tl-row { display: flex; gap: 14px; font-size: 14.5px; align-items: baseline; }

.tl-time {
  flex: none;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--muted);
  width: 38px;
}

.tl-done .tl-text { color: var(--accent-strong); font-weight: 700; }

/* Desktop mock */

.desk-screen {
  position: relative;
  background: linear-gradient(160deg, #edeae4, #e2ded6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 34px;
  min-height: 220px;
}

.desk-window {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  max-width: 320px;
  overflow: hidden;
}

.desk-bar {
  display: flex;
  gap: 5px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  background: #fbfaf8;
}

.desk-rows { padding: 14px; display: flex; flex-direction: column; gap: 9px; }

.desk-row { height: 12px; border-radius: 6px; background: var(--border); width: 60%; }
.desk-row-wide { width: 85%; }
.desk-row-accent { background: var(--accent-soft); width: 45%; }

.cursor {
  position: absolute;
  right: 22%;
  bottom: 24%;
  font-size: 22px;
  color: var(--ink);
  animation: cursor-drift 5s ease-in-out infinite alternate;
}

@keyframes cursor-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-46px, -30px); }
}

.desk-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- How it works ---------- */

.steps-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hstep {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.hstep-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #f5f3ef;
  font-weight: 800;
  font-size: 15px;
}

.hstep h3 { margin: 16px 0 8px; font-size: 17.5px; font-weight: 700; }

.hstep p { font-size: 15px; color: var(--muted); }

/* ---------- Plans ---------- */

.plans {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.plan-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan h3 { font-size: 18px; font-weight: 700; }

.price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 40px;
  color: var(--ink);
  margin: 10px 0 18px;
  letter-spacing: -0.02em;
}

.price span {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.plan ul {
  list-style: none;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.plan ul li::before {
  content: "✓";
  color: var(--accent-strong);
  font-weight: 800;
  margin-right: 9px;
}

.plan .btn { text-align: center; margin-top: auto; }

/* ---------- Final CTA ---------- */

.final { text-align: center; }

.trust {
  max-width: 34em;
  margin: 0 auto 34px;
  font-size: 15.5px;
  color: var(--muted);
}

.final-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.wordmark-sm { font-size: 17px; }

.foot-copy { flex: 1; }

.foot-links { display: flex; gap: 18px; font-weight: 600; }

.foot-links a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) 24px;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.legal .updated {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  margin: 44px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.legal h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
  margin: 26px 0 6px;
}

.legal p, .legal li { font-size: 15.5px; color: var(--body); line-height: 1.62; }

.legal p { margin-top: 12px; }

.legal ul { margin: 12px 0 0 22px; display: flex; flex-direction: column; gap: 7px; }

.legal .toc-line { margin: 4px 0 0; color: var(--muted); }

.legal a { color: var(--accent-strong); font-weight: 600; word-break: break-word; }

.legal h1 + .updated { margin-top: 12px; }
.legal .updated + .updated { margin-top: 2px; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prompt-carousel span { animation: none; }
  .step, .msg-assistant.step-5 { opacity: 1; animation: none; }
  .cursor { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-visual { max-width: 560px; }
  .bento, .steps-grid, .plans { grid-template-columns: 1fr 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-flip .spot-copy { order: 1; }
  .spotlight-flip .spot-visual { order: 2; }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  .bento, .steps-grid, .plans { grid-template-columns: 1fr; }
  .hero .sub { font-size: 17px; }
  .prompt-line { font-size: 13.5px; }
  .hero-cta { flex-wrap: wrap; }
  .footer-inner { flex-wrap: wrap; row-gap: 8px; }
  .plan-featured { order: -1; }
}
