/* ==========================================================================
   ITOROBOT — site.css
   Page-level sections: hero, catalogue, product detail, about, contact.
   ========================================================================== */

/* ---------- Hero carousel ---------- */
.hero {
  padding-top: 28px;
}

.hero__track {
  display: grid;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--sky);
}

.hero__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 520px;
  background: var(--slide-bg, var(--sky));
  opacity: 0;
  visibility: hidden;
  transform: scale(0.996);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.55s ease;
}

.hero__slide[data-slide="1"] {
  --slide-bg: #dcebfa;
}

.hero__slide[data-slide="2"] {
  --slide-bg: #f3e6da;
}

.hero__slide[data-slide="3"] {
  --slide-bg: #e6e0fa;
}

.hero__slide.is-active {
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hero__copy {
  display: flex;
  flex: 1 1 460px;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 56px 48px;
}

.hero__kicker {
  margin-bottom: 16px;
  color: #3a2fc4;
  font-size: 16px;
  font-weight: 600;
}

.hero__title {
  max-width: 15em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__text {
  max-width: 30em;
  margin-top: 22px;
  color: #2f3846;
  font-size: 18px;
}

.hero__cta {
  margin-top: 32px;
}

.hero__media {
  position: relative;
  flex: 1 1 460px;
  min-width: 0;
  min-height: 360px;
}

.hero__mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.hero__mosaic img {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
}

.hero__mosaic img:first-child {
  grid-row: span 2;
}

.hero__full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__soon {
  position: absolute;
  inset: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 2px dashed #8e86e8;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.28);
  color: #3a2fc4;
  text-align: center;
}

.hero__soon svg {
  width: 56px;
  height: 56px;
}

.hero__soon strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero__soon span {
  font-size: 15px;
}

.hero__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.hero__dots {
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: var(--pill);
  background: #b9bfc9;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero__dot[aria-current="true"] {
  width: 40px;
  background: var(--ink);
}

.hero__arrows {
  display: flex;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: background 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(20, 26, 36, 0.1);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.autoplay-toggle {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.autoplay-toggle:hover {
  background: #fff;
  box-shadow: 0 6px 16px rgba(20, 26, 36, 0.08);
}

/* ---------- Feature strips ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px 40px;
}

.feature {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.feature h2,
.feature h3 {
  font-size: 19px;
  font-weight: 600;
}

.feature p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Product grids ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.product-grid--catalogue {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-grid .product-card__cat {
  display: none;
}

.product-grid--catalogue .product-card__cat {
  display: block;
}

.product-grid--catalogue .product-card__name {
  font-size: 24px;
}

.product-grid--catalogue .product-card__body {
  padding: 22px 26px 26px;
  gap: 6px;
}

.product-grid--catalogue .product-card__lead {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

/* ---------- Page intro ---------- */
.page-intro {
  padding-top: 64px;
}

.page-intro h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.page-intro .lead {
  margin-top: 18px;
  max-width: 42em;
}

/* ---------- Product detail ---------- */
.product-detail {
  padding-top: 28px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 8px 0;
  color: #3a2fc4;
  font-size: 15px;
  font-weight: 600;
}

.breadcrumb svg {
  width: 16px;
  height: 16px;
}

.detail {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}

.detail__media {
  flex: 1 1 480px;
  min-width: 0;
}

.detail__frame {
  position: relative;
  max-width: 560px;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 40px 40px;
  overflow: hidden;
  background: var(--pf-bg, var(--sky));
}

.detail__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__frame--soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  border: 2px dashed #8e86e8;
  color: #3a2fc4;
  text-align: center;
}

.detail__frame--soon svg {
  width: 64px;
  height: 64px;
}

.detail__frame--soon strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

.detail__info {
  flex: 1 1 440px;
  min-width: 0;
}

.detail__cat {
  color: #3a2fc4;
  font-size: 15px;
  font-weight: 600;
}

.detail__name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.detail__lead {
  margin-top: 20px;
  color: var(--body);
  font-size: 18px;
}

.detail__cta {
  margin-top: 28px;
}

.colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 10px;
  border: 2px solid var(--line-2);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.color-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: #fff;
}

.color-chip__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(20, 26, 36, 0.25);
}

.specs {
  margin-top: 36px;
}

.specs h2 {
  font-size: 20px;
  font-weight: 600;
}

.spec-table {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.spec-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.spec-table th,
.spec-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #e6e9ee;
  text-align: left;
  vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 38%;
  font-weight: 600;
  color: var(--ink);
}

.spec-table td {
  color: var(--body);
}

/* ---------- Highlights / characters ---------- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.highlight-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.highlight-card__dot {
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--pf-dot, var(--accent));
}

.highlight-card h3 {
  font-size: 19px;
  font-weight: 600;
}

.highlight-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.character-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.character-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.character-card figcaption {
  padding: 16px 20px 20px;
}

.character-card strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.character-card span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
}

.styles-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #f3e6da;
}

.styles-band__copy {
  flex: 1 1 340px;
  min-width: 0;
  padding: 48px;
}

.styles-band__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.styles-band__copy p {
  margin-top: 14px;
  color: #2f3846;
}

.styles-band img {
  flex: 2 1 480px;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Coming soon ---------- */
.coming-card {
  margin-top: 32px;
  padding: 36px;
  border: 1px solid #cfc6f5;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}

.coming-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coming-card h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.coming-card p {
  margin-top: 10px;
  color: var(--body);
}

.coming-card .btn {
  margin-top: 22px;
}

/* ---------- About ---------- */
.about-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
}

.about-hero__copy {
  flex: 1 1 520px;
  min-width: 0;
}

.about-hero__copy h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.about-hero__copy .lead {
  margin-top: 24px;
  max-width: 36em;
}

.about-hero__media {
  display: flex;
  flex: 1 1 360px;
  justify-content: center;
  min-width: 0;
}

.about-hero__frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 40px 40px;
  background: var(--lilac);
}

