@font-face {
  font-family: 'Poppins';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}

:root {
  /* Palette follows the Accella family: deep purple, coral accent, near-white ground. */
  --purple: #4c148c;
  --purple-dark: #2f0b58;
  --purple-soft: #efe8f8;
  --coral: #e8384f;
  --coral-text: #c42338;
  --coral-dark: #a61b2d;
  --coral-on-dark: #ff9aa8;
  --ink: #1b1330;
  --ink-2: #463d5c;
  --muted: #655b7a;
  --line: #e4def0;
  --input-border: #72688a;
  --bg: #fafafb;
  --white: #ffffff;
  --error: #b3261e;
  --error-bg: #fce8e6;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(47, 11, 88, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size-adjust: from-font;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  overflow-x: clip;
}

h1, h2, h3, .brand {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
}

h1, h2, h3 {
  line-height: 1.15;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: break-word;
}

a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hides content visually but keeps it in the accessibility tree */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid var(--purple);
  font-weight: 600;
  z-index: 100;
  text-decoration: none;
}

:where(a:any-link, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--coral-text);
  outline-offset: 3px;
}

.hero :where(a:any-link, button):focus-visible,
.offer :where(a:any-link, button):focus-visible,
.closing :where(a:any-link, button):focus-visible,
footer :where(a:any-link, button):focus-visible {
  outline: 3px solid var(--coral-on-dark);
  outline-offset: 3px;
}

/* header */
header {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 251, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 30;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.brand {
  font-weight: 700;
  font-size: 1.4375rem;
  color: var(--purple);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--coral));
  flex-shrink: 0;
}

.brand span:not(.brand-dot) {
  color: var(--ink);
}

nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  align-items: center;
}

nav a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 2px;
  display: inline-block;
}

nav a:hover {
  color: var(--purple);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  background: var(--purple);
  color: #ffffff !important;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1.25;
  transition: background-color 0.15s ease;
}

.btn::after {
  content: "\2192";
  font-size: 1.0625rem;
}

nav .btn::after,
form .btn::after {
  content: "";
}

.btn:hover {
  background: var(--purple-dark);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.btn.coral {
  background: var(--coral-text);
}

.btn.coral:hover {
  background: var(--coral-dark);
}

.btn.ghost {
  background: transparent;
  color: var(--purple) !important;
  border: 1.5px solid var(--purple);
}

.btn.ghost:hover {
  background: var(--purple);
  color: #ffffff !important;
}

.btn.ghost-light {
  background: transparent;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.78);
}

.btn.ghost-light:hover {
  background: #ffffff;
  color: var(--purple) !important;
}

/* hero */
.hero {
  position: relative;
  color: #ffffff;
  background: var(--purple-dark) url('/images/hero-bangkok.webp') center / cover no-repeat;
  padding: 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(47, 11, 88, 0.96) 0%, rgba(76, 20, 140, 0.88) 54%, rgba(76, 20, 140, 0.52) 100%);
}

.hero .wrap {
  position: relative;
  padding-top: 112px;
  padding-bottom: 112px;
}

.label {
  display: inline-block;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--coral-text);
  margin-bottom: 18px;
}

.hero .label,
.label.on-dark,
.offer .label {
  color: var(--coral-on-dark);
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.375rem, 5.6vw, 4.125rem);
  max-width: 12em;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.25rem;
  max-width: 34em;
  margin-bottom: 36px;
  color: #f0e8fc;
}

.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-points {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.9375rem;
  color: #efe6fc;
}

