/* =========================================================================
   ISAA — Ամպային ծառայությունների ձեռքբերման հարթակ ("coming soon")
   Henaket («Հենակետ») design tokens, aligned verbatim to the dev library
   @henaket/shared (theme.ts). Light surface + blue header bar — same layout
   model as the checklist app (blue header, light content area).
   ========================================================================= */
:root {
  /* Brand colours — theme.colors.* */
  --c-primary:      #355C8C;   /* primary = blue800 */
  --c-primary-900:  #2A4A70;   /* blue900 */
  --c-primary-100:  #F0F4F9;   /* blue100 */
  --c-primary-200:  #DDE5EE;   /* blue200 */
  --c-border:       #B8C6D8;   /* colorBorder = blue400 */
  --c-green:        #56B7B2;   /* secondary = green800 */
  --c-green-900:    #45928E;   /* green900 (icon on light, better contrast) */

  /* Buttons — theme.colors.button* (green, white text passes WCAG AA) */
  --c-btn:        #167F16;     /* buttonDefault */
  --c-btn-hover:  #1B691B;     /* buttonHover */
  --c-btn-active: #155115;     /* buttonActive */

  /* Focus indicator — theme.colors.accessibility, boxShadows.accessibilityOutline */
  --c-focus: #BD13B8;
  --focus-width: 3px;

  /* Surfaces / text */
  --c-bg:         #FFFFFF;     /* backgroundWhite */
  --c-text:       #1A1A1A;     /* text800 */
  --c-text-muted: #454545;     /* text700 */
  --c-on-dark:    #FFFFFF;     /* text100 — on the blue header only */

  /* Spacing — 8px base scale (§36), 4px fine step (§37) */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px; --s-6: 48px; --s-7: 64px;

  /* Typography — theme.fontFamily.sans */
  --font: "Noto Sans", "Noto Sans Armenian", Arial, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale — antd Typography + §48–50 (H1 40 / lead 20 / body 16 / small 14) */
  --h1: 40px; --h5: 16px;
  --text-lead: 20px; --text-body: 16px; --text-small: 14px;

  /* Box shadows — theme.boxShadows */
  --shadow-card: 0 2px 4px 0 #0000000D;
  --shadow-menu: 0px 4px 8px 0px #0000004D;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;            /* no horizontal scroll — §32 */
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Container — fluid, capped (responsive, §32–35) */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--s-4);
}

/* ---- Accessibility: focus + skip link ---------------------------------- */
:where(a, button):focus-visible {
  outline: var(--focus-width) solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -64px;
  z-index: 10;
  background: var(--c-bg);
  color: var(--c-primary);
  padding: var(--s-2) var(--s-3);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus { top: var(--s-3); }

/* ---- Top accent bar ---------------------------------------------------- */
.topbar {
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-green) 100%);
}

/* ---- Header (blue bar, like the checklist) ----------------------------- */
.site-header { background: var(--c-primary); color: var(--c-on-dark); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-3);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 32px; width: auto; }

/* Language dropdown — Henaket pattern, mirrored from the checklist */
.header-controls { display: flex; align-items: center; gap: var(--s-2); }
.lang-dd { position: relative; }
.lang-dd > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 4px;
  color: var(--c-on-dark);
  font: inherit;
  white-space: nowrap;
}
.lang-dd > summary::-webkit-details-marker { display: none; }
.lang-dd > summary .caret { font-size: 11px; }
.lang-dd[open] > summary { background: rgba(255, 255, 255, .14); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 168px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  box-shadow: var(--shadow-menu);
  z-index: 60;
}
.lang-menu li { margin: 0; }
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  padding: 8px 12px;
  font: inherit;
  color: var(--c-text);
  cursor: pointer;
  border-radius: 4px;
}
.lang-menu button:hover { background: var(--c-primary-100); }
.lang-menu button[aria-current="true"] { font-weight: 600; color: var(--c-primary); }
.flag {
  width: 20px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

/* ---- Hero (light) ------------------------------------------------------ */
.hero {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-primary-100) 100%);
  color: var(--c-text);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(var(--s-6), 10vh, 112px);
  max-width: 760px;
}

/* Henaket "square tag" — secondary green, 4px radius (squared), per dev library */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--c-green);
  color: #11302F;                 /* dark teal-ink on green — WCAG AA */
  font-weight: 600;
  font-size: var(--text-small);
  letter-spacing: .02em;
  padding: 6px var(--s-3);
  border-radius: 4px;
  margin-bottom: var(--s-4);
}

.hero-title {
  margin: 0 0 var(--s-3);
  font-weight: 700;
  font-size: clamp(30px, 5vw, var(--h1));   /* Henaket H1 = 40px ceiling */
  line-height: 1.15;
  color: var(--c-text);
}
.hero-lead {
  margin: 0 0 var(--s-4);
  font-size: var(--text-lead);    /* §49 = 20px */
  font-weight: 500;
  color: var(--c-text);
  max-width: 46ch;
}
.hero-text {
  margin: 0 0 var(--s-6);
  font-size: var(--text-body);    /* §50 = 16px */
  line-height: 1.6;
  color: var(--c-text-muted);
  max-width: 60ch;
}

/* ---- Buttons ----------------------------------------------------------- */
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: inherit;
  font-size: var(--text-body);
  font-weight: 600;
  text-decoration: none;
  padding: 12px var(--s-4);
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 100ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--c-btn);
  color: var(--c-on-dark);
  border-color: var(--c-btn);
}
.btn-primary:hover { background: var(--c-btn-hover); border-color: var(--c-btn-hover); }
.btn-primary:active { background: var(--c-btn-active); }
.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-border);
}
.btn-ghost:hover { background: var(--c-primary-100); border-color: var(--c-primary); }

/* Soft decorative glow — green secondary, very low opacity on light */
.hero-glow {
  position: absolute;
  z-index: 0;
  right: -180px;
  bottom: -220px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-green) 0%, transparent 70%);
  opacity: 0.10;
  pointer-events: none;
}

/* ---- Inline SVG icons (tag + buttons) ---------------------------------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
}
.tag .icon { width: 16px; height: 16px; }
.btn .icon { width: 20px; height: 20px; }

/* ---- "What's coming" feature list (icon + label) ----------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-4);
  margin: var(--s-7) 0 0;
  padding: 0;
  list-style: none;
}
.feature { display: flex; align-items: flex-start; gap: var(--s-3); }
.feature-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--c-primary-100);     /* light-blue tile */
  border: 1px solid var(--c-primary-200);
  color: var(--c-green-900);            /* secondary-green icon, AA on light tile */
}
.feature-icon svg { width: 26px; height: 26px; display: block; }
.feature strong {
  display: block;
  font-weight: 600;
  font-size: var(--h5);                 /* 16px */
  color: var(--c-text);
  margin-bottom: 2px;
}
.feature span {
  display: block;
  font-size: var(--text-small);         /* 14px */
  line-height: 1.5;
  color: var(--c-text-muted);
}

/* ---- Footer (light) ---------------------------------------------------- */
.site-footer {
  background: var(--c-primary-100);
  border-top: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: var(--text-small);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding-block: var(--s-4);
}
.site-footer a { color: var(--c-primary); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }

/* ---- Motion preference ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---- Small screens ----------------------------------------------------- */
@media (max-width: 480px) {
  .brand-logo { height: 26px; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { width: 100%; }
}
