/* =========================================================
   Magnesium Glycinate — Arabic RTL COD landing (Mauritania)
   Mobile-first. No framework, no build step.
   ========================================================= */

:root{
  /* Palette lifted from the client's mockup: clinical green, COD red. */
  --green-900:#0f3d26;
  --green-800:#14512f;
  --green-700:#1f6f45;
  --green-600:#2b8a56;
  --green-500:#37a468;
  --green-50:#eaf4ee;
  --green-25:#f3f8f4;

  --red:#e23a34;
  --red-dark:#c62a25;
  --red-50:#fdecec;

  --ink:#15211b;
  --ink-2:#3c4b43;
  --muted:#69796f;
  --line:#e4eae5;
  --bg:#ffffff;
  --bg-alt:#f6f9f7;

  --radius:16px;
  --radius-lg:22px;
  --shadow-sm:0 1px 2px rgba(16,40,28,.06), 0 2px 8px rgba(16,40,28,.05);
  --shadow:0 6px 20px rgba(16,40,28,.08), 0 2px 6px rgba(16,40,28,.05);
  --shadow-lg:0 18px 46px rgba(16,40,28,.14), 0 4px 12px rgba(16,40,28,.07);

  --wrap:1120px;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}

body{
  margin:0;
  font-family:'Tajawal',system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-size:16px;
  line-height:1.75;
  overflow-x:hidden;
}

img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
button,input{font:inherit; color:inherit}
h1,h2,h3{margin:0; line-height:1.35; font-weight:800; letter-spacing:-.01em}
p{margin:0}
s{color:var(--muted)}

.wrap{width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:18px}
.wrap.narrow{max-width:720px}
.hidden{display:none !important}

/* SVG icon defaults — every icon in the page is a stroked line drawing. */
.i,.ic svg,.strip-item svg,.foot-item svg{
  width:22px; height:22px; flex:none;
  fill:none; stroke:currentColor; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round;
}

/* The sticky nav must not sit on top of a section the shopper jumped to. */
section[id],header[id]{scroll-margin-top:66px}

/* =========================================================
   Top strip + nav
   ========================================================= */
.topbar{
  background:var(--green-800);
  color:#dff0e6;
  font-size:12.5px;
  font-weight:500;
}
.topbar-in{
  display:flex; align-items:center; justify-content:center;
  gap:14px; min-height:36px; text-align:center;
}
.topbar-msg{
  display:inline-flex; align-items:center; gap:7px;
  background:var(--green-600); color:#fff;
  padding:3px 14px; border-radius:999px; font-weight:700;
}
.topbar-msg .i{width:16px; height:16px}
.topbar-flag,.topbar-brand{display:none}
.topbar-flag{align-items:center; gap:6px}
/* Mauritanian flag, drawn in CSS: gold crescent + star band on green. */
.flag{
  width:20px; height:13px; border-radius:2px; display:inline-block;
  background:var(--green-500);
  position:relative; overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);
}
.flag::before{
  content:''; position:absolute; inset:auto 0 0 0; height:2.5px; background:#d01c1f;
}
.flag::after{
  content:''; position:absolute; left:50%; top:3px; width:7px; height:7px;
  transform:translateX(-50%);
  border-radius:50%;
  box-shadow:inset -2.5px 0 0 0 #ffd200;
}

.nav{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid transparent;
  transition:box-shadow .25s ease, border-color .25s ease;
}
.nav.scrolled{border-color:var(--line); box-shadow:var(--shadow-sm)}
.nav-in{display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:58px}

.brand{display:flex; align-items:center; gap:10px}
.brand-mark{
  width:34px; height:34px; border-radius:11px; flex:none;
  display:grid; place-items:center;
  background:linear-gradient(140deg,var(--green-600),var(--green-800));
  color:#fff; font-weight:800; font-size:14px; letter-spacing:.02em;
  box-shadow:0 4px 12px rgba(31,111,69,.28);
}
.brand-text{display:flex; flex-direction:column; line-height:1.25}
.brand-text b{font-size:14.5px; font-weight:800}
.brand-text i{font-style:normal; font-size:11.5px; color:var(--muted)}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:0; border-radius:12px; cursor:pointer;
  padding:15px 22px;
  font-weight:800; font-size:16px; line-height:1;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
  -webkit-tap-highlight-color:transparent;
}
.btn:active{transform:translateY(1px) scale(.995)}

