/* QUDENOQ static site — single stylesheet (R2). Mobile first, no frameworks. */

:root {
  --color-background: 255, 255, 255;
  --color-foreground: 18, 18, 18;
  --color-button: 18, 18, 18;
  --color-button-text: 255, 255, 255;
  --color-secondary-button: 255, 255, 255;
  --color-secondary-button-text: 18, 18, 18;
  --color-link: 18, 18, 18;
  --color-border: rgba(18, 18, 18, 0.14);
  --color-muted: rgba(18, 18, 18, 0.72);
  --color-surface-alt: #f3f3f3;
  --color-dark-bg: #242833;
  --color-dark-fg: #ffffff;

  --font-body-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading-weight: 700;

  --page-width: 120rem;
  --page-padding: 1.6rem;
}

@media screen and (min-width: 750px) {
  :root {
    --page-padding: 4rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  font-size: 62.5%; /* 1rem = 10px, consistent with all sizes below */
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  font-family: var(--font-body-family);
  font-size: 1.6rem;
  letter-spacing: 0.04rem;
  line-height: 1.6;
}

@media screen and (min-width: 750px) {
  body {
    font-size: 1.7rem;
  }
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: rgb(var(--color-link));
  text-underline-offset: 0.3rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading-family);
  font-weight: var(--font-heading-weight);
  line-height: 1.2;
  margin: 0 0 1.2rem;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1.2rem;
}

:focus-visible {
  outline: 0.2rem solid rgb(var(--color-foreground));
  outline-offset: 0.2rem;
}

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

.page-width {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

main {
  flex: 1 0 auto;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.8rem;
  padding: 1.2rem 2.4rem;
  border: 0.1rem solid rgb(var(--color-button));
  background: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  opacity: 0.9;
}

.button--secondary {
  background: rgb(var(--color-secondary-button));
  color: rgb(var(--color-secondary-button-text));
}

/* --- Demo banner / announcement / header -------------------------------- */

.demo-banner {
  padding: 0.6rem var(--page-padding);
  background: #f6c945;
  color: #231b00;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.announcement {
  padding: 0.9rem var(--page-padding);
  background: var(--color-dark-bg);
  color: var(--color-dark-fg);
  font-size: 1.4rem;
  text-align: center;
}

.announcement a {
  color: inherit;
}

.site-header {
  border-bottom: 0.1rem solid var(--color-border);
  background: rgb(var(--color-background));
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 6.4rem;
}

.site-header__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  min-height: 4.8rem;
  padding: 0 1.2rem;
  border: 0.1rem solid rgba(18, 18, 18, 0.25);
  background: transparent;
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

.site-header__logo {
  margin-right: auto;
  color: inherit;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.18rem;
  text-decoration: none;
}

.site-header__nav {
  display: none;
  order: 3;
  width: 100%;
  padding: 0 0 1.2rem;
}

.site-header__nav a {
  display: flex;
  align-items: center;
  min-height: 4.8rem;
  color: inherit;
  font-size: 1.6rem;
  text-decoration: none;
  border-top: 0.1rem solid rgba(18, 18, 18, 0.08);
}

body[data-nav-open='true'] .site-header__inner {
  flex-wrap: wrap;
}

body[data-nav-open='true'] .site-header__nav {
  display: block;
}

@media screen and (min-width: 750px) {
  .site-header__menu-toggle {
    display: none;
  }

  .site-header__nav {
    display: flex;
    order: 0;
    width: auto;
    gap: 2rem;
    padding: 0;
  }

  .site-header__nav a {
    min-height: 4.4rem;
    border: 0;
  }
}

/* --- Sections ----------------------------------------------------------- */

.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 2.4rem 0 4rem;
}

.section--alt {
  background: var(--color-surface-alt);
}

