/* =====================================================================
   CocoPure — coming-soon landing page.

   One page, one job: hold the brand until launch. Everything is set on the
   deep green field from tokens.css, with gold reserved for the divider (and
   for the one button on 404.html), and lime used only as a signal colour
   (the live dot, focus).

   Motion is additive: every animation lives inside a
   @media (prefers-reduced-motion: no-preference) block, so the static
   layout below is what a reduced-motion visitor gets, fully visible.

   Colour pairs used here are verified by tools/check-contrast.py.
   ===================================================================== */

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

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

body.launch{
  margin:0;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  background:var(--cp-forest-deep);
  color:var(--cp-shell);
  font-family:var(--cp-font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

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

a{ color:var(--cp-lime-soft); }

.sr-only{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}

.skip{
  position:absolute; left:-9999px; top:0; z-index:10;
  background:var(--cp-shell); color:var(--cp-forest);
  padding:12px 18px; border-radius:0 0 var(--cp-r-sm) 0;
  font-weight:600; text-decoration:none;
}
.skip:focus{ left:0; }

:focus-visible{
  outline:3px solid var(--cp-lime);
  outline-offset:3px;
  border-radius:var(--cp-r-sm);
}

/* ---------- the field ---------- */
/* Fixed and clipped, so the oversized glows can never widen the document. */
.stage{
  position:fixed;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(120% 90% at 50% 8%, #16522A 0%, var(--cp-forest) 42%, var(--cp-forest-deep) 100%);
}

.stage__glow{
  position:absolute;
  border-radius:50%;
  filter:blur(90px);
  opacity:.5;
  /* nudged by landing.js on fine pointers, defaults to centred */
  transform:translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0);
}
.stage__glow--a{
  width:clamp(380px,62vw,780px); aspect-ratio:1;
  top:-16%; left:50%; margin-left:-31vw;
  background:radial-gradient(circle, rgba(143,192,60,.42) 0%, rgba(143,192,60,0) 68%);
}
.stage__glow--b{
  width:clamp(320px,52vw,660px); aspect-ratio:1;
  bottom:-22%; right:-10%;
  background:radial-gradient(circle, rgba(201,162,39,.3) 0%, rgba(201,162,39,0) 70%);
}

.stage__vignette{
  position:absolute; inset:0;
  background:radial-gradient(100% 75% at 50% 45%, rgba(12,48,22,0) 40%, rgba(5,24,10,.72) 100%);
}

/* A little tooth over the gradients, so large flat areas do not band. */
.stage__grain{
  position:absolute; inset:0;
  opacity:.055;
  mix-blend-mode:overlay;
  background-image: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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:160px 160px;
}

/* ---------- layout ---------- */
.launch__main{
  position:relative;
  z-index:1;
  flex:1 1 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(40px,8vh,88px) var(--cp-space) clamp(24px,5vh,48px);
}

.launch__inner{
  width:100%;
  max-width:640px;
  margin:0 auto;
  text-align:center;
}

/* ---------- status chip ---------- */
.status{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0 0 clamp(24px,5vh,40px);
  padding:7px 16px 7px 13px;
  border:1px solid rgba(217,235,180,.3);
  border-radius:var(--cp-r-pill);
  background:rgba(250,246,238,.06);
  color:var(--cp-lime-soft);
  font-size:.76rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
}
/* The chip's own ring, drawn on its edge. Invisible here and only ever
   animated from the motion block, so a reduced-motion visitor gets no stray
   second outline; pointer-events:none keeps it out of the way of the copy
   it sits over. */
.status::after{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(217,235,180,.4);
  border-radius:inherit;
  /* a breath of lime light around the hairline, so the ring reads as a glow
     rather than a drawn border once it leaves the chip's edge */
  box-shadow:0 0 12px 2px rgba(143,192,60,.22);
  opacity:0;
  pointer-events:none;
}
.status__dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--cp-lime);
  box-shadow:0 0 0 0 rgba(143,192,60,.55);
  flex:none;
}