.hero-points b {
  display: block;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

/* sections */
section {
  padding: 88px 0;
}

section.white {
  background: var(--white);
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  margin-bottom: 16px;
  max-width: 20em;
  letter-spacing: -0.01em;
}

.center {
  text-align: center;
}

.center h2 {
  margin-left: auto;
  margin-right: auto;
}

.sub {
  color: var(--muted);
  max-width: 40em;
  margin-bottom: 48px;
  font-size: 1.125rem;
}

.center .sub {
  margin-left: auto;
  margin-right: auto;
}

.sub.tight {
  margin-bottom: 32px;
}

/* positioning */
.position {
  padding: 80px 0 24px;
  text-align: center;
}

.position p {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: clamp(1.3125rem, 2.8vw, 1.875rem);
  max-width: 27em;
  margin: 0 auto;
  color: var(--ink);
  line-height: 1.4;
}

.position p em {
  font-style: normal;
  color: var(--purple);
}

.band-top {
  margin-top: 48px;
}

/* formula */
.formula {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}

.f-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
}

.f-box b {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1875rem;
  color: var(--purple);
  margin-bottom: 6px;
}

.f-box span {
  font-size: 0.875rem;
  color: var(--ink-2);
  display: block;
}

.f-box.result {
  background: linear-gradient(135deg, var(--purple), #7a1f8f 60%, var(--coral-text));
  border-color: transparent;
}

.f-box.result b {
  color: #ffffff;
}

.f-box.result span {
  color: #f6effc;
}

.f-op {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  color: var(--muted);
}

/* presence */
.presence {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.presence .photo {
  aspect-ratio: 4 / 3;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}

.stat b {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.625rem;
  color: var(--purple);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat span {
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.4;
  display: block;
}

.presence h2 {
  max-width: 14em;
}

.presence p {
  color: var(--ink-2);
  margin-bottom: 12px;
}

/* cards */
.grid {
  display: grid;
  gap: 24px;
}

.g3 {
  grid-template-columns: repeat(3, 1fr);
}

.g2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

section.white .card {
  background: var(--bg);
  box-shadow: none;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-2);
  font-size: 1rem;
}

.no {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--purple);
  background: var(--purple-soft);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.flag {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #ffffff;
  background: var(--coral-text);
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* solution cards with photo */
.sol {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sol .pic {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.sol .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sol:hover .pic img {
  transform: scale(1.04);
}

.sol .body {
  padding: 28px 30px 32px;
}

/* why */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.why .card {
  display: flex;
  gap: 18px;
}

.why .no {
  flex-shrink: 0;
  height: fit-content;
}

/* how */
.how {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.how .photo {
  aspect-ratio: 4 / 5;
}

.steps {
  list-style: none;
  counter-reset: s;
}

.steps li {
  position: relative;
  padding: 0 0 28px 66px;
  counter-increment: s;
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 50px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--purple), var(--coral));
  opacity: 0.35;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li:last-child::after {
  display: none;
}

.steps h3 {
  font-size: 1.1875rem;
  margin-bottom: 4px;
}

.steps p {
  color: var(--ink-2);
  font-size: 1rem;
}

/* pilot */
.offer {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #ffffff;
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
  align-items: center;
}

.offer h2 {
  color: #ffffff;
  margin-bottom: 14px;
}

.offer p {
  color: #eae0fa;
}

.offer .cta-row {
  margin-top: 24px;
}

.offer ul {
  list-style: none;
}

.offer li {
  padding: 11px 0 11px 32px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #f6f0fd;
}

.offer li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--coral-on-dark);
  border-bottom: 2px solid var(--coral-on-dark);
  transform: rotate(-45deg);
}

.offer li:last-child {
  border-bottom: 0;
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.chip {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 500;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* faq */
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 26px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Poppins', sans-serif;
  min-height: 28px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--coral-text);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

details[open] summary::after {
  content: "\2212";
}

details p {
  margin-top: 12px;
  color: var(--ink-2);
}

.faq {
  max-width: 820px;
  margin: 0 auto;
}

/* closing cta */
.closing {
  position: relative;
  color: #ffffff;
  text-align: center;
  padding: 104px 0;
  background: var(--purple-dark) url('/images/handshake.webp') center / cover no-repeat;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(47, 11, 88, 0.95), rgba(76, 20, 140, 0.88));
}

.closing .wrap {
  position: relative;
}

.closing h2 {
  color: #ffffff;
  margin: 0 auto 14px;
}

.closing p {
  color: #f0e8fc;
  max-width: 34em;
  margin: 0 auto 32px;
  font-size: 1.125rem;
}

.closing .cta {
  justify-content: center;
}

/* contact form */
form {
  display: grid;
  gap: 20px;
  max-width: 660px;
  margin: 0 auto;
}

.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-2);
  display: block;
  margin-bottom: 6px;
}

.req {
  color: var(--error);
  margin-left: 2px;
}

.hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 6px;
}

