/* Outfit font, self-hosted (SIL Open Font License, see fonts/OFL.txt) */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/outfit-latin-700-normal.woff2') format('woff2'); }

/* Larchlight Digital – brand tokens */
:root {
  /* Sunset palette */
  --pine: #2B3A67;         /* Dusk – main brand blue */
  --pine-deep: #1B2445;    /* Night */
  --autumn: #F08A5D;       /* Sunset coral */
  --autumn-text: #B4472B;  /* darker coral for text on light backgrounds */
  --sand: #FCEEE3;         /* Blush */
  --charcoal: #2B2B2B;
  --paper: #FFF9F4;
  --white: #FFFFFF;
  --line: #F0DCCD;
  --muted: #4B4B5C;
  --on-pine: #D8DDF0;
  --twilight: #7B5EA7;      /* Twilight purple accent */
  --twilight-deep: #5B3F8C;
  --lavender: #EDE6F7;
  --lilac-wash: #F6F1FB;
  --lilac-line: #E6DCF2;
  --sky: linear-gradient(180deg, #B9C6EC 0%, #D9C7EE 55%, #FBD2B4 100%); /* pastel sunset sky */

  --radius: 20px;
  --max: 1160px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--paper);
}

h1, h2, h3 { color: var(--pine-deep); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--pine); }
a:hover { color: var(--pine-deep); }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--pine); color: var(--sand);
  padding: 12px 18px; border-radius: 10px; z-index: 10;
}
.skip-link:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit; font-weight: 600;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--pine); color: var(--sand); }
.btn-primary:hover { background: var(--pine-deep); color: var(--sand); }
.btn-outline { border-color: var(--pine); color: var(--pine); }
.btn-outline:hover { background: var(--pine); color: var(--sand); }
.btn-small { padding: 12px 22px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--charcoal); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 600; font-size: 1.5rem; }
.brand-tag { font-size: .7rem; font-weight: 500; letter-spacing: 5px; color: var(--pine); margin-top: 4px; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 500; font-size: 1.05rem; }
.site-nav a:not(.btn) { color: var(--charcoal); text-decoration: none; padding: 10px 0; }
.site-nav a:not(.btn):hover { color: var(--pine); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { background: var(--sand); }
.hero-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding-top: 88px; padding-bottom: 96px;
}
.hero-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--autumn-text); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.08; letter-spacing: -1px; }
.lede { font-size: 1.3rem; color: #3A3A4A; max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.hero-art {
  flex: 1 1 320px; min-width: 0; max-width: 420px; margin: 0 auto;
  aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden;
}
.hero-art svg { display: block; width: 100%; height: 100%; }

/* Sections */
.section { padding: 96px 0; }
.section-white { background: var(--lilac-wash); border-top: 1px solid var(--lilac-line); border-bottom: 1px solid var(--lilac-line); }
.section-sky { background: var(--sky); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
.section-head p { color: var(--muted); }

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
}
.card h3 { font-size: 1.375rem; }
.card p { color: var(--muted); }
.step-num {
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--lavender); color: var(--twilight-deep);
  font-weight: 700; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}

