/* =========================================================
   Youngi Herbal — Coming Soon page
   Palette from the Youngi logo + banner booklet
   (forest green, leaf green, rich gold, ivory).
   Fonts are self-hosted in /assets (no Google Fonts call).
   ========================================================= */
@font-face { font-family: "Cinzel"; src: url("yg-cinzel-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("yg-cinzel-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("yg-dmsans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("yg-dmsans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("yg-dmsans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --yg-green-950: #04200A;
  --yg-green-900: #06290A;
  --yg-green-800: #0A3903;   /* logo letter body */
  --yg-green-700: #145214;
  --yg-leaf:      #287000;   /* logo leaf */
  --yg-gold-50:  #FFF8DC;
  --yg-gold-100: #FFF3C4;
  --yg-gold-300: #F0CD4F;
  --yg-gold-500: #D99A0D;
  --yg-gold-700: #A8740A;
  --yg-ivory: #FBF8EE;
  --yg-ink:   #1E2B17;
  --yg-muted: #4D5B43;

  --yg-gold-grad: linear-gradient(180deg, #F7DC7A 0%, #E2B23A 45%, #B9840C 100%);
  --yg-green-grad: linear-gradient(160deg, #145214 0%, #0A3903 55%, #04200A 100%);

  --yg-font-display: "Cinzel", "Trajan Pro", Georgia, serif;          /* matches the YOUNGI wordmark */
  --yg-font-body:    "DM Sans", "Helvetica Neue", Arial, sans-serif; /* clean body text */
}

.yg, .yg * { box-sizing: border-box; }
.yg {
  margin: 0; min-height: 100vh;
  background: var(--yg-ivory); color: var(--yg-ink);
  font-family: var(--yg-font-body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.yg img { max-width: 100%; height: auto; display: block; }
.yg a { color: inherit; }

/* ---------- Top bar ---------- */
.yg-topbar {
  background: var(--yg-green-grad); color: var(--yg-gold-300);
  text-align: center; padding: 10px 16px;
  font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  border-bottom: 2px solid var(--yg-gold-500);
}

/* ---------- Hero ---------- */
.yg-hero {
  position: relative; isolation: isolate; text-align: center;
  padding: clamp(44px, 7vw, 84px) 20px clamp(64px, 9vw, 110px);
  background:
    radial-gradient(60% 45% at 50% 18%, rgba(240,205,79,.20), transparent 70%),
    radial-gradient(40% 40% at 8% 85%, rgba(111,174,46,.14), transparent 70%),
    radial-gradient(40% 40% at 95% 70%, rgba(111,174,46,.12), transparent 70%),
    var(--yg-ivory);
  overflow: hidden;
}
.yg-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(240,205,79,.55) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(217,154,13,.35) 0 2px, transparent 3px);
  background-size: 260px 260px, 190px 190px;
  background-position: 30px 40px, 120px 90px;
  opacity: .45;
}
.yg-leaf { position: absolute; z-index: -1; width: clamp(110px, 16vw, 220px); opacity: .9; animation: yg-sway 9s ease-in-out infinite; }
.yg-leaf--tl { top: -20px; left: -30px; transform: rotate(-12deg); }
.yg-leaf--tr { top: 40px; right: -40px; transform: scaleX(-1) rotate(-25deg); animation-delay: -3s; }
.yg-leaf--bl { bottom: -30px; left: 4%; width: clamp(80px, 10vw, 140px); transform: rotate(40deg); animation-delay: -5s; opacity: .7; }
.yg-leaf--br { bottom: 10px; right: 6%; width: clamp(70px, 9vw, 120px); transform: scaleX(-1) rotate(30deg); animation-delay: -1.5s; opacity: .65; }
@keyframes yg-sway { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.yg-logo { width: min(420px, 76vw); height: auto; margin: 0 auto; filter: drop-shadow(0 10px 18px rgba(10,57,3,.12)); }
.yg-herbal {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px auto 0;
  font-family: var(--yg-font-display); font-weight: 600; letter-spacing: .55em; padding-left: .55em;
  font-size: clamp(14px, 1.8vw, 18px); color: var(--yg-green-800);
}
.yg-line { width: 56px; height: 1px; background: var(--yg-gold-500); }
.yg-tagline { margin: 8px 0 0; font-weight: 500; color: var(--yg-gold-700); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; }

.yg-kicker {
  margin: clamp(36px, 5vw, 54px) 0 0;
  font-weight: 600; color: var(--yg-leaf); font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
}
.yg-title {
  margin: 10px 0 0;
  font-family: var(--yg-font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 8.4vw, 96px); line-height: 1.05; letter-spacing: .06em;
  background: var(--yg-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(10,57,3,.55)) drop-shadow(0 6px 12px rgba(10,57,3,.14));
}
.yg-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto 0; color: var(--yg-gold-500); }
.yg-ornament span { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--yg-gold-500)); }
.yg-ornament span:last-child { transform: scaleX(-1); }
.yg-ornament svg { width: 18px; height: 18px; fill: var(--yg-leaf); }
.yg-lead { max-width: 640px; margin: 16px auto 0; color: var(--yg-muted); font-size: clamp(15px, 1.4vw, 17px); }
.yg-lead p { margin: 0; }

/* Countdown */
.yg-countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 16px); margin: 34px 0 0; }
.yg-countdown[hidden] { display: none; }
.yg-cd {
  min-width: 84px; padding: 14px 8px 10px; border-radius: 12px;
  background: var(--yg-green-grad); border: 1px solid var(--yg-gold-500);
  box-shadow: inset 0 0 0 3px rgba(10,57,3,1), inset 0 0 0 4px rgba(240,205,79,.35), 0 10px 20px rgba(10,57,3,.18);
}
.yg-cd b { display: block; font-family: var(--yg-font-display); font-weight: 700; font-size: 32px; line-height: 1; color: var(--yg-gold-300); font-variant-numeric: lining-nums tabular-nums; }
.yg-cd span { display: block; margin-top: 6px; font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--yg-gold-100); }