input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  font: inherit;
  font-size: max(1rem, 1em);
  background: #ffffff;
  color: var(--ink);
}

textarea {
  min-height: 128px;
  resize: vertical;
}

@media (pointer: coarse) {
  input:not([type="checkbox"]),
  select,
  .btn {
    min-height: 52px;
  }
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.note {
  font-size: 0.8125rem;
  color: var(--muted);
}

.consent-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--ink-2);
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}

.consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 2px;
  accent-color: var(--purple);
  cursor: pointer;
}

.error-msg {
  display: none;
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 6px;
}

:is(input:not([type="checkbox"]), select, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--error);
  background-color: var(--error-bg);
}

:is(input:not([type="checkbox"]), select, textarea):is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

.consent-group:has(input[type="checkbox"]:is(:user-invalid, .user-invalid-fallback)) .error-msg,
.consent-group.invalid-consent .error-msg {
  display: block;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error);
}

.form-status.is-ok {
  background: var(--purple-soft);
  color: var(--purple-dark);
  border: 1px solid var(--purple);
}

/* subpages (privacy, thanks, 404) */
.prose-section {
  padding: 72px 0 88px;
}

.prose {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow);
}

.prose h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}

.prose .meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.prose h2 {
  font-size: 1.375rem;
  margin-top: 28px;
  margin-bottom: 10px;
  max-width: none;
}

.prose p,
.prose ul {
  color: var(--ink-2);
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.status-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 52px 36px;
  box-shadow: var(--shadow);
}

.status-card h1 {
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  margin-bottom: 16px;
}

.status-card p {
  color: var(--ink-2);
  margin-bottom: 28px;
  font-size: 1.0625rem;
}

.status-card .cta {
  justify-content: center;
}

/* footer */
footer {
  background: var(--purple-dark);
  color: #d6cae9;
  padding: 64px 0 40px;
  font-size: 0.875rem;
}

footer .brand {
  color: #ffffff;
  margin-bottom: 12px;
}

footer .brand span:not(.brand-dot) {
  color: var(--coral-on-dark);
}

footer a {
  color: #d6cae9;
  display: inline-block;
  padding: 4px 0;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

footer .foot-heading {
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

.foot {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.foot ul {
  list-style: none;
}

.foot li {
  margin-bottom: 6px;
}

.legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8125rem;
  color: #b9a9d4;
}

@media (max-width: 900px) {
  .g3, .g2, .why, .offer, .row, .foot, .presence, .how {
    grid-template-columns: 1fr;
  }
  .presence, .how {
    gap: 32px;
  }
  .how .photo {
    aspect-ratio: 4 / 3;
  }
  .formula {
    grid-template-columns: 1fr;
  }
  .f-op {
    justify-content: center;
    font-size: 1.375rem;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  nav ul li:not(:last-child) {
    display: none;
  }
  .offer {
    padding: 34px 24px;
  }
  .prose {
    padding: 28px 20px;
  }
  .status-card {
    padding: 36px 22px;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 0;
  }
  .hero .wrap {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(47, 11, 88, 0.94), rgba(76, 20, 140, 0.85));
  }
  .hero-points {
    gap: 20px;
    margin-top: 40px;
  }
  .closing {
    padding: 72px 0;
  }
  .wrap {
    padding: 0 18px;
  }
}
