/* ==========================================================================
   Knot & Carat: warm, modern, friendly
   ========================================================================== */

:root {
  --sand: #F6EFE6;
  --sand-deep: #EFE4D6;
  --cream: #FFFBF6;
  --blush: #EBC9BE;
  --blush-soft: #F7E4DD;
  --clay: #C4705A;
  --clay-dark: #A85A46;
  --sage: #A9B8A2;
  --ink: #2F2A26;
  --ink-soft: #5E554E;
  --line: #E3D6C6;

  --font-head: "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(47, 42, 38, 0.04), 0 12px 32px -12px rgba(47, 42, 38, 0.14);
  --max: 1120px;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 20ch; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--clay-dark); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-dark);
  margin-bottom: 0.9em;
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--cream);
  padding: 8px 14px; border-radius: 999px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-small { padding: 9px 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 239, 230, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 68px;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--clay); }
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; }
.lede strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: 0.95rem; color: var(--ink-soft); }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: center; width: 100%; }
.blob {
  position: absolute; inset: 6%;
  background: radial-gradient(circle at 35% 30%, var(--cream), var(--blush) 70%);
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
}
.gem {
  position: absolute; left: 50%; top: 50%;
  width: 58%;
  transform: translate(-50%, -54%);
  filter: drop-shadow(0 18px 24px rgba(168, 90, 70, 0.22));
  animation: float 6s ease-in-out infinite;
}
.sparkle { position: absolute; fill: var(--clay); animation: twinkle 3.2s ease-in-out infinite; }
.s1 { width: 30px; top: 16%; right: 18%; }
.s2 { width: 18px; top: 28%; left: 12%; animation-delay: 1.1s; fill: var(--sage); }
.s3 { width: 22px; bottom: 20%; right: 10%; animation-delay: 2s; }

.hero-tag {
  position: absolute; left: 2%; bottom: 10%;
  display: flex; flex-direction: column;
  background: var(--cream);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  line-height: 1.3;
}
.hero-tag-label { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }
.hero-tag-value { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }

@keyframes float {
  0%, 100% { transform: translate(-50%, -54%); }
  50% { transform: translate(-50%, -58%); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

/* Pillars */
.pillars { padding-bottom: 24px; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card p { color: var(--ink-soft); margin: 0; }
.icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--blush-soft);
  margin-bottom: 18px;
}
.icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--clay-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--sand-deep); }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split p { color: var(--ink-soft); max-width: 46ch; }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: none;
}
.steps li {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.steps p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }
.step-num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 16px;
}

/* Compare bars */
.compare {
  margin: 0;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 28px 24px;
  box-shadow: var(--shadow);
}
.compare-row + .compare-row { margin-top: 26px; }
.compare-label { font-family: var(--font-head); font-weight: 700; margin-bottom: 10px; }
.bar {
  display: flex; height: 52px;
  border-radius: 12px; overflow: hidden;
  gap: 2px;
}
.bar-short { width: 50%; }
.seg {
  flex: 0 1 var(--w);
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 700;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 4px;
}
.seg-stone { background: var(--blush); }
.seg-a { background: #E6D9CA; }
.seg-b { background: #DCCDBB; }
.seg-c { background: #D2C1AD; }
.seg-d { background: #C7B59F; }
.seg-fee { background: var(--sage); }
.compare figcaption { margin-top: 18px; font-size: 0.82rem; color: var(--ink-soft); }

/* Lab facts */
.lab-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.35;
}
.fact span {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.fact-accent { background: var(--clay); color: var(--blush-soft); }
.fact-accent span { color: var(--cream); }

/* Included */
.included {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.included li {
  border-top: 3px solid var(--clay);
  padding-top: 18px;
}
.included strong { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 6px; }
.included span { color: var(--ink-soft); font-size: 0.97rem; }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 4px 24px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 18px 32px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 600; color: var(--clay);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 12px; }

/* Form */
.section-form { background: linear-gradient(180deg, var(--sand) 0%, var(--blush-soft) 100%); }
.form-card {
  background: var(--cream);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow);
}
.form-lede { color: var(--ink-soft); margin-bottom: 28px; }

form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
label, legend { font-weight: 700; font-size: 0.95rem; }
legend { margin-bottom: 8px; padding: 0; }
.optional { font-weight: 400; color: var(--ink-soft); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--sand);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--clay); background: #fff; }
textarea { resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E554E' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; font-weight: 600; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--sand);
  font-size: 0.93rem;
  transition: all 0.15s ease;
}
.chip:hover span { border-color: var(--clay); }
.chip input:checked + span { background: var(--clay); border-color: var(--clay); color: var(--cream); }
.chip input:focus-visible + span { outline: 3px solid var(--clay); outline-offset: 2px; }

.form-status { margin: 0; min-height: 1.5em; font-weight: 600; text-align: center; }
.form-status.error { color: #A43A2A; }

.form-success { text-align: center; padding: 24px 0 8px; }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--ink-soft); }

/* Footer */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.tagline { margin: 6px 0 0; color: var(--ink-soft); }
.footer-meta { text-align: right; font-size: 0.93rem; color: var(--ink-soft); }
.footer-meta p { margin: 4px 0 0; }

/* Responsive */
@media (max-width: 960px) {
  .steps, .included { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .lab-facts { order: 2; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav { display: none; }
  .hero { padding: 32px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 340px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .form-card { padding: 28px 20px; border-radius: var(--radius); }
  .field-row { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 520px) {
  .steps, .included { grid-template-columns: 1fr; }
  .bar-short { width: 60%; }
  .seg { font-size: 0.68rem; }
  .seg-a, .seg-b, .seg-c, .seg-d { color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gem, .sparkle { animation: none; }
}
