/* Eastward Labs — design mockup styles. Tokens here become the real site's tokens. */
:root {
  --ink: #1F1F1F;
  --text: #444746;
  --muted: #5F6368;
  --line: #E3E5E8;
  --line-strong: #C4C7CC;
  --bg: #FFFFFF;
  --surface-1: #F6F7F8;
  --surface-2: #EEF0F2;
  --accent: #1A4FD6;
  --accent-hover: #123A9E;
  --accent-soft: #E4EAFA;
  /* product colour: only on Vị trí nổi bật surfaces, never on company chrome */
  --vnb: #09AE1F;
  --vnb-ink: #1D5E26;
  --vnb-text: #2B362C;
  --vnb-soft: #EEF7EF;
  --vnb-line: #B7D8BB;
  --warn-soft: #FFF4E5;
  --warn-ink: #7A4100;

  --font: 'Google Sans Flex', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
img, svg { display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }

/* type */
.display { font-size: clamp(38px, 4.8vw, 60px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 500; }
.h1 { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.18; letter-spacing: -0.025em; font-weight: 500; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; }
.h3 { font-size: 22px; line-height: 1.35; font-weight: 600; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--text); max-width: 600px; }
.body { color: var(--text); }
.meta { font-size: 14px; color: var(--muted); }
.label { font-size: 13px; font-weight: 600; color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.navlinks { display: flex; gap: 4px; flex: 1; }
.navlinks a { padding: 10px 16px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.navlinks a:hover { background: var(--surface-1); color: var(--ink); }
.navlinks a[aria-current] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.seg { display: flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.seg a { min-width: 44px; min-height: 34px; display: grid; place-items: center; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }
.seg a[aria-current] { background: var(--ink); color: #fff; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--surface-2); }
.menu-panel { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px)); padding: 8px; border-radius: var(--r-md); background: #fff; box-shadow: 0 4px 8px 3px rgb(0 0 0 / .1), 0 1px 3px rgb(0 0 0 / .2); display: flex; flex-direction: column; }
.menu-panel a { padding: 14px 16px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: 16px; }
.menu-panel a:hover { background: var(--surface-1); }
@media (max-width: 760px) {
  .navlinks, .top-actions .btn { display: none; }
  .top .wrap { justify-content: space-between; }
  .menu { display: block; }
}

/* buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 44px; padding: 0 20px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-outline:hover { background: var(--surface-1); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--surface-2); color: var(--ink); }
.btn-ghost-dark { border-color: #5F6368; color: #fff; }
.btn-ghost-dark:hover { background: #2D2F31; color: #fff; }
.btn-vnb { background: var(--vnb-ink); color: #fff; }
.btn-vnb:hover { background: #154a1c; color: #fff; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--text); cursor: pointer; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; }
.tag-accent { background: var(--accent); color: #fff; }
.tag-white { background: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 40px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: #fff; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }

/* sections */
.section { padding-block: clamp(64px, 8vw, 96px); }
.section-tint { background: var(--surface-1); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.section-head .stack { gap: 12px; }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: clamp(48px, 8vw, 104px) 72px; }
.hero-copy { flex: 1.15 1 500px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-art { flex: 1 1 400px; min-width: 0; max-width: 520px; margin: 0; padding: clamp(20px, 3vw, 36px); border-radius: 32px; background: var(--surface-1); display: flex; flex-direction: column; gap: 20px; }

/* product lineup: every product, its stage. Adding a product = one more row. */
.lineup { display: flex; flex-direction: column; gap: 10px; }
.lineup-head { padding: 0 4px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lineup-row { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: var(--r-md); background: #fff; }
.lineup-row.ghost { background: transparent; border: 1.5px dashed var(--line-strong); }
.lineup-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lineup-name .stack { min-width: 0; gap: 2px; }
.lineup-name b { font-size: 17px; font-weight: 600; }
.lineup-name span { font-size: 14px; color: var(--muted); }
.p-icon { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; }
.p-icon.ghost { border: 1.5px dashed var(--line-strong); color: var(--muted); }
.stage { display: flex; flex-direction: column; gap: 8px; }
.stage .bars, .stage .labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.stage .bars i { height: 6px; border-radius: 3px; background: var(--line); }
.stage .bars i.on { background: var(--accent); }
.stage .labels { font-size: 12px; color: var(--muted); }
.stage .labels .cur { color: var(--ink); font-weight: 600; }

/* cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 300px; min-width: 0; padding: 32px; border-radius: var(--r-lg); background: #fff; display: flex; flex-direction: column; gap: 16px; }
.icon-tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon-tile.neutral { background: var(--surface-2); color: var(--text); }

.product { flex: 2 1 560px; min-width: 0; padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: var(--vnb-soft); display: flex; flex-direction: column; gap: 24px; color: var(--vnb-text); }
.product-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.product-head .stack { flex: 1 1 auto; gap: 2px; }
.product h3 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.product .status { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--vnb-line); font-size: 13px; font-weight: 600; color: var(--vnb-ink); }
.product p { font-size: 19px; line-height: 1.6; max-width: 620px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 10px 16px; border-radius: 16px; background: #fff; font-size: 15px; }
.pill b { color: var(--vnb-ink); }
.product-next { flex: 1 1 300px; min-width: 0; padding: clamp(28px, 4vw, 48px); border-radius: 32px; border: 1.5px dashed var(--line-strong); display: flex; flex-direction: column; justify-content: center; gap: 16px; }

/* posts */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 48px 28px; }
.post { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; min-width: 0; }
.post:hover { color: var(--ink); }
.post:hover .cover { filter: brightness(0.97); }
.post h3 { font-size: 21px; line-height: 1.38; font-weight: 600; }
.post p { font-size: 15px; line-height: 1.55; color: var(--text); }
.cover { aspect-ratio: 16 / 10; border-radius: 24px; display: grid; place-items: center; transition: filter .15s; }
.cover.c-accent { background: var(--accent-soft); color: var(--accent); }
.cover.c-grey { background: var(--surface-2); color: var(--text); }
.cover.c-vnb { background: var(--vnb-soft); color: var(--vnb-ink); }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: clamp(16px, 2vw, 24px); border-radius: 32px; background: var(--surface-1); color: var(--ink); text-decoration: none; }
.feature:hover { color: var(--ink); }
.feature .cover { flex: 1 1 420px; min-width: 0; }
.feature .copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 8px clamp(4px, 2vw, 24px); }

/* dark call-to-action band */
.cta { padding: clamp(36px, 6vw, 72px); border-radius: var(--r-xl); background: var(--ink); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta .stack { flex: 1 1 420px; min-width: 0; gap: 12px; }
.cta p { font-size: 18px; color: #C9CCD1; }

/* article */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--text); text-decoration: none; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 8px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.article-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; padding-block: 56px 40px; }
.prose { flex: 999 1 560px; min-width: 0; max-width: 700px; display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.75; color: #2D2F31; }
.prose h2 { margin-top: 16px; font-size: 30px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; color: var(--ink); scroll-margin-top: 88px; }
.prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.misread { margin: 8px 0; padding: 24px 28px; border-radius: 24px; background: var(--warn-soft); display: flex; flex-direction: column; gap: 10px; }
.misread .label { display: inline-flex; align-items: center; gap: 8px; color: var(--warn-ink); font-weight: 700; font-size: 14px; }
.misread p { font-size: 17px; line-height: 1.65; color: #3D2A12; }
.toc { flex: 1 1 220px; min-width: 0; position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); }
.toc .label { padding: 0 12px 8px; }
.toc a { padding: 10px 12px; border-radius: var(--r-sm); color: var(--text); font-size: 15px; text-decoration: none; }
.toc a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
@media (max-width: 880px) { .toc { position: static; order: -1; } }
.product-cta { margin-top: 24px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--vnb-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.product-cta .stack { flex: 1 1 260px; min-width: 0; gap: 4px; }

/* "you vs customer" figure */
.compare { margin: 0; padding: clamp(24px, 4vw, 48px); border-radius: 32px; background: var(--surface-1); display: flex; flex-direction: column; gap: 24px; }
.compare-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.serp { flex: 1 1 300px; min-width: 0; padding: 28px; border-radius: 24px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.serp .label { font-size: 14px; padding-bottom: 8px; }
.serp-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--surface-1); color: var(--text); }
.serp-item .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-size: 14px; font-weight: 600; flex: none; }
.serp-item.me { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.serp-item.me .n { background: var(--accent); color: #fff; }
.serp-item.me-far { background: #fff; border: 1.5px dashed var(--accent); color: var(--accent); font-weight: 600; }
.serp-item.me-far .n { background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.serp .gap { text-align: center; color: #80868B; letter-spacing: 4px; }
.compare-arrow { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }

/* forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; color: var(--ink); padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.fact { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.fact b { font-size: 17px; font-weight: 600; }
.todo { color: #8A1C1C; background: #FCE8E6; padding: 0 6px; border-radius: 6px; font-weight: 600; }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 40px; padding-block: 56px 40px; }
.foot-cols .about { flex: 2 1 280px; display: flex; flex-direction: column; gap: 12px; }
.foot-cols nav { flex: 1 1 160px; display: flex; flex-direction: column; }
.foot-cols nav .label { padding-bottom: 6px; }
.foot-cols nav a { padding: 8px 0; color: var(--ink); text-decoration: none; font-size: 15px; }
.foot-cols nav a:hover { color: var(--accent); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-base a { color: var(--muted); }
@media (max-width: 720px) {
  .compare-arrow { flex-basis: 100%; }
  .compare-arrow svg { transform: rotate(90deg); }
}
