@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");
@import url("./tokens.css");

:root {
  --site-max: 1160px;
  --site-gutter: 20px;
  --site-header: 76px;
  --site-radius: 8px;
}

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

html {
  min-height: 100%;
  color-scheme: dark light;
  font-family: var(--or-font-sans);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background: var(--or-bg);
  color: var(--or-text);
  font-family: var(--or-font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

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

button,
select,
a[href] {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--or-teal-400);
  outline-offset: 3px;
  box-shadow: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: calc(var(--site-header) + 8px);
  z-index: 1000;
  transform: translateY(-140%);
  pointer-events: none;
  border-radius: var(--site-radius);
  background: var(--or-teal-500);
  color: #001114;
  padding: 10px 14px;
  font-weight: 850;
}

.skip-link:focus {
  transform: translateY(0);
  pointer-events: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--or-border);
  background: var(--or-bg);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.section,
.site-footer__inner {
  width: min(var(--site-max), calc(100% - var(--site-gutter) * 2));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--site-header);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--or-text-strong);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--or-teal-500), var(--or-blue-600));
  color: #fff;
  box-shadow: var(--or-glow-teal);
}

.brand-mark svg,
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a,
.footer-links a {
  min-height: 44px;
  border-radius: var(--site-radius);
  color: var(--or-text);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--or-text-strong);
  background: rgba(20, 184, 166, 0.1);
}

.shell-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.region-switch,
.theme-switch {
  display: inline-flex;
  min-height: 44px;
  border: 1px solid var(--or-border);
  border-radius: var(--site-radius);
  background: var(--or-surface-solid);
  padding: 4px;
}

.region-switch button,
.theme-switch button,
.icon-button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--or-text);
  font-size: 13px;
  font-weight: 850;
}

[data-region="pk"] .region-switch [data-region-choice="pk"],
[data-region="intl"] .region-switch [data-region-choice="intl"],
[data-theme="dark"] .theme-switch [data-theme-choice="dark"],
[data-theme="light"] .theme-switch [data-theme-choice="light"] {
  background: var(--or-blue-600);
  color: #fff;
}

.button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--or-border);
  border-radius: var(--site-radius);
  background: var(--or-surface);
  color: var(--or-text-strong);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.cta-button,
.button.primary {
  border-color: transparent;
  background: var(--or-blue-600);
  color: #fff;
  box-shadow: var(--or-glow-teal);
}

.menu-button {
  display: none;
  place-items: center;
  border: 1px solid var(--or-border);
  background: var(--or-surface);
}

main {
  min-height: 65dvh;
}

.section {
  padding-block: 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100dvh - var(--site-header));
  padding-block: 48px;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--or-teal-400);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

[data-theme="light"] .eyebrow,
[data-theme="light"] .kicker {
  color: #0f766e;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  color: var(--or-text-strong);
  font-size: clamp(48px, 7vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  max-width: 18ch;
  color: var(--or-text-strong);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  color: var(--or-text-strong);
  font-size: 18px;
  line-height: 1.25;
}

p,
li {
  max-width: 72ch;
}

.lead {
  max-width: 68ch;
  color: var(--or-text);
  font-size: 18px;
  line-height: 1.65;
}

.muted {
  color: var(--or-text-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.panel,
.card,
.metric,
.demo-shell {
  border: 1px solid var(--or-border);
  border-radius: var(--site-radius);
  background: var(--or-surface);
  box-shadow: var(--or-shadow-md);
}

.panel {
  padding: 24px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.home-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: start;
}

.home-hero h1 {
  max-width: 15ch;
}

.hero-demo {
  align-self: stretch;
}

.card,
.metric {
  padding: 20px;
}

.metric strong {
  display: block;
  color: var(--or-text-strong);
  font-size: 24px;
  line-height: 1.1;
}

.proof-number {
  display: block;
  color: var(--or-teal-400);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.demo-shell {
  overflow: hidden;
}

.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--or-border);
  padding: 14px 16px;
}

.demo-messages {
  display: grid;
  gap: 12px;
  min-height: 300px;
  padding: 16px;
}

.message {
  max-width: 88%;
  border-radius: var(--site-radius);
  padding: 12px 14px;
}

.message.agent {
  background: color-mix(in srgb, var(--or-teal-500) 14%, transparent);
}

.message.user {
  justify-self: end;
  background: color-mix(in srgb, var(--or-blue-600) 18%, transparent);
}

.prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}

.prompt-list button {
  min-height: 44px;
  border: 1px solid var(--or-border);
  border-radius: var(--site-radius);
  background: var(--or-surface-solid);
  color: var(--or-text);
  padding: 8px 10px;
}

.demo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border-top: 1px solid var(--or-border);
  padding: 16px;
}

