/* BYOM — Technology page specific styles */

/* ── The Device / Intro Section ──────────────────── */
.intro-section { padding: 100px 24px; background: var(--white); }
.intro-inner { max-width: 1100px; margin: 0 auto; }
.intro-text { width: 100%; margin-bottom: 56px; }
.intro-text .section-label {
  font-family: 'Canela', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #F2CE18;
  margin-bottom: 12px;
  line-height: 1.1;
}
.intro-text h2 {
  font-family: 'Canela', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--mid);
  margin-bottom: 28px;
  max-width: 100%;
}
.intro-text h2 em { color: #F2CE18; font-style: italic; }
.intro-text p { font-size: 16px; line-height: 1.8; color: var(--mid); margin-bottom: 16px; }

/* ── Specifications ───────────────────────────────── */
.specs-section { padding: 100px 24px; background: var(--ivory); }
.specs-inner { max-width: 1040px; margin: 0 auto; }
.specs-section .section-label {
  font-family: 'Canela', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #F2CE18;
  margin-bottom: 10px;
  line-height: 1.1;
}
.specs-section h2 {
  font-family: 'Canela', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--mid);
  margin-bottom: 48px;
  max-width: 100%;
}
.specs-section h2 em { color: #F2CE18; font-style: italic; }
.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.spec-card { background: var(--white); border-radius: 20px; padding: 36px 30px; border: 1px solid rgba(200,197,0,.15); }
.spec-card h3 { font-family: 'Canela', 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 16px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: #F2CE18; margin-bottom: 20px; }
.spec-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(26,26,20,.07); gap: 16px; }
.spec-row:last-child { border-bottom: none; }
.spec-label { font-size: 13px; font-weight: 400; color: var(--light); flex: 1; }
.spec-value { font-size: 13px; font-weight: 500; color: var(--text); text-align: right; flex: 1; }

/* ── What Makes It Different ──────────────────────── */
.differentiators { padding: 100px 24px; background: var(--cream); border-top: 1px solid rgba(200,197,0,.15); }
.diff-inner { max-width: 1040px; margin: 0 auto; text-align: center; }
.diff-inner h2 { color: var(--text); margin-bottom: 16px; }
.diff-inner h2 em { color: #F2CE18; font-style: italic; }
.diff-inner > p { color: var(--mid); max-width: 560px; margin: 0 auto 56px; font-size: 16px; line-height: 1.7; }
.diff-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.diff-item { background: var(--white); border: 1px solid rgba(200,197,0,.18); border-radius: 18px; padding: 28px 24px; }
.diff-icon { width: 40px; height: 40px; background: rgba(245,242,51,.25); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.diff-icon svg { width: 20px; height: 20px; fill: none; stroke: #F2CE18; stroke-width: 1.5; }
.diff-item h4 { font-family: 'Urbanist', sans-serif; font-style: normal; font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.diff-item p { font-size: 14px; line-height: 1.65; color: var(--mid); }

/* ── Integrate / Partnership CTA ─────────────────── */
.integrate-section { padding: 100px 24px; background: var(--cream); }
.integrate-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.integrate-inner .section-label {
  font-family: 'Canela', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #F2CE18;
  margin-bottom: 10px;
  line-height: 1.1;
}
.integrate-inner h2 {
  font-family: 'Canela', 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--mid);
  margin-bottom: 28px;
  max-width: 100%;
}
.integrate-inner h2 em { color: #F2CE18; font-style: italic; }
.integrate-inner p { font-size: 17px; line-height: 1.75; color: var(--mid); max-width: 600px; margin: 0 auto 36px; }

/* ── BYOM Adaptive Technology Widget ─────────────── */
:root {
  --byom-yellow: #FACB01;
  --byom-yellow-dark: #C9A000;
  --byom-cream: #FFFEF7;
  --byom-cream2: #FFF8E1;
  --byom-ink: #1A1A1A;
  --byom-ink2: #3A3A3A;
  --byom-ink3: #7A7A6A;
  --byom-border: rgba(212,168,0,.18);
}

.byom-widget-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.byom-top-card {
  display: flex; flex-direction: row; align-items: stretch;
  border: 1px solid var(--byom-border);
  border-radius: 18px; overflow: hidden;
  background: var(--byom-cream);
}
.byom-body-panel {
  flex: 0 0 44%;
  border-right: 1px solid var(--byom-border);
  border-bottom: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 12px 14px;
}
.byom-body-panel svg { width: 100%; max-width: 220px; display: block; }
.byom-wave-panel {
  flex: 1; display: flex; flex-direction: column;
  padding: 24px 24px 16px;
}
.byom-wave-box {
  flex: 1; background: var(--byom-cream2);
  border-radius: 10px; border: 1px solid var(--byom-border);
  padding: 14px 16px 10px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 160px;
}
.byom-wave-legend { display: flex; gap: 14px; justify-content: flex-end; }
.byom-wleg { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--byom-ink3); font-weight: 400; }
.byom-wleg-line { width: 20px; height: 2px; border-radius: 2px; flex-shrink: 0; }
canvas#byom-wv { display: block; width: 100%; flex: 1; min-height: 100px; }
.byom-wave-note { font-size: 9.5px; letter-spacing: .6px; color: var(--byom-ink3); text-align: center; font-style: italic; }

.byom-steps-card {
  border: 1px solid var(--byom-border);
  border-radius: 18px; background: var(--byom-cream);
  overflow: hidden;
}
.byom-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 22px;
  border-bottom: .5px solid rgba(26,26,26,0.05);
  cursor: pointer; transition: background .22s;
}
.byom-step:last-child { border-bottom: none; }
.byom-step.byom-active { background: var(--byom-cream2); }
.byom-step-num {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid rgba(26,26,26,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 500; color: var(--byom-ink3);
  margin-top: 1px; transition: all .22s;
}
.byom-step.byom-active .byom-step-num {
  background: var(--byom-yellow); color: var(--byom-ink);
  border-color: var(--byom-yellow); font-weight: 600;
}
.byom-step-body { flex: 1; }
.byom-step-title {
  font-size: 14px; font-weight: 500; color: var(--byom-ink3);
  line-height: 1.4; transition: color .22s;
}
.byom-step.byom-active .byom-step-title { color: var(--byom-ink); font-weight: 600; }
.byom-step-desc {
  font-size: 12px; color: var(--byom-ink3); line-height: 1.65;
  max-height: 0; overflow: hidden;
  transition: max-height .32s ease; margin-top: 0;
}
.byom-step.byom-active .byom-step-desc { max-height: 80px; margin-top: 5px; }

@keyframes byom-sig-out {
  0%   { stroke-dashoffset: 280; opacity: 0 }
  7%   { opacity: 1 }
  85%  { opacity: 1 }
  100% { stroke-dashoffset: 0; opacity: 0 }
}
@keyframes byom-sig-in {
  0%   { stroke-dashoffset: 0; opacity: 0 }
  7%   { opacity: 1 }
  85%  { opacity: 1 }
  100% { stroke-dashoffset: -280; opacity: 0 }
}
.byom-so  { stroke-dasharray: 11 7; animation: byom-sig-out 5.2s ease-in-out infinite; }
.byom-so2 { stroke-dasharray: 11 7; animation: byom-sig-out 5.2s ease-in-out infinite 1.1s; }
.byom-si  { stroke-dasharray: 11 7; animation: byom-sig-in  5.2s ease-in-out infinite 2.6s; }
.byom-si2 { stroke-dasharray: 11 7; animation: byom-sig-in  5.2s ease-in-out infinite 3.5s; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .intro-section { padding: 60px 20px; }
  .specs-section { padding: 60px 20px; }
  .differentiators { padding: 60px 20px; }
  .integrate-section { padding: 60px 20px; }
  .specs-grid, .diff-items { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .byom-top-card { flex-direction: column; }
  .byom-body-panel { flex: none; border-right: none; border-bottom: 1px solid var(--byom-border); }
}

@media (max-width: 480px) {
  .intro-section { padding: 48px 16px; }
  .specs-section { padding: 48px 16px; }
  .differentiators { padding: 48px 16px; }
  .integrate-section { padding: 48px 16px; }
  .spec-card { padding: 24px 20px; }
  .diff-item { padding: 20px 18px; }
}

/* Show hero video on mobile — overrides the global display:none at 768px
   opacity:1 bypasses JS fade-in; bottom:-6px clips grey bottom-edge artefact */
@media (max-width: 768px) {
  #page-hero-video { display: block !important; opacity: 1 !important; transition: none !important; bottom: -6px; }
}