.about-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
}

.cap {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.cap h3 {
  font-size: 19px;
  font-weight: 600;
}

.cap p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.oem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.oem-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
}

.oem-card--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.oem-card__tag {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.oem-card__text {
  margin-top: 12px;
  color: var(--body);
}

.oem-card--dark .oem-card__text {
  color: #c3c9d3;
}

.oem-card ul {
  margin-top: 20px;
  padding-left: 20px;
  color: var(--body);
}

.oem-card--dark ul {
  color: #c3c9d3;
}

.oem-card li + li {
  margin-top: 6px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

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

.process-step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
}

.process-step:last-child .process-step__num {
  background: var(--accent);
}

.process-step strong {
  font-size: 18px;
  font-weight: 600;
}

.process-step span:last-child {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Contact ---------- */
.contact-page {
  padding-top: 64px;
}

.contact-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px;
}

.contact-info {
  flex: 1 1 380px;
  min-width: 0;
}

.contact-info h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.contact-info .lead {
  margin-top: 20px;
  max-width: 30em;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.contact-line__label {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

.contact-line__value {
  display: inline-block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

a.contact-line__value:hover {
  color: var(--accent-dark);
}

.contact-video {
  margin-top: 32px;
}

.contact-video .video-panel {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}

.inquiry-card {
  flex: 1 1 520px;
  min-width: 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 20px;
  align-content: start;
}

.inquiry-form__head {
  grid-column: 1 / -1;
}

.inquiry-form__head h2 {
  font-size: 22px;
  font-weight: 600;
}

.inquiry-form__head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.inquiry-form__submit {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.inquiry-form__privacy {
  grid-column: 1 / -1;
  margin: 0;
  color: #7a8392;
  font-size: 13px;
}

.inquiry-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 8px;
}

.inquiry-success__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
}

.inquiry-success__icon svg {
  width: 26px;
  height: 26px;
}

.inquiry-success h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.inquiry-success p {
  max-width: 32em;
  color: var(--body);
}

/* ---------- Misc ---------- */
.pf-bg {
  background: var(--pf-bg);
}

.section-heading {
  margin-bottom: 36px;
}

.video-section .display {
  margin-bottom: 28px;
}

.error-page {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 96px 40px;
}

.error-page .lead {
  max-width: 34em;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .hero__copy {
    padding: 40px 32px;
  }

  .hero__slide {
    min-height: 0;
  }

  .hero__media {
    min-height: 320px;
  }

  .contact-layout {
    gap: 36px;
  }

  .inquiry-card {
    padding: 26px;
  }

  .styles-band__copy {
    padding: 32px;
  }
}

@media (max-width: 560px) {
  .hero__copy {
    padding: 30px 22px;
  }

  .hero__text {
    font-size: 16.5px;
  }

  .hero__media {
    min-height: 280px;
  }

  .hero__slide {
    border-radius: 28px;
  }

  .hero__track {
    border-radius: 28px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__controls {
    gap: 8px;
  }

  .autoplay-toggle {
    padding: 8px 12px;
    font-size: 13px;
  }

  .detail {
    gap: 28px;
  }

  .detail__frame {
    aspect-ratio: 1 / 1;
  }

  .spec-table th {
    width: 42%;
  }

  .oem-card,
  .coming-card,
  .highlight-card {
    padding: 24px;
  }

  .process-list {
    gap: 20px;
  }

  .about-hero {
    gap: 28px;
  }

  .contact-info {
    flex-basis: 100%;
  }

  .inquiry-card {
    padding: 20px;
    border-radius: 26px;
  }

  .page-intro {
    padding-top: 44px;
  }
}
