@import url(./fonts/fonts.css);

/* Poxyh website. White pages, one accent, Noto Sans throughout (full Vietnamese diacritics), plain letter spacing. */
:root {
  --ink: #141a33;
  --text: #4a5170;
  --muted: #6a7090;
  --line: #e3e6ef;
  --line-strong: #cfd4e2;
  --bg: #ffffff;
  --tint: #f5f7fb;
  --accent: #0764f6;
  --accent-hover: #0552cc;
  --accent-soft: #eaf1ff;
  --dark: #0d1222;
  --dark-text: #b9c0d8;
  --ok: #12805c;
  --warn: #9a6200;
  --bad: #c0352b;
  --radius: 10px;
  --wrap: 1200px;
  --head: 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
  --body: 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: #cfe0ff; }

h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.22; }
h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.28; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: 0; font-weight: 700; }
h4 { font-size: 17px; line-height: 1.4; letter-spacing: 0; font-weight: 700; }
p { margin: 0; }
p + p { margin-top: 1em; }
.mono, code { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--tint); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 64px); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.kicker {
  display: inline-block;
  font: 600 13px/1 var(--body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.lede { font-size: 19px; line-height: 1.65; color: var(--text); max-width: 640px; margin-top: 20px; }
.small { font-size: 15px; color: var(--muted); }

/* Buttons: solid, not gradient. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 8px; border: 1px solid transparent;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: '→'; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 34px; }
.center .actions { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 22px/1 var(--head); letter-spacing: 0; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav > a, .nav-group > button {
  font: 500 15px/1 var(--body); color: var(--ink); text-decoration: none;
  padding: 10px 12px; border-radius: 6px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav-group > button:hover, .nav > a[aria-current="page"], .nav-group.current > button { color: var(--accent); }
.nav-group { position: relative; }
.nav-group > button::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); }
.menu {
  position: absolute; top: calc(100% + 8px); left: -12px; width: 360px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(20, 26, 51, 0.25);
  padding: 10px; display: none;
}
.nav-group:hover .menu, .nav-group:focus-within .menu, .nav-group.open .menu { display: block; }
.nav-group:hover::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.menu a { display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--tint); }
.menu b { display: block; font: 700 15px/1.3 var(--head); color: var(--ink); letter-spacing: 0; }
.menu span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 3px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; content: ''; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* Sections */
.section { padding: 112px 0; }
.section-tight { padding: 72px 0; }
.section + .section:not(.tint):not(.dark) { border-top: 1px solid var(--line); }
.tint { background: var(--tint); }
.dark { background: var(--dark); color: var(--dark-text); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .kicker { color: #7fb0ff; }
.dark .lede { color: var(--dark-text); }
.dark a:not(.btn) { color: #9cc2ff; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Page hero (inner pages) */
.page-hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; }
.page-hero .lede { max-width: 700px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Home hero */
.hero { padding: 96px 0 0; text-align: center; }
.hero h1 { max-width: 980px; margin: 0 auto; }
.hero .lede { margin: 24px auto 0; max-width: 680px; font-size: 20px; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-shot { margin-top: 64px; }

/* Screenshots: a plain frame, no tilt or glow. */
.shot { margin: 0; }
.shot .frame {
  border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px -36px rgba(20, 26, 51, 0.35);
}
.shot figcaption { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.shot figcaption b { color: var(--ink); font-weight: 600; }
.center .shot figcaption { text-align: center; }
.shot.small-shot .frame { max-width: 520px; }
.hero-shot.shot .frame { border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 60px -30px rgba(20, 26, 51, 0.3); }

/* Split: text 5 columns, picture 7, either side. */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.split.flip { grid-template-columns: 7fr 5fr; }
.split.flip > :first-child { order: 2; }
.split h2 { font-size: clamp(26px, 2.6vw, 34px); }
.split .lede { font-size: 18px; }

/* Ruled lists: text columns with a top rule instead of icon cards. */
.ruled { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; margin-top: 56px; }
.ruled.two { grid-template-columns: repeat(2, 1fr); }
.ruled.four { grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.ruled > div { border-top: 2px solid var(--ink); padding-top: 22px; }
.ruled > div p { margin-top: 10px; font-size: 16px; line-height: 1.65; }
.ruled .num { font: 600 13px/1 var(--mono); color: var(--accent); display: block; margin-bottom: 14px; }
.dark .ruled > div { border-top-color: #3a4366; }

/* Check list */
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 8px; width: 14px; height: 8px;
  border: solid var(--accent); border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg);
}
.ticks b { color: var(--ink); font-weight: 600; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 28px 24px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font: 700 20px/1.25 var(--head); letter-spacing: 0; color: var(--ink); }
.facts span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Spec sheet: what one profile presents, in mono. */
.spec { border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(20, 26, 51, 0.35); }
.spec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--tint); }
.spec-head b { font: 700 15px/1.3 var(--head); color: var(--ink); }
.spec-head span { font: 500 13px/1 var(--mono); color: var(--muted); }
.spec dl { margin: 0; display: grid; grid-template-columns: minmax(130px, 38%) 1fr; }
.spec dt, .spec dd { margin: 0; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.spec dt { color: var(--muted); }
.spec dd { font-family: var(--mono); font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.spec dl > :nth-last-child(-n+2) { border-bottom: 0; }
.spec .pill { display: inline-block; font: 600 12px/1 var(--body); padding: 5px 8px; border-radius: 99px; background: #e6f5ee; color: var(--ok); margin-left: 6px; vertical-align: 1px; }

/* Definition rows: dense list of small things. */
.rows { border-top: 1px solid var(--line-strong); }
.rows > div { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 19px; }
.rows p { font-size: 16px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 700 14px/1.3 var(--head); color: var(--ink); background: var(--tint); letter-spacing: -0.005em; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); font-weight: 500; }
.col-us { background: #f3f7ff; }
thead .col-us { background: #e4edff; color: var(--accent); }
.yes { color: var(--ok); font-weight: 600; }
.part { color: var(--muted); }
.no { color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { border: 1px solid var(--line-strong); border-radius: 14px; padding: 32px; background: #fff; display: flex; flex-direction: column; }
.plan.main { border: 2px solid var(--accent); }
.plan .tag { align-self: flex-start; font: 600 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 7px 10px; border-radius: 99px; margin-bottom: 18px; }
.plan h3 { font-size: 24px; }
.plan .who { margin-top: 6px; font-size: 15px; color: var(--muted); }
.plan .price { margin-top: 26px; font: 700 38px/1.1 var(--head); letter-spacing: 0; color: var(--ink); }
.plan .per { font-size: 15px; color: var(--muted); margin-top: 6px; }
.plan .ticks { margin: 26px 0 30px; font-size: 16px; }
.plan .btn { margin-top: auto; }
.pending { color: var(--warn); }

/* Steps that are real actions in the app. */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; font-size: 16px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 13px/1 var(--mono); color: var(--accent); margin-bottom: 14px; }
.steps b { display: block; font: 700 18px/1.35 var(--head); color: var(--ink); letter-spacing: 0; margin-bottom: 6px; }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font: 700 19px/1.4 var(--head); color: var(--ink); letter-spacing: 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 20px; font: 400 28px/1 var(--body); color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 48px 26px 0; max-width: 820px; }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group > h2 { font-size: 26px; margin-bottom: 18px; letter-spacing: 0; }

/* Download */
.download-box { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: #fff; }
.download-box > div { padding: 40px; }
.download-box > div + div { border-left: 1px solid var(--line); background: var(--tint); }
.download-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; font-size: 16px; }
.download-box dt { color: var(--muted); }
.download-box dd { margin: 0; color: var(--ink); font-weight: 500; }

/* Release notes */
.release { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.release:first-child { border-top: 1px solid var(--line-strong); }
.release .ver { font: 700 26px/1.1 var(--head); color: var(--ink); letter-spacing: 0; }
.release time { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.release ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; }

/* Contact */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.channels > div { padding: 28px 28px 8px 0; }
.channels > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.channels > div:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.channels > div:nth-child(n+4) { border-top: 1px solid var(--line); }
.channels h3 { font-size: 20px; }
.channels p { font-size: 16px; margin-top: 8px; }
.channels .btn { margin-top: 20px; }

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; letter-spacing: 0; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }

/* Grid illustration (bulk open), animated only when allowed. */
.grid-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; aspect-ratio: 16 / 9; padding: 6px; background: #1d2440; border-radius: 10px; }
.grid-demo i { background: #2c3558; border-radius: 4px; position: relative; overflow: hidden; }
.grid-demo i::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: #3a4570; }
.grid-demo i::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #7fb0ff; left: 30%; top: 45%; }
@media (prefers-reduced-motion: no-preference) {
  .grid-demo i::after { animation: follow 6s ease-in-out infinite; }
}
@keyframes follow {
  0%, 100% { left: 30%; top: 45%; }
  30% { left: 68%; top: 38%; }
  60% { left: 55%; top: 72%; }
}

/* CTA band */
.cta { text-align: center; }
.cta h2 { max-width: 760px; margin: 0 auto; }
.cta .lede { margin: 18px auto 0; }

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 72px 0 40px; font-size: 15px; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid p { margin-top: 16px; max-width: 320px; line-height: 1.6; }
.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--body); font-weight: 600; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--dark-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #262d47; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #8a92b0; }

/* Responsive */
@media (max-width: 1080px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 44px; }
  .split.flip > :first-child { order: 0; }
  .ruled.four, .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav, .header-actions .btn-line { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions { margin-left: 0; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 72px; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-header.open .nav > a, .site-header.open .nav-group > button { padding: 14px 4px; font-size: 17px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-header.open .menu { position: static; width: auto; display: block; border: 0; box-shadow: none; padding: 4px 0 8px; }
  .site-header.open .nav-group > button::after { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .ruled, .ruled.two { grid-template-columns: 1fr; gap: 36px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div { padding: 22px 20px; }
  .facts > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rows > div { grid-template-columns: 1fr; gap: 8px; }
  .download-box { grid-template-columns: 1fr; }
  .download-box > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .release { grid-template-columns: 1fr; gap: 16px; }
  .channels { grid-template-columns: 1fr; }
  .channels > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .page-hero { padding: 56px 0 48px; }
  .hero { padding-top: 56px; }
  .hero .lede, .lede { font-size: 17px; }
  .hero-shot { margin-top: 44px; }
  .header-actions .btn-primary { padding: 0 14px; min-height: 40px; font-size: 14px; }
  .brand { font-size: 20px; }
  .brand img { width: 30px; height: 30px; }
  .site-header .wrap { gap: 12px; }
  .ruled.four, .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div:nth-child(odd) { border-left: 0; padding: 18px 0; }
  .facts > div + div { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plan, .download-box > div { padding: 26px 22px; }
  .spec dl { grid-template-columns: 1fr; }
  .spec dt { padding-bottom: 2px; border-bottom: 0; }
  .spec dd { padding-top: 0; }
  .spec dl > :nth-last-child(2) { border-bottom: 0; }
  th, td { padding: 12px 12px; font-size: 14px; }
  .faq summary { font-size: 17px; }
}

/* Skip link and current top-level page */
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.nav > a.active { color: var(--accent); }
.hero .actions { justify-content: center; }
.cta .actions { justify-content: center; }
.shot.fit .frame { max-width: 900px; margin: 0 auto; }
@media (max-width: 960px) {
  .header-actions { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
}
@media (max-width: 640px) {
  h1 { font-size: 30px; line-height: 1.25; }
  h2 { font-size: 28px; }
}
