/* ==========================================================================
   X AUTO — Coming soon
   Tokens follow X AUTO Visual Style Guide v1.0 (Oct 2026)
   ========================================================================== */

:root {
  /* Colour */
  --carbon:   #171717;
  --ivory:    #F7F5EF;
  --white:    #FFFFFF;
  --stone:    #D9D2C5;
  --graphite: #65635E;

  --success:  #27634B;
  --error:    #A12E32;
  --focus:    #295E8E;

  --line: rgba(23, 23, 23, 0.14);

  /* Type: Inter for Latin, Noto Sans Armenian for Armenian text.
     Inter has no Armenian glyphs, so Armenian falls through to Noto. */
  --font: "Inter", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Scale (mobile → desktop, from the guide's type table) */
  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);     /* 40 → 64 */
  --lh-display: 1.08;
  --fs-h2:      clamp(1.625rem, 1.3rem + 1.2vw, 2rem);   /* 26 → 32 */
  --fs-h3:      clamp(1.375rem, 1.3rem + 0.3vw, 1.5rem); /* 22 → 24 */
  --fs-body:    1rem;                                    /* 16 / 24 */
  --fs-label:   0.875rem;                                /* 14 / 20 */
  --fs-caption: 0.75rem;                                 /* 12 / 18 */

  /* Space */
  --gutter: 16px;
  --container: 1200px;
  --radius: 2px;
}

/* Base ------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--carbon);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1200px) {
  :root { --gutter: 48px; }
}

/* Typography ------------------------------------------------------------- */

.display, .h2, .h3 {
  margin: 0;
  letter-spacing: -0.02em; /* Latin headlines only; see :lang(hy) below */
}

.display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 500; }
.h2      { font-size: var(--fs-h2); line-height: 1.25; font-weight: 500; }
.h3      { font-size: var(--fs-h3); line-height: 1.33; font-weight: 500; }

.body    { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--graphite); }
.label   { font-size: var(--fs-label); line-height: 1.43; font-weight: 500; }
.caption { margin: 0; font-size: var(--fs-caption); line-height: 1.5; color: var(--graphite); }

.lead {
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--graphite);
  max-width: 34em;
}

/* Guide: no forced uppercase or letterspacing in Armenian.
   The page is lang="hy", so headline tracking is reset here and
   Armenian headings use Noto's 700 weight. */
:lang(hy) .display,
:lang(hy) .h2,
:lang(hy) .h3 { letter-spacing: 0; }

:lang(hy) .display { font-weight: 700; }

/* Uppercase treatment is reserved for Latin-only labels */
.site-footer__meta {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--carbon);
  color: var(--ivory);
  padding: 10px 14px;
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* Icons: 24 grid, 1.75 stroke, rounded caps/joins, inherit text colour */
.icon {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-block: 16px;
}

.brand { display: inline-flex; }
.brand:hover { text-decoration: none; }

/* Guide: website header lockup min 120 px visible width, clear space 0.25 H */
.brand__lockup {
  width: 150px;
  height: auto;
  padding: 6px 0;
}

.site-header__link {
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.43;
  padding: 12px 4px; /* 48px target */
}

@media (min-width: 768px) {
  .site-header__inner { min-height: 88px; }
  .brand__lockup { width: 170px; }
}

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

.hero {
  padding-block: clamp(48px, 8vw, 112px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.43;
  color: var(--graphite);
}

.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--carbon);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.6); opacity: 0.45; }
}

.display { max-width: 14em; }

.lead { margin-top: 4px; }

/* Hero media: photo with the approved Symbol-on-Stone tile as a badge.
   X visible width is 72% of the tile, per the icon spec. */
.hero__media {
  position: relative;
  margin: 0;
  width: 100%;
}

.hero__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 26% 58%;
  background: var(--stone);
}

.hero__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 72px;
  aspect-ratio: 1 / 1;
  background: var(--stone);
  display: grid;
  place-items: center;
}

