/* Vitrin landing page. Right-to-left, mobile first; logical properties keep it direction-safe. */

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/vazirmatn-arabic-wght-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/vazirmatn-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #142542;
  --navy-strong: #0c182d;
  --teal: #0d7e7b;
  --teal-strong: #0a6765;
  --teal-soft: #e6f4f3;
  --teal-tint: #f1f8f7;
  --background: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f6f8fa;
  --text: #172033;
  --muted: #5d6676;
  --border: #e3e8ee;
  --border-strong: #cfd6df;
  --danger: #c4322f;
  --danger-soft: #fdecec;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(20, 37, 66, 0.08);
  --shadow-lg: 0 24px 64px rgba(20, 37, 66, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --header-height: 64px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 55%, transparent);
  outline-offset: 2px;
}

.sprite {
  display: none;
}

/* Elements with their own display (the form is a grid) must still disappear when hidden. */
[hidden] {
  display: none !important;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.muted {
  color: var(--muted);
}

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.container-narrow {
  width: min(820px, 100% - 32px);
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--teal) 28%, transparent);
}

.btn-primary:hover {
  background: var(--teal-strong);
}

.btn-outline {
  border-color: color-mix(in srgb, var(--teal) 55%, transparent);
  background: var(--surface);
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--teal);
  background: var(--teal-tint);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
}

.logo {
  color: var(--teal);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-inline-start: 24px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.main-nav a:hover {
  background: var(--surface-muted);
  color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.menu-button {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-button .icon {
  width: 24px;
  height: 24px;
}

.menu-button .icon-close,
.menu-open .menu-button .icon-open {
  display: none;
}

.menu-open .menu-button .icon-close {
  display: block;
}

/* Hero */

.hero {
  position: relative;
  padding: 48px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 0%, var(--teal-tint) 0%, transparent 70%),
    linear-gradient(180deg, #fbfcfd 0%, #fff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-strong);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  color: var(--navy);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.3;
}

.lead {
  max-width: 34em;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.point-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
}

.point-icon .icon {
  width: 16px;
  height: 16px;
}

/* Hero visual: a store in a browser, with the phone version in front */

.hero-visual {
  position: relative;
  padding-inline-end: 64px;
  padding-bottom: 24px;
}

.browser {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
  direction: ltr;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6159;
}

.dots i:nth-child(2) {
  background: #ffbd2e;
}

.dots i:nth-child(3) {
  background: #28c941;
}

.address {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 320px;
  height: 24px;
  padding: 0 10px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.address .icon {
  width: 12px;
  height: 12px;
}

.store-banner {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.store-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(12, 24, 45, 0.82) 0%, rgba(12, 24, 45, 0.25) 70%);
}

.store-banner-text {
  position: absolute;
  inset-inline-start: 22px;
  bottom: 20px;
  z-index: 1;
  display: grid;
  color: #fff;
}

.store-banner-text strong {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}

.store-banner-text span {
  font-size: 12px;
  opacity: 0.9;
}

.store-nav {
  position: absolute;
  top: 12px;
  inset-inline-start: 22px;
  z-index: 1;
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
}

.store-filters {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
}

.fake-search,
.fake-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.fake-search {
  flex: 1.4;
  justify-content: flex-start;
}

.fake-select {
  flex: 1;
}

.fake-search .icon,
.fake-select .icon {
  width: 13px;
  height: 13px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 14px 16px;
}

.mini-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.mini-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.mini-card-body {
  display: grid;
  gap: 2px;
  padding: 8px 10px 10px;
}

.mini-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-card strong {
  font-size: 13px;
  font-weight: 800;
}

.mini-card-title .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.meta i {
  width: 1px;
  height: 9px;
  background: var(--border-strong);
}

.price {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.price small {
  font-size: 10px;
  font-weight: 600;
}

.phone {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 170px;
  padding: 7px;
  border-radius: 28px;
  background: var(--navy-strong);
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  display: grid;
  gap: 8px;
  height: 330px;
  padding: 10px 8px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-muted);
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
  font-size: 12px;
}

.phone-header .icon {
  width: 14px;
  height: 14px;
}

.phone-button {
  margin-top: 6px;
  padding: 4px 0;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

/* Sections */

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2,
.showcase h2,
.demo h2 {
  color: var(--navy);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.feature:hover {
  border-color: color-mix(in srgb, var(--teal) 35%, var(--border));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
}

.feature-icon .icon {
  width: 26px;
  height: 26px;
}

.feature h3 {
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
}

.feature p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

/* One link showcase */

.showcase-section {
  padding-top: 0;
}

.showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 56px;
  padding: 56px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(13, 126, 123, 0.14) 0%, transparent 70%),
    var(--teal-tint);
}

.showcase-copy p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}

.checklist .icon {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  padding: 4px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  stroke-width: 3;
}

.detail-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.detail-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.detail-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 2px solid transparent;
  border-radius: 6px;
  object-fit: cover;
}

.detail-thumbs .is-active {
  border-color: var(--teal);
}

.detail-info {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.detail-title {
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
}

.detail-price {
  color: var(--teal);
  font-size: 17px;
  font-weight: 800;
}

.detail-price small {
  font-size: 13px;
}

.detail-info dl {
  display: grid;
  margin: 14px 0 16px;
  font-size: 13px;
}

.detail-info dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}

.detail-info dt {
  color: var(--muted);
}

.detail-info dd {
  margin: 0;
  font-weight: 700;
}

.detail-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 9px 0;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.detail-button .icon {
  width: 15px;
  height: 15px;
}

.share-pill {
  position: absolute;
  top: -18px;
  inset-inline-end: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow);
  direction: ltr;
}

