/* ============================================================
   Slimanol — Brand stylesheet
   Palette: light / saturated / silver / chrome / graphite /
            sky-blue / azure / deep-navy
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --nav-deep: #0f1b36;      /* deep navy   */
  --nav-mid: #1c3458;       /* navy        */
  --azure: #388ed6;         /* azure       */
  --azure-bright: #4aa8ef;  /* saturated   */
  --sky: #9cc7ea;           /* sky-blue    */
  --graphite: #262e3c;      /* graphite    */
  --graphite-soft: #3a4557; /* graphite    */
  --chrome: #c8d0da;        /* chrome      */
  --silver: #e6ebf1;        /* silver      */
  --light: #f5f8fc;         /* light       */
  --white: #ffffff;
  --ink: #16202f;
  --muted: #5c6a7e;

  --grad-metal: linear-gradient(135deg, #eef2f7 0%, #cdd6e1 50%, #eef2f7 100%);
  --grad-azure: linear-gradient(135deg, var(--azure) 0%, var(--nav-mid) 100%);
  --grad-deep: linear-gradient(160deg, var(--nav-deep) 0%, var(--graphite) 100%);

  --shadow-sm: 0 2px 8px rgba(15, 27, 54, .08);
  --shadow-md: 0 14px 40px rgba(15, 27, 54, .12);
  --shadow-lg: 0 30px 70px rgba(15, 27, 54, .18);

  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --font-display: "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2. Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--nav-deep);
}

.sm-shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.sm-eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--azure);
  margin-bottom: 14px;
}

.sm-skip {
  position: absolute; left: -999px; top: 0;
  background: var(--nav-deep); color: #fff; padding: 12px 20px; z-index: 1000;
}
.sm-skip:focus { left: 12px; top: 12px; }

/* Visible focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--azure-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Buttons ---------- */
.sm-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .96rem;
  padding: 15px 30px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease;
}
.sm-btn--primary { background: var(--grad-azure); color: #fff; box-shadow: var(--shadow-md); }
.sm-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sm-btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.sm-btn--ghost:hover { background: rgba(255,255,255,.18); }
.sm-btn--dark { background: var(--nav-deep); color: #fff; }
.sm-btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- 4. Header / Navigation ---------- */
.sm-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 248, 252, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--silver);
}
.sm-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.sm-brandmark { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.34rem; color: var(--nav-deep); }
.sm-brandmark .sm-dot {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad-azure); box-shadow: inset 0 1px 2px rgba(255,255,255,.5);
}
.sm-menu { display: flex; align-items: center; gap: 34px; }
.sm-menu a { font-size: .95rem; font-weight: 500; color: var(--graphite); position: relative; }
.sm-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--azure); transition: width .25s ease;
}
.sm-menu a:hover::after, .sm-menu a:focus::after { width: 100%; }

.sm-burger {
  display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; padding: 8px;
}
.sm-burger span { height: 2px; background: var(--nav-deep); border-radius: 2px; transition: .3s; }
.sm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.sm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.sm-hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--grad-deep);
}
.sm-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .42;
}
.sm-hero__veil { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(15,27,54,.92) 30%, rgba(15,27,54,.35) 100%); }
.sm-hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding-block: clamp(70px, 10vw, 130px);
}
.sm-hero h1 { color: #fff; font-size: clamp(2.5rem, 5.5vw, 4.4rem); }
.sm-hero__lede { margin: 24px 0 34px; font-size: 1.14rem; color: var(--sky); max-width: 30ch; }
.sm-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.sm-hero__stat {
  display: flex; gap: 28px; margin-top: 46px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.sm-hero__stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: #fff; }
.sm-hero__stat span { font-size: .82rem; color: var(--sky); letter-spacing: .04em; }
.sm-hero__panel {
  justify-self: end; width: min(360px, 100%);
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(74,168,239,.28), rgba(15,27,54,.6));
  border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-lg);
}
.sm-hero__panel img { width: 62%; height: 92%; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); }

