/*
  Coming-soon page styles.

  Hand-written CSS rather than Tailwind: this page ships before the Next.js app
  exists and must stay independently deployable. Under 9 KB.

  Tokens are the ones in DESIGN.md §2 (brand colours sampled from the logo,
  Tailwind zinc neutrals). When M0 lands, tailwind.config.ts becomes the source
  of truth and this file is retired with the page.

  Visual reference: bidzaar.com — slanted rounded accent panel, large light
  headline with the brand word in the accent colour, pill buttons, two audience
  cards. Translated into Bidar's palette; see the plan for what was kept.

  Logical properties (inline-start/end) throughout so the one stylesheet serves
  the right-to-left Persian page unchanged.
*/

:root {
  --brand-pink: #ff0a78;
  --brand-pink-strong: #d6005f;
  --brand-magenta: #e006d0;
  --brand-violet: #6a00d8;
  --brand-ink: #2a0060;
  --brand-gradient: linear-gradient(135deg, #ff0a78, #e006d0, #6a00d8);

  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-900: #18181b;

  --ok: #15803d;
  --ok-wash: #f0fdf4;
  --stop: #b91c1c;
  --stop-wash: #fef2f2;

  --font-sans: 'Noto Sans', 'Noto Sans Armenian', 'Noto Sans Arabic', system-ui,
    -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius-card: 24px;
  --radius-control: 14px;
  --radius-pill: 999px;
  --gutter: 16px;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--zinc-900);
  font-family: var(--font-sans);
  font-size: 1rem; /* 16px floor: stops iOS zoom on focus */
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--brand-pink);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------- */
/* Header                                                            */
/* ---------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
}

.logo-word {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Language menu: a pill, bidzaar-style; a native <details> so it needs no
   script and works with the keyboard. */
.lang {
  position: relative;
}

.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--zinc-300);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.lang[open] summary {
  border-color: var(--zinc-900);
}

.lang ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 10;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--zinc-200);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgb(24 24 27 / 0.12);
}

.lang li a {
  display: block;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--zinc-900);
  text-decoration: none;
  font-size: 0.9375rem;
}

.lang li a:hover {
  background: var(--zinc-100);
}

.lang li a[aria-current='page'] {
  color: var(--brand-pink-strong);
  font-weight: 600;
}

/* ---------------------------------------------------------------- */
/* Hero                                                              */
/* ---------------------------------------------------------------- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero {
  display: grid;
  gap: 24px;
  padding: 8px 0 16px;
}

/* The brand moment: a skewed, rounded gradient panel — the one place the
   gradient is allowed (DESIGN.md §2). The wrapper clips the skew overhang so
   nothing can push the page wider than the phone. */
.panel-wrap {
  overflow: hidden;
  margin: 0 calc(var(--gutter) * -1);
  padding: 20px var(--gutter);
}

.panel {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  background: var(--brand-gradient);
  transform: skewY(-4deg);
  transform-origin: center;
}

/* The mark carries the same gradient as the panel, so on the panel it is
   shown as a white silhouette (brightness 0 → black, invert → white). The
   two bars read clearly; the 3D shading would not at this contrast. */
.panel-logo {
  width: 48%;
  max-width: 240px;
  height: auto;
  transform: skewY(4deg);
  filter: brightness(0) invert(1) drop-shadow(0 18px 30px rgb(42 0 96 / 0.35));
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.eyebrow {
  display: inline-block;
  justify-self: start;
  margin: 0;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--zinc-100);
  color: var(--zinc-600);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0;
  font-size: 2.25rem; /* 36px: approved deviation from DESIGN.md's 32 for this landing */
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
  text-wrap: balance;
}

h1 .brand {
  color: var(--brand-pink);
  font-weight: 600;
}

.lede {
  margin: 0;
  max-width: 36em;
  color: var(--zinc-600);
  font-size: 1.0625rem;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 24px 0 32px;
  }
  .panel-wrap {
    margin: 0;
    padding: 24px 0;
  }
  .panel {
    aspect-ratio: 1 / 1;
    max-height: 520px;
  }
  h1 {
    font-size: 3.5rem; /* 56px */
  }
  .lede {
    font-size: 1.125rem;
  }
}

/* ---------------------------------------------------------------- */
/* Buttons                                                           */
/* ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  /* White text on brand-pink-strong: 5.2:1. Never on brand-pink (3.8:1). */
  background: var(--brand-pink-strong);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease;
}

