/* ============================================================
   Quickcomp.AI — public landing page
   Ported from the Claude Design handoff (design_handoff_quickcomp_landing).
   Standalone: owns its own tokens; not coupled to the in-app stylesheet.
   Soft warm-neutral paper · navy ink · peach accent.
   ============================================================ */

:root {
  /* Brand */
  --navy:        #1A2547;
  --navy-soft:   #2A335A;
  --navy-deep:   #11173A;
  --peach:       #F4B89A;
  --peach-soft:  #FAD6C2;
  --peach-deep:  #D88A63;

  /* Warm slate ink scale */
  --ink-1: #1A2547;
  --ink-2: #4A526B;
  --ink-3: #7B8298;
  --ink-4: #A8ADBD;

  /* Surfaces */
  --cream:  #FAF7F2;
  --sunken: #F3EFE6;
  --white:  #FFFFFF;

  /* Lines */
  --line:   #E3DFD6;
  --line-2: #EDE9DF;
  --line-3: #D5D0C4;

  /* Semantic — grade A / info (used by the mockups) */
  --okA-bg: #E1F5EE; --okA-fg: #085041; --okA-dot: #1D9E75;
  --info-bg: #E6F1FB; --info-fg: #0C447C; --info-dot: #378ADD;

  --paper: var(--cream);

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 56px);

  --shadow-sm: 0 1px 2px rgba(26,37,71,.04), 0 2px 6px rgba(26,37,71,.05);
  --shadow-md: 0 4px 12px rgba(26,37,71,.06), 0 18px 48px rgba(26,37,71,.09);
  --shadow-lg: 0 8px 24px rgba(26,37,71,.08), 0 40px 96px rgba(26,37,71,.13);

  --radius: 22px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-1);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 1;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

::selection { background: var(--peach-soft); color: var(--navy-deep); }

/* ---- shared layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--peach-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--peach);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 24px; border-radius: 999px;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), background .22s, color .22s, box-shadow .22s, border-color .22s;
  white-space: nowrap; cursor: pointer; border: none;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 1px 1px rgba(17,23,58,.2), 0 8px 22px rgba(26,37,71,.22);
}
.btn-primary:hover {
  background: var(--navy-soft); transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(17,23,58,.2), 0 14px 30px rgba(26,37,71,.28);
}

.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--line-3);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(26,37,71,.03); transform: translateY(-1px); }

.btn-sm { padding: 10px 18px; font-size: 14px; }

.btn-text {
  color: var(--navy); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 7px;
  transition: gap .2s, color .2s;
}
.btn-text:hover { color: var(--peach-deep); gap: 11px; }

/* scroll-driven reveal — pure CSS, content visible by default (failsafe).
   Where supported, opacity/transform link to scroll position as the element
   enters the viewport. No JS, so content can never get stuck hidden. */
.rise { opacity: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise {
      animation: riseIn linear both;
      animation-timeline: view();
      animation-range: entry 2% cover 22%;
    }
    .rise.rise-late { animation-range: entry 8% cover 30%; }
  }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- NAV ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; height: 30px; }
.nav-word { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.nav-word .dot, .nav-word .ai { color: var(--peach-deep); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links .lnk {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links .lnk:hover { color: var(--navy); background: rgba(26,37,71,.04); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
@media (max-width: 720px) {
  .nav-links .lnk { display: none; }
  .nav-cta .req { display: none; }
}

/* ---------------- HERO ---------------- */
.hero { position: relative; padding-top: 64px; }
.hero-bg-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 50% 8%, rgba(244,184,154,.20), transparent 70%),
    radial-gradient(50% 40% at 88% 30%, rgba(244,184,154,.10), transparent 70%);
}
.hero-centered {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 90px var(--pad) 70px; position: relative; z-index: 1;
}
.hero-eyebrow { margin-bottom: 30px; }
.hero h1 {
  font-size: clamp(40px, 6.8vw, 86px);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 700;
  margin: 0; color: var(--navy); text-wrap: balance;
}
.hero-sub {
  font-size: clamp(17px, 2.1vw, 21px); line-height: 1.5; color: var(--ink-2);
  max-width: 600px; margin: 26px auto 0; text-wrap: pretty; font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--ink-3); font-family: 'IBM Plex Mono', monospace; letter-spacing: .02em; }

/* logo mark wrapper + animation */
.logo-mark {
  position: relative; display: inline-block;
  width: clamp(96px, 13vw, 150px); aspect-ratio: 219/299;
  opacity: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-mark .shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--mark-mask) center/contain no-repeat;
          mask: var(--mark-mask) center/contain no-repeat;
}
.logo-mark.lit { opacity: 1; }
.hero-mark-big { margin-bottom: 40px; }

