@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800;900&display=swap");

:root {
  --bg: #ffffff;
  --bg-soft: #f7fbfe;
  --line: #d7eef8;
  --line-strong: #67c8f5;
  --text: #16324a;
  --muted: #63778f;
  --accent: #14b5ea;
  --accent-strong: #0b8bc4;
  --accent-soft: rgba(20, 181, 234, 0.1);
  --success: #1d9a61;
  --danger: #cf5d5d;
  --shadow: 0 28px 60px rgba(15, 72, 111, 0.08);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --body: "Nunito Sans", "Avenir Next", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(20, 181, 234, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button {
  border: 0;
  background: none;
}

.page-shell {
  min-height: 100vh;
  padding: 32px 40px 28px;
}

.top-rule {
  height: 4px;
  background: linear-gradient(90deg, rgba(20, 181, 234, 0.28), rgba(20, 181, 234, 0.16));
  border-radius: 999px;
  width: min(1240px, 100%);
  margin: 0 auto 18px;
}

.site-header,
.hero-layout,
.site-footer,
.status-main,
.admin-page-main {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.xero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.brand-lockup {
  min-width: 0;
}

.brand-mark {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, #4dd2ff 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.65rem;
  letter-spacing: 0.08em;
  box-shadow: 0 20px 35px rgba(20, 181, 234, 0.18);
}

.brand-mark-xero {
  width: 96px;
  height: 96px;
  font-size: 1.9rem;
}

.brand-name {
  display: inline-block;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--muted);
}

.header-actions,
.dashboard-header-actions,
.action-row,
.choice-row,
.coupon-row,
.summary-grid,
.workspace-grid,
.dashboard-header,
.site-footer,
.footer-company,
.two-column-form,
.record-topline,
.meta-grid,
.detail-grid,
.workspace-tabs,
.workspace-toolbar,
.list-meta,
.support-grid {
  display: flex;
  gap: 16px;
}

.header-actions,
.dashboard-header-actions,
.action-row,
.choice-row,
.coupon-row,
.workspace-toolbar,
.list-meta {
  align-items: center;
  flex-wrap: wrap;
}

.language-switcher {
  position: relative;
}

.language-trigger,
.secondary-pill-button,
.choice-chip,
.choice-panel,
.language-option,
.primary-pill-button,
.link-button,
.text-action,
.tab-button,
.record-item,
.list-pill {
  transition: 180ms ease;
}

.language-trigger {
  border: 2px solid #eef7fc;
  background: #ffffff;
  color: var(--text);
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.language-trigger:hover,
.secondary-pill-button:hover,
.primary-pill-button:hover,
.choice-chip:hover,
.choice-panel:hover,
.tab-button:hover,
.record-item:hover {
  transform: translateY(-1px);
}

.language-caret {
  color: var(--accent-strong);
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 210px;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid #eef7fc;
  background: #ffffff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  z-index: 20;
}

.language-option {
  padding: 12px 14px;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
}

.language-option.active,
.language-option:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr);
  gap: 48px;
  align-items: start;
  padding: 32px 0 18px;
}

.hero-copy {
  padding-top: 72px;
}

.hero-tagline {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.045em;
  max-width: 11ch;
}

.hero-description {
  margin: 28px 0 24px;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1.4;
  color: var(--muted);
  max-width: 20ch;
}

.secondary-inline-link,
.text-action {
  display: inline-flex;
  align-items: center;
  color: #4f5f73;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.secondary-inline-link:hover,
.text-action:hover {
  color: var(--text);
}

.experience-panel,
.auth-panel,
.status-panel,
.workspace-panel {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.flow-card,
.workspace-panel {
  padding: 34px 34px 30px;
}

.flow-card.wide-card {
  padding-bottom: 34px;
}

.flow-card h1,
.status-panel h1,
.auth-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.9rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.flow-copy,
.inline-caption,
.workspace-copy,
.disclaimer,
.footer-company p:last-child,
.field-hint,
.detail-panel p,
.meta-note {
  color: var(--muted);
  line-height: 1.5;
}

.icon-badge {
  width: 86px;
  height: 86px;
  color: var(--accent);
  margin-bottom: 20px;
}

.icon-badge svg {
  width: 100%;
  height: 100%;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.field-span {
  grid-column: 1 / -1;
}

.field span {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 2px solid var(--line-strong);
  border-radius: 28px;
  background: #ffffff;
  padding: 18px 22px;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 6px rgba(20, 181, 234, 0.1);
}

.field small,
.field-hint {
  font-size: 0.9rem;
}

.two-column-form {
  flex-wrap: wrap;
  margin-top: 24px;
}

.two-column-form .field {
  flex: 1 1 280px;
}

.action-row {
  margin-top: 26px;
}

.action-row.split {
  justify-content: space-between;
}

.primary-pill-button,
.secondary-pill-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.primary-pill-button {
  background: linear-gradient(180deg, var(--accent) 0%, #149de0 100%);
  color: #ffffff;
  box-shadow: 0 22px 36px rgba(20, 181, 234, 0.24);
}

.primary-pill-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.secondary-pill-button,
.link-button {
  background: #ffffff;
  color: var(--text);
  border: 2px solid var(--line-strong);
}

.choice-row,
.choice-column {
  margin-top: 24px;
}

.choice-column,
.stack-section {
  display: grid;
  gap: 16px;
}

.choice-row {
  flex-wrap: wrap;
}

.choice-chip {
  padding: 16px 28px;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.choice-chip.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.choice-column {
  display: grid;
  gap: 16px;
}

.choice-panel {
  width: 100%;
  padding: 22px 24px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.choice-panel strong {
  font-size: 1.08rem;
}

.summary-grid {
  flex-wrap: wrap;
  margin-top: 24px;
}

.summary-card {
  flex: 1 1 280px;
  min-width: 0;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(245, 251, 255, 0.9));
}

.summary-card h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 900;
}

.price-stack {
  margin: 0;
  display: grid;
  gap: 6px;
}

.price-stack strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-original {
  text-decoration: line-through;
  color: var(--muted);
}

.summary-copy {
  margin: 14px 0 18px;
  color: var(--muted);
}

.details-sheet {
  margin-top: 22px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 20px;
  background: var(--bg-soft);
}

.details-sheet summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 900;
}

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

.fee-table {
  display: grid;
  gap: 14px;
  padding: 0 0 18px;
}

.fee-line,
.confirmation-row,
.record-item,
.detail-item,
.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.fee-line {
  padding: 14px 0;
  border-top: 1px solid rgba(22, 50, 74, 0.09);
}

.fee-line:first-child {
  border-top: 0;
}

.fee-line strong,
.confirmation-row strong,
.record-item strong,
.detail-item strong,
.stat-card strong {
  font-weight: 900;
}

.fee-line p,
.record-item p,
.detail-item p,
.workspace-copy,
.field-hint,
.footer-company p,
.inline-message p {
  margin: 0;
}

.fee-amounts {
  text-align: right;
  white-space: nowrap;
}

.payment-preview,
.confirmation-stack {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.payment-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 2px solid var(--line);
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.captcha-box strong {
  white-space: nowrap;
  font-size: 1.2rem;
}

.payment-preview span,
.confirmation-row span,
.detail-item span,
.meta-note {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
}

.inline-message {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 700;
}

.inline-message.success {
  background: rgba(29, 154, 97, 0.1);
  color: #117048;
}

.inline-message.error,
.inline-caption.error {
  background: rgba(207, 93, 93, 0.1);
  color: #9d3f3f;
}

.inline-caption.success {
  color: var(--success);
}

.coupon-field {
  width: min(280px, 100%);
}

.status-main,
.admin-page-main {
  padding-top: 44px;
}

.status-panel,
.auth-card,
.dashboard-shell {
  padding: 34px;
}

.status-panel,
.auth-panel {
  max-width: 820px;
  margin: 0 auto;
}

.status-panel {
  background: #ffffff;
}

.status-main {
  display: grid;
}

.auth-panel {
  width: min(820px, 100%);
}

.auth-panel-plain {
  width: min(900px, 100%);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.auth-card {
  max-width: 100%;
}

.simple-auth-card,
.simple-status-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.simple-form-grid {
  display: grid;
  gap: 24px;
}

.simple-form-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.simple-form-label {
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  font-weight: 800;
  color: #050505;
  letter-spacing: -0.03em;
}

.simple-form-row input {
  width: 100%;
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  background: #ffffff;
  min-height: 64px;
  padding: 14px 20px;
  color: var(--text);
}

.simple-form-row input:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 6px rgba(20, 181, 234, 0.1);
}

.simple-captcha-inline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.simple-captcha-inline strong {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
  color: #050505;
}

.simple-captcha-inline input {
  width: min(160px, 100%);
}

.simple-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
}

.simple-form-actions.single {
  justify-content: flex-start;
}

.simple-status-panel {
  max-width: 1080px;
}

.simple-status-panel h1,
.simple-status-panel .flow-copy {
  text-align: left;
}

.simple-status-copy {
  max-width: 40rem;
  margin: 18px 0 30px;
}

.status-result-panel {
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: 24px;
  border: 2px solid var(--line);
  background: var(--bg-soft);
}

.status-result-panel h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 900;
}

.auth-card .icon-badge {
  margin-inline: auto;
}

.auth-card h1,
.auth-card .flow-copy,
.status-panel h1,
.status-panel .flow-copy {
  text-align: center;
}

.dashboard-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-inline: 0;
}

.dashboard-header {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dashboard-header h1 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 800;
}

.role-pill,
.list-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.workspace-tabs {
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab-button {
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.workspace-grid {
  align-items: start;
}

.workspace-grid {
  flex-wrap: wrap;
}

.workspace-panel {
  flex: 1 1 360px;
  min-width: 0;
}

.workspace-panel.full-span {
  flex-basis: 100%;
}

.workspace-panel h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
}

.record-list,
.stack-list,
.stats-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.record-item {
  padding: 18px;
  border-radius: 24px;
  border: 2px solid var(--line);
  background: #ffffff;
  cursor: pointer;
  flex-direction: column;
  align-items: stretch;
}

.record-item.active {
  border-color: var(--line-strong);
  background: var(--bg-soft);
}

.record-topline {
  align-items: center;
  justify-content: space-between;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.status-preparing {
  background: rgba(234, 181, 20, 0.12);
  color: #90660d;
}

.status-processing {
  background: rgba(20, 181, 234, 0.12);
  color: var(--accent-strong);
}

.status-processed {
  background: rgba(29, 154, 97, 0.12);
  color: var(--success);
}

.detail-block,
.subform-card,
.stat-card {
  padding: 20px;
  border-radius: 24px;
  background: var(--bg-soft);
  border: 2px solid var(--line);
}

.detail-block h3,
.subform-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.detail-panel,
.admin-section,
.support-grid,
.setting-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.detail-grid {
  flex-wrap: wrap;
}

.detail-grid .detail-item {
  flex: 1 1 220px;
  flex-direction: column;
}

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

.stat-card {
  min-height: 120px;
}

.empty-state {
  padding: 20px;
  border: 2px dashed var(--line-strong);
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
}

.footer-company {
  flex-direction: column;
  gap: 6px;
}

.site-footer {
  justify-content: space-between;
  align-items: end;
  padding-top: 28px;
}

.footer-company p:first-child {
  font-weight: 900;
}

.disclaimer {
  max-width: 54ch;
  text-align: right;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    padding-top: 10px;
  }

  .payment-preview,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .page-shell {
    padding: 20px 18px 22px;
  }

  .xero-header,
  .dashboard-header,
  .site-footer,
  .action-row.split {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-tagline,
  .hero-description {
    max-width: none;
  }

  .flow-card,
  .workspace-panel,
  .status-panel,
  .auth-card {
    padding: 24px;
  }

  .simple-auth-card,
  .simple-status-panel {
    padding: 0;
  }

  .simple-form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .simple-captcha-inline,
  .simple-form-actions,
  .simple-form-actions.single {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .brand-mark-xero {
    width: 78px;
    height: 78px;
    font-size: 1.45rem;
  }

  .site-footer {
    gap: 18px;
  }

  .disclaimer {
    text-align: left;
  }
}
