/* Comet design layer for the production homepage (Stephen-approved concept,
   ported 2026-12-03). Homepage-only: every rule is scoped to body.comet-home
   so shared chrome and non-homepage routes keep production styling except
   the light header bar in redesign.css / live-overrides.css. Palette reuses
   the production white-treatment tokens (--fw-*). */
body.comet-home .sr{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
body.comet-home .eyebrow{font-size:.77rem;letter-spacing:.19em;text-transform:uppercase;font-weight:900;color:#0e6a82;margin:0 0 13px}
body.comet-home .eyebrow span{color:#92702c;margin-right:3px}
body.comet-home .eyebrow.dark{color:#0e6a82}

/* ---- light search-first hero ---- */
html body.comet-home .hero.comet-hero{position:relative;overflow:hidden;isolation:isolate;padding:0;border-bottom:1px solid #e2ded0;color:#071a1f;background:radial-gradient(ellipse at 50% 6%,#f5e9cc 0%,#f8f6ee 48%,#f6faf9 100%)}
body.comet-home .comet-hero .hero-grid{display:block;position:relative;min-height:0}
body.comet-home .comet-hero .hero-copy{padding:42px 0 33px;margin-inline:auto;text-align:center;position:relative;z-index:2;max-width:800px}
body.comet-home .comet-hero h1{font-family:Cinzel,Georgia,serif;font-weight:600;font-size:clamp(2.65rem,5.6vw,5rem);letter-spacing:-.048em;line-height:1.08;color:#15191a;margin:0;max-width:none}
body.comet-home .comet-hero h1 em{font-style:normal;color:#7a5c1c}
body.comet-home .comet-hero .intro{margin:15px auto 8px;max-width:510px;color:#3f4a4c;font-size:1.07rem;line-height:1.55}
body.comet-home .comet-hero .lede{margin:0 auto 18px;max-width:620px;color:#3f4a4c;font-size:.98rem}
body.comet-home .comet-hero .hero-art{position:absolute;inset:0;display:block;width:auto;height:auto;pointer-events:none;overflow:hidden;z-index:0}
body.comet-home .comet-hero .orbit{position:absolute;left:0;top:18%;width:19%;aspect-ratio:1;border:1px solid #c4a55b4d;border-radius:50%}
body.comet-home .comet-hero .orbit.inner{display:none}
body.comet-home .comet-hero .hero-stone{position:absolute;height:auto;width:23%;max-width:240px;right:-1.5%;top:1%;transform:rotate(25deg);opacity:.93;object-fit:contain;filter:drop-shadow(0 19px 18px #68563530);animation:comet-drift-center 10s ease-in-out infinite}
body.comet-home .comet-hero .float-stone{position:absolute;height:auto;object-fit:contain}
body.comet-home .comet-hero .float-round{width:14.6%;left:4.2%;top:8%;max-width:148px;opacity:.94;animation:comet-drift-round 8s ease-in-out infinite}
body.comet-home .comet-hero .float-pear{width:9%;right:13%;top:64%;max-width:90px;opacity:.73;animation:comet-drift-pear 11s ease-in-out infinite}
body.comet-home .comet-hero .float-radiant{width:10%;left:1%;top:69%;opacity:.75;transform:rotate(26deg);animation:comet-drift-rad 9s ease-in-out infinite}
body.comet-home .comet-hero .spark{position:absolute;color:#9a772b;font-size:22px}
body.comet-home .comet-hero .spark.a{top:13%;right:19%}
body.comet-home .comet-hero .spark.b{top:53%;left:17%;font-size:13px}
body.comet-home .comet-hero .spark.c{left:10%;top:57%;font-size:16px}
@keyframes comet-drift-center{50%{transform:translateY(9px) rotate(28deg)}}
@keyframes comet-drift-round{50%{transform:translateY(-8px) rotate(-19deg)}}
@keyframes comet-drift-pear{50%{transform:translateY(7px) rotate(-10deg)}}
@keyframes comet-drift-rad{50%{transform:translateY(-6px) rotate(21deg)}}
@media (prefers-reduced-motion: reduce){
  body.comet-home .comet-hero .hero-stone,body.comet-home .comet-hero .float-stone{animation:none}
  html body.comet-home{scroll-behavior:auto}
}

/* production cert/conversational form, Comet pill styling */
html body.comet-home .comet-search{background:#fffefa;border:1px solid #baa36b;border-radius:34px;box-shadow:0 6px 25px #45555316;padding:5px 5px 5px 15px;max-width:630px;margin-inline:auto;text-align:left}
body.comet-home .comet-search .cert-row{display:flex;align-items:center;gap:11px}
body.comet-home .comet-search .cert-row input{flex:1 1 auto;min-width:0;border:0;background:transparent;padding:8px 0;color:#15191a;font-size:1rem;min-height:44px}
body.comet-home .comet-search .cert-row input:focus{outline:none}
body.comet-home .comet-search .primary{border:0;background:#0e6a82;color:#fff;padding:11px 19px;min-height:44px;border-radius:25px;font-weight:900;white-space:nowrap;cursor:pointer}
body.comet-home .comet-search .primary:hover{background:#0a5468}
body.comet-home .comet-search .cert-hint{color:#5c6668;font-size:.86rem;margin:8px 4px 4px}
body.comet-home .comet-search:focus-within{outline:3px solid #4fa1d4;outline-offset:2px}
body.comet-home .quick{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;color:#3f4a4c;font-size:.85rem;margin-top:12px}
body.comet-home .quick button{background:#fffdf7;color:#0a5367;border:1px solid #e1d4ae;border-radius:25px;padding:5px 11px;min-height:32px;cursor:pointer;font:inherit;box-shadow:0 2px 4px #70591a0c}
body.comet-home .quick button:hover{border-color:#0e6a82;color:#0e6a82}
body.comet-home .quick a{color:#0a5367;font-weight:900;text-decoration:underline;text-underline-offset:.2em}
body.comet-home a:focus-visible,body.comet-home button:focus-visible,body.comet-home input:focus-visible,body.comet-home select:focus-visible{outline:3px solid #4fa1d4;outline-offset:3px}

/* ---- comparison: one certificate, two quotes ---- */
body.comet-home .comparison{padding-top:29px;padding-bottom:40px}
body.comet-home .section-top{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:17px}
body.comet-home .section-top .eyebrow{margin-bottom:7px}
body.comet-home .comparison h2,body.comet-home .browse h2,body.comet-home .studio h2{font-family:Cinzel,Georgia,serif;font-weight:600;font-size:clamp(1.65rem,3.4vw,2.8rem);letter-spacing:-.045em;line-height:1.08;color:#15191a;margin:0}
body.comet-home .textlink{font-weight:900;color:#0e6a82;text-decoration:underline;text-underline-offset:.23em;white-space:nowrap;font-size:.94rem}
body.comet-home .match{display:grid;grid-template-columns:1.25fr 1fr 1fr;border:1px solid #a6b1aa;background:#fff;border-radius:6px;overflow:hidden}
body.comet-home .match-id,body.comet-home .quote{min-height:94px;display:flex;align-items:center;gap:12px;padding:12px 16px}
body.comet-home .match-id img{width:53px;height:53px;object-fit:contain}
body.comet-home .match-id h3{font-size:1.08rem;margin:4px 0 0;color:#15191a}
body.comet-home .match-id p{color:#3f4a4c;font-size:.86rem;margin:0}
body.comet-home .quote{border-left:1px solid #d9ded9;justify-content:space-between}
body.comet-home .quote.low{background:#eaf5ee}
body.comet-home .quote a{color:inherit;text-decoration:none}
body.comet-home .quote a:hover strong{color:#0a5468;text-decoration:underline}
body.comet-home .quote .store{display:block;font-size:.89rem;color:#3f4a4c}
body.comet-home .quote strong{font-size:1.55rem;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:#15191a}
body.comet-home .lowest{display:inline-block;text-transform:uppercase;letter-spacing:.06em;font-size:.7rem;font-weight:900;color:#0b5230;border:1px solid #8db3a2;border-radius:4px;padding:4px 6px;white-space:nowrap}
body.comet-home .match-foot{display:flex;justify-content:space-between;gap:15px;font-size:.83rem;color:#3f4a4c;margin-top:9px}
body.comet-home .match-foot a{font-weight:900;color:#0e6a82;text-decoration:underline;text-underline-offset:.23em;white-space:nowrap}
body.comet-home .note{display:flex;align-items:center;gap:11px;margin-top:19px;border-top:1px solid #d9ded9;padding-top:14px;color:#3f4a4c;font-size:.93rem}
body.comet-home .note svg{width:23px;height:23px;flex:none;color:#0e6a82}
body.comet-home .note a{color:#0e6a82;font-weight:700;white-space:nowrap}

/* ---- shapes browse row ---- */
body.comet-home .browse{padding-top:10px;padding-bottom:52px}
body.comet-home .shapes{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
body.comet-home .shapes a{padding:12px 10px;background:#fff;border:1px solid #d9ded9;text-align:center;font-weight:900;border-radius:5px;color:#15191a;text-decoration:none}
body.comet-home .shapes a:hover{border-color:#0e6a82;color:#0e6a82}
body.comet-home .shapes img{width:77px;height:77px;object-fit:contain;margin:0 auto 5px}

/* ---- ring studio ---- */
body.comet-home .studio{background:#efece3;border-block:1px solid #e0dbcb}
body.comet-home .studio-grid{display:grid;grid-template-columns:1.04fr .96fr;min-height:380px;align-items:center;gap:clamp(24px,5vw,65px);padding-block:45px}
body.comet-home .ring-stage{position:relative;isolation:isolate;background:radial-gradient(ellipse at 50% 40%,#fff,#eeeadf 72%);border:1px solid #e1d8c3;border-radius:6px;overflow:hidden;align-self:stretch;aspect-ratio:1.16;min-height:310px}
body.comet-home .ring-stage img{width:100%;height:100%;object-fit:contain;background:#e5e2dc}
body.comet-home .ring-stage.has-model img{visibility:hidden}
body.comet-home .ring-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:pan-y;cursor:grab}
body.comet-home .ring-stage canvas[hidden],body.comet-home .ring-stage button[hidden]{display:none}
body.comet-home .ring-stage canvas:active{cursor:grabbing}
body.comet-home .stage-meta{position:absolute;z-index:1;bottom:12px;left:12px;right:12px;display:flex;justify-content:space-between;align-items:center;gap:8px;pointer-events:none}
body.comet-home .stage-meta span,body.comet-home .stage-meta button{font-size:.8rem;color:#15191a;padding:7px 10px;border:1px solid #d4c8a9;background:#fffdf5f2;border-radius:4px}
body.comet-home .stage-meta button{pointer-events:auto;font-weight:900;min-height:36px;cursor:pointer}
body.comet-home .stage-meta button:hover{border-color:#0e6a82}
body.comet-home .stage-meta .stage-actions{background:none;border:0;display:flex;gap:6px;padding:0;pointer-events:none}
body.comet-home .stage-meta .stage-actions button:first-child{background:#0e6a82;border-color:#0e6a82;color:#fff}
body.comet-home .studio-copy p:not(.eyebrow){margin-top:16px;max-width:420px;color:#3f4a4c}
body.comet-home .styles{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}
body.comet-home .styles button{background:transparent;border:1px solid #9caaa6;border-radius:4px;padding:6px 11px;min-height:42px;color:#15191a;cursor:pointer;font:inherit}
body.comet-home .styles button[aria-pressed="true"]{background:#eaf5ee;color:#0b5230;border-color:#0b5230;font-weight:900}
body.comet-home .studio-options{display:flex;gap:8px 11px;align-items:center;flex-wrap:wrap;margin:0 0 16px}
body.comet-home .studio-options label{font-weight:900;font-size:.9rem}
body.comet-home .studio-options select{min-height:40px;border:1px solid #9caaa6;border-radius:4px;background:#fff;color:#15191a;font:inherit;padding:6px 9px}
body.comet-home .studio-options span{color:#3f4a4c;font-size:.85rem;flex-basis:100%}
body.comet-home .primary.inline{display:inline-flex;align-items:center;border:0;background:#0e6a82;color:#fff;padding:11px 17px;min-height:44px;border-radius:4px;font-weight:900;text-decoration:none}
body.comet-home .primary.inline:hover{background:#0a5468}
body.comet-home .studio small{display:block;color:#3f4a4c;margin-top:12px}

@media(max-width:850px){
  body.comet-home .comet-hero .hero-stone{right:-2%;top:0}
  body.comet-home .quote{align-items:flex-start;justify-content:center;flex-direction:column;gap:3px}
}
@media(max-width:600px){
  body.comet-home .nav-cta{font-size:.77rem;padding:7px 9px}
  body.comet-home .comet-hero .hero-copy{padding:25px 0 17px}
  body.comet-home .comet-hero h1{font-size:clamp(2.05rem,9vw,3.1rem)}
  body.comet-home .comet-hero .intro{margin:10px auto 13px;max-width:280px;font-size:.95rem}
  body.comet-home .comet-hero .hero-art{opacity:.57}
  body.comet-home .comet-hero .hero-stone{width:32%;right:-12%;top:3%;opacity:.68}
  body.comet-home .comet-hero .float-round{width:18%;left:-6%;top:2%;opacity:.75}
  body.comet-home .comet-hero .float-pear,body.comet-home .comet-hero .float-radiant,body.comet-home .comet-hero .orbit,body.comet-home .comet-hero .spark.c{display:none}
  body.comet-home .comet-hero .quick{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding:0 1px 4px}
  body.comet-home .comet-hero .quick>*{flex:none}
  body.comet-home .comparison{padding-top:19px;padding-bottom:25px}
  body.comet-home .match{grid-template-columns:1fr 1fr}
  body.comet-home .match-id{grid-column:span 2;min-height:60px;padding:8px 11px;gap:8px}
  body.comet-home .match-id img{width:39px;height:39px}
  body.comet-home .quote{border-top:1px solid #d9ded9;min-height:66px;padding:8px 11px}
  body.comet-home .quote.low{border-left:0}
  body.comet-home .quote strong{font-size:1.26rem}
  body.comet-home .match-foot{display:block}
  body.comet-home .shapes{gap:6px}
  body.comet-home .shapes a{padding:7px 2px;font-size:.82rem}
  body.comet-home .shapes img{width:55px;height:55px}
  body.comet-home .browse{padding-bottom:28px}
  body.comet-home .studio-grid{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding-block:25px}
  body.comet-home .ring-stage{min-height:245px;aspect-ratio:1.23}
  body.comet-home .stage-meta{bottom:8px;left:8px;right:8px}
}
