/* ============================================================
   Luter — Landing Page Styles
   Plain CSS, no frameworks. Neutral palette with a single
   restrained green accent.
   ============================================================ */

:root {
  --bg: #FAFAF8;
  --bg-alt: #F2F1EC;
  --surface: #FFFFFF;
  --text: #1E211D;
  --text-muted: #5B5F58;
  --border: #E3E1D9;
  --accent: #2F5D45;
  --accent-hover: #24462F;
  --accent-soft: #E9F0EA;
  --accent-divider: #CBD7D1;
  --shadow-sm: 0 1px 2px rgba(30, 33, 29, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 33, 29, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  line-height: 1.68;
}

button {
  font-family: inherit;
}

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

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

/* ---------- Layout helpers ---------- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-intro {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-intro h1 {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  margin-bottom: 16px;
}

.section-intro h2 {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  margin-bottom: 16px;
}

.section-intro p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 250, 248, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-nav ul {
  display: flex;
  gap: 28px;
}

.primary-nav a:not(.btn) {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.primary-nav a:not(.btn):hover {
  color: var(--accent);
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 80px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 0.80fr 1.30fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.4rem);
  margin-bottom: 20px;
}

.hero-subhead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.demo-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-media {
  min-width: 0;
}

/* Browser frame around screenshots */
.browser-frame {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-alt);
}

.browser-frame-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--border);
}

.browser-frame img {
  width: 100%;
  height: auto;
}

/* ---------- Features ---------- */
.features {
  padding: 72px 0;
  background-color: var(--bg-alt);
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.feature-row.reverse .feature-row-copy {
  order: 2;
}

.feature-row.reverse .feature-row-media {
  order: 1;
}

.feature-row-copy h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.feature-row-copy h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 2px;
  background-color: var(--accent);
}

/* Same treatment as h3 above, for pages (like demo.html) where a
   feature-row heading is a page-level H2 rather than a sub-heading. */
.feature-row-copy h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.feature-row-copy h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 2px;
  background-color: var(--accent);
}

.feature-row-copy p {
  color: var(--text-muted);
  font-size: 1.06rem;
  max-width: 40ch;
}

.feature-row-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background-color: var(--surface);
}

.feature-row-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Inbox card: narrower grid track (see .reverse ordering below), so it
   needs a taller ratio instead of the landscape default to stay
   readable — title/search bar, 4+ items and client names all need
   vertical room rather than horizontal. */
.feature-row-media--tall {
  aspect-ratio: 16 / 10;
}

/* ---------- Workflow (core value) ---------- */
.workflow {
  padding: 88px 0;
  background-color: var(--accent-soft);
}

.workflow-inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}

.workflow-copy h2 {
  font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem);
  margin-bottom: 22px;
}

.workflow-copy p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 18px;
  max-width: 48ch;
}

.workflow-highlight {
  display: inline-block !important;
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 1rem !important;
  margin-top: 16px !important;
  padding: 6px 16px;
  border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--accent-divider);
}

/* ---------- Inbox action / Planning time (alternating info sections) ---------- */
.inbox-action,
.planning-time {
  padding: 72px 0;
}

.planning-time {
  background-color: var(--bg-alt);
}

.inbox-action-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.planning-time-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.inbox-action-copy h2,
.planning-time-copy h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  margin-bottom: 18px;
}

.inbox-action-copy > p,
.planning-time-copy > p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 28px;
  max-width: 60ch;
}

.point-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.point-list li {
  padding-left: 20px;
  border-left: 2px solid var(--accent-soft);
}

.point-list h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--accent);
}

.point-list p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.inbox-action-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Wrapper gets a landscape aspect-ratio so the Schedule screenshot reads
   wide and balanced next to the text column instead of tall/narrow; the
   image itself uses object-fit: contain so it's never stretched or
   squeezed regardless of its exact source proportions. */
.planning-time-media {
  overflow: hidden;
  background-color: var(--surface);
}

