/* KulaSync — shared styles
   Palette: warm cream / sage / terracotta
   Type: DM Serif Display (headings) + DM Sans (body)
   This file is shared across all pages. */

:root {
  --cream: #faf6ef;
  --cream-card: #fffdf9;
  --ink: #2d2a26;
  --ink-soft: #5c574f;
  --sage: #8a9a7b;
  --sage-deep: #6f8061;
  --sage-tint: #eef1e9;
  --terracotta: #c2724e;
  --terracotta-deep: #a85d3c;
  --terracotta-tint: #f6e7df;
  --line: #e7e0d4;
  --shadow: 0 1px 2px rgba(45,42,38,.04), 0 8px 24px rgba(45,42,38,.06);
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }
a { color: var(--terracotta-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

em { font-style: italic; color: var(--terracotta-deep); }

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

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,246,239,.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { font-family: "DM Serif Display", serif; font-size: 1.4rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-block; cursor: pointer; border: 0;
  font-family: inherit; font-size: .98rem; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  background: var(--terracotta); color: #fff;
  transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--terracotta-deep); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--sage-tint); border-color: var(--sage); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

.nav .btn { padding: 9px 18px; }
@media (max-width: 680px){ .nav-links a:not(.btn){ display:none; } }

/* ---- Sections ---- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .74rem; font-weight: 700; color: var(--sage-deep);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- Hero ---- */
.hero { padding: 84px 0 64px; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 18px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--ink-soft); }
.hero-note strong { color: var(--ink); }

/* ---- Cards ---- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px){ .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card .ic { font-size: 1.6rem; display:block; margin-bottom: 12px; }

.problem { background: var(--sage-tint); }
.problem .card { background: var(--cream-card); }

/* ---- Pricing ---- */
.pricing { background: var(--cream-card); }
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
@media (max-width: 860px){ .price-grid { grid-template-columns: 1fr; } }
.tier {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column;
}
.tier.featured { border: 2px solid var(--terracotta); box-shadow: var(--shadow); }
.tier .badge {
  align-self: flex-start; background: var(--terracotta-tint); color: var(--terracotta-deep);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.tier .amt { font-family: "DM Serif Display", serif; font-size: 2.4rem; }
.tier .amt span { font-size: 1rem; color: var(--ink-soft); font-family: "DM Sans", sans-serif; }
.tier .who { color: var(--ink-soft); font-size: .94rem; min-height: 3em; margin: 8px 0 16px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 22px; }
.tier li { padding: 7px 0 7px 26px; position: relative; font-size: .95rem; color: var(--ink-soft); }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-deep); font-weight: 700; }
.tier .btn { margin-top: auto; text-align: center; }

/* ---- Tables ---- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--cream-card); font-size: .95rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--sage-tint); font-weight: 600; color: var(--ink); }
td:first-child, th:first-child { font-weight: 500; }
tr:last-child td { border-bottom: 0; }
.tbl-wrap .yes { color: var(--sage-deep); font-weight: 700; }
.tbl-wrap .no { color: #b34; font-weight: 700; }
.tbl-note { font-size: .84rem; color: var(--ink-soft); margin-top: 10px; }

/* ---- Prose (AEO pages) ---- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; color: var(--terracotta-deep); }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--ink-soft); }
.prose li { margin: 6px 0; }
.answer-box {
  background: var(--sage-tint); border-left: 4px solid var(--sage);
  border-radius: 10px; padding: 20px 24px; margin: 8px 0 28px;
}
.answer-box p { margin-bottom: 0; color: var(--ink); font-size: 1.06rem; }

/* ---- FAQ ---- */
.faq details {
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terracotta); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 16px; margin: 0; }

/* ---- Form ---- */
.form-section { background: var(--sage-tint); }
.form-card {
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  max-width: 640px; margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--terracotta); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 1rem;
  color: var(--ink); background: var(--cream); border: 1px solid var(--line);
  border-radius: 10px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-tint);
}
.field textarea { resize: vertical; min-height: 80px; }
.form-card .btn { width: 100%; text-align: center; margin-top: 4px; }
.form-disclaimer { text-align: center; font-size: .85rem; color: var(--ink-soft); margin-top: 14px; }
.form-success {
  display: none; text-align: center; padding: 20px;
}
.form-success.show { display: block; }
.form-success .ic { font-size: 2.4rem; }
.form-error {
  display: none; background: #f8e3dd; color: #95402a; border-radius: 10px;
  padding: 12px 16px; font-size: .9rem; margin-bottom: 16px;
}
.form-error.show { display: block; }

/* ---- Footer ---- */
.footer { background: var(--ink); color: #cfc8bd; padding: 48px 0 36px; }
.footer a { color: #e7e0d4; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-family: "DM Sans", sans-serif; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .12em; color: #9b9488; margin: 0 0 14px; }
.footer .brand { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 8px 0; }
.footer .tag { color: #9b9488; font-size: .92rem; margin-top: 10px; max-width: 34ch; }
.footer-base { border-top: 1px solid #3a3631; margin-top: 36px; padding-top: 20px;
  font-size: .85rem; color: #9b9488; }

/* ---- Misc ---- */
.cross-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cross-links a {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .9rem; color: var(--ink-soft);
}
.cross-links a:hover { border-color: var(--sage); color: var(--ink); text-decoration: none; }
.kicker { color: var(--ink-soft); font-size: .95rem; }
.verdict { background: var(--terracotta-tint); border-radius: var(--radius); padding: 24px 26px; margin: 24px 0; }
.verdict p { margin-bottom: 0; }
