/* Colours follow packages/ui/src/tokens.css. This page is static and has no build step. */
:root {
  --bg: #f7f8f8;
  --surface: #ffffff;
  --surface-2: #f0f2f2;
  --border: #e1e5e5;
  --text: #172020;
  --muted: #566363;
  --primary: #0f6e66;
  --primary-hover: #0b5952;
  --primary-soft: #e2f3f1;
  --on-primary: #ffffff;
  --accent: #9a5b00;
  --accent-soft: #fbf0dc;
  --deep: #0c2f2c;
  --deep-text: #e8f4f2;
  --deep-muted: #a9c6c2;
  --font: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1414;
    --surface: #171d1d;
    --surface-2: #202727;
    --border: #2d3535;
    --text: #edf1f1;
    --muted: #a5b0b0;
    --primary: #3ec5b7;
    --primary-hover: #62d5c9;
    --primary-soft: #143330;
    --on-primary: #062220;
    --accent: #e9b04e;
    --accent-soft: #33270f;
    --deep: #0a2422;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
}

html[lang='ne'] body {
  line-height: 1.75;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.hero :focus-visible {
  outline-color: #ffffff;
}

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

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

.btn-light {
  background: #ffffff;
  color: #0c2f2c;
}

.btn-light:hover {
  background: #dff1ee;
}

.btn-ghost {
  border: 1px solid rgb(255 255 255 / 35%);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 10%);
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-2);
}

/* Header and hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: var(--deep-text);
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px 20px;
  padding-block: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo svg {
  display: block;
}

.nav-link {
  padding: 8px 4px;
  color: var(--deep-text);
  font-size: 15px;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
  padding-block: 56px 112px;
}

.pill {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 12px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  color: var(--deep-text);
  font-size: 14px;
}

h1 {
  color: #ffffff;
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

html[lang='ne'] h1 {
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--deep-muted);
  font-size: 19px;
}

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

.ridge {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 170px;
  color: #124340;
}

/* Example site in the hero */
.demo {
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgb(0 0 0 / 40%);
  color: #172020;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #e9eded;
}

.demo-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bcc6c6;
}

.demo-url {
  overflow: hidden;
  min-width: 0;
  flex: 1;
  margin-left: 8px;
  padding: 3px 12px;
  border-radius: 6px;
  background: #ffffff;
  color: #566363;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.demo-hero {
  padding: 32px 28px;
  background: linear-gradient(135deg, #f8efe0, #e6f1e4);
}

.demo-name {
  font-weight: 700;
  font-size: 15px;
}

.demo-title {
  margin-top: 26px;
  font-weight: 700;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

html[lang='ne'] .demo-title {
  line-height: 1.4;
  letter-spacing: 0;
}

.demo-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 7px 14px;
  border-radius: 6px;
  background: #2f6b3c;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.demo-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 28px 24px;
}

.demo-cards div {
  padding-top: 52px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.demo-cards div::before {
  content: '';
  display: block;
  height: 44px;
  margin: -52px 0 8px;
  border-radius: 8px;
}

.demo-cards div:nth-child(1)::before {
  background: #cfe3c9;
}

.demo-cards div:nth-child(2)::before {
  background: #f1dcb6;
}

.demo-cards div:nth-child(3)::before {
  background: #cbe2e0;
}

.demo-note {
  margin-top: 10px;
  color: var(--deep-muted);
  font-size: 13px;
  text-align: center;
}

/* Sections */
section {
  padding-block: 88px;
}

.section-head {
  max-width: 40em;
  margin-bottom: 44px;
}

h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

html[lang='ne'] h2 {
  line-height: 1.35;
  letter-spacing: 0;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  counter-reset: step;
}

.steps li {
  padding-top: 18px;
  border-top: 2px solid var(--primary);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}

html[lang='ne'] .steps li::before {
  content: counter(step, devanagari);
}

.steps p,
.features p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

/* Features */
.band {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
}

.features svg {
  display: block;
  margin-bottom: 14px;
  color: var(--primary);
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.plan-main {
  border: 2px solid var(--primary);
}

.plan-desc {
  min-height: 3.2em;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.price {
  margin-top: 14px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.price small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.plan ul {
  flex: 1;
  margin-block: 20px 26px;
  font-size: 15px;
}

.plan li {
  position: relative;
  padding: 5px 0 5px 24px;
}

.plan li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.8em;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  transform: rotate(-45deg);
}

.note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

/* Closing call to action and footer */
.closing {
  background: var(--deep);
  color: var(--deep-text);
  text-align: center;
}

.closing h2 {
  color: #ffffff;
}

.closing p {
  max-width: 34em;
  margin: 12px auto 0;
  color: var(--deep-muted);
}

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

footer {
  padding-block: 28px;
  color: var(--muted);
  font-size: 15px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-block: 32px 96px;
  }

  .steps,
  .features,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps,
  .features {
    gap: 32px;
  }

  .plan-desc {
    min-height: 0;
  }

  section {
    padding-block: 64px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 16px;
  }

  .nav-pricing {
    display: none;
  }

  .nav .btn {
    display: none;
  }

  .lead {
    font-size: 17px;
  }

  .actions .btn {
    width: 100%;
  }

  .demo-hero {
    padding: 24px 20px;
  }

  .demo-title {
    font-size: 23px;
  }

  .demo-cards {
    padding-inline: 20px;
  }
}