/* Categories */
.yg-cats { list-style: none; padding: 0; margin: 44px auto 0; max-width: 820px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.yg-cat {
  display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(217,154,13,.45);
  font-weight: 600; font-size: 14px; letter-spacing: .01em; color: var(--yg-green-800);
  box-shadow: 0 4px 12px rgba(10,57,3,.06);
}
.yg-ico { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--yg-green-grad); box-shadow: 0 0 0 2px var(--yg-gold-300); }
.yg-ico svg { width: 17px; height: 17px; fill: none; stroke: var(--yg-gold-300); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sneak peek ---------- */
.yg-peek {
  padding: clamp(60px, 8vw, 100px) 20px; text-align: center; color: var(--yg-gold-100);
  background: radial-gradient(50% 60% at 50% 0%, rgba(111,174,46,.32), transparent 70%), var(--yg-green-grad);
  border-top: 3px solid var(--yg-gold-500);
}
.yg-peek-kicker { margin: 0; font-weight: 600; color: var(--yg-gold-300); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.yg-peek h2 {
  margin: 6px 0 0; font-family: var(--yg-font-display); font-weight: 600; letter-spacing: .04em;
  font-size: clamp(28px, 4vw, 46px); line-height: 1.15;
  background: var(--yg-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.yg-peek-sub { margin: 14px auto 0; max-width: 560px; color: rgba(255,243,196,.82); font-size: 15px; }
.yg-grid { list-style: none; padding: 0; margin: 48px auto 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px); }
.yg-card-frame { border-radius: 16px; padding: 3px; background: var(--yg-gold-grad); box-shadow: 0 18px 36px rgba(0,0,0,.35); transition: transform .35s ease; }
.yg-card:hover .yg-card-frame { transform: translateY(-6px); }
.yg-card-frame img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 13px; }
.yg-card-label {
  display: inline-block; margin-top: 16px;
  font-family: var(--yg-font-display); font-weight: 600; font-size: 15px; letter-spacing: .08em; color: var(--yg-gold-300);
}

/* ---------- Footer ---------- */
.yg-footer { background: var(--yg-green-950); color: rgba(255,243,196,.72); padding: 36px 20px 30px; text-align: center; font-size: 13px; border-top: 1px solid rgba(217,154,13,.35); }
.yg-footer-mark { font-family: var(--yg-font-display); font-weight: 600; letter-spacing: .38em; color: var(--yg-gold-300); font-size: 17px; }
.yg-footer-mark small { display: block; margin-top: 6px; font-family: var(--yg-font-body); font-weight: 500; letter-spacing: .3em; font-size: 11px; text-transform: uppercase; color: var(--yg-gold-100); }
.yg-footer a { text-decoration: none; color: var(--yg-gold-300); }
.yg-footer a:hover { text-decoration: underline; }
.yg-footer p { margin: 8px 0; }
.yg-owner { background: none; border: 0; color: rgba(255,243,196,.5); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; margin-top: 10px; }

/* ---------- Owner password dialog ---------- */
.yg-dialog { border: 0; padding: 0; border-radius: 18px; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.yg-dialog::backdrop { background: rgba(4,32,10,.7); backdrop-filter: blur(3px); }
.yg-dialog-inner { position: relative; padding: 30px 26px 26px; background: var(--yg-ivory); border-top: 4px solid var(--yg-gold-500); text-align: center; font-family: var(--yg-font-body); }
.yg-dialog h3 { margin: 0 0 6px; font-family: var(--yg-font-display); font-weight: 600; color: var(--yg-green-800); font-size: 20px; letter-spacing: .04em; }
.yg-dialog p { margin: 0 0 16px; color: var(--yg-muted); font-size: 14px; }
.yg-field { display: flex; gap: 6px; padding: 5px; background: #fff; border-radius: 999px; border: 1.5px solid var(--yg-gold-500); }
.yg-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 16px; font: inherit; font-size: 15px; }
.yg-btn { border: 0; cursor: pointer; border-radius: 999px; padding: 10px 22px; font-family: var(--yg-font-body); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--yg-gold-100); background: var(--yg-green-grad); }
.yg-msg--err { margin: 12px 0 0; padding: 8px 14px; border-radius: 10px; background: #FDECEA; color: #8C1D18; border: 1px solid #F3B8B2; font-size: 14px; }
.yg-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--yg-muted); }
.yg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Entrance */
@media (prefers-reduced-motion: no-preference) {
  .yg-rise { opacity: 0; transform: translateY(14px); animation: yg-rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .yg-rise:nth-child(6) { animation-delay: .05s; } .yg-rise:nth-child(7) { animation-delay: .12s; }
  .yg-rise:nth-child(8) { animation-delay: .19s; } .yg-rise:nth-child(9) { animation-delay: .26s; }
  .yg-rise:nth-child(10) { animation-delay: .33s; } .yg-rise:nth-child(11) { animation-delay: .4s; }
  .yg-rise:nth-child(12) { animation-delay: .47s; } .yg-rise:nth-child(13) { animation-delay: .54s; }
}
@keyframes yg-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .yg-leaf { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) { .yg-grid { grid-template-columns: repeat(2, 1fr); max-width: 620px; } }
@media (max-width: 520px) {
  .yg-topbar { letter-spacing: .22em; font-size: 11px; }
  .yg-title { letter-spacing: .03em; }
  .yg-cd { min-width: 68px; } .yg-cd b { font-size: 24px; }
  .yg-cat { font-size: 12px; }
  .yg-card-label { font-size: 13px; }
}