/* Work */
.work-list { display: flex; flex-direction: column; gap: 72px; }
.project { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.project:nth-child(even) { flex-direction: row-reverse; }
.project-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.project h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.project-what { color: var(--twilight-deep); font-weight: 600; }
.project-text p:not(.project-what) { color: var(--muted); }
.project ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.project li { margin-bottom: 6px; }
.project li::marker { color: var(--autumn); }
.project-link { font-weight: 600; color: var(--pine); text-underline-offset: 4px; }
.project-link:hover { color: var(--pine-deep); }

/* Live site previews: each site is rendered at 1280px wide and scaled to fit */
.preview {
  flex: 1.4 1 420px; min-width: 0;
  background: var(--white); border: 1px solid var(--lilac-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 18px 40px -24px rgba(43, 58, 103, .35);
}
.preview-bar {
  padding: 9px 16px; font-size: .85rem; color: var(--muted);
  background: var(--lavender); border-bottom: 1px solid var(--lilac-line);
}
.preview-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.preview iframe {
  position: absolute; top: 0; left: 0; width: 1280px; height: 800px;
  border: 0; background: var(--white); transform-origin: 0 0; pointer-events: none;
}
.preview-link { position: absolute; inset: 0; z-index: 1; }

/* About */
.about-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.about-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-copy h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
.about-copy p { color: #3A3A4A; max-width: 62ch; }
.about-card {
  flex: 1 1 260px; min-width: 0; max-width: 360px;
  background: var(--sky); border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.about-mark { width: 72px; height: 72px; }
.about-card h3 { font-size: 1.3rem; }
.about-card ul { margin: 0; padding-left: 1.2em; color: var(--pine-deep); font-weight: 500; }
.about-card li { margin-bottom: 6px; }
.about-card li::marker { color: var(--autumn-text); }

/* Contact */
.contact-inner { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-copy h2 { color: var(--pine-deep); font-size: clamp(2rem, 4vw, 2.5rem); }
.contact-copy p { color: #2E3045; }
.contact-copy a { color: var(--twilight-deep); font-weight: 600; }
.contact-copy a:hover { color: var(--pine-deep); }

.contact-form {
  flex: 999 1 420px; min-width: 0;
  background: var(--white); border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 1rem; color: var(--pine-deep); }
.field input, .field textarea {
  font: inherit; color: var(--charcoal);
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid #B3907E; background: var(--white);
}
.field textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }
.contact-form .btn:disabled { opacity: .7; cursor: wait; }
.optional { font-weight: 400; color: var(--muted); }
.form-status { margin: 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { color: #2E6B45; }
.form-status.is-error { color: var(--autumn-text); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Footer */
.site-footer { background: var(--pine-deep); color: #B8C0DC; font-size: .95rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 32px; padding-bottom: 32px;
}
.footer-name { font-weight: 600; color: var(--sand); }
.footer-story { flex-basis: 100%; font-style: italic; }

@media (max-width: 600px) {
  .hero-inner { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .section { padding: 64px 0; }
  .contact-form { padding: 24px; }
}

/* Privacy link and notes */
.footer-link { color: var(--sand); }
.footer-link:hover { color: var(--white); }
.form-note { margin: 0; font-size: .9rem; color: var(--muted); }
.form-note a { color: var(--twilight-deep); }

/* Simple text pages (privacy) */
.page { padding: 72px 0 96px; }
.page .container { max-width: 760px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 12px; }
.page h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.page p, .page li { color: #3A3A4A; }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 1.2em; margin: 12px 0 0; }
.page li { margin-bottom: 8px; }
.page li::marker { color: var(--autumn); }
.page .updated { color: var(--muted); font-size: .95rem; }

/* Prices */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
}
.price-card-feature { background: var(--lilac-wash); border-color: var(--lilac-line); }
.price-card h3 { font-size: 1.4rem; }
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.price-amount { font-size: 2.6rem; font-weight: 700; color: var(--pine-deep); line-height: 1; }
.price-unit { color: var(--muted); font-weight: 500; }
.price-list { margin: 0; padding-left: 1.2em; color: #3A3A4A; }
.price-list li { margin-bottom: 8px; }
.price-list li::marker { color: var(--autumn); }
.price-note { margin-top: auto; padding-top: 8px; font-size: .95rem; color: var(--muted); }
.price-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.price-cta p { color: var(--muted); }
.footer-links { display: flex; gap: 20px; }

.offer-badge {
  align-self: flex-start; margin: 0;
  background: var(--autumn); color: var(--pine-deep);
  font-size: .85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.offer-note { margin: 0; font-size: .95rem; color: var(--autumn-text); font-weight: 500; }

/* AI note under How it works */
.ai-note {
  margin-top: 32px; padding: 28px 32px; border-radius: var(--radius);
  background: var(--lilac-wash); border: 1px solid var(--lilac-line);
  display: flex; flex-direction: column; gap: 10px;
}
.ai-note h3 { font-size: 1.3rem; }
.ai-note p { color: var(--muted); max-width: 75ch; }
.ai-note a { color: var(--twilight-deep); font-weight: 600; }
