/* ─── Appraisy marketing site — shared styles ───
 * Brand: teal aperture + charcoal wordmark, "Focus on Value"
 * Aesthetic direction: editorial/considered — generous whitespace,
 * confident serif display, calm utility-first body. Single accent
 * (warm amber) for visual punctuation on primary CTAs.
 * Typography: Fraunces (display, opsz-variable) + DM Sans (body)
 * No build step. No JS framework. Pure HTML/CSS, drop into Netlify.
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* ─── Design tokens ─── */
:root {
  /* Brand */
  --teal: #0e9488;
  --teal-deep: #0a766c;
  --teal-bg: #e6f4f3;
  --charcoal: #1a1713;
  --gray-2: #4a4540;
  --gray-3: #6b6560;
  --gray-4: #a39c95;
  --gray-5: #d4cec7;
  --bg: #fcfbf9;
  --bg-warm: #f5f1ec;
  --white: #ffffff;
  --amber: #cf8114;
  --amber-bg: #fdf3e3;

  /* Type */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spatial */
  --max-w: 1180px;
  --max-w-narrow: 720px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--teal-deep); }
button { font: inherit; cursor: pointer; }

/* ─── Type scale — Fraunces is the showpiece ─── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--charcoal);
  margin: 0;
}
h1 { font-size: clamp(40px, 7vw, 72px); font-variation-settings: "opsz" 144, "SOFT" 50; }
h2 { font-size: clamp(28px, 4.5vw, 44px); font-variation-settings: "opsz" 96; }
h3 { font-size: clamp(20px, 2.5vw, 26px); font-variation-settings: "opsz" 32; font-weight: 600; }
h4 { font-size: 17px; font-variation-settings: "opsz" 14; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 16px;
}
.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--gray-2);
  font-weight: 400;
}

/* ─── Layout primitives ─── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 249, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--gray-5); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
}
.brand-link:hover { color: var(--charcoal); }
.brand-link img { width: 32px; height: 32px; }
.brand-link span {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 24;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-2);
}
.nav-links a:hover { color: var(--charcoal); }
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--bg);
}
.btn-primary:hover {
  background: #000;
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26, 23, 19, 0.18);
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-teal:hover {
  background: var(--teal-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(14, 148, 136, 0.28);
}
.btn-ghost {
  color: var(--charcoal);
  border-color: var(--gray-5);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: clamp(64px, 12vw, 140px) 0 clamp(48px, 8vw, 100px);
  overflow: hidden;
}
.hero-aperture {
  position: absolute;
  top: -120px;
  right: -180px;
  width: 720px;
  height: 720px;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  transform: rotate(-15deg);
}
@media (max-width: 800px) {
  .hero-aperture { width: 480px; height: 480px; right: -200px; top: -60px; }
}
.hero-content {
  position: relative;
  max-width: 880px;
}
.hero h1 {
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--teal);
  font-weight: 400;
}
.hero .lede { max-width: 640px; margin-bottom: 36px; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 18px;
  background: var(--charcoal);
  border-radius: 14px;
  color: var(--bg);
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.app-store-badge:hover {
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(26, 23, 19, 0.2);
}
.app-store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.app-store-badge .small { font-size: 11px; opacity: 0.7; line-height: 1; margin-bottom: 3px; letter-spacing: 0.02em; }
.app-store-badge .big { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1; font-variation-settings: "opsz" 24; }

/* ─── Cards ─── */
.card {
  background: var(--white);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--gray-5);
}

/* ─── Two-column flow grid ─── */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 800px) {
  .flow-grid { grid-template-columns: 1fr; }
}
.flow-card {
  position: relative;
  padding: 36px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--gray-5);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.flow-card:hover {
  transform: translateY(-2px);
  border-color: var(--gray-4);
}
.flow-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.flow-card.keep .badge { background: var(--amber-bg); color: var(--amber); }
.flow-card.buy .badge { background: var(--teal-bg); color: var(--teal); }
.flow-card h3 {
  font-family: var(--display);
  font-size: 28px;
  margin-bottom: 12px;
  font-variation-settings: "opsz" 36;
}
.flow-card p { color: var(--gray-2); margin-bottom: 24px; }
.flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.flow-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-2);
  line-height: 1.5;
}
.flow-list li::before {
  content: "→";
  color: var(--teal);
  font-weight: 600;
  flex-shrink: 0;
}
.flow-card.keep .flow-list li::before { color: var(--amber); }