/* sweep animation (locked-in default) */
.anim-sweep .logo-mark { animation: markIn 1s cubic-bezier(.2,.7,.2,1) forwards; }
.anim-sweep .logo-mark .shine {
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0) 44%, rgba(250,214,194,.95) 50%, rgba(255,255,255,0) 56%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0;
  opacity: 0; mix-blend-mode: screen;
}
.anim-sweep .logo-mark.lit .shine { animation: sweep 3.6s ease-in-out 1.1s infinite; }

@keyframes markIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); filter: blur(2px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes sweep {
  0%   { background-position: 130% 0; opacity: 0; }
  12%  { opacity: 1; }
  45%  { background-position: -130% 0; opacity: 1; }
  55%  { opacity: 0; }
  100% { background-position: -130% 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark, .logo-mark.lit { animation: none !important; opacity: 1 !important; }
  .logo-mark .shine { animation: none !important; opacity: 0 !important; }
}

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-3); font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: .15em; text-transform: uppercase; z-index: 2;
}
.scroll-cue .dot { width: 22px; height: 34px; border: 1.5px solid var(--line-3); border-radius: 12px; position: relative; }
.scroll-cue .dot::after {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 6px; border-radius: 3px; background: var(--peach-deep);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%,100% { opacity: .3; transform: translate(-50%,0); }
  50%     { opacity: 1; transform: translate(-50%,9px); }
}

/* ---------------- PRODUCT SECTIONS ---------------- */
.product {
  padding: clamp(80px, 11vw, 150px) 0;
  border-top: 1px solid var(--line-2);
}
.product .wrap {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(36px, 6vw, 92px);
}
.product.flip .wrap { direction: rtl; }
.product.flip .wrap > * { direction: ltr; }

.product-copy h2 {
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.03em;
  font-weight: 700; color: var(--navy); margin: 18px 0 0; text-wrap: balance;
}
.product-copy .lead {
  font-size: clamp(16px,1.9vw,19px); color: var(--ink-2); line-height: 1.55;
  margin: 20px 0 0; max-width: 460px; text-wrap: pretty;
}
.product.flip .product-copy .lead { margin-left: auto; }
.feat-list { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.feat-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--ink-1); line-height: 1.45; }
.feat-list .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--peach-soft); color: var(--peach-deep);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.product-copy .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .product .wrap, .product.flip .wrap { grid-template-columns: 1fr; direction: ltr; }
  .product .product-visual { order: -1; }
}

/* ---- mockup shell ---- */
.mock {
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--line-2); background: var(--sunken); }
.mock-bar .mb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-3); }
.mock-bar .title { margin-left: 8px; font-size: 12px; color: var(--ink-3); font-family: 'IBM Plex Mono', monospace; }

