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

h1, h2 { font-family: 'Lora', Georgia, serif; }

:root {
  --bg:      #ffffff;
  --surface: #f7f7f5;
  --border:  #e8e8e4;
  --text:    #1a1a18;
  --muted:   #8a8a84;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--text); color: #fff; }

/* ── Nav ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 5vw;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
#nav.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 2.5rem;
  height: 60px;
}
.logo {
  font-size: 1rem; font-weight: 600; letter-spacing: -0.02em;
  margin-right: auto;
}
.nav-links {
  display: flex; gap: 2rem; list-style: none;
  height: 60px; align-items: center;
}
.nav-links a {
  font-size: 0.85rem; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Nav dropdown ── */
.nav-links li { display: flex; align-items: center; }
.has-dropdown { position: relative; align-self: stretch; }
.has-dropdown > a svg {
  vertical-align: middle;
  margin-left: 2px; margin-bottom: 1px;
  opacity: 0.5;
  transition: transform 0.2s, opacity 0.2s;
}
.has-dropdown.open > a svg { transform: rotate(180deg); opacity: 1; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.3rem;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
}
.has-dropdown.open .nav-dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem; color: var(--muted);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-dropdown a:hover { background: var(--surface); color: var(--text); }
.nav-dropdown-sep {
  margin-bottom: 0.2rem;
}

.btn-nav {
  font-size: 0.8rem; font-weight: 500;
  padding: 0.4rem 1rem;
  background: var(--text); color: #fff;
  border-radius: 6px;
  transition: background 0.2s;
}
.btn-nav:hover { background: #3a3a36; }

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 5vw 80px;
  position: relative;
}.hero-content {
  max-width: 680px; text-align: center;
}
.hero-label {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2rem;
}
.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 500; line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; font-weight: 400; color: var(--muted); white-space: nowrap; }
.hero-sub {
  font-size: 1rem; color: var(--muted); line-height: 1.75;
  max-width: 440px; margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
}
.btn-primary {
  font-size: 0.875rem; font-weight: 500;
  padding: 0.65rem 1.5rem;
  background: var(--text); color: #fff;
  border-radius: 6px; border: none; cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: #3a3a36; }
.btn-ghost {
  font-size: 0.875rem; color: var(--muted);
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--border); border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* scroll line */
.scroll-line {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 48px;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  display: block; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--muted));
  animation: slideDown 2s ease-in-out infinite;
}
@keyframes slideDown {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}


