/* Case study: One Tap Away — built on top of style.css (fonts, base colors,
   nav, see-all-btn). This file only adds this page's long-form layout.
   Component naming uses an "ota-" prefix, kept independent from the
   GameKit case study stylesheets so the two pages can evolve separately. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/gamekit/inter-body.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

html:has(body.ota-body) {
  scroll-behavior: smooth;
  background: #ffffff;
}

body.ota-body {
  background: #ffffff;
}

.ota-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.ota-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ota-nav-back-icon {
  width: 20px;
  height: 20px;
  transform: scaleX(-1);
}

.ota-page .nav {
  max-width: 1040px;
}

/* --- hero ---------------------------------------------------------- */

.ota-hero {
  margin-top: 40px;
}

.ota-tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.ota-tag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: #ff3d32;
  color: #111111;
  font-family: "Optician Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.ota-tag-outline {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: transparent;
  border: 1.5px solid #111111;
  color: #111111;
  font-family: "Optician Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.ota-hero-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.ota-hero-logo {
  display: block;
  height: 48px;
  width: auto;
  margin: 0 0 24px;
}

.ota-h1 {
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 24px;
  color: #111111;
}

.ota-lede {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #111111;
  max-width: 540px;
  margin: 0 0 40px;
}

.ota-meta-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.ota-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ota-meta-label {
  font-family: "Optician Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff3d32;
}

.ota-meta-value {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #111111;
}

/* --- placeholder visuals -------------------------------------------- */

.ota-placeholder {
  border: 1.5px dashed #d0d0d0;
  border-radius: 16px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  color: #999999;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.ota-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ota-hero-visual-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 61, 50, 0.14) 0%, rgba(255, 61, 50, 0) 70%);
  z-index: 0;
}

.ota-hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  height: auto;
}

.ota-hero-visual-note {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-size: 12px;
  color: #ff3d32;
  text-align: center;
  margin: 12px 0 0;
}

/* --- growth stats card ------------------------------------------------ */

.ota-growth-card {
  position: relative;
  background: #f5f5f5;
  border-radius: 0 16px 16px 16px;
  padding: 32px 24px 28px;
  margin-top: 48px;
  box-sizing: border-box;
}

.ota-growth-label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  background: #f5f5f5;
  border-radius: 8px 8px 0 0;
  padding: 9px 16px;
  font-family: "Optician Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff3d32;
  margin: 0;
  white-space: nowrap;
}

.ota-growth-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ota-growth-stats .ota-stat strong {
  font-size: 32px;
  color: #ff3d32;
  margin-bottom: 10px;
}

.ota-growth-stats .ota-stat-label {
  font-size: 13px;
  font-weight: 700;
}

.ota-growth-stats .ota-stat-detail {
  font-size: 12px;
}

/* --- the mandate (north-star target) ----------------------------------- */

.ota-mandate-card {
  background: #111111;
  border-radius: 16px;
  padding: 48px 40px;
  margin-top: 64px;
  box-sizing: border-box;
}

.ota-mandate-stat {
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 64px;
  line-height: 1;
  color: #ffffff;
  margin: 0 0 28px;
}

.ota-mandate-arrow {
  width: 40px;
  height: 40px;
  margin: 0 8px;
  vertical-align: middle;
}

.ota-mandate-card .ota-section-label {
  margin: 0 0 12px;
}

.ota-mandate-card .ota-h2 {
  color: #ffffff;
}

.ota-mandate-card .ota-p {
  color: #cccccc;
  max-width: 620px;
}

.ota-stat strong {
  display: block;
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 42px;
  color: #111111;
  line-height: 1;
  margin-bottom: 12px;
}

.ota-stat-label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #111111;
  margin-bottom: 4px;
}

.ota-stat-detail {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #777777;
}

/* --- sections -------------------------------------------------------- */

.ota-section {
  margin-top: 110px;
}

.ota-section-label {
  font-family: "Optician Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff3d32;
  margin: 0 0 12px;
}

.ota-h2 {
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 20px;
  color: #111111;
}

.ota-p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #111111;
  max-width: 520px;
  margin: 0 0 24px;
}

.ota-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* filled CTA pill */

.ota-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111111;
  color: #ffffff;
  font-family: "Optician Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.ota-cta:hover {
  background: #ff3d32;
}

/* text link with underline */

.ota-link {
  display: inline-block;
  font-family: "Optician Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #111111;
  text-decoration: none;
  border-bottom: 1.5px solid #111111;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ota-link:hover {
  color: #ff3d32;
  border-color: #ff3d32;
}

/* checklist */

.ota-check-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ota-check-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ota-check-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #ff3d32;
  margin-top: 7px;
  flex-shrink: 0;
}

.ota-check-item h4 {
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 16px;
  margin: 0 0 4px;
  color: #111111;
}

.ota-check-item p {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #666666;
  margin: 0;
}

/* checklist used as a simple checkmark list (Accessibility section) */

.ota-check-simple {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.ota-file-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1.5px solid #111111;
  color: #111111;
  font-family: "Optician Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 24px;
  transition: background 0.2s ease, color 0.2s ease;
}

.ota-file-btn:hover {
  background: #111111;
  color: #ffffff;
}

.ota-check-simple-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #111111;
}

.ota-check-simple-item .ota-check-dot {
  margin-top: 0;
}

/* impact number cards */