.planning-time-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ---------- Use cases ---------- */
.use-cases {
  padding: 72px 0;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.use-case-card {
  padding: 32px 28px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
}

.use-case-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.use-case-card p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.use-case-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.use-case-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background-color: var(--surface);
}

/* ---------- Why Luter (compact, understated aside — not a full marketing
   section, so it intentionally does not reuse .section-intro's larger
   heading scale) ---------- */
.why-luter {
  padding: 48px 0;
}

.why-luter-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.why-luter-inner .section-eyebrow {
  margin-bottom: 8px;
}

.why-luter-inner h2 {
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 10px;
}

.why-luter-inner p:last-child {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 56ch;
  margin: 0 auto;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 88px 0;
  background-color: var(--accent-soft);
  text-align: center;
}

.final-cta-inner {
  max-width: 640px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 56px 48px;
}

.final-cta h2 {
  font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.5rem);
  margin-bottom: 18px;
}

.final-cta p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.acquisition-line {
  margin-top: 28px !important;
  font-size: 0.92rem !important;
  color: var(--text-muted);
}

.acquisition-line a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.acquisition-line a:hover {
  color: var(--accent-hover);
}

.demo-cta-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.demo-cta-form .btn {
  align-self: flex-start;
}

/* ---------- Demo page (demo.html) ---------- */
.demo-walkthrough {
  padding: 64px 0;
}

.demo-walkthrough-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.demo-walkthrough-inner h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  margin-bottom: 14px;
}

.demo-walkthrough-inner > p {
  color: var(--text-muted);
  font-size: 1.06rem;
  max-width: 56ch;
  margin: 0 auto;
}

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.demo-review-analytics {
  padding: 56px 0;
}

.demo-review-analytics-intro {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

.demo-review-analytics-intro h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  margin-bottom: 14px;
}

.demo-review-analytics-intro p {
  color: var(--text-muted);
  font-size: 1.06rem;
}

.demo-review-analytics-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.demo-review-analytics-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ---------- Legal documents (privacy.html / terms.html) ---------- */
.legal-header {
  border-top: 3px solid var(--accent);
}

.legal-back {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.legal-back:hover {
  color: var(--accent);
}

.legal-doc {
  padding: 64px 0 96px;
}

.legal-doc-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-doc-inner > h1 {
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem);
  margin-bottom: 10px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 36px;
}

.legal-doc-inner > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 68ch;
  margin-bottom: 8px;
}

.legal-doc-inner section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--accent-divider);
}

.legal-doc-inner section h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--accent);
}

.legal-doc-inner section h3 {
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-doc-inner section p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 68ch;
  margin-bottom: 14px;
}

.legal-doc-inner ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-doc-inner li {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 66ch;
}

.legal-doc-inner strong {
  color: var(--text);
}

.legal-doc-inner section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .legal-doc {
    padding: 40px 0 56px;
  }

  .legal-doc-inner section {
    margin-top: 32px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-wordmark {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-brand p:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner,
  .workflow-inner,
  .inbox-action-inner,
  .planning-time-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media {
    order: -1;
  }

  .inbox-action-media {
    order: -1;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row-copy,
  .feature-row.reverse .feature-row-copy {
    order: 1;
  }

  .feature-row-media,
  .feature-row.reverse .feature-row-media {
    order: 2;
  }

  .use-case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .use-case-media {
    grid-template-columns: 1fr;
  }

  .demo-review-analytics-media {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 640px) {
  .section-inner {
    padding: 0 20px;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .features,
  .workflow,
  .inbox-action,
  .planning-time,
  .use-cases {
    padding: 48px 0;
  }

  .final-cta {
    padding: 56px 0;
  }

  .final-cta-inner {
    padding: 40px 28px;
  }

  .section-intro {
    margin-bottom: 32px;
  }

  .feature-rows {
    gap: 30px;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    display: none;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .nav-cta {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