.hero__badge img { width: 72%; height: auto; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero__photo { aspect-ratio: 4 / 5; }
  .hero__badge { left: 24px; bottom: 24px; width: 88px; }
}

/* Notify form ------------------------------------------------------------ */

.notify {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
}

.notify__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input {
  appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  color: var(--carbon);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input::placeholder { color: var(--graphite); opacity: 0.7; }

.input:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(41, 94, 142, 0.25);
}

.input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(161, 46, 50, 0.18);
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 500;
  color: var(--ivory);
  background: var(--carbon);
  border: 1px solid var(--carbon);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.button:hover { background: #000; text-decoration: none; }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.button[disabled] { opacity: 0.6; cursor: progress; }

.button .icon { transition: transform 150ms ease; }
.button:hover .icon { transform: translateX(2px); }

.notify__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.notify__status {
  margin: 0;
  min-height: 1.5em;
  font-size: var(--fs-label);
  line-height: 1.43;
  font-weight: 500;
}

.notify__status.is-error   { color: var(--error); }
.notify__status.is-success { color: var(--success); }

.notify.is-done .notify__row,
.notify.is-done .label,
.notify.is-done #notify-help { display: none; }

.notify.is-done .notify__status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-body);
}

@media (min-width: 540px) {
  .notify__row { flex-direction: row; }
  .notify__row .input { flex: 1 1 auto; }
}

/* Paths: in stock / to order --------------------------------------------- */

.paths {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 96px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.paths__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.path {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.path__media {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--stone);
  margin-bottom: 10px;
}

.path__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.path:hover .path__media img { transform: scale(1.03); }

.chip {
  align-self: flex-start;
  font-size: var(--fs-label);
  line-height: 1.43;
  font-weight: 500;
  color: var(--carbon);
  background: var(--stone);
  padding: 4px 10px;
  border-radius: var(--radius);
}

.path .h3 { margin-top: 4px; }

@media (min-width: 768px) {
  .paths__list { grid-template-columns: repeat(2, 1fr); gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .path__media img { transition: none; }
  .path:hover .path__media img { transform: none; }
}

/* Brands strip ----------------------------------------------------------- */

.brands {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 96px);
}

.brands__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.brand-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--stone);
}

.brand-tile__name {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-label);
  line-height: 1.43;
  font-weight: 500;
  color: var(--carbon);
}

@media (min-width: 768px) {
  .brands__list { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* Features --------------------------------------------------------------- */

.features {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 80px);
}

.features__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.feature__index {
  font-size: var(--fs-caption);
  line-height: 1.5;
  font-weight: 500;
  color: var(--graphite);
  letter-spacing: 0.08em; /* Latin numerals only */
}

.feature .h3 { margin-top: 4px; }

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

/* Footer — the "Reverse" application: ivory lockup on Carbon ------------- */

.site-footer {
  background: var(--carbon);
  color: var(--ivory);
  margin-top: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-block: clamp(48px, 6vw, 80px);
}

.site-footer__brand img {
  width: 150px;
  height: auto;
  padding: 6px 0;
}

.site-footer__tagline {
  margin: 20px 0 0;
  color: rgba(247, 245, 239, 0.72);
  max-width: 28em;
}

.site-footer__contact .h3 { margin-bottom: 16px; }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 28px;
}

.contact-list a { padding-block: 10px; } /* 48px target with line-height */

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-block: 20px;
  border-top: 1px solid rgba(247, 245, 239, 0.16);
}

.site-footer__bottom .caption { color: rgba(247, 245, 239, 0.72); }

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__contact { justify-self: end; min-width: 260px; }
}

/* Entrance motion -------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero__content > * {
    opacity: 0;
    transform: translateY(10px);
    animation: rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .js .hero__content > :nth-child(1) { animation-delay: 60ms; }
  .js .hero__content > :nth-child(2) { animation-delay: 140ms; }
  .js .hero__content > :nth-child(3) { animation-delay: 220ms; }
  .js .hero__content > :nth-child(4) { animation-delay: 300ms; }

  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}

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