/* ---------- the mark ---------- */
.mark{
  position:relative;
  display:flex;
  justify-content:center;
  margin-bottom:clamp(26px,5vh,42px);
}
/* Soft halo so the wordmark sits in light rather than on a flat panel.
   Capped at 100% of the column: an absolutely positioned box wider than
   its container still counts towards the document's scroll width, which
   is a horizontal scrollbar on a phone. The blur spreads it past the edge
   without affecting layout. */
.mark::before{
  content:"";
  position:absolute;
  left:50%; top:50%;
  width:min(100%,520px); aspect-ratio:1;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle, rgba(226,243,196,.22) 0%, rgba(226,243,196,0) 62%);
  filter:blur(26px);
  z-index:-1;
}
.mark__img{
  width:min(74vw,420px);
  height:auto;
  filter:drop-shadow(0 26px 46px rgba(4,20,9,.55));
}

/* ---------- type ---------- */
/* Archivo Bold, tracked in a little: a grotesque at this size opens up more
   than the serif it replaced, and the headline is two words wide. */
.headline{
  margin:0;
  font-family:var(--cp-font-display);
  font-weight:var(--cp-weight-display);
  font-size:clamp(2.4rem,9.6vw,4.4rem);
  line-height:1.04;
  letter-spacing:-.028em;
  color:var(--cp-shell);
  text-wrap:balance;
}

.lede{
  margin:clamp(14px,2.6vh,20px) 0 0;
  font-size:clamp(1.05rem,3.6vw,1.3rem);
  font-weight:500;
  letter-spacing:.005em;
  color:var(--cp-lime-soft);
}

/* ---------- divider ---------- */
.rule{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:clamp(26px,5vh,40px) auto clamp(24px,4.5vh,36px);
  max-width:260px;
}
.rule__line{
  height:1px;
  flex:1 1 auto;
  background:linear-gradient(90deg, rgba(201,162,39,0), var(--cp-gold));
}
.rule__line:last-child{
  background:linear-gradient(90deg, var(--cp-gold), rgba(201,162,39,0));
}
.rule__gem{
  width:7px; height:7px;
  flex:none;
  background:var(--cp-gold);
  transform:rotate(45deg);
}

/* ---------- countdown ---------- */
/* Four tiles below the divider, and the last thing in the column. No gold:
   the brief spends it on the divider, so the clock sits in cream and lime on
   glass. Hidden until landing.js adds the "js" class's companion behaviour,
   i.e. until the digits can actually tick. */
.countdown{
  display:none;
  /* Last block in the column, so no trailing margin: the main element's own
     padding does the spacing and the column stays optically centred. */
  margin:0 auto;
  max-width:540px;
}
.js .countdown{ display:block; }

.countdown__title{
  margin:0 0 clamp(10px,2.2vh,14px);
  font-family:var(--cp-font-body);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.17em;
  text-transform:uppercase;
  color:var(--cp-lime-soft);
}

.countdown__list{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:clamp(6px,1.8vw,12px);
  margin:0;
  padding:0;
  list-style:none;
}

.countdown__unit{
  padding:clamp(10px,2.6vw,14px) 4px clamp(8px,2vw,11px);
  border:1px solid rgba(217,235,180,.22);
  border-radius:var(--cp-r-md);
  background:
    linear-gradient(180deg, rgba(250,246,238,.08) 0%, rgba(250,246,238,.03) 100%);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}

.countdown__num{
  display:block;
  font-family:var(--cp-font-display);
  font-weight:var(--cp-weight-display);
  font-size:clamp(1.4rem,5.8vw,2.1rem);
  line-height:1.05;
  letter-spacing:-.015em;
  color:var(--cp-shell);
  /* Tabular figures, or the tiles twitch on every tick. */
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
}

.countdown__label{
  display:block;
  margin-top:6px;
  font-size:.62rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--cp-cream-dim);
}