/* ---------- 6. Section framework ---------- */
.sm-block { padding-block: clamp(64px, 9vw, 118px); }
.sm-block--tint { background: var(--white); }
.sm-block--metal { background: var(--grad-metal); }
.sm-block--deep { background: var(--grad-deep); color: #fff; }
.sm-block--deep h2, .sm-block--deep h3 { color: #fff; }

.sm-head { max-width: 640px; margin-bottom: 52px; }
.sm-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.sm-head p { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.sm-block--deep .sm-head p { color: var(--sky); }
.sm-index { font-family: var(--font-display); font-weight: 700; font-size: .8rem; color: var(--azure); letter-spacing: .3em; }

/* ---------- 7. Lifestyle (split) ---------- */
.sm-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.sm-split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5 / 4; }
.sm-split__media img { width: 100%; height: 100%; object-fit: cover; }
.sm-checklist { margin-top: 26px; display: grid; gap: 16px; }
.sm-checklist li { display: flex; gap: 14px; align-items: flex-start; }
.sm-checklist .sm-tick {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad-azure); color: #fff; display: grid; place-items: center; font-size: .8rem; margin-top: 3px;
}

/* ---------- 8. Product ---------- */
.sm-product { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.sm-product__stage {
  border-radius: var(--radius-lg); aspect-ratio: 3 / 4;
  background: radial-gradient(circle at 50% 35%, rgba(74,168,239,.22), transparent 60%), var(--grad-metal);
  border: 1px solid var(--chrome); display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.sm-product__stage img { width: 60%; height: 88%; object-fit: contain; filter: drop-shadow(0 22px 34px rgba(28,52,88,.35)); }
.sm-price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 6px; }
.sm-price b { font-family: var(--font-display); font-size: 2.6rem; color: var(--nav-deep); }
.sm-price span { color: var(--muted); font-size: .95rem; }
.sm-product__lede { color: var(--muted); max-width: 52ch; }
.sm-facts { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sm-fact {
  background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-sm); min-height: 148px;
  display: flex; flex-direction: column;
}
.sm-fact .sm-fact__k { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--azure); }
.sm-fact h3 { font-size: 1rem; margin: 8px 0 4px; }
.sm-fact p { font-size: .88rem; color: var(--muted); }
.sm-product__cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 9. Ingredients grid ---------- */
.sm-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sm-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 30px 26px; min-height: 210px;
  display: flex; flex-direction: column; transition: transform .25s ease, background .25s ease;
}
.sm-block--deep .sm-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.sm-card__num {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-azure); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 18px;
}
.sm-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.sm-card p { font-size: .92rem; color: var(--sky); }

/* ---------- 10. Daily routine (steps) ---------- */
.sm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.sm-step {
  background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); position: relative; min-height: 200px;
  display: flex; flex-direction: column;
}
.sm-step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 2.2rem;
  color: var(--chrome); line-height: 1; margin-bottom: 16px;
}
.sm-step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.sm-step p { color: var(--muted); font-size: .92rem; }