.ota-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.ota-impact-card {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 28px 22px;
  box-sizing: border-box;
}

.ota-impact-number {
  font-family: "Optician Sans", sans-serif;
  font-size: 26px;
  color: #ff3d32;
  margin: 0 0 18px;
}

.ota-impact-card h4 {
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 16px;
  margin: 0 0 8px;
  color: #111111;
}

.ota-impact-card p {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #666666;
  margin: 0;
}

/* feature rows */

.ota-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 110px;
}

.ota-feature-video-large {
  grid-template-columns: 1.3fr 1fr;
}

.ota-feature-label {
  font-family: "Optician Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff3d32;
  margin: 0 0 12px;
}

.ota-feature h3 {
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #111111;
}

.ota-feature-visual-row {
  display: flex;
  gap: 16px;
}

.ota-feature-visual-row .ota-placeholder {
  flex: 1 1 0;
  aspect-ratio: 9 / 18;
}

.ota-feature-visual-row img {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
}

.ota-feature-visual-single {
  aspect-ratio: 9 / 18;
  max-width: 260px;
  margin: 0 auto;
}

.ota-feature-visual-wide {
  aspect-ratio: 16 / 10;
}

img.ota-feature-visual-wide,
video.ota-feature-visual-wide {
  aspect-ratio: auto;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e5e5e5;
}

img.ota-feature-visual-wide {
  border-radius: 16px;
}

/* before/after pair (Core Experience section) */

.ota-before-after-row {
  display: flex;
  gap: 16px;
}

.ota-ba-figure {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.ota-ba-tag {
  display: block;
  font-family: "Optician Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff3d32;
  margin: 0 0 10px;
}

.ota-ba-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
}

/* before/after carousel (multiple flows) */

.ota-ba-carousel {
  overflow: hidden;
}

.ota-ba-track {
  display: flex;
  transition: transform 0.5s ease;
}

.ota-ba-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.ota-ba-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.ota-ba-carousel-label {
  font-family: "Optician Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #111111;
  margin: 0;
}

.ota-ba-controls .carousel-btn {
  width: 32px;
  height: 32px;
}

.ota-ba-controls .carousel-arrow-icon {
  width: 14px;
  height: 14px;
}

/* outcome list at the very end of the page — same visual language as the
   Challenge checklist, just placed inside a single-column context */

.ota-outcome-list {
  margin: 8px 0 32px;
}

/* --- impact closer ---------------------------------------------------- */

.ota-annotation {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-size: 13px;
  color: #ff3d32;
  margin: 16px 0 0;
}

.ota-back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 100px auto 60px;
  background: transparent;
  border: 1.5px solid #111111;
  color: #111111;
  font-family: "Optician Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ota-back-to-top:hover {
  background: #111111;
  color: #ffffff;
}

.ota-back-to-top-icon {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
  transition: filter 0.2s ease;
}

.ota-back-to-top:hover .ota-back-to-top-icon {
  filter: invert(1);
}

/* --- mobile -------------------------------------------------------------- */

@media (max-width: 700px) {
  .ota-page {
    padding: 0 20px;
  }

  .ota-hero-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ota-h1 {
    font-size: 38px;
  }

  .ota-meta-row {
    gap: 28px;
  }

  .ota-growth-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ota-growth-stats .ota-stat strong {
    font-size: 56px;
  }

  .ota-growth-stats .ota-stat-label,
  .ota-growth-stats .ota-stat-detail {
    font-size: 15px;
  }

  .ota-mandate-card {
    padding: 32px 24px;
  }

  .ota-mandate-stat {
    font-size: 42px;
  }

  .ota-mandate-arrow {
    width: 26px;
    height: 26px;
  }

  .ota-section-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ota-impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ota-feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Process disclosure, matching GameKit. */
.ota-process-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 48px 0 0;
}

.ota-process-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1.5px solid #111111;
  color: #111111;
  font-family: "Optician Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ota-process-toggle:hover {
  background: #111111;
  color: #ffffff;
}

.ota-process-toggle:hover .ota-process-toggle-icon {
  filter: invert(1);
}

.ota-process-toggle-icon {
  width: 16px;
  height: 16px;
  transform: translateY(-3px) rotate(-90deg);
  transition: transform 0.3s ease;
}

.ota-process-toggle[aria-expanded="true"] .ota-process-toggle-icon {
  transform: translateY(3px) rotate(90deg);
}

.ota-process-collapse {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.5s ease;
}

.ota-process-collapse.is-open {
  grid-template-rows: 1fr;
}

.ota-process-inner {
  overflow: hidden;
  min-height: 0;
}


@media (max-width: 600px) {
  .ota-process-toggle {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    justify-content: center;
  }
}

/* Company context and the designer's direct contributions. */
.ota-growth-context {
  margin: 18px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #666666;
}

.ota-contributions {
  margin-top: 28px;
}

.ota-contributions h2 {
  margin: 0 0 16px;
  font-family: "Optician Sans", sans-serif;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff3d32;
}

.ota-contribution + .ota-contribution {
  margin-top: 18px;
}

.ota-contribution h3 {
  margin: 0 0 6px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.ota-contribution p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
}

@media (max-width: 600px) {
  .ota-ba-controls .carousel-btn {
    width: 52px;
    height: 52px;
    box-sizing: border-box;
    flex-shrink: 0;
  }
}