/* Once the moment arrives the clock is replaced by one line, rather than
   left sitting on four zeros. */
.countdown__done{
  display:none;
  margin:0;
  font-size:clamp(1.05rem,3.6vw,1.3rem);
  font-weight:500;
  color:var(--cp-lime-soft);
}
.countdown[data-state="done"] .countdown__title,
.countdown[data-state="done"] .countdown__list{ display:none; }
.countdown[data-state="done"] .countdown__done{ display:block; }

/* ---------- button ---------- */
/* Only 404.html ships a button now; the coming-soon page carries no control
   of its own. Kept here because 404.html is on this same stylesheet. */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex:none;
  height:54px;
  padding:0 30px;
  border:0;
  border-radius:var(--cp-r-pill);
  background:linear-gradient(180deg, #E0BC46 0%, var(--cp-gold) 100%);
  color:var(--cp-ink);
  font:inherit;
  font-weight:var(--cp-weight-display);
  letter-spacing:.01em;
  cursor:pointer;
  box-shadow:0 14px 28px -16px rgba(201,162,39,.9);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
/* the same control as a link, used on 404.html */
.btn--link{
  text-decoration:none;
  color:var(--cp-ink);
}
.btn:hover{
  filter:brightness(1.06);
  transform:translateY(-2px);
  box-shadow:0 20px 34px -16px rgba(201,162,39,.95);
}
.btn:active{ transform:translateY(0); }

/* ---------- footer ---------- */
.launch__foot{
  position:relative;
  z-index:1;
  padding:0 var(--cp-space) clamp(24px,5vh,40px);
  text-align:center;
  font-size:.82rem;
  color:var(--cp-cream-dim);
}
.launch__foot p{ margin:0; }

/* Three discs above the contact line, on the same hairline-and-wash glass as
   the status chip so the footer reads as one piece of furniture.
   66px each with a 30px glyph inside: the whole disc and its glyph were
   scaled by 1.5 together from the original 44/20, so the proportions are
   unchanged and the row simply reads larger — these are now the only
   interactive elements on the page, so they carry it. 66px clears the 44px
   AAA target comfortably, and the row still holds one line at 320px
   (3 x 66 + 2 x 12 = 222px inside a 320px viewport). */
.social{ margin:0 0 clamp(14px,2.6vh,20px); }
.social__list{
  display:flex;
  justify-content:center;
  gap:12px;
  margin:0;
  padding:0;
  list-style:none;
}
.social__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:66px; height:66px;
  border:1px solid rgba(217,235,180,.3);
  border-radius:50%;
  background:rgba(250,246,238,.06);
  color:var(--cp-lime-soft);
  text-decoration:none;
  transition:color .2s ease, border-color .2s ease, background-color .2s ease,
             transform .2s ease, box-shadow .2s ease;
}
.social__link:hover{
  color:var(--cp-shell);
  border-color:rgba(217,235,180,.6);
  background:rgba(250,246,238,.12);
  transform:translateY(-2px);
  box-shadow:0 12px 22px -16px rgba(4,20,9,.95);
}
.social__link:active{ transform:translateY(0); }
/* The global :focus-visible rule rounds corners for rectangles; these are
   discs, so the ring has to follow the shape rather than square it off. */
.social__link:focus-visible{ border-radius:50%; }
.social__icon{
  display:block;
  width:30px; height:30px;
}
/* The TikTok note fills its viewBox edge to edge where the other two sit
   inside theirs, so it is set a shade smaller to match them optically. The
   same 18/20 ratio as before, scaled with the rest. */
.social__icon--tiktok{ width:27px; height:27px; }
.launch__contact a{
  margin-left:6px;
  color:var(--cp-lime-soft);
  text-decoration-color:rgba(217,235,180,.45);
  text-underline-offset:3px;
}
.launch__contact a:hover{ text-decoration-color:var(--cp-lime-soft); }
.launch__legal{ margin-top:6px; opacity:.85; }