.share-pill .icon {
  width: 15px;
  height: 15px;
  color: #6fd6cf;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline-end: -21px;
  width: 22px;
  border-top: 2px dotted var(--border-strong);
}

.step-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 20px;
  font-weight: 900;
}

.step h3 {
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
}

.step p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

/* Demo request */

.demo-section {
  position: relative;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(47, 181, 173, 0.22) 0%, transparent 60%),
    var(--navy);
  color: #fff;
}

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
}

.demo-copy {
  padding-top: 24px;
}

.demo .demo-copy h2 {
  color: #fff;
}

.demo-copy > p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.1);
  color: #8fe3dc;
}

.checklist-light li {
  color: rgba(255, 255, 255, 0.92);
}

.checklist-light .icon {
  background: #2fb5ad;
  color: var(--navy-strong);
}

.demo-card {
  padding: 32px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.demo-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  font-size: 16px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.field input[dir='ltr'] {
  text-align: left;
}

.field input::placeholder {
  color: #9aa3b2;
}

.field input:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 15%, transparent);
}

.field input[aria-invalid='true'] {
  border-color: var(--danger);
}

.field input[aria-invalid='true']:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 15%, transparent);
}

.input-icon {
  position: relative;
}

.input-icon .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.input-icon input {
  padding-left: 44px;
}

.field-hint {
  color: var(--muted);
  font-size: 13px;
}

.field-error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
}

.field-error:empty {
  display: none;
}

.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
}

.form-alert .icon {
  margin-top: 3px;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.is-submitting .spinner {
  display: inline-block;
}

.is-submitting #demo-submit {
  cursor: progress;
  opacity: 0.85;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.privacy-note .icon {
  width: 14px;
  height: 14px;
}

.demo-success {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 0;
  text-align: center;
  outline: none;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  animation: pop 0.35s ease-out;
}

.success-icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2.5;
}

.demo-success h3 {
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
}

@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

/* FAQ */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--teal) 35%, var(--border));
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--muted);
  transition: transform 0.2s;
}

.faq details[open] summary .icon {
  color: var(--teal);
  transform: rotate(180deg);
}

.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
}

/* Closing band */

.closing {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  background: var(--navy-strong);
  color: #fff;
}

.closing-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(270deg, var(--navy-strong) 30%, rgba(12, 24, 45, 0.55) 100%);
}

.closing-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.closing h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}

.closing p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
}

/* Footer */

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer-inner p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer nav a {
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--teal);
}

.footer-inner .copyright {
  flex-basis: 100%;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

/* 404 page */

.not-found {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: 100vh;
  padding: 32px 16px;
  text-align: center;
}

.not-found h1 {
  margin-top: 24px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
}

.not-found p {
  margin-bottom: 12px;
  color: var(--muted);
}

/* The demo button that follows the reader on phones */

.mobile-cta {
  display: none;
}

/* Scroll reveal, only when JavaScript runs */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Tablet */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    max-width: 760px;
  }

  .showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 40px;
  }

  .demo {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .demo-copy {
    padding-top: 0;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .step:not(:last-child)::after {
    top: auto;
    bottom: -15px;
    inset-inline-start: 48px;
    inset-inline-end: auto;
    width: 0;
    height: 16px;
    border-top: 0;
    border-inline-start: 2px dotted var(--border-strong);
  }
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    inset-inline: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
    font-size: 16px;
  }

  .menu-button {
    display: grid;
  }
}

/* Phone */

@media (max-width: 640px) {
  :root {
    --header-height: 60px;
  }

  body {
    font-size: 15px;
  }

  .logo {
    font-size: 26px;
  }

  .hero {
    padding: 28px 0 48px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-points {
    gap: 10px 16px;
    font-size: 13px;
  }

  .hero-visual {
    padding: 0;
  }

  .phone,
  .hide-sm,
  .store-nav {
    display: none;
  }

  .store-banner {
    height: 112px;
  }

  .store-banner-text strong {
    font-size: 19px;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    margin: 0;
  }

  .feature h3 {
    font-size: 17px;
  }

  .feature p {
    font-size: 14px;
  }

  .showcase-section .container {
    width: 100%;
  }

  .showcase {
    padding: 36px 16px;
    border-radius: 0;
  }

  .detail-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .step {
    padding: 18px;
  }

  .demo-card {
    padding: 22px 18px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing {
    padding: 56px 0 64px;
  }

  .closing-inner .btn {
    width: 100%;
  }

  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .mobile-cta {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    display: block;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(110%);
    transition: transform 0.25s ease-out;
  }

  .mobile-cta.is-visible {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