/* ─── Pricing ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
  max-width: 880px;
}
@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.price-card {
  padding: 36px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--gray-5);
  position: relative;
}
.price-card.featured {
  background: var(--charcoal);
  color: var(--bg);
  border-color: var(--charcoal);
}
.price-card.featured h3 { color: var(--bg); }
.price-card.featured .price-amount { color: var(--bg); }
.price-card.featured .price-list li { color: rgba(252, 251, 249, 0.85); }
.price-card.featured .price-list li::before { color: var(--teal); }
.price-card .ribbon {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--amber);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-card h3 { font-family: var(--display); margin-bottom: 8px; font-variation-settings: "opsz" 32; }
.price-tagline { font-size: 14px; color: var(--gray-3); margin-bottom: 28px; }
.price-card.featured .price-tagline { color: var(--gray-4); }
.price-amount {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.price-amount .currency { font-size: 32px; vertical-align: top; opacity: 0.7; margin-right: 4px; }
.price-period { font-size: 14px; color: var(--gray-3); margin-bottom: 6px; }
.price-card.featured .price-period { color: var(--gray-4); }
.price-trial {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(14, 148, 136, 0.15);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
}
.price-card:not(.featured) .price-trial { background: var(--teal-bg); }
.price-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-2);
}
.price-list li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Features triptych ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
@media (max-width: 800px) {
  .features-grid { grid-template-columns: 1fr; gap: 28px; }
}
.feature-item h4 {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 28;
}
.feature-item p { color: var(--gray-3); font-size: 15px; line-height: 1.55; }
.feature-numeral {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 80;
  color: var(--teal);
  line-height: 0.9;
  margin-bottom: 16px;
  display: block;
}

/* ─── Quote / closer ─── */
.closer {
  background: var(--charcoal);
  color: var(--bg);
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.closer-aperture {
  position: absolute;
  bottom: -240px;
  left: -180px;
  width: 600px;
  height: 600px;
  opacity: 0.08;
  filter: brightness(2);
  pointer-events: none;
}
.closer-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.closer h2 {
  color: var(--bg);
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 32px;
  letter-spacing: -0.025em;
}
.closer h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--teal);
  font-weight: 400;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-warm);
  padding: clamp(48px, 6vw, 80px) 0 32px;
  border-top: 1px solid var(--gray-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
}
.footer-brand-col p {
  font-size: 14px;
  color: var(--gray-3);
  max-width: 280px;
  margin-top: 12px;
}
.footer-col h5 {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--gray-2);
}
.footer-col a:hover { color: var(--charcoal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--gray-5);
  font-size: 13px;
  color: var(--gray-3);
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Legal pages (privacy, terms) ─── */
.legal-page {
  padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 10vw, 100px);
}
.legal-page h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  margin-bottom: 12px;
}
.legal-page .meta {
  color: var(--gray-3);
  font-size: 14px;
  margin-bottom: 48px;
}
.legal-page h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-top: 48px;
  margin-bottom: 16px;
  font-variation-settings: "opsz" 48;
}
.legal-page h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0;
  margin-top: 28px;
  margin-bottom: 8px;
}
.legal-page p, .legal-page li {
  color: var(--gray-2);
  line-height: 1.7;
}
.legal-page ul, .legal-page ol {
  padding-left: 22px;
  margin: 0 0 1em;
}
.legal-page li { margin-bottom: 8px; }
.legal-page strong { color: var(--charcoal); font-weight: 600; }
.legal-toc {
  background: var(--bg-warm);
  padding: 24px 28px;
  border-radius: 16px;
  margin-bottom: 48px;
  border: 1px solid var(--gray-5);
}
.legal-toc h4 {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-3);
  margin: 0 0 12px;
}
.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal-toc li { margin: 0 0 6px; }
.legal-toc a { font-size: 14px; color: var(--gray-2); }
.legal-toc a:hover { color: var(--teal); }

/* ─── Support page ─── */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-5);
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.faq-item:hover { border-color: var(--gray-4); }
.faq-item summary {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  font-variation-settings: "opsz" 24;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--charcoal);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--body);
  font-size: 22px;
  color: var(--teal);
  margin-left: 16px;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] { border-color: var(--teal); }
.faq-item .faq-body {
  margin-top: 14px;
  color: var(--gray-2);
  font-size: 15px;
  line-height: 1.65;
}
.contact-block {
  margin-top: 56px;
  padding: 32px;
  border-radius: 20px;
  background: var(--bg-warm);
  border: 1px solid var(--gray-5);
}
.contact-block h3 { font-family: var(--display); margin-bottom: 8px; font-variation-settings: "opsz" 32; }
.contact-block .email-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gray-5);
  color: var(--charcoal);
  font-weight: 500;
  margin-top: 14px;
  margin-right: 8px;
  font-size: 15px;
}
.contact-block .email-pill:hover { border-color: var(--teal); color: var(--teal); }

/* ─── 404 ─── */
.notfound {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 80px 0;
  text-align: center;
}
.notfound-num {
  font-family: var(--display);
  font-size: clamp(120px, 22vw, 240px);
  line-height: 0.9;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--teal);
  margin-bottom: 12px;
  letter-spacing: -0.05em;
}
.notfound h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}
.notfound p {
  color: var(--gray-3);
  margin-bottom: 32px;
  font-size: 17px;
}

/* ─── Reveal animation (one-shot, no scroll listeners) ─── */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.9s var(--ease) backwards; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.18s; }
.rise-3 { animation-delay: 0.32s; }
.rise-4 { animation-delay: 0.46s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