/* ---------- wider screens ---------- */
@media (min-width:900px){
  .launch__inner{ max-width:700px; }
  .mark__img{ width:min(60vw,460px); }
}

/* Short landscape viewports: keep everything on one screen. */
@media (max-height:620px) and (min-width:700px){
  .mark__img{ width:min(38vw,320px); }
  .headline{ font-size:clamp(2rem,4.4vw,2.8rem); }
  .rule{ margin-top:20px; margin-bottom:18px; }
  .countdown__num{ font-size:clamp(1.35rem,3.2vw,1.8rem); }
}

/* ---------- motion ---------- */
/* Everything above is the reduced-motion presentation. Only add movement
   when the visitor has not asked for less of it. */
@media (prefers-reduced-motion: no-preference){
  .rise{ animation:rise .85s cubic-bezier(.2,.7,.25,1) both; }
  .rise[data-rise="1"]{ animation-delay:.05s; }
  .rise[data-rise="2"]{ animation-delay:.14s; }
  .rise[data-rise="3"]{ animation-delay:.34s; }
  .rise[data-rise="4"]{ animation-delay:.46s; }
  .rise[data-rise="5"]{ animation-delay:.56s; }
  .rise[data-rise="6"]{ animation-delay:.66s; }

  .mark__img{ animation:float 7.5s ease-in-out 1.4s infinite; }
  .mark::before{ animation:breathe 9s ease-in-out 1.4s infinite; }
  .status__dot{ animation:pulse 2.6s ease-out infinite; }
  /* The chip breathes with the dot it carries: one ring easing out of its
     edge on the dot's own 2.6s cycle, delayed by exactly one cycle so the
     entrance lands first and the two stay in phase after it. The chip's box
     is left still — the scale lives on the pointer-transparent ring, so the
     label never moves and the column never reflows. */
  .status::after{ animation:status-halo 2.6s ease-out 2.6s infinite; }
  .stage__glow--a{ animation:drift-a 26s ease-in-out infinite; }
  .stage__glow--b{ animation:drift-b 32s ease-in-out infinite; }
  .rule__gem{ animation:gem 6s ease-in-out 1.6s infinite; }
  .stage__glow{ transition:transform .9s cubic-bezier(.2,.7,.25,1); }
}

@keyframes rise{
  from{ opacity:0; transform:translateY(16px); }
  to{ opacity:1; transform:none; }
}
@keyframes float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-9px); }
}
@keyframes breathe{
  0%,100%{ opacity:.8; transform:translate(-50%,-50%) scale(1); }
  50%{ opacity:1; transform:translate(-50%,-50%) scale(1.07); }
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(143,192,60,.55); }
  70%{ box-shadow:0 0 0 9px rgba(143,192,60,0); }
  100%{ box-shadow:0 0 0 0 rgba(143,192,60,0); }
}
/* The chip ring: drawn at the chip's own edge, easing outwards as it fades
   on the same curve as the dot's pulse. */
@keyframes status-halo{
  0%{ opacity:.55; transform:scale(1); }
  70%,100%{ opacity:0; transform:scale(1.06); }
}
@keyframes drift-a{
  0%,100%{ transform:translate3d(calc(var(--px,0) * 1px), calc(var(--py,0) * 1px), 0) scale(1); }
  50%{ transform:translate3d(calc(var(--px,0) * 1px - 26px), calc(var(--py,0) * 1px + 22px), 0) scale(1.08); }
}
@keyframes drift-b{
  0%,100%{ transform:translate3d(calc(var(--px,0) * -1px), calc(var(--py,0) * -1px), 0) scale(1); }
  50%{ transform:translate3d(calc(var(--px,0) * -1px + 30px), calc(var(--py,0) * -1px - 18px), 0) scale(1.06); }
}
@keyframes gem{
  0%,100%{ opacity:1; transform:rotate(45deg) scale(1); }
  50%{ opacity:.6; transform:rotate(45deg) scale(1.25); }
}