/* ── Sections ── */
section { padding: 96px 5vw; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-label {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 0.95rem; color: var(--muted); line-height: 1.75;
  max-width: 480px; margin-bottom: 3.5rem;
}

/* ── How section ── */
#how { background: var(--surface); }
#how .section-inner { display: grid; grid-template-columns: 1fr auto; gap: 5rem; align-items: center; }
.how-text .section-sub { margin-bottom: 0; }

/* ── iPhone 15 Pro shaped app window ── */
.app-window {
  /* iPhone 15 Pro: 393 × 852 pt → scaled to 272px wide */
  width: 272px;
  height: 502px;
  flex-shrink: 0;
  border-radius: 48px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  box-shadow:
    0 0 0 7px rgba(0,0,0,0.04),
    0 28px 64px rgba(0,0,0,0.12),
    0 4px 12px rgba(0,0,0,0.05);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.app-header {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 1.25rem 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.app-name { font-size: 0.78rem; font-weight: 500; letter-spacing: -0.01em; }

/* chat messages */
.chat-body {
  flex: 1;
  padding: 0.5rem 1.1rem 0.5rem;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 1rem;
}
.chat-body::-webkit-scrollbar { display: none; }

.chat-msg { display: flex; flex-direction: column; animation: msgIn 0.2s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.chat-msg.ai .chat-sender {
  font-size: 0.6rem; font-weight: 500; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.chat-msg.user .chat-sender { display: none; }

.chat-bubble {
  font-size: 0.78rem; line-height: 1.6; color: var(--text);
}
.chat-msg.user .chat-bubble {
  align-self: flex-end;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 0.8rem;
  border-radius: 14px 14px 3px 14px;
  max-width: 85%;
}
.chat-msg.ai .chat-bubble { max-width: 100%; }

.typing-dots span {
  display: inline-block; width: 3px; height: 3px;
  background: var(--muted); border-radius: 50%; margin: 0 1px;
  animation: blink 1.1s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink {
  0%,80%,100% { opacity: 0.25; transform: translateY(0); }
  40%         { opacity: 1;   transform: translateY(-3px); }
}

/* input */
.app-input-row {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 0.4rem;
  margin: 0.5rem 0.85rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.35rem 0.35rem 0.35rem 0.85rem;
}
.chat-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 0.75rem; font-family: inherit;
}
.chat-input::placeholder { color: var(--muted); }
.chat-send {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--text); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}

/* home indicator */
.app-home-bar {
  flex-shrink: 0;
  width: 80px; height: 3px;
  background: var(--text); opacity: 0.12;
  border-radius: 99px;
  margin: 0 auto 10px;
}

/* ── Features ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.feature-card {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface); }
.feature-num {
  font-size: 0.7rem; letter-spacing: 0.08em; color: var(--muted);
  margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.83rem; color: var(--muted); line-height: 1.7; }

/* ── Stats ── */
#stats { background: var(--surface); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.stat {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 500; letter-spacing: -0.04em; line-height: 1;
}
.stat-sym { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 400; }
.stat p { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.5; }

/* ── Testimonials ── */
#testimonials .section-inner { max-width: 680px; }

.testimonials {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
}
.testimonial {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.testimonial-text {
  font-size: 0.9rem; line-height: 1.7; color: var(--text);
  margin-bottom: 0.4rem;
}
.testimonial-author {
  font-size: 0.75rem; color: var(--muted);
}

.waitlist-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.wl-input {
  flex: 1; min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  color: var(--text); font-family: inherit; font-size: 0.875rem;
  outline: none; transition: border-color 0.2s;
}
.wl-input:focus { border-color: var(--text); }
.wl-note { font-size: 0.75rem; color: var(--muted); margin-top: 0.85rem; }
.wl-error { display: none; font-size: 0.875rem; color: #b44; margin-top: 0.85rem; }
.wl-error.show { display: block; }
.wl-success { display: none; font-size: 0.875rem; color: var(--muted); margin-top: 0.85rem; }
.wl-success.show { display: block; }

/* ── Footer ── */
footer {
  padding: 2rem 5vw;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
}
.footer-note { font-size: 0.72rem; color: var(--muted); flex: 1; text-align: center; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.78rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── Reveal ── */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Noise texture ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}


/* ── Practice areas ── */
#practice-areas { background: var(--surface); }
.areas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-top: 3rem;
}
.area-item {
  padding: 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s;
}
.area-item:hover { background: #eeecea; }
.area-title {
  display: block;
  font-size: 0.92rem; font-weight: 500; color: var(--text);
  margin-bottom: 0.4rem;
}
.area-desc {
  display: block;
  font-size: 0.8rem; color: var(--muted); line-height: 1.65;
}
@media (max-width: 820px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .areas-grid { grid-template-columns: 1fr; } }

/* ── FAQ ── */
#faq { background: var(--bg); }
.faq-list { border-top: 1px solid var(--border); max-width: 680px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 500;
  color: var(--text); text-align: left;
}
.faq-q svg { flex-shrink: 0; transition: transform 0.25s; color: var(--muted); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  font-size: 0.85rem; line-height: 1.75; color: var(--muted);
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding-bottom: 0;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 1.1rem;
}

/* ── Waitlist ── */
#waitlist { padding: 0; }
.waitlist-inner-wrap {
  background: #f0e8d8;
  position: relative;
  overflow: hidden;
  padding: 96px 5vw;
}
#wl-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; z-index: 0;
  pointer-events: none;
}
.waitlist-inner-wrap .section-inner { max-width: 560px; position: relative; z-index: 1; }
.waitlist-title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.025em;
  color: var(--text); margin-bottom: 1rem;
}
.waitlist-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.75; margin-bottom: 2rem; }

/* ── Article / content pages ── */
.page-hero {
  padding: 140px 5vw 64px;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: 780px; margin: 0 auto; }
.page-hero .section-label { margin-bottom: 1rem; }
.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.page-hero .lead {
  font-size: 1rem; color: var(--muted); line-height: 1.8;
  max-width: 640px;
}
.article-body {
  max-width: 780px; margin: 0 auto;
  padding: 64px 5vw 96px;
}
.article-body h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600; letter-spacing: -0.01em;
  margin: 3.5rem 0 0.6rem; line-height: 1.4;
  color: var(--text);
}
.article-body h3 {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 0.5rem;
}
.article-body p {
  font-size: 0.93rem; color: var(--muted);
  line-height: 1.85; margin-bottom: 1rem;
}
.article-body p strong { color: var(--text); font-weight: 500; }
.article-body ul {
  margin: 0.5rem 0 1.25rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.article-body ul li {
  font-size: 0.9rem; color: var(--muted); line-height: 1.75;
}
.article-body ul li strong { color: var(--text); }
.article-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.stat-callout {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; margin: 2.5rem 0;
}
.stat-callout-item {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
}
.stat-callout-item:last-child { border-right: none; }
.stat-callout-num {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-callout-label {
  font-size: 0.78rem; color: var(--muted); line-height: 1.5;
}
/* ── Guide disclaimers ── */
.guide-disclaimer-top {
  font-size: 0.72rem; color: var(--muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.guide-disclaimer-bottom {
  background: var(--surface);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  margin-top: 3rem;
}
.guide-disclaimer-bottom p {
  font-size: 0.78rem !important;
  color: var(--muted) !important;
  line-height: 1.75; margin-bottom: 0 !important;
}
.guide-disclaimer-bottom strong { color: var(--text); font-weight: 500; }

.source-note {
  font-size: 0.72rem !important; color: #b0b0aa !important;
  margin-top: -0.5rem !important;
}
.law-block {
  border-left: 2px solid var(--border);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
}
.law-block p { margin-bottom: 0.4rem; }
.page-cta {
  background: var(--text); padding: 64px 5vw;
}
.page-cta-inner {
  max-width: 780px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.page-cta h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500; letter-spacing: -0.025em; color: #fff;
  line-height: 1.2;
}
.page-cta p { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin-top: 0.4rem; }
.page-cta .btn-primary { background: #fff; color: var(--text); white-space: nowrap; }
.page-cta .btn-primary:hover { background: #e8e8e4; }
.breadcrumb {
  font-size: 0.75rem; color: var(--muted);
  margin-bottom: 1.25rem; display: flex; gap: 0.5rem; align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { opacity: 0.4; }

/* ── Responsive ── */
@media (max-width: 820px) {
  #how .section-inner { grid-template-columns: 1fr; }
  .app-window { margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