/* listing thumbnail — striped gradient shows while the image loads */
.comp-ph, .res-card .ph {
  background: repeating-linear-gradient(135deg, var(--sunken), var(--sunken) 8px, #efe9dd 8px, #efe9dd 16px);
  border-radius: 8px;
  object-fit: cover;
}

/* ---- valuation card ---- */
.val-head { padding: 22px 24px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.val-addr { font-size: 13px; color: var(--ink-3); font-family: 'IBM Plex Mono', monospace; letter-spacing: .01em; }
.val-num { font-size: clamp(34px,4.4vw,46px); font-weight: 600; color: var(--navy); letter-spacing: -.02em; margin-top: 6px; font-family: 'IBM Plex Mono', monospace; }
.grade {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--okA-bg); color: var(--okA-fg); font-family: 'IBM Plex Mono', monospace;
}
.grade .gdot { width: 8px; height: 8px; border-radius: 50%; background: var(--okA-dot); }
.val-meta { display: flex; gap: 10px; padding: 0 24px 18px; flex-wrap: wrap; }
.chip { font-size: 12px; color: var(--ink-2); background: var(--sunken); border: 1px solid var(--line-2); padding: 6px 11px; border-radius: 8px; font-family: 'IBM Plex Mono', monospace; }
.chip b { color: var(--navy); font-weight: 600; }
.comps { border-top: 1px solid var(--line-2); }
.comps-h { display: flex; justify-content: space-between; padding: 13px 24px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-family: 'IBM Plex Mono', monospace; }
.comp-row { display: grid; grid-template-columns: 54px 1fr auto auto; gap: 14px; align-items: center; padding: 11px 24px; border-top: 1px solid var(--line-2); }
.comp-row .comp-ph { width: 54px; height: 42px; border: 1px solid var(--line-2); }
.comp-row:hover { background: var(--sunken); }
.comp-addr { font-size: 13.5px; color: var(--ink-1); font-weight: 500; }
.comp-sub { font-size: 11.5px; color: var(--ink-3); font-family: 'IBM Plex Mono', monospace; margin-top: 2px; }
.comp-price { font-size: 14px; color: var(--navy); font-weight: 600; font-family: 'IBM Plex Mono', monospace; }
.comp-bar { width: 64px; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.comp-bar i { display: block; height: 100%; background: var(--peach); border-radius: 3px; }

/* ---- chat card ---- */
.chat { background: var(--white); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 340px; }
.bubble { max-width: 84%; padding: 13px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.bubble.user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.bubble.ai { align-self: flex-start; background: var(--sunken); color: var(--ink-1); border-bottom-left-radius: 5px; border: 1px solid var(--line-2); }
.bubble .src { margin-top: 9px; display: flex; gap: 6px; flex-wrap: wrap; }
.src-tag { font-size: 10.5px; font-family: 'IBM Plex Mono', monospace; color: var(--info-fg); background: var(--info-bg); padding: 3px 8px; border-radius: 6px; letter-spacing: .02em; }
.ai-results { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
.res-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 11px; background: var(--white); }
.res-card .ph { display: block; width: 100%; height: 62px; margin-bottom: 9px; }
.res-card .ra { font-size: 12px; font-weight: 600; color: var(--navy); }
.res-card .rp { font-size: 11.5px; color: var(--peach-deep); font-family: 'IBM Plex Mono', monospace; margin-top: 2px; }
.chat-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-3); border-radius: 999px; padding: 11px 16px; margin-top: auto; color: var(--ink-3); font-size: 13.5px; }
.chat-input .send { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }

/* ---------------- CTA STRIP ---------------- */
.cta-strip { padding: clamp(70px,10vw,120px) 0; border-top: 1px solid var(--line-2); text-align: center; }
.cta-strip h2 { font-size: clamp(30px,4.4vw,54px); letter-spacing: -.03em; font-weight: 700; color: var(--navy); margin: 0; text-wrap: balance; }
.cta-strip p { color: var(--ink-2); font-size: 18px; margin: 18px auto 0; max-width: 480px; text-wrap: pretty; }
.cta-strip .actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--navy-deep); color: #fff; padding: 64px 0 40px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 280px; }
.foot-word { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.foot-word .ai, .foot-word .pdot { color: var(--peach); }
.foot-tag { color: #A8ADBD; font-size: 13.5px; line-height: 1.5; }
.foot-cols { display: flex; gap: clamp(40px,6vw,80px); flex-wrap: wrap; }
.foot-col h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--peach); margin: 0 0 14px; font-family: 'IBM Plex Mono', monospace; font-weight: 500; }
.foot-col a { display: block; color: #C7CBD6; font-size: 14px; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { max-width: var(--maxw); margin: 48px auto 0; padding: 22px var(--pad) 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #7B8298; font-size: 12.5px; font-family: 'IBM Plex Mono', monospace; }

/* ---------------- LOGIN (auth) ---------------- */
.auth-page {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px var(--pad);
  position: relative;
}
.auth-bg-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(55% 45% at 50% 6%, rgba(244,184,154,.18), transparent 70%),
    radial-gradient(45% 38% at 85% 28%, rgba(244,184,154,.09), transparent 70%);
}
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 380px; text-align: center; }
.auth-card .logo-mark { margin: 0 auto 26px; }
.auth-eyebrow { margin-bottom: 18px; justify-content: center; }
.auth-title {
  font-size: clamp(28px, 4vw, 36px); line-height: 1.05; letter-spacing: -.03em;
  font-weight: 700; color: var(--navy); margin: 0; text-wrap: balance;
}
.auth-sub { color: var(--ink-2); font-size: 15px; margin: 10px 0 28px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.auth-form label { display: flex; flex-direction: column; gap: 7px; }
.auth-form label span {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  font-family: 'IBM Plex Mono', monospace; letter-spacing: .04em; text-transform: uppercase;
}
.auth-form input {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 15px; color: var(--ink-1);
  background: var(--white); border: 1.5px solid var(--line-3); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,37,71,.10);
}
.auth-forgot { margin: 2px 0 0; font-size: 13px; text-align: right; }
.auth-forgot a { color: var(--peach-deep); font-weight: 600; }
.auth-forgot a:hover { color: var(--navy); }
.auth-form .btn { width: 100%; margin-top: 6px; }
.auth-flash {
  background: #FAECE7; color: #712B13; border: 1px solid rgba(113,43,19,.18);
  border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13.5px; margin: 0 0 18px; text-align: left;
}
