/* ==========================================================================
   LoyEco — marketing site
   Design system: warm paper background, ink navy, brand blue, jade accent.
   Type: Fraunces (display) + Inter (text).
   ========================================================================== */

:root {
  --ink: #1c2b3a;
  --ink-2: #24364a;
  --body: #2a3441;
  --muted: #5a6877;
  --faint: #8a96a3;
  --paper: #fbfaf7;
  --card: #ffffff;
  --line: #e7e3da;
  --line-soft: #efece5;
  --blue: #2f6fb2;
  --blue-deep: #265d96;
  --blue-soft: #e9f1f9;
  --jade: #3e7c5b;
  --jade-soft: #eaf2ed;
  --amber-soft: #faf3e3;
  --amber: #8a6d2f;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(28, 43, 58, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(28, 43, 58, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(28, 43, 58, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; line-height: 1.3; }

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.eyebrow.jade { color: var(--jade); }

/* ---------- layout ---------- */

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

.wrap.narrow { max-width: 820px; }

section { padding: 88px 0; }
section.tight { padding: 64px 0; }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; }

.band { background: var(--card); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.band-ink { background: var(--ink); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 43, 58, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img { height: 44px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active { color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-signin {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
}
.nav-signin:hover { color: #fff; text-decoration: none; }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1eee7; }

.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--faint);
}

/* ---------- hero ---------- */

.hero { padding: 84px 0 72px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--blue);
}

.hero .lede { margin-bottom: 30px; max-width: 480px; }

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

/* ---------- browser frame for screenshots ---------- */

.frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f4f2ed;
  border-bottom: 1px solid var(--line-soft);
}

.frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd8cc;
}

.frame-bar .addr {
  margin-left: 10px;
  flex: 1;
  max-width: 320px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--faint);
  padding: 3px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.frame.crop { position: relative; }
.frame.crop .shot {
  height: 420px;
  overflow: hidden;
}
.frame.crop .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------- trust strip ---------- */

.truststrip { padding: 22px 0; }

.truststrip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px 32px;
  flex-wrap: wrap;
}

.truststrip-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.truststrip-item svg { width: 18px; height: 18px; fill: var(--jade); flex-shrink: 0; }

/* ---------- feature rows (alternating) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.feature-row + .feature-row { margin-top: 96px; }

.feature-row.flip .feature-copy { order: 2; }
.feature-row.flip .feature-media { order: 1; }

.feature-copy h2 { margin-bottom: 16px; }
.feature-copy > p { color: var(--muted); margin-bottom: 22px; }

.checklist { list-style: none; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 15.5px;
}
.checklist li strong { color: var(--ink); font-weight: 600; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--jade-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233e7c5b"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/11px no-repeat;
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin-bottom: 8px; font-size: 18px; }
.card p { font-size: 14.5px; color: var(--muted); }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; fill: var(--blue); }
.card-icon.jade { background: var(--jade-soft); }
.card-icon.jade svg { fill: var(--jade); }

/* ---------- founder note ---------- */

.founder {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.founder-mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 64px;
  line-height: 0.8;
  color: var(--blue);
  opacity: 0.35;
}

.founder blockquote {
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
}

.founder figcaption {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--muted);
}
.founder figcaption strong { color: var(--ink); }

/* ---------- roles table ---------- */

.roles {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}

.roles th, .roles td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.roles th {
  background: #f6f4ef;
  font-weight: 600;
  color: var(--ink);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roles tr:last-child td { border-bottom: 0; }
.roles td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.roles td:last-child { color: var(--muted); }

/* ---------- chart hierarchy diagram ---------- */

.hier {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 28px 0;
}

.hier-step {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  position: relative;
}

.hier-step .k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 4px;
}

.hier-step .v { font-weight: 600; color: var(--ink); font-size: 15px; }
.hier-step .e { font-size: 13px; color: var(--faint); margin-top: 2px; }

.hier-arrow {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--faint);
  font-size: 18px;
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.plan.featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.plan-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-name { font-weight: 600; color: var(--ink); font-size: 17px; }
.plan-for { font-size: 13.5px; color: var(--faint); margin-top: 2px; min-height: 40px; }

.plan-price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--ink);
  margin: 18px 0 2px;
  letter-spacing: -0.02em;
}

.plan-price small {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0;
}

.plan-cycle { font-size: 13px; color: var(--faint); min-height: 20px; }

.plan-save {
  display: inline-block;
  margin-top: 10px;
  background: var(--jade-soft);
  color: var(--jade);
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

.plan ul {
  list-style: none;
  margin: 22px 0 26px;
  flex: 1;
}

.plan ul li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--blue-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232f6fb2"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/10px no-repeat;
}

.plan .btn { width: 100%; text-align: center; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15.5px;
  position: relative;
  padding-right: 52px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--faint);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq .faq-body {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--muted);
}
.faq .faq-body p + p { margin-top: 10px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  padding: 84px 0;
  text-align: center;
}

.cta-band h2 { color: #fff; margin-bottom: 14px; }

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 32px;
}

.cta-band .btn-note { color: rgba(255, 255, 255, 0.5); }

/* ---------- footer ---------- */

footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px 0 36px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand img { height: 56px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  font-family: "Inter", sans-serif;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14.5px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- page hero (inner pages) ---------- */

.page-hero { padding: 72px 0 56px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lede { max-width: 620px; }

/* ---------- prose (about page) ---------- */

.prose p { margin-bottom: 20px; font-size: 16.5px; color: var(--body); }
.prose h2 { margin: 44px 0 16px; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

.contact-email {
  font-size: 19px;
  font-weight: 600;
}

/* ---------- mobile ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .lede { max-width: none; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.flip .feature-copy { order: 1; }
  .feature-row.flip .feature-media { order: 2; }
  .feature-row + .feature-row { margin-top: 72px; }
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0; }
  .card-grid, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hier { flex-direction: column; }
  .hier-arrow { transform: rotate(90deg); justify-content: center; padding: 4px 0; }
  .founder { grid-template-columns: 1fr; padding: 28px; }
  .founder-mark { display: none; }
  .roles { font-size: 14px; }
  .roles th, .roles td { padding: 12px 14px; }
  .roles td:first-child { white-space: normal; }

  /* mobile nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 24px; font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-signin { display: none; }
}
