/* =========================================================
   EsteeMATE landing page — redesign
   Brand: EsteeMATE yellow + ink, with sky / green / coral accents
   ========================================================= */
:root {
  --yellow: #FACC15;
  --yellow-soft: #FEF3C7;
  --ink: #0E1116;
  --ink-2: #1A1F27;
  --ink-3: #2A303A;
  --text: #1F2937;
  --muted: #5B6472;
  --line: #E7E5DF;
  --bg: #FBFAF6;
  --card: #FFFFFF;
  --sky: #38BDF8;
  --green: #34D399;
  --coral: #FB7185;
  --violet: #A78BFA;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(14,17,22,.04), 0 12px 32px -12px rgba(14,17,22,.14);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--body); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--yellow); margin-bottom: 16px;
}
.eyebrow--dark { color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.hero .eyebrow { color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.sub { margin-top: 16px; font-size: 1.125rem; color: var(--muted); max-width: 640px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .sub { margin-left: auto; margin-right: auto; }
section { padding: 112px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: 12px;
  padding: 12px 20px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--sm { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn--lg { padding: 15px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn--primary:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.btn--primary:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 rgba(14,17,22,.25); }
.btn--dark:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 rgba(14,17,22,.25); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: rgba(14,17,22,.06); }
.play { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--yellow); }
.play svg { width: 14px; height: 14px; }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--yellow-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10 2.5 2.5L14 7' fill='none' stroke='%230E1116' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.ticks--sm { font-size: .95rem; gap: 8px; }

.chip { display: inline-block; font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.chip--yellow { background: var(--yellow-soft); color: #854D0E; }
.chip--sky { background: #E0F2FE; color: #075985; }
.chip--green { background: #D1FAE5; color: #065F46; }
.chip--coral { background: #FFE4E6; color: #9F1239; }

.tag { font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.tag--green { background: #D1FAE5; color: #065F46; }

.bar { height: 8px; border-radius: 99px; background: #EEF0F3; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--c, var(--yellow)); border-radius: inherit; transform-origin: left; }
.in .bar i, .hero .bar i { animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bar i, .float, .cols i { animation: none !important; }
}

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .2s, box-shadow .2s, border-color .2s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: var(--bg); border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(14,17,22,.2); }
.nav__inner { display: flex; align-items: center; gap: 40px; height: 76px; }
.nav__logo img { height: 36px; width: auto; mix-blend-mode: multiply; }
.nav__links { display: flex; gap: 28px; }
.nav__links a, .nav__lang { text-decoration: none; font-size: .95rem; color: var(--muted); font-weight: 500; }
.nav__links a:hover, .nav__lang:hover { color: var(--ink); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: grid; gap: 4px; padding: 12px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(14,17,22,.25); }
.mobile-menu a:not(.btn) { text-decoration: none; padding: 12px 0; font-size: 1.1rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(14,17,22,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,17,22,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: .06em; height: .38em; background: var(--yellow); z-index: -1; border-radius: 4px; transform: rotate(-1deg); }
.lead { margin-top: 24px; font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__trust { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .92rem; color: var(--muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: #059669; }

.hero__visual { position: relative; min-height: 600px; display: grid; place-items: center; }
.blob { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FDE68A, var(--yellow) 60%); filter: blur(2px); }
.hero__phone { position: relative; width: 290px; filter: drop-shadow(0 40px 50px rgba(14,17,22,.25)); -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.float {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 14px 16px; font-size: .82rem; animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float--kpi { left: -12px; top: 70px; width: 236px; display: grid; gap: 6px; }
.float__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.kpi-row { display: flex; justify-content: space-between; color: var(--muted); }
.kpi-row b { color: var(--ink); }
.float--feedback { right: -6px; top: 230px; display: flex; gap: 12px; align-items: center; animation-delay: -2s; }
.float--feedback b { display: block; color: var(--ink); }
.float--feedback small { color: var(--muted); }
.avatars { display: flex; }
.avatars span { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); background: var(--bg, #eee); display: grid; place-items: center; font-size: .65rem; font-weight: 700; color: var(--ink); border: 2px solid #fff; margin-left: -8px; }
.avatars span:first-child { margin-left: 0; }
.avatars span { background: var(--bg); }
.float--score { right: 30px; bottom: 70px; width: 150px; animation-delay: -4s; color: #059669; }
.float--score small { color: var(--muted); display: block; }
.float--score b { font-family: var(--display); font-size: 1.8rem; color: var(--ink); }
.float--score b span { font-size: .9rem; color: var(--muted); }
.float--score svg { width: 100%; height: 24px; margin-top: 4px; }

/* ---------- Problem ---------- */
.problem { background: var(--ink); color: #C9CED6; }
.problem h2 { color: #fff; max-width: 760px; }
.problem .eyebrow--dark { color: var(--yellow); }
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 32px; }
.pcard h3 { color: #fff; margin: 18px 0 10px; }
.pcard p { color: #9AA3AF; }
.pcard__num { font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--ink); background: var(--yellow); border-radius: 10px; padding: 4px 10px; }

/* ---------- Platform features ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 48px 0; }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature--flip .feature__copy { order: 2; }
.feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.feature p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

.mock { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FCFCFA; font-size: .8rem; color: var(--muted); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #E5E7EB; }
.mock__bar span { margin-left: 10px; font-weight: 500; }
.mock__body { padding: 24px; display: grid; gap: 14px; font-size: .9rem; }

.goal { background: #FAFAF8; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.goal b { color: var(--ink); }
.goal--company { background: var(--yellow-soft); border-color: #FDE68A; }
.goal__lvl { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.goal-tree { display: grid; gap: 10px; padding-left: 22px; border-left: 2px solid var(--line); margin-left: 12px; }

.review-row { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 12px; }
.review-row span { color: var(--muted); }
.review-row b { text-align: right; color: var(--ink); }
.dots { height: 14px; background:
  radial-gradient(circle 7px at 7px 7px, var(--sky) 6.5px, transparent 7px) 0 0 / 22px 14px repeat-x;
  width: calc(var(--n) * 22px); }
.quote { margin-top: 6px; background: #F0F9FF; border-radius: 14px; padding: 14px 16px; color: var(--text); font-style: italic; }
.quote__who { display: block; font-style: normal; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #0369A1; margin-bottom: 4px; }

.skill { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.skill span { color: var(--muted); }
.gap { position: relative; height: 10px; background: #EEF0F3; border-radius: 99px; }
.gap i { position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to right, var(--green) var(--now), transparent var(--now)); }
.gap i::after { content: ""; position: absolute; top: -4px; left: var(--target); width: 3px; height: 18px; background: var(--ink); border-radius: 2px; }
.legend { display: flex; gap: 18px; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-now { background: var(--green); }
.lg-target { background: var(--ink); width: 3px !important; }
.plan { display: grid; gap: 8px; margin-top: 4px; }
.plan__item { padding: 10px 14px 10px 40px; border: 1px solid var(--line); border-radius: 12px; position: relative; color: var(--ink); }
.plan__item::before { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 5px; border: 2px solid #CBD5E1; }
.plan__item.done { color: var(--muted); text-decoration: line-through; }
.plan__item.done::before { background: var(--green); border-color: var(--green); }

.pulse { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center; }
.pulse__big { background: var(--ink); color: #fff; border-radius: 16px; padding: 18px; text-align: center; }
.pulse__big b { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--yellow); }
.pulse__big small { color: #9AA3AF; font-size: .72rem; line-height: 1.3; display: block; margin-top: 6px; }
.pulse__bars { display: grid; gap: 10px; }
.pulse__bars span { font-size: .8rem; color: var(--muted); }
.alert { background: #FFF1F2; border: 1px solid #FECDD3; color: #9F1239; padding: 12px 14px; border-radius: 12px; font-size: .85rem; }

/* ---------- How it works ---------- */
.how { background: var(--ink); color: #C9CED6; }
.how h2 { color: #fff; }
.how .sub { color: #9AA3AF; }
.cycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; counter-reset: s; }
.cycle::before { content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(to right, var(--yellow) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__n { position: relative; display: grid; place-items: center; margin: 0 auto 22px; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.5rem; box-shadow: 0 0 0 8px var(--ink); }
.step h3 { color: #fff; font-size: 1.4rem; }
.step p { margin-top: 10px; color: #9AA3AF; font-size: .98rem; }

/* ---------- Analytics ---------- */
.analytics__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.stats-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin: 36px 0 0; }
.stats-list dt { font-weight: 700; color: var(--ink); }
.stats-list dd { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.dash { background: var(--ink); border-radius: 26px; padding: 22px; color: #fff; box-shadow: 0 40px 80px -30px rgba(14,17,22,.45); display: grid; gap: 16px; }
.dash__top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dash__top > div { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 16px; padding: 14px; }
.dash__top small { display: block; color: #9AA3AF; font-size: .75rem; }
.dash__top b { font-family: var(--display); font-size: 1.8rem; }
.up, .down { font-size: .75rem; margin-left: 6px; }
.up { color: var(--green); } .down { color: var(--coral); }
.dash__chart { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 16px; padding: 18px; }
.dash__title { font-size: .85rem; color: #C9CED6; margin-bottom: 14px; }
.cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; height: 180px; align-items: end; }
.cols > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.cols i { width: 100%; height: var(--h); background: var(--yellow); border-radius: 8px 8px 4px 4px; transform-origin: bottom; }
.in .cols i { animation: rise 1s cubic-bezier(.2,.8,.2,1) both; }
.cols > div:nth-child(2) i { animation-delay: .06s; } .cols > div:nth-child(3) i { animation-delay: .12s; }
.cols > div:nth-child(4) i { animation-delay: .18s; } .cols > div:nth-child(5) i { animation-delay: .24s; }
.cols > div:nth-child(6) i { animation-delay: .3s; }
.cols .low i { background: var(--coral); }
.cols span { font-size: .72rem; color: #9AA3AF; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.dash__ai { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, rgba(56,189,248,.15), rgba(167,139,250,.15)); border: 1px solid rgba(167,139,250,.3); border-radius: 16px; padding: 14px 16px; font-size: .88rem; color: #E5E7EB; }
.spark { color: var(--yellow); font-size: 1.1rem; }

/* ---------- Toolkit ---------- */
.toolkit { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tool__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c); margin-bottom: 18px; }
.tool__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool h3 { font-size: 1.1rem; }
.tool p { margin-top: 8px; color: var(--muted); font-size: .95rem; }

/* ---------- Stack / works with HRM ---------- */
.stack { padding: 96px 0; }
.stack__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 32px; padding: 56px; box-shadow: 8px 8px 0 var(--ink); }
.stack .eyebrow { color: var(--ink); }
.stack__copy p:not(.eyebrow) { margin-top: 16px; font-size: 1.1rem; color: #3F3A20; }
.stack__diagram { display: grid; gap: 0; }
.layer { display: flex; gap: 14px; align-items: center; padding: 20px 22px; border-radius: 18px; border: 2px solid var(--ink); }
.layer b { display: block; color: var(--ink); font-family: var(--display); font-size: 1.15rem; }
.layer small { color: var(--muted); }
.layer--top { background: #fff; }
.layer--base { background: rgba(255,255,255,.45); border-style: dashed; }
.layer--base small { color: #4B4520; }
.layer-link { display: flex; justify-content: space-around; padding: 0 40px; height: 34px; }
.layer-link span { width: 2px; background: var(--ink); }

/* ---------- Credibility ---------- */
.cred { padding: 32px 0 96px; }
.cred__inner { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.cred__big { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 8vw, 6.5rem); line-height: .9; color: var(--ink); letter-spacing: -.04em; }
.cred__big span { display: block; font-size: 1.1rem; letter-spacing: 0; font-weight: 600; color: var(--muted); margin-top: 6px; }
.cred p { font-size: 1.25rem; color: var(--text); max-width: 760px; }

/* ---------- Pricing ---------- */
.pricing { padding-top: 64px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.plan-card h3 { font-size: 1.5rem; }
.plan-card__for { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.price { font-family: var(--display); font-size: 3rem; font-weight: 800; color: var(--ink); margin: 20px 0 8px; letter-spacing: -.03em; line-height: 1; }
.price .cur { font-size: 1.6rem; vertical-align: .55em; margin-right: 2px; }
.price small { font-family: var(--body); font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.plan-card__desc { color: var(--muted); margin-bottom: 24px; min-height: 3.2em; }
.plan-card .ticks { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan-card--featured { background: var(--ink); border-color: var(--ink); transform: translateY(-12px); box-shadow: 0 40px 80px -30px rgba(14,17,22,.5); }
.plan-card--featured h3, .plan-card--featured .price { color: #fff; }
.plan-card--featured .plan-card__for, .plan-card--featured .plan-card__desc, .plan-card--featured .price small { color: #9AA3AF; }
.plan-card--featured .ticks { border-color: var(--ink-3); }
.plan-card--featured .ticks li { color: #E5E7EB; }
.plan-card--featured .ticks li::before { background-color: var(--yellow); }
.plan-card--featured .btn--primary { box-shadow: 3px 3px 0 var(--yellow-soft); border-color: var(--yellow); }
.badge { position: absolute; top: 28px; right: 28px; background: var(--yellow); color: var(--ink); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq { padding-top: 32px; }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq .sub a { color: var(--ink); font-weight: 600; }
.faq__list { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .2s; }
details[open] { box-shadow: var(--shadow); }
summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; color: var(--ink); position: relative; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--yellow-soft); display: grid; place-items: center; font-size: 1.2rem; font-weight: 500; transition: transform .2s; }
details[open] summary::after { content: "−"; background: var(--yellow); }
details p { padding: 0 0 22px; color: var(--muted); }

/* ---------- Resources ---------- */
.resources { background: #fff; border-top: 1px solid var(--line); }
.resources__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.resources__head h2 { max-width: 640px; }
.res-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.res-card { display: block; text-decoration: none; border-radius: 24px; padding: 36px; transition: transform .2s; border: 2px solid var(--ink); }
.res-card:hover { transform: translateY(-4px); }
.res-card h3 { font-size: 1.7rem; margin: 10px 0 10px; }
.res-card p { margin-bottom: 22px; }
.res-card__kicker { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.res-card--yellow { background: var(--yellow); }
.res-card--yellow p { color: #3F3A20; }
.res-card--yellow .link-arrow { border-color: var(--ink); }
.res-card--ink { background: var(--ink); color: #C9CED6; }
.res-card--ink h3 { color: #fff; }
.res-card--ink .res-card__kicker { color: var(--yellow); }
.res-card--ink .link-arrow { color: #fff; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; text-decoration: none; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post__img { aspect-ratio: 16/9; background: #EEF0F3; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post time { font-size: .8rem; color: var(--muted); }
.post h3 { font-size: 1.1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post p { font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post--skeleton { min-height: 340px; background: linear-gradient(90deg, #F3F4F6 0%, #FAFAFA 50%, #F3F4F6 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.posts__error { grid-column: 1 / -1; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final { padding: 112px 0; background: var(--yellow); border-top: 2px solid var(--ink); position: relative; overflow: hidden; }
.final::before, .final::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(14,17,22,.12); }
.final::before { width: 520px; height: 520px; left: -160px; top: -220px; }
.final::after { width: 680px; height: 680px; right: -240px; bottom: -380px; }
.final__inner { position: relative; text-align: center; max-width: 820px; }
.final h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; }
.final p { margin: 20px auto 0; font-size: 1.15rem; color: #3F3A20; max-width: 560px; }
.final__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9AA3AF; padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.footer__logo img { width: 36px; height: 36px; }
.footer__brand p { margin-top: 14px; }
.footer h4 { color: #fff; font-size: .9rem; margin: 0 0 14px; font-weight: 600; }
.footer a { display: block; text-decoration: none; color: #9AA3AF; padding: 4px 0; font-size: .95rem; }
.footer a:hover { color: var(--yellow); }
.footer__qr { display: flex; gap: 18px; align-items: center; }
.footer__qr img { background: #fff; border-radius: 12px; padding: 6px; }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ink-3); font-size: .85rem; }
.footer__bottom a { padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links, .nav__lang { display: none; }
  .nav__toggle { display: flex; }
  .hero__grid, .feature, .analytics__grid, .stack__inner, .faq__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 560px; }
  .feature { gap: 36px; }
  .feature--flip .feature__copy { order: 0; }
  .tools, .plans, .posts { grid-template-columns: 1fr 1fr; }
  .plan-card--featured { transform: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cycle { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .cycle::before { display: none; }
}
@media (max-width: 680px) {
  section { padding: 80px 0; }
  .wrap { padding: 0 20px; }
  .nav__actions .btn--sm { display: none; }
  .hero { padding-top: 32px; }
  .hero__visual { min-height: 500px; transform: scale(.9); margin: -20px 0; }
  .blob { width: 320px; height: 320px; }
  .hero__phone { width: 240px; }
  .float--kpi { left: -8px; top: 30px; width: 200px; }
  .float--feedback { right: -8px; top: 250px; }
  .float--score { right: 0; bottom: 40px; }
  .problem__grid, .tools, .plans, .posts, .res-feature, .stats-list, .cycle { grid-template-columns: 1fr; }
  .stack__inner { padding: 32px 24px; box-shadow: 5px 5px 0 var(--ink); }
  .cred__inner { grid-template-columns: 1fr; gap: 20px; }
  .review-row { grid-template-columns: 100px 1fr 34px; }
  .pulse { grid-template-columns: 1fr; }
  .resources__head { flex-direction: column; align-items: start; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .hero__cta .btn { width: 100%; }
}

/* alignment fixes: these blocks are also .wrap, so keep their gutters */
.stack__inner { width: calc(100% - 48px); max-width: 1152px; }
.cred__inner { width: calc(100% - 48px); max-width: 1152px; padding-left: 0; padding-right: 0; }
@media (max-width: 680px) {
  .stack__inner, .cred__inner { width: calc(100% - 40px); }
}
/* let grid children shrink below their content width on small screens */
.hero__grid > *, .feature > *, .analytics__grid > *, .stack__inner > *, .faq__grid > * { min-width: 0; }
@media (max-width: 680px) {
  .dash__top { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .dash__top > div { padding: 10px; }
  .dash__top b { font-size: 1.3rem; }
  .up, .down { display: block; margin: 0; }
  .cols { gap: 6px; height: 150px; }
}
/* solid nav so the logo PNG's white background blends in */
.nav { background: var(--bg); }
@media (max-width: 680px) { .float--score { display: none; } .float--feedback { top: auto; bottom: 90px; } }

/* ---------- Thai version ---------- */
html[lang="th"] {
  --display: "Bricolage Grotesque", "Anuphan", "Noto Sans Thai", system-ui, sans-serif;
  --body: "Inter", "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
}
html[lang="th"] body { line-height: 1.75; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3 { line-height: 1.3; letter-spacing: -.01em; }
html[lang="th"] .hero h1 { line-height: 1.25; letter-spacing: -.01em; font-size: clamp(2.2rem, 4.1vw, 3.4rem); }
html[lang="th"] .eyebrow { letter-spacing: .02em; }
html[lang="th"] .hl::after { bottom: .1em; }
html[lang="th"] .cred__big { line-height: 1; }
/* Thai has no spaces between words: keep phrases intact, break only between .w spans */
html[lang="th"] .w { display: inline-block; }
html[lang="th"] .hl { white-space: normal; }
html[lang="th"] .hl::after { display: none; }
html[lang="th"] .hl {
  background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 4px; margin: 0 -4px;
}
