/* Mesurix — Jeweler's Atelier
   ink / ivory / velvet / gold — warm, precise, metallic.
   Cormorant Garamond (display) · Inter (body) · JetBrains Mono (readouts) */

:root {
  --ink: #1E1A17;
  --ivory: #F6F1E7;
  --velvet: #E7DDC9;
  --gold: #C2A24A;
  --gold-deep: #9C7F38;
  --rose: #C9A092;
  --hallmark: #7C3A2E;
  --muted: #6B6055;

  --hairline: rgba(30, 26, 23, 0.14);
  --hairline-strong: rgba(30, 26, 23, 0.28);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle paper grain + warm vignette so the bg is never a flat solid */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(194,162,74,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(201,160,146,0.10), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed;
}

/* ---------- typography ---------- */
.display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}
em { color: var(--gold-deep); font-style: italic; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-deep); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* caliper tick divider */
.ticks {
  height: 14px;
  background-image: repeating-linear-gradient(
    to right, var(--hairline) 0 1px, transparent 1px 16px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  opacity: 0.8;
}

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(246, 241, 231, 0.78);
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.6px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold-deep);
  font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 19px;
  box-shadow: inset 0 0 0 3px rgba(246,241,231,1), 0 1px 0 rgba(0,0,0,0.04);
}
.brand .word {
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: 24px; letter-spacing: 0.01em;
}
.head-right { display: flex; align-items: center; gap: 24px; }
header.site nav { display: flex; gap: 26px; }
header.site nav a { font-size: 14px; color: var(--muted); }
header.site nav a:hover { color: var(--ink); }
.btn-get {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--ink); color: var(--ivory);
  font-size: 14px; font-weight: 500;
  border: 1.4px solid var(--ink);
  transition: transform .18s var(--ease-out), background .2s;
}
.btn-get:hover { transform: translateY(-1px); background: #2c2620; color: var(--ivory); }
.btn-get svg { width: 15px; height: 15px; }
@media (max-width: 600px) { header.site nav { display: none; } }

/* ---------- hallmark stamp ---------- */
.hallmark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1.2px solid var(--gold-deep);
  border-radius: 4px;
  transform: rotate(-2deg);
  color: var(--gold-deep);
  background: rgba(194,162,74,0.06);
}
.hallmark .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- hero ---------- */
.hero { padding: clamp(20px, 4vw, 44px) 0 clamp(40px, 7vw, 72px); }
.hero h1 {
  font-size: clamp(56px, 12vw, 132px);
  margin: 26px 0 0;
}
.hero .sub {
  font-size: clamp(20px, 3vw, 27px);
  color: var(--muted);
  max-width: 30ch;
  margin: 18px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
}
.hero .lede {
  margin-top: 28px; max-width: 56ch; color: var(--ink);
  font-size: 18px;
}
.hero .cta-row { margin-top: 38px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 500; font-size: 15px;
  border: 1.4px solid var(--ink);
  transition: transform .18s var(--ease-out), background .2s, color .2s;
}
.btn.primary { background: var(--ink); color: var(--ivory); }
.btn.primary:hover { transform: translateY(-2px); background: #2c2620; color: var(--ivory); }
.btn.soft {
  border-color: var(--hairline-strong); color: var(--muted);
  cursor: default; background: rgba(231,221,201,0.5);
}
.btn .badge { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: .7; }

/* store badge buttons */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px; border-radius: 12px;
  background: var(--ink); color: var(--ivory);
  border: 1px solid var(--ink);
  transition: transform .18s var(--ease-out), background .2s;
}
.store-badge:hover { transform: translateY(-2px); background: #2c2620; color: var(--ivory); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .txt small { font-size: 10px; letter-spacing: .04em; opacity: .8; text-transform: uppercase; }
.store-badge .txt b { font-size: 17px; font-weight: 600; letter-spacing: .01em; }

/* notify form */
.notify { display: flex; gap: 10px; flex-wrap: wrap; }
.notify input {
  font: inherit; font-size: 15px;
  padding: 13px 18px; border-radius: 999px;
  border: 1.4px solid var(--hairline-strong);
  background: var(--ivory); color: var(--ink);
  min-width: 240px;
}
.notify input:focus { outline: none; border-color: var(--gold-deep); }

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

/* ---------- tool cards ---------- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.eyebrow { color: var(--gold-deep); margin-bottom: 14px; }
.section h2 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 8px; }
.section .intro { color: var(--muted); max-width: 60ch; }

.tools {
  margin-top: 48px;
  display: grid; gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (max-width: 760px) { .tools { grid-template-columns: 1fr; } }
.tool {
  background: var(--ivory);
  padding: 34px 30px;
  transition: background .25s var(--ease-out);
}
.tool:hover { background: rgba(231,221,201,0.45); }
.tool .glyph {
  width: 46px; height: 46px; color: var(--gold-deep); margin-bottom: 20px;
}
.tool h3 { font-family: "Cormorant Garamond", serif; font-size: 27px; font-weight: 600; margin: 0 0 8px; }
.tool p { color: var(--muted); font-size: 15.5px; margin: 0; }
.tool .tag { display: inline-block; margin-top: 16px; color: var(--gold-deep); }

/* trust strip */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--hairline);
  border-block: 1px solid var(--hairline);
}
@media (max-width: 760px) { .trust { grid-template-columns: repeat(2, 1fr); } }
.trust div { background: var(--ivory); padding: 28px 22px; }
.trust .k { font-family: "Cormorant Garamond", serif; font-size: 30px; color: var(--ink); }
.trust .v { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--hairline);
  padding: 54px 0 60px;
  margin-top: 40px;
}
footer.site .grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
footer.site .word { font-family: "Cormorant Garamond", serif; font-size: 26px; }
footer.site .tagline { color: var(--muted); font-size: 14px; max-width: 32ch; margin-top: 8px; }
footer.site nav { display: flex; gap: 28px; flex-wrap: wrap; }
footer.site nav a { color: var(--muted); font-size: 14px; }
footer.site nav a:hover { color: var(--ink); }
footer.site .legal { margin-top: 36px; color: var(--muted); font-size: 13px; }