/* ---------- 11. FAQ accordion ---------- */
.sm-faq { max-width: 820px; margin-inline: auto; }
.sm-acc { border: 1px solid var(--silver); border-radius: var(--radius); background: var(--white); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.sm-acc__btn {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 1.04rem; font-weight: 600; color: var(--nav-deep);
  padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.sm-acc__ic { flex: 0 0 auto; width: 26px; height: 26px; position: relative; transition: transform .3s ease; }
.sm-acc__ic::before, .sm-acc__ic::after { content: ""; position: absolute; background: var(--azure); border-radius: 2px; }
.sm-acc__ic::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.sm-acc__ic::after { left: 12px; top: 4px; bottom: 4px; width: 2px; transition: transform .3s ease; }
.sm-acc__btn[aria-expanded="true"] .sm-acc__ic::after { transform: rotate(90deg); }
.sm-acc__panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.sm-acc__panel p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- 12. Contact form ---------- */
.sm-contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.sm-form {
  background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-md);
}
.sm-field { margin-bottom: 22px; }
.sm-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: var(--graphite); }
.sm-field input {
  width: 100%; padding: 15px 18px; border: 1.5px solid var(--chrome); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; background: var(--light); transition: border-color .2s ease;
}
.sm-field input:focus { border-color: var(--azure); outline: none; background: #fff; }
.sm-field input[aria-invalid="true"] { border-color: #d24b4b; }
.sm-error { display: block; color: #c33; font-size: .82rem; margin-top: 6px; min-height: 1em; }
.sm-form__note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.sm-contact__aside li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.sm-contact__aside .sm-tick { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; background: var(--grad-metal); border: 1px solid var(--chrome); display: grid; place-items: center; color: var(--azure); }
.sm-contact__aside b { display: block; color: var(--nav-deep); }
.sm-contact__aside span { color: var(--muted); font-size: .92rem; }

/* ---------- 13. Compliance notice ---------- */
.sm-notice {
  background: var(--white); border: 1px solid var(--silver); border-left: 4px solid var(--azure);
  border-radius: 14px; padding: 24px 28px; margin-top: 40px; box-shadow: var(--shadow-sm);
}
.sm-notice p { color: var(--muted); font-size: .9rem; }
.sm-notice p + p { margin-top: 10px; }

/* ---------- 14. Footer ---------- */
.sm-footer { background: var(--nav-deep); color: var(--sky); padding-block: 64px 30px; }
.sm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.sm-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 18px; letter-spacing: .02em; }
.sm-footer a:hover { color: #fff; }
.sm-footer li { margin-bottom: 10px; font-size: .93rem; }
.sm-footer address { font-style: normal; font-size: .93rem; line-height: 1.9; }
.sm-footer__brand p { margin-top: 16px; font-size: .92rem; max-width: 34ch; }
.sm-footer__bar {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem;
}

/* ---------- 15. Legal / content pages ---------- */
.sm-legal { padding-block: clamp(50px, 7vw, 90px); }
.sm-legal__wrap { max-width: 820px; margin-inline: auto; }
.sm-legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.sm-legal__meta { color: var(--muted); font-size: .9rem; margin-bottom: 40px; }
.sm-legal h2 { font-size: 1.34rem; margin: 36px 0 12px; }
.sm-legal p, .sm-legal li { color: var(--graphite-soft); margin-bottom: 12px; }
.sm-legal ul { list-style: disc; padding-left: 22px; }
.sm-legal a { color: var(--azure); text-decoration: underline; }

/* ---------- 16. Success page ---------- */
.sm-success { min-height: 68vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.sm-success__badge {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 30px;
  background: var(--grad-azure); display: grid; place-items: center; color: #fff; font-size: 2.6rem; box-shadow: var(--shadow-lg);
}
.sm-success h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.sm-success p { color: var(--muted); max-width: 46ch; margin: 0 auto 30px; }

/* ---------- 17. Cookie banner ---------- */
.sm-cookie {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(140%);
  width: min(680px, calc(100% - 32px)); z-index: 200;
  background: var(--nav-deep); color: var(--sky); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  transition: transform .45s cubic-bezier(.16,.8,.4,1);
}
.sm-cookie.is-visible { transform: translateX(-50%) translateY(0); }
.sm-cookie p { font-size: .9rem; flex: 1 1 280px; }
.sm-cookie a { color: #fff; text-decoration: underline; }
.sm-cookie__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 18. Reveal animation ---------- */
.sm-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.sm-reveal.is-in { opacity: 1; transform: none; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 960px) {
  .sm-hero__inner { grid-template-columns: 1fr; }
  .sm-hero__panel { justify-self: start; margin-top: 20px; }
  .sm-split, .sm-product, .sm-contact { grid-template-columns: 1fr; }
  .sm-grid3, .sm-steps { grid-template-columns: repeat(2, 1fr); }
  .sm-footer__grid { grid-template-columns: 1fr 1fr; }
  .sm-product__media-first { order: -1; }
}

@media (max-width: 720px) {
  .sm-menu {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--light); border-bottom: 1px solid var(--silver);
    max-height: 0; overflow: hidden; transition: max-height .35s ease; box-shadow: var(--shadow-md);
  }
  .sm-menu.is-open { max-height: 420px; }
  .sm-menu a { padding: 18px var(--gutter); border-bottom: 1px solid var(--silver); }
  .sm-menu a::after { display: none; }
  .sm-menu .sm-btn { margin: 16px var(--gutter); justify-content: center; }
  .sm-burger { display: flex; }
  .sm-facts { grid-template-columns: 1fr; }
  .sm-grid3, .sm-steps { grid-template-columns: 1fr; }
  .sm-footer__grid { grid-template-columns: 1fr; }
  .sm-hero__stat { flex-wrap: wrap; gap: 18px; }
}