.btn-red{
  background:linear-gradient(180deg,#e8443e,var(--red));
  color:#fff; width:100%;
  box-shadow:0 6px 16px rgba(226,58,52,.28);
  position:relative; overflow:hidden;
}
.btn-red:hover{background:linear-gradient(180deg,var(--red),var(--red-dark))}
/* Slow sheen so the main CTA reads as live without blinking at the shopper. */
.btn-red::after{
  content:''; position:absolute; top:0; bottom:0; width:40%;
  left:-60%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
  animation:sheen 4.5s ease-in-out infinite;
}
@keyframes sheen{
  0%,72%{left:-60%}
  100%{left:120%}
}

.btn-sm{padding:9px 16px; font-size:14px; border-radius:10px; width:auto}
.nav-cta{background:var(--green-700); color:#fff; box-shadow:0 4px 12px rgba(31,111,69,.25)}
.nav-cta:hover{background:var(--green-800)}

.btn-wa{
  background:#25d366; color:#0b3d22; width:auto; margin:0 auto 26px;
  box-shadow:0 8px 22px rgba(37,211,102,.3);
}
.btn-wa .i{stroke:#0b3d22; width:20px; height:20px}

/* =========================================================
   Hero
   ========================================================= */
.hero{position:relative; background:linear-gradient(180deg,#fdfefd 0%,var(--green-25) 46%,#fff 100%); overflow:hidden}
.hero-glow{
  position:absolute; inset:auto -20% 30% -20%; height:420px;
  background:radial-gradient(60% 60% at 50% 50%,rgba(55,164,104,.16),transparent 70%);
  filter:blur(10px);
  animation:breathe 9s ease-in-out infinite;
  pointer-events:none;
}
@keyframes breathe{
  0%,100%{opacity:.75; transform:scale(1)}
  50%{opacity:1; transform:scale(1.06)}
}

.hero-in{
  position:relative; z-index:1;
  display:grid; gap:22px;
  padding:26px 18px 40px;
}

.pill{
  display:inline-block; padding:5px 13px; border-radius:999px;
  font-size:12.5px; font-weight:700;
}
.pill-green{background:var(--green-50); color:var(--green-700); border:1px solid #cfe6d8}

.hero h1{
  margin:14px 0 10px;
  font-size:clamp(27px,7.6vw,44px);
  line-height:1.3;
}
.hero h1 em{display:block; font-style:normal; color:var(--red)}

.lede{color:var(--ink-2); font-size:16px; max-width:46ch}
.lede b{font-weight:700; color:var(--ink)}

.ticks{list-style:none; margin:18px 0 0; padding:0; display:grid; gap:10px}
.ticks li{
  position:relative; padding-inline-start:32px;
  font-size:15px; font-weight:500; color:var(--ink-2);
}
.ticks li::before{
  content:''; position:absolute; inset-inline-start:0; top:3px;
  width:22px; height:22px; border-radius:7px;
  background:var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b8a56' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.ticks.green li::before{background-color:#e2f2e8}

/* Product shot */
.hero-shot{
  margin:6px auto 0; position:relative; width:min(330px,78vw);
  animation:float 6s ease-in-out infinite;
}
.hero-shot img{
  width:100%; border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
}
@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-10px)}
}
.shot-badge{
  position:absolute; inset-inline-start:-10px; bottom:18px;
  width:66px; height:66px; border-radius:50%;
  background:#fff; color:var(--green-700);
  display:grid; place-content:center; text-align:center;
  box-shadow:var(--shadow); border:2px solid var(--green-50);
}
.shot-badge b{font-size:21px; font-weight:800; line-height:1}
.shot-badge i{font-style:normal; font-size:11px; color:var(--muted)}

/* =========================================================
   Order box (used twice: hero + bottom)
   ========================================================= */
.orderbox{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  padding:18px 16px 16px;
}
.orderbox-head{text-align:center; margin-bottom:14px}
.orderbox-head h2{font-size:17px}
.orderbox-head h2 span{font-weight:500; color:var(--muted); font-size:13.5px}
.price-line{display:flex; align-items:baseline; justify-content:center; gap:10px; margin-top:6px}
.price-line s{font-size:14px}
.price{color:var(--red); font-size:26px; font-weight:800; letter-spacing:-.02em}
.price .total-value{display:inline-block; min-width:1ch}

.field{margin-bottom:10px}
.field input{
  width:100%; padding:14px 15px;
  background:#fbfdfc; border:1.5px solid var(--line); border-radius:12px;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
  font-size:15.5px;
}
.field input::placeholder{color:#9aa8a0}
.field input:focus{
  outline:0; background:#fff;
  border-color:var(--green-500);
  box-shadow:0 0 0 4px rgba(55,164,104,.14);
}
.field .err{display:none; margin-top:5px; font-size:12.5px; color:var(--red); font-weight:500}
.field.invalid input{border-color:var(--red); background:var(--red-50)}
.field.invalid .err{display:block}

.pick-title{margin:14px 0 8px; font-weight:700; font-size:14.5px}

.pack{
  display:flex; align-items:center; gap:11px;
  border:1.5px solid var(--line); border-radius:12px;
  padding:12px 14px; margin-bottom:9px; cursor:pointer;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.pack:hover{border-color:#c9dccf}
.pack input{position:absolute; opacity:0; pointer-events:none}
.pack-dot{
  width:19px; height:19px; border-radius:50%; flex:none;
  border:2px solid #c3d2c8; position:relative;
  transition:border-color .18s ease;
}
.pack-dot::after{
  content:''; position:absolute; inset:3px; border-radius:50%;
  background:var(--red); transform:scale(0); transition:transform .18s ease;
}
.pack-txt{display:flex; flex-direction:column; line-height:1.4}
.pack-txt b{font-size:15px}
.pack-txt i{font-style:normal; font-size:13px; color:var(--muted)}
.pack.is-on{border-color:var(--red); background:var(--red-50); box-shadow:0 0 0 3px rgba(226,58,52,.08)}
.pack.is-on .pack-dot{border-color:var(--red)}
.pack.is-on .pack-dot::after{transform:scale(1)}
.tag-save{
  display:inline-block; margin-inline-start:6px; padding:2px 8px;
  background:var(--green-600); color:#fff; border-radius:999px;
  font-size:10.5px; font-weight:700; vertical-align:middle;
}

.submit-btn{margin-top:6px}
.submit-btn:disabled{opacity:.75; cursor:progress}
.under-btn{margin-top:9px; text-align:center; font-size:12.5px; color:var(--red); font-weight:600}

.spinner{
  width:16px; height:16px; border-radius:50%;
  border:2px solid rgba(255,255,255,.45); border-top-color:#fff;
  animation:spin .7s linear infinite; display:inline-block;
}
@keyframes spin{to{transform:rotate(360deg)}}

.order-done{text-align:center; padding:16px 6px 10px}
.done-mark{
  width:60px; height:60px; margin:0 auto 12px; border-radius:50%;
  background:var(--green-50); display:grid; place-items:center;
  animation:pop .5s cubic-bezier(.2,1.4,.4,1) both;
}
.done-mark svg{width:30px; height:30px; fill:none; stroke:var(--green-600); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round}
.order-done h3{font-size:19px; margin-bottom:6px}
.order-done p{color:var(--muted); font-size:14.5px}
@keyframes pop{from{transform:scale(.5); opacity:0} to{transform:scale(1); opacity:1}}

/* Every price is one LTR island, so bidi cannot reorder MRU and the number. */
.price,.offer-price,.dock-price,.price-line s,.offer s{
  direction:ltr; unicode-bidi:isolate;
}
.price-line{direction:ltr}

/* =========================================================
   Trust strip
   ========================================================= */
.strip{background:#fff; border-block:1px solid var(--line)}
.strip-in{
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px;
  padding:18px 12px;
}
.strip-item{display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px}
.strip-item svg{width:26px; height:26px; color:var(--green-600)}
.strip-item b{font-size:13px}
.strip-item span{font-size:11.5px; color:var(--muted)}

/* =========================================================
   Sections
   ========================================================= */
.sec{padding:46px 0}
.sec-alt{background:var(--bg-alt)}
.sec-title{text-align:center; font-size:clamp(21px,5.6vw,30px)}
.sec-title span{color:var(--green-700)}
.sec-title.right{text-align:start}
.sec-sub{text-align:center; color:var(--muted); margin:10px auto 26px; max-width:52ch; font-size:15px}

.grid4{display:grid; gap:14px}
.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:20px 18px; text-align:center;
  transition:transform .22s ease, box-shadow .22s ease;
}
.card:hover{transform:translateY(-4px); box-shadow:var(--shadow)}
.ic{
  width:52px; height:52px; margin:0 auto 12px; border-radius:15px;
  display:grid; place-items:center;
  background:var(--green-50); color:var(--green-700);
}
.ic svg{width:26px; height:26px}
.card h3{font-size:16.5px; margin-bottom:6px}
.card p{color:var(--muted); font-size:14px}

/* about */
.split{display:grid; gap:22px; align-items:center}
.split-copy p{color:var(--ink-2); margin-top:12px}
.mini-title{font-size:16px; margin:20px 0 10px; color:var(--green-700)}
.split-shot img{
  /* Capped near the crop's native 348px: the mockup is only 728px wide, so
     stretching this photo any further just makes it soft. */
  width:100%; max-width:420px; margin-inline:auto;
  border-radius:var(--radius-lg); box-shadow:var(--shadow);
}

/* steps */
.steps{list-style:none; margin:0; padding:0; display:grid; gap:14px; counter-reset:s}
.step{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:20px 18px 18px; position:relative;
}
.step-n{
  position:absolute; top:-14px; inset-inline-start:18px;
  width:34px; height:34px; border-radius:11px;
  display:grid; place-items:center;
  background:linear-gradient(140deg,var(--green-600),var(--green-800));
  color:#fff; font-weight:800; font-size:15px;
  box-shadow:0 5px 14px rgba(31,111,69,.28);
}
.step h3{font-size:16.5px; margin:10px 0 6px}
.step p{color:var(--muted); font-size:14px}

.note{
  margin-top:22px; padding:14px 16px;
  background:var(--green-25); border:1px solid #dceae1; border-radius:14px;
  font-size:13.5px; color:var(--ink-2);
}
.note b{color:var(--green-800)}

/* =========================================================
   Offers
   ========================================================= */
.offers{display:grid; gap:16px}
.offer{
  position:relative; background:#fff; border:1.5px solid var(--line);
  border-radius:var(--radius-lg); padding:26px 18px 18px; text-align:center;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.offer:hover{transform:translateY(-4px); box-shadow:var(--shadow-lg)}
.offer-best{border-color:var(--green-500); box-shadow:0 0 0 4px rgba(55,164,104,.1)}
.offer-flag{
  position:absolute; top:-11px; inset-inline-start:18px;
  padding:4px 12px; border-radius:999px;
  background:var(--red); color:#fff; font-size:11.5px; font-weight:700;
}
.offer-flag.flag-best{background:var(--green-600)}
.offer-shot{margin:0 0 12px; display:grid; place-items:center; min-height:160px}
.offer-shot img{
  width:auto; max-height:160px;
  transition:transform .3s ease;
  filter:drop-shadow(0 10px 18px rgba(16,40,28,.12));
}
.offer:hover .offer-shot img{transform:scale(1.06) rotate(-1.5deg)}
.offer h3{font-size:18px}
.offer s{display:block; font-size:14px; margin-top:4px}
.offer-price{font-size:15px; font-weight:700; color:var(--green-800); margin:2px 0 6px}
.offer-price b{font-size:34px; letter-spacing:-.02em}
.offer-note{font-size:13px; color:var(--muted); margin-bottom:14px}
.offer-note.save{color:var(--green-600); font-weight:700}

.order-sec{background:linear-gradient(180deg,#fff,var(--green-25))}

/* =========================================================
   FAQ
   ========================================================= */
.faq{display:grid; gap:10px}
.faq details{
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:0 16px; overflow:hidden;
}
.faq summary{
  list-style:none; cursor:pointer; padding:15px 0;
  font-weight:700; font-size:15px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:''; width:10px; height:10px; flex:none;
  border-right:2px solid var(--green-600); border-bottom:2px solid var(--green-600);
  transform:rotate(45deg) translateY(-2px);
  transition:transform .25s ease;
}
.faq details[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.faq details p{padding:0 0 16px; color:var(--muted); font-size:14.5px; animation:fadeIn .3s ease both}
@keyframes fadeIn{from{opacity:0; transform:translateY(-4px)} to{opacity:1; transform:none}}

/* =========================================================
   Footer
   ========================================================= */
.foot{
  background:var(--green-900); color:#cfe4d7;
  padding:34px 0 30px; text-align:center;
}
.foot-grid{display:grid; gap:14px; margin-bottom:20px}
.foot-item{display:flex; align-items:center; justify-content:center; gap:9px; font-size:13.5px}
.foot-item svg{color:var(--green-500)}
.foot-item b{font-weight:600; color:#eaf5ee}
.foot-note{font-size:12.5px; color:#9dbfab; max-width:60ch; margin:0 auto}
.copy{margin-top:12px; font-size:12px; color:#84a793}

/* =========================================================
   Mobile dock
   ========================================================= */
.dock{
  position:fixed; inset-inline:0; bottom:0; z-index:70;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  border-top:1px solid var(--line);
  box-shadow:0 -6px 22px rgba(16,40,28,.1);
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  transform:translateY(120%);
  transition:transform .3s cubic-bezier(.2,.8,.3,1);
}
.dock.up{transform:none}
.dock-in{display:flex; align-items:center; gap:12px; max-width:var(--wrap); margin-inline:auto}
.dock-price{font-size:13px; font-weight:700; color:var(--green-800); white-space:nowrap}
.dock-price b{font-size:20px; color:var(--red)}
.dock-btn{flex:1; padding:13px 14px; font-size:14.5px}

/* =========================================================
   Entrance animations
   ========================================================= */
.anim-up{animation:riseIn .7s cubic-bezier(.2,.7,.3,1) both}
.anim-pop{animation:popIn .55s cubic-bezier(.2,1.3,.4,1) both}
.d1{animation-delay:.1s}
.d2{animation-delay:.2s}
.d3{animation-delay:.3s}
@keyframes riseIn{from{opacity:0; transform:translateY(18px)} to{opacity:1; transform:none}}
@keyframes popIn{from{opacity:0; transform:scale(.86)} to{opacity:1; transform:none}}

.reveal{opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1)}
.reveal.d1{transition-delay:.09s}
.reveal.d2{transition-delay:.18s}
.reveal.d3{transition-delay:.27s}
.reveal.seen{opacity:1; transform:none}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important}
  .reveal{opacity:1; transform:none}
  html{scroll-behavior:auto}
}

/* =========================================================
   Larger screens
   ========================================================= */
/* Room under the last section so the fixed dock never covers the footer. */
@media (max-width:899px){
  body{padding-bottom:84px}
}

@media (min-width:560px){
  .grid4{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(3,1fr)}
  .offers{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:repeat(3,1fr)}
  .orderbox{padding:24px 22px 20px}
  .topbar-flag{display:inline-flex}
}

@media (min-width:900px){
  body{font-size:16.5px}
  .topbar-in{justify-content:space-between}
  .topbar-brand{display:inline; color:#a9d0ba; font-weight:700}
  .hero-in{
    grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
    grid-template-areas:
      "copy shot"
      "form shot";
    column-gap:40px; row-gap:26px;
    align-items:start;
    padding:44px 18px 66px;
  }
  .hero-copy{grid-area:copy; align-self:end}
  .hero-shot{grid-area:shot; align-self:center; margin:0 auto; width:330px}
  .orderbox{grid-area:form; max-width:430px}
  .grid4{grid-template-columns:repeat(4,1fr)}
  .split{grid-template-columns:1fr 1fr; gap:44px}
  .split-shot{margin:0}
  .sec{padding:66px 0}
  .strip-in{padding:24px 12px; gap:20px}
  .strip-item{flex-direction:row; text-align:start; gap:12px; justify-content:center}
  .strip-item svg{width:30px; height:30px}
  .strip-item b{font-size:14.5px; display:block}
  .offers{gap:26px; max-width:760px; margin-inline:auto}
  /* The dock is a phone affordance; on a desktop the page's own CTAs are enough. */
  .dock{display:none}
}

/* =========================================================
   Order form v2 — icons, live progress, valid/invalid states
   (appended: overrides the base .field rules above)
   ========================================================= */
.orderbox{position:relative; overflow:hidden}
/* Thin moving accent on top of the card: the form is where the page is
   heading, so it gets the only permanently animated surface. */
.orderbox::before{
  content:''; position:absolute; top:0; inset-inline:0; height:4px;
  background:linear-gradient(90deg,var(--green-700),var(--green-500),var(--red),var(--green-700));
  background-size:300% 100%;
  animation:accent 7s linear infinite;
}
@keyframes accent{to{background-position:-300% 0}}

.form-progress{
  height:5px; border-radius:999px; background:var(--green-50);
  overflow:hidden; margin:0 0 14px;
}
.form-progress i{
  display:block; height:100%; width:0; border-radius:999px;
  background:linear-gradient(90deg,var(--green-500),var(--green-700));
  transition:width .38s cubic-bezier(.2,.8,.3,1);
}

.field{position:relative}
.field input{padding-inline-start:46px; padding-inline-end:42px}

.fi{
  position:absolute; inset-inline-start:15px; top:14px;
  width:20px; height:20px; color:#9aa8a0; pointer-events:none;
  transition:color .18s ease, transform .18s ease;
}
.fi svg{
  width:20px; height:20px; fill:none; stroke:currentColor;
  stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
}
.field:focus-within .fi{color:var(--green-600); transform:scale(1.08)}
.field.invalid .fi{color:var(--red)}

.ok{
  position:absolute; inset-inline-end:14px; top:14px;
  width:20px; height:20px; pointer-events:none;
  opacity:0; transform:scale(.4);
  transition:opacity .2s ease, transform .25s cubic-bezier(.2,1.4,.4,1);
}
.ok svg{
  width:20px; height:20px; fill:none; stroke:var(--green-600);
  stroke-width:2.8; stroke-linecap:round; stroke-linejoin:round;
}
.field.valid .ok{opacity:1; transform:none}
.field.valid input{border-color:#bfe0cb; background:#f6fcf8}

/* A wrong field should be felt, not just read. */
.field.invalid input{animation:shake .34s cubic-bezier(.36,.07,.19,.97)}
@keyframes shake{
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-5px)}
  50%{transform:translateX(5px)}
  75%{transform:translateX(-3px)}
}

/* Submit button: arrow that leans toward the action (RTL → leftward). */
.submit-btn{gap:10px}
.btn-arrow{width:18px; height:18px; animation:nudge 2.4s ease-in-out infinite}
.submit-btn:hover .btn-arrow{transform:translateX(-4px)}
@keyframes nudge{
  0%,88%,100%{transform:translateX(0)}
  94%{transform:translateX(-5px)}
}

.mini-trust{
  list-style:none; display:flex; flex-wrap:wrap; justify-content:center;
  gap:6px 14px; margin:12px 0 0; padding:10px 0 0;
  border-top:1px dashed var(--line);
}
.mini-trust li{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11.5px; font-weight:600; color:var(--muted);
}
.mini-trust .i{width:15px; height:15px; color:var(--green-600)}

/* Chosen pack gives a short physical confirmation. */
.pack.is-on{animation:packPop .32s cubic-bezier(.2,1.3,.4,1)}
@keyframes packPop{
  0%{transform:scale(1)}
  45%{transform:scale(1.025)}
  100%{transform:scale(1)}
}

/* The total re-counts whenever the quantity changes. */
.total-value,#dockPrice{display:inline-block}
.total-value.bump,#dockPrice.bump{animation:bump .4s cubic-bezier(.2,1.3,.4,1)}
@keyframes bump{
  0%{transform:scale(1)}
  40%{transform:scale(1.2)}
  100%{transform:scale(1)}
}

/* Hero form only: its rows arrive one after another on load. The bottom form
   is inside a .reveal, which already staggers it on scroll. */
#orderTop .order-form > *{animation:riseIn .5s cubic-bezier(.2,.7,.3,1) both}
#orderTop .order-form > *:nth-child(1){animation-delay:.20s}
#orderTop .order-form > *:nth-child(2){animation-delay:.25s}
#orderTop .order-form > *:nth-child(3){animation-delay:.30s}
#orderTop .order-form > *:nth-child(4){animation-delay:.35s}
#orderTop .order-form > *:nth-child(5){animation-delay:.40s}
#orderTop .order-form > *:nth-child(6){animation-delay:.45s}
/* The CTA and everything under it land together and early — a button that is
   still fading in is a button nobody taps. */
#orderTop .order-form > *:nth-child(n+7){animation-delay:.50s}

/* Success card: the tick draws itself instead of just appearing. */
.done-mark svg path{
  stroke-dasharray:26; stroke-dashoffset:26;
  animation:draw .5s .18s ease forwards;
}
@keyframes draw{to{stroke-dashoffset:0}}

@media (prefers-reduced-motion:reduce){
  .orderbox::before,.btn-arrow{animation:none}
  #orderTop .order-form > *{animation:none}
}