.btn:hover:not(:disabled) {
  background: #b8004f;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-hero {
  justify-self: start;
  width: 100%;
}

@media (min-width: 480px) {
  .btn-hero {
    width: auto;
    min-width: 240px;
  }
}

/* ---------------------------------------------------------------- */
/* Audience cards                                                    */
/* ---------------------------------------------------------------- */

.audience {
  display: grid;
  gap: 16px;
  padding: 16px 0;
}

.card {
  display: block;
  padding: 24px 22px 26px;
  border-radius: var(--radius-card);
  color: #fff;
  text-decoration: none;
  transition: transform 120ms ease;
}

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

.card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0.92;
}

/* White text on these two: 5.2:1 and 8.1:1 (DESIGN.md). */
.card-buyer {
  background: var(--brand-pink-strong);
}

.card-supplier {
  background: var(--brand-violet);
}

@media (min-width: 768px) {
  .audience {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .card {
    padding: 32px 28px;
  }
}

/* ---------------------------------------------------------------- */
/* Benefits                                                          */
/* ---------------------------------------------------------------- */

.benefits {
  padding: 24px 0 8px;
}

.benefit-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--brand-pink);
}

.benefit h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.benefit p {
  margin: 4px 0 0;
  color: var(--zinc-600);
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .benefit-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ---------------------------------------------------------------- */
/* Form                                                              */
/* ---------------------------------------------------------------- */

.form-section {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 0 0;
  scroll-margin-top: 16px;
}

.form-card {
  padding: 24px 18px;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 20px 50px rgb(42 0 96 / 0.08);
}

@media (min-width: 768px) {
  .form-card {
    padding: 32px;
  }
}

.form-card h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.form-lede {
  margin: 0 0 20px;
  color: var(--zinc-600);
  font-size: 0.9375rem;
}

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

label,
legend {
  display: block;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--zinc-600);
  line-height: 1.4;
}

input[type='text'],
input[type='email'],
input[type='tel'] {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid var(--zinc-300);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--zinc-900);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

input::placeholder {
  color: var(--zinc-500);
  opacity: 0.8;
}

input[aria-invalid='true'] {
  border-color: var(--stop);
}

.nums {
  font-variant-numeric: tabular-nums;
}

/* Role: two large pills acting as radio buttons. */
fieldset.role {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.segmented input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--zinc-300);
  border-radius: var(--radius-pill);
  color: var(--zinc-900);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.segmented input[type='radio']:checked + label {
  border-color: var(--brand-pink-strong);
  background: #fff0f6;
  color: var(--brand-pink-strong);
}

.segmented input[type='radio']:focus-visible + label {
  outline: 2px solid var(--brand-pink);
  outline-offset: 2px;
}

.segmented input[aria-invalid='true'] + label {
  border-color: var(--stop);
}

.error {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--stop);
}

.error:empty {
  display: none;
}

/* Consent ------------------------------------------------------- */

.consent {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--zinc-200);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent-row input[type='checkbox'] {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--brand-pink-strong);
}

.consent-row label {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--zinc-900);
}

.consent-details {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--zinc-500);
}

.btn-submit {
  width: 100%;
  margin-top: 20px;
}

/* Honeypot: off-screen rather than display:none, because some bots skip
   fields that are display:none and this one is meant to be filled in. */
.trap {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Result states -------------------------------------------------- */

.result {
  padding: 16px;
  border: 1px solid;
  border-radius: 16px;
}

.result h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

.result p {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.result-ok {
  border-color: rgb(21 128 61 / 0.25);
  background: var(--ok-wash);
}

.result-ok h2 {
  color: var(--ok);
}

.result-fail {
  margin-top: 16px;
  border-color: rgb(185 28 28 / 0.3);
  background: var(--stop-wash);
}

.result-fail h2 {
  font-size: 1rem;
  color: var(--stop);
}

[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- */
/* Footer                                                            */
/* ---------------------------------------------------------------- */

.note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--zinc-50);
  color: var(--zinc-500);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.site-footer {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 20px var(--gutter) 40px;
  border-top: 1px solid var(--zinc-200);
  color: var(--zinc-500);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.site-footer p {
  margin: 0 0 4px;
}

.site-footer a {
  color: var(--brand-pink-strong);
}
