/* Colors and type follow the Law AI app (dark theme). */
:root {
  color-scheme: dark;
  --bg: #0f0f0e;
  --panel: #1a1a18;
  --panel-hover: #20201e;
  --ink: #f1f0eb;
  --muted: #aaa9a2;
  --line: #2b2b27;
  --line-strong: #3d3d37;
  --accent: #9cc4ef;
  --accent-hover: #b8d5f5;
  --on-accent: #0e1a28;
  --navy: #2b6194;
  --marble: #e2d8c3;

  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;

  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.wrap-wide { width: min(1280px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn-primary {
  padding: 15px 28px;
  font-size: 17px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.15) inset, 0 10px 30px -8px rgb(156 196 239 / 0.55);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2) inset, 0 14px 36px -8px rgb(156 196 239 / 0.7);
}
.btn-primary:active { transform: translateY(0); }
.btn-small {
  padding: 7px 16px;
  font-size: 14px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid var(--line-strong);
}
.btn-small:hover { background: rgb(255 255 255 / 0.14); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(15 15 14 / 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  padding-top: clamp(64px, 11vw, 128px);
  overflow: hidden;
}
/* Faint vertical lines, like the flutes of the column in the app icon. */
.flutes {
  position: absolute;
  inset: 0 0 auto;
  height: 720px;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(44px, 7.2vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(180deg, #fffdf7 10%, var(--marble) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin-top: 26px;
  max-width: 600px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
}
.cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta-note { font-size: 14px; color: var(--muted); }
.cta-note strong { color: var(--ink); font-weight: 600; }

.shot-hero {
  position: relative;
  margin-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(72px, 10vw, 120px);
}
.glow {
  position: absolute;
  inset: -8% 6% 20%;
  background: radial-gradient(ellipse at 50% 40%, rgb(43 97 148 / 0.55), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

/* A screenshot shown as a Mac window */
.window {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: #131312;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.6),
    0 30px 80px -20px rgb(0 0 0 / 0.8),
    0 60px 140px -40px rgb(18 44 71 / 0.9);
}
.window-fade img {
  mask-image: linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
}

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 56px; }
.section h2 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgb(26 26 24 / 0.6));
  border: 1px solid var(--line);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--panel-hover);
  transform: translateY(-2px);
}
.icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 11px;
  background: rgb(43 97 148 / 0.28);
  box-shadow: 0 0 0 1px rgb(156 196 239 / 0.18) inset;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin-top: 20px; font-size: 18px; letter-spacing: -0.005em; }
.card p { margin-top: 8px; font-size: 15.5px; color: var(--muted); }

.free {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: 920px;
}
.price {
  font-family: var(--serif);
  font-size: clamp(110px, 16vw, 190px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fffdf7 10%, var(--marble) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.free h2 { text-wrap: balance; }
.free p:not(.eyebrow):not(.price) { margin-top: 18px; color: var(--muted); font-size: 18px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split-copy p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 18px; }

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.closing h2 { margin-top: 0; }
.contact {
  margin-top: 28px;
  padding: 28px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  width: min(560px, 100%);
}
.contact p { color: var(--muted); }
.contact-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(20px, 3.4vw, 26px);
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgb(156 196 239 / 0.35);
  transition: border-color 0.2s, color 0.2s;
}
.contact-link:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

.footer { border-top: 1px solid var(--line); padding-block: 32px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Motion: the hero rises in on load; cards and screenshots rise in on scroll
   in browsers that support scroll-driven animations. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
  .hero-inner > * { animation: rise 0.8s var(--ease) both; }
  .hero-inner > :nth-child(2) { animation-delay: 0.08s; }
  .hero-inner > :nth-child(3) { animation-delay: 0.16s; }
  .shot-hero .window { animation: rise 1.1s 0.35s var(--ease) both; }

  @supports (animation-timeline: view()) {
    .card,
    .split > * {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-links { gap: 18px; }
  .nav-links a[href="#features"] { display: none; }
  .features { grid-template-columns: 1fr; }
  .free { grid-template-columns: 1fr; text-align: center; }
  .window { border-radius: 10px; }
  .footer-inner { flex-direction: column; }
}