/* ---------- legal / content pages ---------- */
.doc { padding: clamp(56px, 9vw, 96px) 0 40px; max-width: 760px; }
.doc h1 { font-size: clamp(40px, 7vw, 64px); margin: 18px 0 6px; }
.doc .meta { color: var(--muted); margin-bottom: 40px; }
.doc h2 {
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: 28px; margin: 44px 0 12px; padding-top: 8px;
}
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: #34302b; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--ink); }
.callout {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  background: rgba(231,221,201,0.4);
  padding: 18px 22px; border-radius: 4px; margin: 26px 0;
}
.callout p { margin: 0; }

/* contact cards */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 36px 0; }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  border: 1px solid var(--hairline); border-radius: 6px;
  padding: 26px; background: rgba(246,241,231,0.6);
}
.contact-card .label { color: var(--gold-deep); margin-bottom: 10px; }
.contact-card .val { font-size: 18px; }
.contact-card .val a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }

/* ---------- motion ---------- */
[data-anim] { opacity: 0; transform: translateY(18px); }
.anim-in [data-anim] { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.anim-in [data-anim][data-d="1"] { transition-delay: .08s; }
.anim-in [data-anim][data-d="2"] { transition-delay: .16s; }
.anim-in [data-anim][data-d="3"] { transition-delay: .24s; }
.anim-in [data-anim][data-d="4"] { transition-delay: .32s; }

/* ---------- screenshots (already framed) ---------- */
.shot {
  display: block;
  width: 100%; max-width: 290px; height: auto;
  filter: drop-shadow(0 28px 50px rgba(30,26,23,0.28));
}

/* showcase alternating rows */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(40px, 7vw, 80px) 0;
}
.showcase.flip .copy { order: 2; }
.showcase.flip .visual { order: 1; }
.showcase .visual { display: flex; justify-content: center; }
.showcase .copy h3 {
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: clamp(30px, 4.5vw, 46px); margin: 14px 0 14px;
}
.showcase .copy p { color: var(--muted); font-size: 17px; }
.showcase .copy ul { list-style: none; padding: 0; margin: 22px 0 0; }
.showcase .copy li {
  position: relative; padding-left: 26px; margin: 12px 0; color: #34302b; font-size: 16px;
}
.showcase .copy li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 9px; height: 9px; border: 1.4px solid var(--gold); border-radius: 50%;
}
@media (max-width: 760px) {
  .showcase, .showcase.flip { grid-template-columns: 1fr; }
  .showcase.flip .copy { order: 1; } .showcase.flip .visual { order: 2; }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 44px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--ivory); padding: 32px 28px; }