.demo-form input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--or-border);
  border-radius: var(--site-radius);
  background: var(--or-surface-solid);
  color: var(--or-text);
  padding: 10px 12px;
}

.typing-dots span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}

.break-panel {
  border-top: 1px solid var(--or-border);
  padding: 16px;
}

.step-list,
.plain-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.price {
  color: var(--or-text-strong);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.region-value {
  display: inline-block;
  min-width: 14ch;
  font-variant-numeric: tabular-nums;
}

.region-swap {
  display: grid;
  align-items: start;
}

.region-swap > .region-pk,
.region-swap > .region-intl {
  grid-area: 1 / 1;
}

[data-region="pk"] .region-intl,
[data-region="intl"] .region-pk {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

[data-region="pk"] .region-pk,
[data-region="intl"] .region-intl {
  visibility: visible;
  opacity: 1;
}

.site-footer {
  border-top: 1px solid var(--or-border);
  background: var(--or-surface);
}

.service-primary {
  border-color: var(--or-border-strong);
  box-shadow: var(--or-shadow-lg), var(--or-glow-blue);
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
}

.equal-weight p:last-child {
  border-top: 1px solid var(--or-border);
  margin-top: 18px;
  padding-top: 18px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.timeline li {
  border: 1px solid var(--or-border);
  border-radius: var(--site-radius);
  background: var(--or-surface);
  padding: 16px;
}

.timeline span,
.field-list dd {
  display: block;
  color: var(--or-text);
}

.field-list {
  display: grid;
  gap: 10px;
}

.field-list dt {
  color: var(--or-text-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.plain-section {
  color: var(--or-text-strong);
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-block: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--or-text-strong);
  font-weight: 800;
}

.span-2 {
  grid-column: span 2;
}

.field-error {
  min-height: 20px;
  color: var(--or-red-500);
  font-size: 14px;
}

.hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding-block: 32px;
}

.legal-block {
  margin: 0;
  color: var(--or-text);
  font-size: 14px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: start;
}

.text-page {
  max-width: 820px;
}

.text-page h1 {
  max-width: none;
  font-size: 48px;
}

.text-page h2 {
  max-width: none;
  margin-top: 40px;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .cta-button,
  .site-nav a,
  .footer-links a,
  .region-switch button,
  .theme-switch button,
  .icon-button,
  .prompt-list button {
    transition: transform 180ms ease-out, background 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out, opacity 180ms ease-out;
  }

  .button:hover,
  .cta-button:hover,
  .prompt-list button:hover {
    transform: translateY(-1px);
  }

  .mobile-panel {
    transition: opacity 180ms ease-in, transform 220ms ease-in;
  }

  [data-reveal],
  .grid.reveal > * {
    opacity: 0;
    transform: translateY(12px);
  }

  [data-reveal].is-visible,
  .grid.reveal > *.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 300ms ease-out var(--reveal-delay, 0ms), transform 300ms ease-out var(--reveal-delay, 0ms);
  }

  .card:hover,
  .metric:hover {
    transform: translateY(-2px);
  }

  .typing-dots span {
    animation: typingPulse 900ms ease-out infinite;
  }

  .typing-dots span:nth-child(2) {
    animation-delay: 120ms;
  }

  .typing-dots span:nth-child(3) {
    animation-delay: 240ms;
  }
}

@keyframes typingPulse {
  0%, 70%, 100% { opacity: 0.35; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 980px) {
  .site-nav,
  .shell-actions .cta-button {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .hero,
  .grid.two,
  .grid.three,
  .grid.four,
  .proof-layout,
  .timeline,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 13ch;
    font-size: 48px;
  }
}

@media (max-width: 620px) {
  :root {
    --site-gutter: 16px;
  }

  .site-header__inner {
    gap: 10px;
  }

  .brand-link span:last-child,
  .theme-switch {
    display: none;
  }

  .region-switch button {
    min-width: 48px;
    padding-inline: 8px;
  }

  .section {
    padding-block: 44px;
  }

  h1,
  .text-page h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  .demo-form,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

.mobile-panel {
  position: fixed;
  inset: var(--site-header) 0 0;
  z-index: 40;
  display: none;
  background: var(--or-bg);
  padding: 24px var(--site-gutter);
  transform: translateY(-8px);
  opacity: 0;
}

.mobile-panel.is-open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-panel nav,
.mobile-panel .mobile-actions {
  display: grid;
  gap: 12px;
}

.mobile-panel a,
.mobile-panel button {
  min-height: 48px;
}

.text-page a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