.section__title {
  margin: 0 0 2rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.hero {
  padding: 5.6rem 0;
  background: var(--color-dark-bg);
  color: var(--color-dark-fg);
  text-align: center;
}

.hero h1 {
  margin: 0 auto 1.6rem;
  max-width: 18ch;
  color: var(--color-dark-fg);
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 auto 2.4rem;
  max-width: 52ch;
  font-size: 1.7rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.hero .button {
  background: var(--color-dark-fg);
  color: #121212;
  border-color: var(--color-dark-fg);
}

/* --- Product cards ------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

@media screen and (min-width: 750px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.card {
  display: flex;
  flex-direction: column;
  border: 0.1rem solid var(--color-border);
  background: rgb(var(--color-background));
}

.card__media {
  aspect-ratio: 1 / 1;
  background: #f1f1f1;
}

.card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.2rem;
}

.card__title {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.35;
}

.card__text {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.card__link {
  margin-top: auto;
  padding-top: 0.8rem;
  color: inherit;
  font-size: 1.5rem;
  font-weight: 600;
}

/* --- Steps -------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 1.6rem;
}

@media screen and (min-width: 750px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
  }
}

.step h3 {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
}

.step p {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.55;
  color: var(--color-muted);
}

/* --- Product page ------------------------------------------------------- */

.breadcrumb {
  padding: 1.6rem 0 0;
  font-size: 1.4rem;
  color: rgba(18, 18, 18, 0.65);
}

.breadcrumb a {
  color: inherit;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.4rem;
  padding: 2rem 0 4rem;
}

@media screen and (min-width: 750px) {
  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
}

.product__media {
  aspect-ratio: 1 / 1;
  border: 0.1rem solid var(--color-border);
  background: #f1f1f1;
}

.product__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.product__vendor {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.65);
}

.product h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1.15;
}

.product__draft-note {
  margin: 0 0 1.2rem;
  font-size: 1.4rem;
  color: var(--color-muted);
}

.product__description {
  font-size: 1.6rem;
  line-height: 1.6;
}

.product__demo-image {
  margin: 0.4rem 0 0;
  font-size: 1.3rem;
  color: var(--color-muted);
}

.related {
  padding: 3.2rem 0 4.8rem;
  border-top: 0.1rem solid var(--color-border);
}

/* --- eMAG purchase entry ------------------------------------------------ */

.emag {
  margin: 1.6rem 0 0.8rem;
}

.emag__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  min-height: 5.2rem;
  padding: 1.2rem 1.8rem;
  font-size: 1.6rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.emag__note {
  margin: 0.8rem 0 0;
  font-size: 1.4rem;
  color: var(--color-muted);
}

.emag__pending {
  padding: 1.4rem 1.6rem;
  border: 0.1rem dashed rgba(18, 18, 18, 0.4);
  border-radius: 1rem;
  background: rgba(18, 18, 18, 0.03);
}

.emag__pending-title {
  margin: 0 0 0.6rem;
  font-size: 1.55rem;
  font-weight: 700;
}

.emag__pending-body {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* --- Accordions --------------------------------------------------------- */

.accordion {
  margin-top: 1.4rem;
  border-top: 0.1rem solid var(--color-border);
}

.accordion__item {
  border-bottom: 0.1rem solid var(--color-border);
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.8rem;
  padding: 1.2rem 0;
  font-size: 1.7rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__icon {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.4rem;
  border-right: 0.2rem solid currentColor;
  border-bottom: 0.2rem solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.accordion__item[open] .accordion__icon {
  transform: rotate(225deg);
}

.accordion__body {
  padding: 0 0 1.8rem;
  font-size: 1.6rem;
  line-height: 1.55;
}

.accordion__body > :first-child {
  margin-top: 0;
}

.accordion__body > :last-child {
  margin-bottom: 0;
}

.pending-text {
  margin: 0;
  color: var(--color-muted);
}

/* --- Support page ------------------------------------------------------- */

.support {
  max-width: 78rem;
  padding: 4rem 0 5.6rem;
}

.support h1 {
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1.12;
}

.support h2 {
  margin: 3.2rem 0 1.2rem;
  font-size: 2.2rem;
}

/* --- 404 ---------------------------------------------------------------- */

.notfound {
  padding: 6rem 0 8rem;
  text-align: center;
}

.notfound h1 {
  font-size: clamp(2.8rem, 7vw, 4.4rem);
}

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

.site-footer {
  flex-shrink: 0;
  padding: 3.2rem 0;
  border-top: 0.1rem solid var(--color-border);
  background: #fafafa;
}

.site-footer__brand {
  margin: 0 0 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.16rem;
}

.site-footer p {
  margin: 0 0 0.6rem;
  font-size: 1.45rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