.step .num { font-family: "Cormorant Garamond", serif; font-size: 44px; color: var(--gold); line-height: 1; }
.step h3 { font-size: 19px; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ring size chart */
.chart-wrap { overflow-x: auto; margin-top: 36px; border: 1px solid var(--hairline); border-radius: 6px; }
table.chart { width: 100%; border-collapse: collapse; min-width: 460px; font-size: 15px; }
table.chart th, table.chart td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--hairline); }
table.chart thead th {
  font-family: "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .12em;
  font-size: 11.5px; color: var(--gold-deep); background: rgba(231,221,201,0.5);
}
table.chart tbody tr:hover { background: rgba(231,221,201,0.35); }
table.chart td:first-child { font-weight: 600; }
table.chart .mm { font-family: "JetBrains Mono", monospace; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 4px;
  font-size: 19px; font-family: "Cormorant Garamond", serif; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 24px; font-family: "Inter"; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: #34302b; max-width: 70ch; }

/* prose block for SEO body copy */
.prose { max-width: 72ch; }
.prose p { color: #34302b; margin: 0 0 18px; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; }

/* ---------- interactive ring sizer tool ---------- */
.tool-card {
  margin-top: 40px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: rgba(246,241,231,0.7);
  overflow: hidden;
}
.tool-step { padding: clamp(24px, 4vw, 40px); }
.tool-step[hidden] { display: none; }
.tool-step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.tool-step-head .mono { color: var(--gold-deep); }
.tool-step-head h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 28px; margin: 0; }
.tool-step > p { color: var(--muted); max-width: 62ch; margin: 0 0 22px; }

/* calibration card */
.stage {
  position: relative; display: grid; place-items: center;
  min-height: 240px; padding: 26px;
  background: var(--velvet);
  border-radius: 8px;
  background-image: repeating-linear-gradient(45deg, rgba(30,26,23,0.025) 0 10px, transparent 10px 20px);
}
.card-outline {
  position: relative;
  border: 2px solid var(--gold-deep);
  border-radius: 10px;
  background: rgba(246,241,231,0.85);
  box-shadow: 0 8px 20px -12px rgba(30,26,23,0.4);
}
.card-outline::before {
  content: ""; position: absolute; top: 22%; left: 12px;
  width: 34px; height: 26px; border-radius: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  opacity: .8;
}
.card-outline::after {
  content: "85.60 mm"; position: absolute; bottom: 8px; right: 12px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .1em;
  color: var(--muted);
}

/* ring stage */
.ring-circle {
  border: 2.5px solid var(--gold-deep);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246,241,231,0.9) 60%, rgba(231,221,201,0.6));
  box-shadow: inset 0 0 0 1px rgba(194,162,74,0.3);
}

/* range slider */
.tool-range { width: 100%; margin: 24px 0 4px; -webkit-appearance: none; appearance: none; background: transparent; }
.tool-range::-webkit-slider-runnable-track { height: 3px; background: var(--hairline-strong); border-radius: 3px; }
.tool-range::-moz-range-track { height: 3px; background: var(--hairline-strong); border-radius: 3px; }
.tool-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; margin-top: -10px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--ivory);
  box-shadow: 0 2px 8px rgba(30,26,23,0.3); cursor: pointer;
}
.tool-range::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--ivory);
  box-shadow: 0 2px 8px rgba(30,26,23,0.3); cursor: pointer;
}
.range-hint { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

.tool-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn.ghost { background: transparent; color: var(--muted); border-color: var(--hairline-strong); }
.btn.ghost:hover { color: var(--ink); transform: none; background: rgba(231,221,201,0.5); }

/* result readout */
.tool-result {
  display: flex; gap: 28px; flex-wrap: wrap; align-items: baseline;
  margin: 26px 0 4px; padding: 22px 24px;
  border: 1px solid var(--hairline); border-radius: 8px; background: var(--ivory);
}
.tool-result .big {
  font-family: "JetBrains Mono", monospace; font-weight: 500;
  font-size: clamp(32px, 6vw, 46px); color: var(--ink); letter-spacing: .02em;
}
.tool-result .sub { font-family: "JetBrains Mono", monospace; font-size: 15px; color: var(--gold-deep); letter-spacing: .08em; }
.tool-note { color: var(--muted); font-size: 13.5px; margin-top: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .card-outline, .ring-circle { transition: width .08s linear, height .08s linear; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-anim] { opacity: 1; transform: none; }
}
