@font-face {
  font-family: AhaSans;
  src: url('/assets/brand/fonts/AhamuseSans-Latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f8f6; --surface: #fff; --ink: #1c1a20; --body: #3f3c45; --muted: #65616d;
  --line: #dddbe1; --soft: #f5f4f6; --raised: #eceaee;
  --feature-top: #f3eefb; --feature-line: #c1b1d9;
  --accent: #6a4b91; --strong: #29232f; --on-strong: #fff; --focus: #7752af; --chevron: var(--muted);
  --page: min(1200px, calc(100% - clamp(32px, 8vw, 112px)));
}
:root[data-theme=dark] {
  color-scheme: dark;
  --paper: #171619; --surface: #222125; --ink: #f7f6f9; --body: #e4e1e8; --muted: #b9b5bf;
  --line: #403d45; --soft: #29272c; --raised: #36323b;
  --feature-top: #332b3e; --feature-line: #756486;
  --accent: #c5abeb; --strong: #ede6f5; --on-strong: #221d29; --focus: #d2b4ff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 AhaSans, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,h2,p,dl,dd { margin: 0; }
a,button,select { font: inherit; color: inherit; }
a { text-decoration: none; }
button,summary,select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.top { border-bottom: 1px solid var(--line); }
.top-inner,main,.foot { width: var(--page); margin-inline: auto; }
.top-inner {
  min-height: 70px; padding-block: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 690; letter-spacing: -.045em; }
.brand img { border-radius: 7px; }
#privacy { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.top-controls { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; max-width: 100%; }
#back {
  min-height: 40px; display: inline-flex; align-items: center; padding: 6px 13px;
  border-radius: 9px; font-size: 14px; font-weight: 560; text-align: center; line-height: 1.4;
}
#back:hover { background: var(--raised); }
main { flex: 1; padding-bottom: clamp(40px, 5vw, 80px); }

.hero { padding-block: clamp(30px,4vw,54px) clamp(20px,2.5vw,32px); }
h1 { font-size: clamp(38px,4.1vw,63px); line-height: 1.12; letter-spacing: -.044em; font-weight: 620; text-wrap: balance; }
html:is(:lang(zh),:lang(ja),:lang(ko),:lang(th)) h1 { font-size: clamp(33px,3.55vw,52px); line-height: 1.27; letter-spacing: -.022em; }
#intro { max-width: 76ch; margin-top: 12px; color: var(--muted); font-size: clamp(15px,1.22vw,17px); text-wrap: pretty; }
#status:not(:empty) { color: var(--muted); padding-block: 20px; }
.tabs { display: inline-flex; max-width: 100%; align-items: stretch; gap: 3px; padding: 4px; margin: 0 0 20px; border-radius: 12px; background: var(--raised); }
.tab {
  appearance: none; border: 0; background: transparent; color: var(--muted); min-height: 38px;
  padding: 7px 17px; border-radius: 9px; font-size: 14px; font-weight: 580; line-height: 1.4;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px #17151a1f; }
#content:focus:not(:focus-visible) { outline: none; }

.plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,1.4vw,20px); align-items: stretch; }
.plan-card {
  display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: clamp(20px,2vw,30px);
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.plan-card.is-featured { border-color: var(--feature-line); background: linear-gradient(157deg,var(--feature-top),var(--surface) 53%); }
.plan-summary,.plan-body,.plan-footer { min-width: 0; }
.plan-name { font-size: clamp(20px,1.6vw,24px); line-height: 1.35; font-weight: 640; letter-spacing: -.025em; }
.plan-desc,.unit,.cycle { color: var(--muted); font-size: 14px; line-height: 1.55; }
.plan-desc { margin-top: 4px; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 20px; }
.bigprice { font-size: clamp(38px,3.1vw,50px); line-height: 1.12; font-weight: 610; letter-spacing: -.035em; font-variant-numeric: lining-nums tabular-nums; }
/* Rupiah amounts can have eight digits. Size them to their own column at every breakpoint. */
html:lang(id) .plan-summary { container-type: inline-size; }
html:lang(id) .bigprice { font-size: 30px; font-size: clamp(24px, 13cqi, 44px); }
.cycle { margin-top: 6px; color: var(--body); }
.plan-body { padding-top: 18px; border-top: 1px solid var(--line); }
.plan-rates { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.plan-rates caption { text-align: start; margin-bottom: 8px; font-weight: 600; font-size: 15px; line-height: 1.45; }
.plan-rates th,.plan-rates td { text-align: end; padding: 7px 0 7px 6px; }
.plan-rates th:first-child { text-align: start; padding-inline-start: 0; }
.plan-rates th[scope=row] { color: var(--body); font-weight: 530; }
.plan-rates th[scope=col] { font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.plan-rates th:not(:first-child),.plan-rates td { white-space: nowrap; }
.plan-rates td { font-weight: 610; }
.plan-facts { margin-top: 10px; }
.self-service .plan-facts { border-top: 1px solid var(--line); padding-top: 10px; }
.plan-facts>div,.plan-detail dl>div {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: baseline;
  gap: 6px 14px; padding-block: 5px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere;
}
dt { color: var(--muted); }
dd { text-align: end; font-weight: 550; }
.plan-example { display: grid; gap: 3px; font-size: 14px; color: var(--muted); }
.plan-example strong { font-size: 19px; font-weight: 610; color: var(--ink); }
.plan-detail { padding-top: 12px; }
.plan-footer { margin-block-start: auto; display: grid; align-content: end; gap: 13px; }
.plan-footer:empty { display: none; }
.subscription-feedback { color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.plan-action, .pricing-contact {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 9px 14px;
  text-align: center; line-height: 1.5; font-size: 14px; font-weight: 610; overflow-wrap: anywhere;
  border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--ink);
}
.plan-action:hover,.pricing-contact:hover,.plan-action[aria-expanded=true] { background: var(--raised); }
.plan-action:disabled { cursor: wait; opacity: .65; }
:is([data-plan="starter"], [data-plan="growth"]) .subscription-action,
.is-featured .pricing-contact { background: var(--strong); border-color: var(--strong); color: var(--on-strong); }
:is([data-plan="starter"], [data-plan="growth"]) .subscription-action:enabled:hover,
.is-featured .pricing-contact:hover { filter: brightness(1.12); }
.plan-body .plan-action { margin-top: 13px; background: transparent; }

.rate-basis,.shared-prices,.deadline { max-width: 94ch; margin: 10px auto 0; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.65; text-wrap: pretty; }
.plan-grid+.rate-basis,.deadline { margin-top: 22px; }
.faq-list { max-width: 850px; margin: clamp(36px,4vw,62px) auto 0; }
.faq-list h2 { font-size: clamp(23px,2.1vw,30px); font-weight: 620; letter-spacing: -.03em; margin-bottom: 12px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; list-style: none; gap: 14px; padding: 15px 0; line-height: 1.5; font-size: 15px; font-weight: 560; }
summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--muted); font-size: 20px; flex: none; }
.faq-list details[open]>summary::after { content: '−'; }
.faq-list details p { color: var(--muted); font-size: 15px; padding-bottom: 14px; }
.retry { margin-inline-start: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.foot { padding-block: 22px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 13px; }
.foot>span { font-size: 16px; font-weight: 650; color: var(--body); letter-spacing: -.028em; }
@media(min-width: 950px) {
  .plan-head { min-height: 4.8em; }
}
@media(max-width: 949px) {
  .plan-grid { grid-template-columns: minmax(0,1fr); }
}
@media(min-width: 620px) and (max-width: 949px) {
  .plan-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 18px 28px; padding: 25px; }
  .plan-summary { grid-area: 1 / 1; }
  .plan-body { grid-area: 1 / 2 / 3 / 3; align-self: stretch; padding: 0 0 0 25px; border-top: 0; border-inline-start: 1px solid var(--line); }
  .plan-footer { grid-area: 2 / 1; }
}
@media(max-width: 619px) {
  .top-inner { min-height: 59px; gap: 6px; }
  .top-controls { gap: 4px; }
  #privacy { display: none; }
  .brand { font-size: 20px; gap: 7px; }
  .brand img { width: 25px; height: 25px; }
  #back { padding-inline: 7px; font-size: 13px; }
  .hero { padding-block: 30px 20px; }
  h1 { font-size: clamp(32px,8vw,39px); }
  #intro { margin-top: 10px; }
  .tabs { margin-bottom: 16px; }
  .tab { padding-inline: 12px; }
  .plan-card { gap: 18px; padding: 20px; }
  .price-line { margin-top: 15px; }
  .rate-basis,.shared-prices,.deadline { text-align: start; }
}

/* The shared checkout inherits the pricing page's active color scheme. */
#payments-dialog { background: var(--surface); color: var(--ink); border-color: var(--line); font-family: inherit; }
#payments-dialog :is(.payments-status,.payments-intro,.payments-secure,.payments-currency,.payments-close,.payments-amount-label,.payments-upcoming-copy) { color: var(--muted); }
#payments-dialog .payments-close:hover { background: var(--soft); color: var(--ink); }
#payments-dialog .payments-amount-field { background: var(--paper); border-color: var(--line); }
#payments-dialog .payments-amount-field:focus-within { border-color: var(--focus); }
#payments-dialog .payments-amount-field.has-error { border-color: #ae645e; }
#payments-dialog :is(.payments-amount-input,.payments-payable-amount) { color: var(--ink); }
#payments-dialog :is(.payments-currency-select,.payments-action) { color-scheme: inherit; background: var(--soft); border-color: var(--line); color: var(--ink); }
#payments-dialog .payments-action-primary { background: var(--strong); border-color: var(--strong); color: var(--on-strong); }
#payments-dialog .payments-payable { border-color: var(--line); color: var(--muted); }
:root[data-theme=light] #payments-dialog :is(.payments-error,.payments-amount-error) { color: #922f29; }
:root[data-theme=light] #payments-dialog .payments-success { color: #236b4a; }
