/* ============================================================
   WriteLLM marketing site — mirrors the app's dashboard look.
   Cream #F5F5F0 · white cards · orange #E8861A · gray #1F2937
   ============================================================ */

:root {
  --cream: #F5F5F0;
  --white: #FFFFFF;
  --orange: #E8861A;
  --orange-hover: #D07515;
  --ink: #1F2937;
  --muted: #6B7280;
  --border: #E5E7EB;
  --tint: #FFF3E6;
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.06), 0 1px 3px rgba(31, 41, 55, 0.08);
  --shadow-md: 0 4px 12px rgba(31, 41, 55, 0.08), 0 2px 4px rgba(31, 41, 55, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(31, 41, 55, 0.22), 0 8px 16px rgba(31, 41, 55, 0.08);
  --radius: 12px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
  font-size: 0.9em;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.35em;
  color: var(--orange-hover);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--ink); }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

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

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--orange-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--tint);
  border-color: var(--orange);
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 30px; font-size: 1.06rem; border-radius: 12px; }

.btn-sub {
  display: block;
  font-weight: 400;
  font-size: 0.76rem;
  opacity: 0.85;
  font-family: ui-monospace, Consolas, monospace;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover {
  background: var(--tint);
  color: var(--orange-hover);
  text-decoration: none;
}

.btn-nav { padding: 9px 18px; font-size: 0.92rem; }

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

.hero {
  /* hero-bg.svg layers over a gradient; if the SVG is missing the gradient still paints */
  background-image: url("assets/hero-bg.svg"),
    radial-gradient(1100px 500px at 50% -10%, var(--tint) 0%, rgba(255, 243, 230, 0) 70%),
    linear-gradient(180deg, #FBF7F0 0%, var(--cream) 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: top center, top center, top center;
  background-size: cover, auto, auto;
  padding: 88px 24px 48px;
  text-align: center;
  overflow: hidden;
}

.hero-inner { max-width: 1120px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-hover);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-note { font-size: 0.88rem; color: var(--muted); }

.hero-shot {
  max-width: 980px;
  margin: 56px auto 0;
  perspective: 1400px;
}

.browser-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateX(3deg) rotate(-0.6deg);
  transition: transform 0.35s ease;
}
.hero-shot:hover .browser-frame { transform: rotateX(0deg) rotate(0deg); }

@media (prefers-reduced-motion: reduce) {
  .browser-frame, .hero-shot:hover .browser-frame { transform: none; }
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.browser-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}
.browser-bar .dot:first-child { background: var(--orange); }
.browser-title {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------------- Section headers ---------------- */

section { scroll-margin-top: calc(var(--nav-h) + 8px); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------------- Showcase ---------------- */

.showcase { padding: 88px 0 32px; }

.show-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 88px;
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
.show-row:nth-child(even) .show-copy { order: 2; }
.show-row:nth-child(even) .show-shot { order: 1; }

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--orange);
  margin-bottom: 10px;
}

.show-copy h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 14px; }
.show-copy p { color: var(--muted); margin-bottom: 16px; }
.show-copy strong, .show-copy em { color: var(--ink); }

.checks { list-style: none; }
.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.96rem;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--orange-hover);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.show-shot { margin: 0; }
.show-shot img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--white);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.show-shot img:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ---------------- Feature grid ---------------- */

.features { padding: 72px 0 88px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.92rem; color: var(--muted); }
.feature-card p strong { color: var(--ink); }

.card-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.card-icon .glyph { font-size: 1.35rem; line-height: 1; }
/* SVG icon sits on top of the emoji fallback; onerror removes it if missing */
.card-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: var(--tint);
}

/* ---------------- ZooLLM strip ---------------- */

.zoollm-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.zoollm-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.zoollm-inner > div { flex: 1 1 380px; }
.zoollm-logo { border-radius: 14px; box-shadow: var(--shadow-sm); }
.zoollm-strip h2 { font-size: 1.6rem; margin-bottom: 8px; }
.zoollm-strip p { color: var(--muted); max-width: 60ch; }
.zoollm-strip .btn { flex-direction: row; white-space: nowrap; }

/* ---------------- Download ---------------- */

.download { padding: 88px 0; }

.download-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 56px 32px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  background-image: linear-gradient(180deg, var(--tint) 0%, var(--white) 32%);
}
.download-card > img { margin: 0 auto 20px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.download-card h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 10px; }
.download-card > p { color: var(--muted); margin-bottom: 28px; }

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.download-note { font-size: 0.88rem; color: var(--muted); }
.download-old { font-size: 0.85rem; margin-top: 0.6rem; }
.download-old a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted currentColor; }
.download-old a:hover { color: var(--accent, #E8861A); }
.beta-badge {
  display: inline-block;
  vertical-align: super;
  margin: 0 0.2em;
  padding: 0.25em 0.6em;
  font-size: 0.4em;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  background: #2563eb;
  border-radius: 5px;
}

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

.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-brand img { border-radius: 6px; }

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
}
.footer-links a { font-size: 0.92rem; color: var(--muted); }
.footer-links a:hover { color: var(--orange-hover); }

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

@media (max-width: 900px) {
  .show-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 72px;
  }
  .show-row:nth-child(even) .show-copy { order: 1; }
  .show-row:nth-child(even) .show-shot { order: 2; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding-top: 56px; }
  .hero-shot { margin-top: 40px; }
  .zoollm-inner { text-align: center; justify-content: center; }
  .zoollm-inner > div { flex-basis: 100%; }
}

@media (max-width: 480px) {
  .btn-nav { padding: 8px 12px; font-size: 0.84rem; }
  .hero-ctas .btn, .download-buttons .btn { width: 100%; }
  .download-card { padding: 40px 20px; }
}
