/* Apptiv case study — page-specific styles (built from Figma frame 1:9697) */
.ap {
  --ap-yellow: #ebb220;
  --ap-blue: #0199d3;
  --ap-green: #acc91b;
  --ap-orange: #e7880b;
  --ap-purple: #6d4097;
  --ap-grey: #b3b3b3;
  --ap-card: #f5f5f5;
  font-family: "Poppins", system-ui, sans-serif;
  color: #000;
  overflow-x: clip;
}
.ap section { position: relative; }
.ap .wrap { position: relative; z-index: 1; }
.ap b { font-weight: 600; }
.ap img { height: auto; }

/* Decorative curved lines (sampled from the design) */
.ap-arc {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 1440px; height: auto; z-index: 0; pointer-events: none; overflow: visible;
}
.ap-arc path { fill: none; }

/* Shared type */
.ap-phase-title { font-weight: 400; font-size: 56px; line-height: 72px; color: #000; text-transform: uppercase; }
.ap-phase { display: flex; align-items: flex-start; gap: 56px; }
.ap-phase-list { list-style: none; margin-top: 4px; font-family: "Inter", sans-serif; font-weight: 500; font-size: 20px; line-height: 24px; color: #000; }
.ap-phase-list li + li { margin-top: 8px; }
.ap-orange { color: var(--ap-orange); }
.ap-purple { color: var(--ap-purple); }

.ap-sub h3 { font-family: "Raleway", sans-serif; font-weight: 400; font-size: 32px; line-height: 38px; color: var(--ap-grey); text-transform: uppercase; }
.ap-sub p { margin-top: 16px; font-weight: 300; font-size: 18px; line-height: 27px; }
.ap-note { font-weight: 400; font-size: 18px; line-height: 32px; color: #000; }

/* ---------- Hero ---------- */
.ap-hero { padding: 42px 0 60px; }
.ap-hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.ap-hero-text { width: 645px; max-width: 100%; }
.ap-hero h1 { font-weight: 400; font-size: 50px; line-height: 75px; color: #000; }
.ap-hero-sub { margin-top: 6px; font-weight: 300; font-size: 20px; line-height: 30px; }
.ap-facts { margin-top: 44px; display: flex; flex-direction: column; gap: 30px; }
.ap-fact h2 { font-family: "Raleway", sans-serif; font-weight: 700; font-size: 20px; line-height: 23px; text-transform: uppercase; color: #000; }
.ap-fact p { margin-top: 8px; font-weight: 300; font-size: 17px; line-height: 26px; color: #636363; }
.ap-meta { display: flex; gap: 92px; }
.ap-hero-phone { width: 285px; margin-top: 28px; flex-shrink: 1; min-width: 0; }

/* ---------- Banner ---------- */
.ap-banner { background: #000; padding: 40px 0; text-align: center; }
.ap-banner img { margin: 0 auto; }
.ap-banner h2 { margin-top: 24px; font-family: "Raleway", sans-serif; font-weight: 400; font-size: 28px; line-height: 33px; color: #fff; text-transform: uppercase; }
.ap-banner h2 em { font-style: normal; color: var(--ap-yellow); }
.ap-banner p { margin-top: 20px; font-weight: 300; font-size: 20px; line-height: 30px; color: #a3a3a3; }

/* ---------- Design thinking process ---------- */
.ap-process { padding: 48px 0 88px; }
.ap-process-head { width: 475px; max-width: 100%; margin: 0 auto; }
.ap-process-head h2 { font-weight: 400; font-size: 40px; line-height: 60px; text-transform: uppercase; white-space: nowrap; }
.ap-process-head img { margin-left: 261px; }
.ap-dt { list-style: none; position: relative; width: 1160px; max-width: 100%; height: 255px; margin: 56px auto 0; }
.ap-dt::before { content: ""; position: absolute; top: 20px; left: 6.03%; width: 82.33%; height: 1px; background: #000; }
.ap-dt li { position: absolute; left: calc(var(--x) / 1160 * 100%); width: calc(var(--w) / 1160 * 100%); top: var(--t); text-align: center; }
.ap-dt li::before {
  content: ""; position: absolute; top: calc(-1 * var(--t)); left: calc((var(--cx) - var(--x)) / var(--w) * 100%); margin-left: -20px;
  width: 40px; height: 40px; border-radius: 50%; box-sizing: border-box; border: 2px solid #000;
  background: radial-gradient(circle, #000 0 4px, #fff 4.5px);
}
.ap-dt li.low::after { content: ""; position: absolute; left: calc((var(--cx) - var(--x)) / var(--w) * 100%); top: calc(40px - var(--t)); height: 145px; border-left: 1px dashed #000; }
.ap-dt .n1 { --x: 0; --w: 140; --t: 58px; --cx: 70; }
.ap-dt .n2 { --x: 156; --w: 327; --t: 193px; --cx: 320; }
.ap-dt .n3 { --x: 392; --w: 309; --t: 57px; --cx: 526; }
.ap-dt .n4 { --x: 644; --w: 266; --t: 192px; --cx: 777; }
.ap-dt .n5 { --x: 891; --w: 269; --t: 58px; --cx: 1025; }
.ap-dt b { display: block; font-weight: 600; font-size: 20px; line-height: 30px; color: var(--ap-yellow); }
.ap-dt span { display: block; margin-top: 8px; font-weight: 400; font-size: 16px; line-height: 24px; white-space: nowrap; }

/* ---------- Empathize ---------- */
.ap-empathize { padding-bottom: 120px; }
.ap-surveys { margin-top: 44px; font-weight: 400; font-size: 20px; line-height: 32px; }
.ap-stats { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 75px; text-align: center; }
.ap-stats strong { display: block; font-family: "Raleway", sans-serif; font-weight: 300; font-size: 56px; line-height: 64px; }
.ap-stats span { display: block; margin-top: 16px; font-family: "Raleway", sans-serif; font-weight: 400; font-size: 20px; line-height: 23px; color: #333; }
.ap-cards { margin-top: 48px; display: grid; grid-template-columns: 535fr 541fr; column-gap: 109px; margin-right: 15px; align-items: start; }
.ap-card { background: var(--ap-card); box-shadow: 0 4px 4px rgba(0, 0, 0, .25); padding: 36px 40px; min-height: 0; align-self: stretch; }
.ap-card-head { position: relative; height: 60px; }
.ap-card.c2 .ap-card-head { height: 61px; }
.ap-card h3 { font-family: "Raleway", sans-serif; font-weight: 700; font-size: 24px; line-height: 42px; text-transform: uppercase; }
.ap-card-head img { position: absolute; }
.ap-card.c1 .ap-card-head img { left: 95px; top: 37px; }
.ap-card.c2 .ap-card-head img { left: 115px; top: 28px; }
.ap-card-body { margin-top: 28px; font-weight: 400; font-size: 16px; line-height: 32px; }
.ap-card.c2 .ap-card-body { min-height: 160px; }
.ap-card h4 { margin-top: 32px; font-family: "Raleway", sans-serif; font-weight: 400; font-size: 18px; line-height: 21px; text-transform: uppercase; }
.ap-card.c2 h4 { margin-top: 22px; max-width: 409px; }
.ap-quotes { list-style: none; margin-top: 24px; border-left: 4px solid var(--ap-blue); padding: 24px 0 24px 20px; max-width: 380px; font-family: "Raleway", sans-serif; font-weight: 300; font-size: 16px; line-height: 24px; }
.ap-quotes li { max-width: 336px; }
.ap-quotes li + li { margin-top: 24px; }
.ap-card.c1 .ap-quotes li:nth-child(2) { max-width: 333px; }
.ap-card.c2 .ap-quotes { margin-top: 19px; padding: 20px 0 20px 20px; max-width: 347px; }
.ap-card.c2 .ap-quotes li { max-width: 323px; }

/* ---------- Define ---------- */
.ap-define { padding-bottom: 120px; }
.ap-phase-define .ap-phase-title { margin-top: 12px; }
.ap-phase-define .ap-phase-list { margin-top: 0; }
.ap-persona { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 24px; }
.ap-persona img { flex-shrink: 1; min-width: 0; }
.ap-persona.p1 img { width: 330px; margin-left: 80px; }
.ap-persona.p1 > div { width: 671px; margin-top: 84px; }
.ap-persona.p2 > div { width: 569px; margin-top: 90px; }
.ap-persona.p2 p { max-width: 513px; }
.ap-persona.p2 img { width: 310px; margin-right: 80px; }
.ap-persona h3 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 20px; line-height: 24px; color: var(--ap-green); text-transform: uppercase; }
.ap-persona p { margin-top: 20px; font-weight: 300; font-size: 16px; line-height: 32px; color: #333; }
.ap-problem { margin-top: 56px; }
.ap-problem h3 { display: flex; justify-content: center; gap: 27px; font-weight: 500; font-size: 18px; line-height: 24px; }
.ap-problem h3 span { color: var(--ap-green); font-weight: 600; }
.ap-problem p { margin-top: 24px; font-weight: 300; font-size: 20px; line-height: 30px; }

/* ---------- Ideate ---------- */
.ap-ideate { padding-bottom: 88px; }
.ap-hmw { margin-top: 48px; }
.ap-hmw h3, .ap-moodtext h3, .ap-steps h3, .ap-sg-title { font-family: "Inter", sans-serif; font-weight: 600; font-size: 24px; line-height: 29px; text-transform: uppercase; }
.ap-hmw h3 { width: 412px; max-width: 100%; }
.ap-hmw img { float: left; margin: 3px 0 0 96px; }
.ap-hmw p { margin-left: 150px; padding-top: 40px; font-weight: 500; font-size: 18px; line-height: 27px; }
.ap-hmw::after { content: ""; display: block; clear: both; }
.ap-brain { margin-top: 24px; display: flex; align-items: flex-start; }
.ap-brain img { width: 420px; flex-shrink: 1; min-width: 0; margin-left: 60px; }
.ap-brain div { width: 552px; margin: 130px 0 0 auto; flex-shrink: 0; }
.ap-brain p { font-weight: 400; font-size: 18px; line-height: 27px; }
.ap-brain p + p { margin-top: 32px; }
.ap-moodtext { margin-top: 24px; max-width: 701px; }
.ap-moodtext p { margin-top: 7px; font-weight: 400; font-size: 18px; line-height: 27px; }
.ap-moodboard { width: 100%; max-width: 1000px; margin: 40px auto 0; }

/* ---------- Prototype & testing ---------- */
.ap-proto { padding: 10px 0 190px; }
.ap-phase-proto { gap: 100px; }
.ap-phase-proto .ap-phase-title { position: relative; line-height: 70px; width: 310px; flex-shrink: 0; }
.ap-phase-proto .amp { position: absolute; left: 259px; top: 40px; font-size: 67px; line-height: 100px; }
.ap-phase-proto .ap-phase-list { margin-top: 12px; }
.ap-sg-title { margin-top: 48px; font-size: 28px; line-height: 34px; }
.ap-sg {
  margin-top: 24px; width: 1203px; max-width: 100%; border: 1px dashed #000;
  padding: 36px 40px 36px 59px;
  display: grid; grid-template-columns: 407px 385px 1fr;
  grid-template-areas: "logo icons type" "btn drop type" "colors drop ." ;
  grid-template-rows: 130px auto 1fr;
}
.ap-sg h4 { font-family: "Raleway", sans-serif; font-weight: 400; font-size: 24px; line-height: 28px; color: var(--ap-grey); text-transform: uppercase; }
.ap-sg h5 { margin-top: 24px; font-family: "Raleway", sans-serif; font-weight: 400; font-size: 20px; line-height: 23px; color: var(--ap-grey); }
.sg-logo { grid-area: logo; }
.sg-icons { grid-area: icons; }
.sg-icons img { margin-top: 24px; }
.sg-type { grid-area: type; }
.sg-type .faro { margin-top: 14px; font-family: "Figtree", sans-serif; font-weight: 700; font-size: 40px; line-height: 48px; }
.sg-type .avenir { margin-top: 14px; font-family: "Avenir", "Avenir Next", "Nunito Sans", sans-serif; font-weight: 400; font-size: 40px; line-height: 55px; }
.sg-button { grid-area: btn; margin-top: 40px; padding-left: 8px; }
.sg-btn {
  display: flex; align-items: center; justify-content: center; margin-top: 24px; width: 343px; max-width: 100%; height: 64px;
  background: var(--ap-yellow); border-radius: 4px; font-family: "Inter", sans-serif; font-weight: 600; font-size: 22px; color: #fff;
}
.sg-dropdown { grid-area: drop; margin-top: 32px; }
.sg-dropdown img { margin: 17px 0 0 -10px; max-width: calc(100% + 10px); }
.sg-colors { grid-area: colors; margin-top: 44px; padding-left: 8px; width: 1000px; }
.sg-colors h4.sub { margin-top: 24px; }
.sg-colors .swatches + h4.sub { margin-top: 31px; }
.swatches { display: flex; flex-wrap: wrap; margin-top: 14px; padding-left: 10px; }
.swatches span {
  width: 90px; height: 90px; margin-left: -10px; border-radius: 50%; background: var(--c);
  display: grid; place-items: center; font-weight: 500; font-size: 12px; color: #fff;
}
.swatches span.light { color: #000; border: 1px solid #e6e6e6; }
.ap-steps { margin-top: 56px; }
.ap-steps p { margin-top: 20px; font-weight: 400; font-size: 18px; line-height: 27px; }
.ap-steps h3 + p { margin-top: 16px; }

.ap-tl { list-style: none; position: relative; height: 250px; margin-top: 88px; }
.ap-tl::before { content: ""; position: absolute; top: 26px; left: calc(28 / 1200 * 100%); width: calc(1135 / 1200 * 100%); height: 1px; background: var(--ap-purple); }
.ap-tl li {
  position: absolute; top: var(--t); left: calc(var(--x) / 1200 * 100%); width: var(--w); text-align: center; white-space: nowrap;
  font-weight: 700; font-size: 20px; line-height: 30px; color: var(--ap-purple);
}
.ap-tl li::before {
  content: ""; position: absolute; top: calc(-1 * var(--t)); left: calc(var(--w) / 2); margin-left: -26px;
  width: 52px; height: 52px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--ap-purple);
  background: radial-gradient(circle, var(--ap-purple) 0 6px, #fff 6.5px);
}
.ap-tl li::after { content: ""; position: absolute; left: calc(var(--w) / 2); top: calc(50px - var(--t)); height: calc(var(--t) - 50px); border-left: 1px dashed #000; }
.ap-tl .t1 { --x: -45; --w: 132px; --t: 79px; }
.ap-tl .t2 { --x: 180; --w: 77px; --t: 158px; }
.ap-tl .t3 { --x: 341; --w: 134px; --t: 79px; }
.ap-tl .t4 { --x: 560; --w: 77px; --t: 158px; }
.ap-tl .t5 { --x: 730; --w: 115px; --t: 79px; }
.ap-tl .t6 { --x: 935; --w: 77px; --t: 158px; }
.ap-tl .t7 { --x: 1083; --w: 162px; --t: 220px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.ap-tl .t7::after { height: calc(var(--t) - 61px); }
.ap-tl .t7::after { border-left-style: dotted; }
.ap-tl .t7 i { position: absolute; left: calc(var(--w) / 2); top: -11px; margin-left: -3px; border: 3.5px solid transparent; border-top: 6px solid #000; border-bottom: 0; }

/* ---------- Final product ---------- */
.ap-final .ap-final-wrap { padding-top: 0; }
.ap-slogan { margin-top: 2px; font-weight: 400; font-size: 20px; line-height: 30px; }
.ap-slogan .ul { position: relative; font-style: italic; }
.ap-slogan .ul::after { content: ""; position: absolute; top: 23px; height: 20px; background: no-repeat center / contain; pointer-events: none; }
.ap-slogan .ul-app::after { left: -5px; width: 56px; background-image: url("../assets/apptiv/underline-app.png"); }
.ap-slogan .ul-tiv::after { left: -9px; width: 45px; background-image: url("../assets/apptiv/underline-tiv.png"); }
.ap-final .ap-sub:first-of-type { margin-top: 56px; }
.ap-onboarding { width: 100%; max-width: 1040px; margin: 48px auto 0; }
.ap-asks { margin-top: 48px; font-size: 18px; line-height: 27px; }
.ap-asks p { font-weight: 300; }
.ap-asks ol { margin-top: 16px; padding-left: 27px; font-weight: 400; }
.ap-asks ol span { font-weight: 300; }
.ap-home { margin-top: 64px; }
.ap-home p .em { font-weight: 400; }
.ap-home-fig { position: relative; margin-top: 13px; width: 690px; max-width: 100%; }
.ap-home-fig .ap-note { position: absolute; left: calc(580 / 1170 * 100%); top: calc(842 / 1107 * 100%); width: 340px; }
@media (min-width: 1381px) { .ap-home-fig .ap-note { top: calc(800 / 1107 * 100%); } }
.ap-filters { margin-top: 64px; }
.ap-filters p { line-height: 32px; }
.ap-filters-fig { position: relative; margin-top: 40px; height: 536px; }
.ap-filters-fig .left { width: 598px; }
.ap-filters-fig .left .ap-note { margin: 11px 0 0 12px; width: 244px; font-weight: 500; }
.ap-filters-fig .right { position: absolute; left: 660px; top: 82px; width: 330px; }
.ap-filters-fig .right .ap-note { position: absolute; left: 4px; top: 10px; width: 295px; }
.ap-event { margin-top: 48px; }
.ap-event p { line-height: 32px; }
.ap-event-fig { position: relative; margin: 8px 0 0 68px; width: 720px; height: 556px; }
.ap-event-fig .carousel { position: absolute; left: 399px; top: 29px; width: 275px; font-weight: 500; }
.ap-event-fig .going { position: absolute; left: 341px; top: 428px; width: 244px; }
.ap-progress { margin-top: 48px; }
.ap-progress p { line-height: 32px; }
.ap-progress p + p { margin-top: 20px; }
.ap-chart-text h4 { font-family: "Raleway", sans-serif; font-weight: 400; font-size: 28px; line-height: 34px; color: var(--ap-grey); }
.ap-chart-text p { margin-top: 16px; font-weight: 400; font-size: 18px; line-height: 32px; }
.ap-weekly { position: relative; max-width: 920px; margin: 136px auto 0; }
.ap-weekly img { width: 100%; }
.ap-weekly .ap-chart-text { position: absolute; left: calc(129px - (min(100vw, 1440px) - 920px) / 2); top: -90px; width: 474px; z-index: 1; }
.ap-monthly { position: relative; margin-top: 56px; height: 500px; }
.ap-monthly .ap-chart-text { position: absolute; left: 1px; top: 0; width: 474px; z-index: 1; }
.ap-monthly img { position: absolute; left: 180px; top: 38px; width: 540px; }
.ap-progress-screens { width: 900px; max-width: 100%; margin: 56px auto 0; }
.ap-unfinished { margin-top: 32px; font-weight: 400; font-size: 18px; line-height: 32px; }

/* ---------- Apple Watch ---------- */
.ap-watch-intro { padding: 100px 0 48px; }
.ap-watch-title { font-size: 64px; line-height: 80px; }
.ap-watch-intro p { font-weight: 400; font-size: 18px; line-height: 32px; }
.ap-watch { background: #000; padding: 64px 0; }
.ap-watch-inner { width: 1303px; max-width: calc(100% - 40px); margin: 0 auto; }
.ap-watch-notes { list-style: none; display: grid; grid-template-columns: repeat(4, 251px) 201px; column-gap: 24.5px; min-height: 0; font-weight: 500; font-size: 20px; line-height: 32px; color: #fff; }
.ap-watch-notes li:last-child { max-width: 201px; }
.ap-watch img { margin-top: 40px; width: 100%; }

.ap-end { display: flex; flex-direction: column; align-items: center; padding: 56px 20px 20px; }
.ap-proto-btn {
  display: flex; align-items: center; justify-content: center; gap: 13px; width: 492px; max-width: 100%; height: 86px;
  background: #000; border-radius: 4px; color: #fff; transition: opacity .2s;
}
.ap-proto-btn:hover { opacity: .85; }
.ap-proto-btn span { font-weight: 600; font-size: 24px; line-height: 36px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.ap-top { margin-top: 35px; }

/* ---------- Responsive ---------- */
@media (max-width: 1380px) {
  .ap-arc { display: none; }
  .ap-home-fig .ap-note, .ap-filters-fig .right .ap-note, .ap-event-fig .carousel, .ap-event-fig .going,
  .ap-weekly .ap-chart-text, .ap-monthly .ap-chart-text, .ap-monthly img { position: static; }
  .ap-home-fig .ap-note { width: auto; max-width: 443px; margin: 24px 0 0 auto; }
  .ap-filters-fig { height: auto; display: flex; gap: 24px; align-items: flex-start; }
  .ap-filters-fig .left { width: 62%; flex-shrink: 1; }
  .ap-filters-fig .right { position: static; width: 38%; display: flex; flex-direction: column-reverse; }
  .ap-filters-fig .right .ap-note { width: auto; }
  .ap-event-fig { margin: 24px 0 0; width: auto; height: auto; display: flex; flex-direction: column; }
  .ap-event-fig .carousel { order: -1; align-self: center; width: auto; margin-bottom: 8px; }
  .ap-event-fig .going { width: auto; max-width: 320px; align-self: center; margin-top: 16px; }
  .ap-weekly { margin-top: 64px; max-width: 1440px; }
  .ap-weekly .ap-chart-text { width: auto; max-width: 600px; margin: 0 var(--page-x) 24px; }
  .ap-monthly { height: auto; margin-top: 64px; }
  .ap-monthly .ap-chart-text { width: auto; max-width: 600px; margin-bottom: 24px; }
  .ap-monthly img { width: 813px; max-width: 100%; }
  .ap-watch-notes { grid-template-columns: repeat(5, 1fr); }
  /* Decorative arcs are hidden here, so the extra room reserved for them goes too */
  .ap-proto { padding-bottom: 200px; }
  /* Style guide: two columns once the three-column desktop grid gets cramped */
  .ap-sg { grid-template-columns: 1fr 1fr; grid-template-areas: "logo icons" "type drop" "btn drop" "colors colors"; grid-template-rows: auto; padding: 40px; column-gap: 32px; }
  .sg-type, .sg-dropdown { margin-top: 32px; }
  .sg-button { margin-top: 40px; }
  .sg-button, .sg-dropdown { padding-left: 0; }
  .sg-colors { width: auto; margin-top: 40px; padding-left: 0; }
}
@media (max-width: 1100px) {
  .ap-phase-title { font-size: 64px; line-height: 90px; }
  .ap-watch-title { font-size: 72px; line-height: 100px; }
  .ap-dt span { white-space: normal; }
  .ap-persona.p1 > div, .ap-persona.p2 > div { margin-top: 80px; }
  .ap-persona > div { flex: 1; padding: 0 24px; }
  .ap-persona.p1 img { width: 40%; }
  .ap-persona.p2 img { width: 40%; }
  .ap-persona.p1 img, .ap-persona.p2 img { margin-left: 0; margin-right: 0; }
  .ap-brain img { margin-left: 0; }
  .ap-tl li { font-size: 16px; }
  .ap-proto { padding-bottom: 160px; }
  .ap-asks { margin-top: 96px; }
  .ap-meta { gap: 48px; }
  .ap-watch-inner { max-width: calc(100% - 2 * var(--page-x)); }
  .ap-watch-notes { column-gap: 20px; font-size: 18px; line-height: 28px; }
}
/* Tablet only (between the desktop layout and the stacked phone layout) */
@media (min-width: 761px) and (max-width: 1100px) {
  /* Brainstorm image and text share the row evenly, text centred against the image */
  .ap-brain { align-items: center; gap: 40px; margin-top: 48px; }
  .ap-brain p + p { margin-top: 32px; }
  .ap-brain img { width: 50%; }
  .ap-brain div { flex: 1; width: auto; margin-top: 0; }
  /* Timeline: anchor "Final product" to the end of the line so it is not clipped */
  .ap-tl .t7 { left: auto; right: calc(100% * 37 / 1200 - 26px); text-align: right; }
  .ap-tl .t7::before { left: auto; right: 0; margin-left: 0; }
  .ap-tl .t7::after { left: auto; right: 25.5px; }
  .ap-tl .t7 i { left: auto; right: 26px; margin: 0 -3.5px 0 0; }
}
/* iPad portrait and below */
@media (max-width: 900px) {
  .ap-cards { grid-template-columns: 1fr; row-gap: 40px; margin-right: 0; }
  .ap-card { min-height: 0; }
  .ap-card.c2 .ap-card-body { min-height: 0; }
  .ap-filters-fig { flex-direction: column; gap: 40px; }
  .ap-filters-fig .left, .ap-filters-fig .right { width: 100%; }
  .ap-filters-fig .right { align-items: center; text-align: center; }
  .ap-filters-fig .right img { width: 320px; margin-top: 16px; }
  .ap-hero-phone { width: 220px; }
  .ap-meta { gap: 36px; }
  .ap-watch-notes { font-size: 16px; line-height: 24px; }
}
@media (max-width: 760px) {
  .ap-hero { padding: 24px 0 64px; }
  .ap-hero-row { flex-direction: column; align-items: center; }
  .ap-hero h1 { font-size: 44px; line-height: 60px; }
  .ap-facts { margin-top: 40px; gap: 32px; }
  .ap-meta { gap: 32px; flex-wrap: wrap; }
  .ap-hero-phone { width: 220px; }
  .ap-banner h2 { font-size: 22px; line-height: 28px; }
  .ap-banner p { font-size: 17px; line-height: 26px; }

  .ap-process { padding: 48px 0 80px; }
  .ap-process-head h2 { font-size: 28px; line-height: 40px; white-space: normal; text-align: center; }
  .ap-process-head img { margin: 0 auto; width: 160px; }
  .ap-dt { height: auto; margin-top: 40px; padding-left: 56px; }
  .ap-dt::before { left: 19px; top: 20px; width: 1px; height: calc(100% - 60px); }
  .ap-dt li { position: relative; left: 0; width: auto; top: 0; text-align: left; padding: 4px 0 28px; }
  .ap-dt li::before { top: 0; left: -56px; margin-left: 0; }
  .ap-dt li.low::after { display: none; }
  .ap-dt span { white-space: normal; }

  .ap-phase { flex-direction: column; gap: 16px; }
  .ap-phase-title, .ap-phase-define .ap-phase-title { font-size: 48px; line-height: 64px; margin-top: 0; }
  .ap-phase-list { margin-top: 0; font-size: 17px; }
  .ap-empathize, .ap-define, .ap-ideate { padding-bottom: 80px; }
  .ap-surveys { margin-top: 40px; font-size: 17px; line-height: 28px; }
  .ap-stats { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .ap-stats strong { font-size: 52px; line-height: 60px; }
  .ap-stats span { margin-top: 12px; font-size: 18px; }
  .ap-cards { grid-template-columns: 1fr; row-gap: 32px; margin-right: 0; margin-top: 40px; }
  .ap-card { min-height: 0; padding: 28px 24px; }
  .ap-card h3 { font-size: 20px; }
  .ap-card.c2 .ap-card-body { min-height: 0; }
  .ap-card.c1 .ap-card-head img, .ap-card.c2 .ap-card-head img { left: 60px; }

  .ap-persona { flex-direction: column; align-items: center; margin-top: 32px; }
  .ap-persona.p2 { flex-direction: column-reverse; }
  .ap-persona > div { padding: 0; }
  .ap-persona.p1 > div, .ap-persona.p2 > div { width: 100%; margin-top: 24px; }
  .ap-persona.p1 img, .ap-persona.p2 img { width: 280px; }
  .ap-problem { margin-top: 56px; }
  .ap-problem p { font-size: 18px; line-height: 28px; }

  .ap-hmw { margin-top: 48px; }
  .ap-hmw img { margin-left: 24px; width: 40px; height: auto; }
  .ap-hmw p { margin-left: 76px; padding-top: 32px; }
  .ap-brain { flex-direction: column; align-items: center; }
  .ap-brain img { width: 320px; }
  .ap-brain div { width: 100%; margin-top: 24px; }
  .ap-brain p + p { margin-top: 24px; }
  .ap-moodtext { margin-top: 40px; }
  .ap-moodboard { margin-top: 32px; }

  .ap-proto { padding-bottom: 96px; }
  .ap-phase-proto .ap-phase-title { width: auto; line-height: 64px; }
  .ap-phase-proto .amp { position: static; font-size: 48px; line-height: 64px; margin-left: 12px; }
  .ap-sg-title { margin-top: 48px; }
  .ap-sg { display: flex; flex-direction: column; gap: 32px; padding: 24px 20px; }
  .ap-sg h4 { font-size: 20px; }
  .sg-type, .sg-button, .sg-dropdown, .sg-colors { margin-top: 0; }
  .sg-icons img { max-width: 100%; height: auto; }
  .sg-type .faro { font-size: 32px; }
  .swatches span { width: 72px; height: 72px; font-size: 10px; margin-left: -8px; }
  .swatches { padding-left: 8px; }
  .ap-steps { margin-top: 48px; }
  .ap-steps p { font-size: 17px; line-height: 26px; margin-top: 20px; }
  .ap-tl { height: auto; margin-top: 56px; padding-left: 72px; }
  .ap-tl::before { left: 26px; top: 26px; width: 1px; height: calc(100% - 52px); }
  .ap-tl li { position: relative; top: 0; left: 0; width: auto; text-align: left; padding: 11px 0 32px; font-size: 18px; }
  .ap-tl li::before { top: 0; left: -72px; margin-left: 0; }
  .ap-tl li::after { display: none; }

  .ap-final-wrap .ap-phase-title { font-size: 44px; line-height: 60px; }
  .ap-slogan { font-size: 18px; line-height: 28px; }
  .ap-final .ap-sub:first-of-type { margin-top: 56px; }
  .ap-sub h3 { font-size: 30px; line-height: 38px; }
  .ap-sub p { font-size: 17px; line-height: 26px; }
  .ap-onboarding { margin-top: 40px; }
  .ap-asks { margin-top: 48px; font-size: 17px; line-height: 26px; }
  .ap-home, .ap-filters { margin-top: 64px; }
  .ap-home-fig { margin-top: 24px; }
  .ap-home-fig .ap-note { margin-top: 16px; }
  .ap-filters-fig { flex-direction: column; margin-top: 32px; }
  .ap-filters-fig .left, .ap-filters-fig .right { width: 100%; }
  .ap-filters-fig .right img { max-width: 320px; margin: 0 auto; }
  .ap-event { margin-top: 64px; }
  .ap-progress { margin-top: 56px; }
  .ap-progress p + p { margin-top: 20px; }
  .ap-chart-text h4 { font-size: 26px; }
  .ap-progress-screens { margin-top: 64px; }
  .ap-note, .ap-chart-text p, .ap-unfinished { font-size: 17px; line-height: 28px; }

  .ap-watch-intro { padding: 64px 0 48px; }
  .ap-watch-title { font-size: 48px; line-height: 64px; }
  .ap-watch { padding: 56px 0; }
  .ap-watch-notes { grid-template-columns: 1fr; row-gap: 12px; min-height: 0; font-size: 17px; line-height: 26px; }
  .ap-watch-notes li:last-child { max-width: none; }
  .ap-watch img { margin-top: 32px; }

  .ap-end { padding-top: 56px; }
  .ap-proto-btn { height: 72px; padding: 0 16px; }
  .ap-proto-btn span { font-size: 17px; line-height: 24px; }

  .ap-tl .t7 i { display: none; }
  /* Screenshots that are not strips run edge to edge */
  .ap-home-fig > img, .ap-monthly img { width: calc(100% + 2 * var(--page-x)); max-width: none; margin-left: calc(-1 * var(--page-x)); }

  /* Wide mockup strips scroll sideways inside their own box instead of shrinking */
  .ap-strip {
    display: flex; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: #c4c4c4 transparent;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  }
  .ap-strip::after { content: ""; flex: 0 0 36px; }
  .ap-strip::-webkit-scrollbar { height: 4px; }
  .ap-strip::-webkit-scrollbar-thumb { background: #c4c4c4; border-radius: 2px; }
  .ap-watch .ap-strip { scrollbar-color: #555 transparent; }
  .ap-watch .ap-strip::-webkit-scrollbar-thumb { background: #555; }
  .ap-strip > img { flex: none; max-width: none; height: auto; }
  .ap-filters-fig .ap-strip, .ap-event-fig .ap-strip, .ap-watch .ap-strip {
    margin-left: calc(-1 * var(--page-x)); margin-right: calc(-1 * var(--page-x)); padding-left: var(--page-x);
  }
  .ap-strip > .ap-onboarding { width: 1000px; }
  .ap-filters-fig .ap-strip > img { width: 640px; }
  .ap-event-fig .ap-strip > img { width: 760px; }
  .ap-weekly .ap-strip > img { width: 820px; }
  .ap-strip > .ap-progress-screens { width: 960px; margin-left: 0; margin-right: 0; }
  .ap-watch .ap-strip > img { width: 960px; }
}

/* Soft fade on the cropped ends of wide screen strips */
.ap-onboarding, .ap-progress-screens {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* ---------- Hero (shared case-hero structure) ---------- */
.case-logo--apptiv { height: 40px; margin: 0 0 20px; }
.ap-yellow-text { color: #c99300; font-weight: 500; }
.case-hero-media--apptiv { width: 250px; align-self: center; margin-right: 80px; padding: 40px 0; filter: drop-shadow(0 18px 30px rgba(120,80,0,.16)); }
@media (max-width: 1100px) { .case-hero-media--apptiv { width: 220px; margin-right: 24px; } }
@media (max-width: 860px) { .case-hero-media--apptiv { width: 200px; margin: 8px auto 32px; padding: 0; } }
.case-logo--apptiv { mix-blend-mode: multiply; }
.case-hero-media--apptiv img { clip-path: inset(0.9% 1.8% 1.9% 1% round 14% / 7%); }
.case-hero .case-logo--apptiv { height: 40px; margin: 4px 0 24px; }
.case-hero-media--apptiv { padding: 0; }
.case-hero-media--apptiv img { clip-path: inset(1.2% 2.6% 2% 1.9% round 15% / 7.4%); }

/* =========================================================
   Type system (one font, 5 sizes) — keeps the case readable
   and consistent with the other case studies
   ========================================================= */
.ap, .ap h2, .ap h3, .ap h4, .ap h5, .ap p, .ap li, .ap span, .ap strong, .ap b { font-family: "Poppins", system-ui, sans-serif; }
.ap .sg-type .faro { font-family: "Figtree", sans-serif; }
.ap .sg-type .avenir { font-family: "Avenir", "Avenir Next", "Nunito Sans", sans-serif; }

/* 1 · Section titles */
.ap-phase-title, .ap-watch-title, .ap-final-wrap .ap-phase-title, .ap-phase-define .ap-phase-title, .ap-process-head h2 { font-weight: 400; font-size: 40px; line-height: 48px; letter-spacing: -.3px; }
.ap-phase-proto .ap-phase-title { width: auto; line-height: 48px; }
.ap-phase-proto { gap: 56px; }
.ap-phase-list { font-weight: 500; font-size: 16px; line-height: 24px; margin-top: 2px; }
.ap-phase-list li + li { margin-top: 6px; }

/* 2 · Coloured labels */
.ap-persona h3, .ap-hmw h3, .ap-moodtext h3, .ap-steps h3, .ap-sg-title, .ap-card h3 { font-weight: 600; font-size: 18px; line-height: 26px; letter-spacing: .3px; text-transform: uppercase; }
.ap-sg-title { margin-top: 40px; }

/* 3 · Grey subtitles */
.ap-sub h3, .ap-chart-text h4, .ap-sg h4 { font-weight: 500; font-size: 22px; line-height: 30px; letter-spacing: .2px; color: #8c8c8c; text-transform: uppercase; }
.ap-sg h5 { font-weight: 500; font-size: 13px; line-height: 20px; color: #8c8c8c; text-transform: uppercase; letter-spacing: .3px; }
.ap-card h4 { font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: .3px; color: #555; }

/* 4 · Body text */
.ap-sub p, .ap-note, .ap-card-body, .ap-persona p, .ap-brain p, .ap-moodtext p, .ap-steps p, .ap-asks,
.ap-chart-text p, .ap-unfinished, .ap-watch-intro p, .ap-surveys, .ap-slogan, .ap-hmw p { font-weight: 400; font-size: 16px; line-height: 26px; color: #222; }
.ap-sub p { margin-top: 12px; }
.ap-persona p { margin-top: 12px; }
.ap-surveys { margin-top: 36px; }
.ap-problem h3 { font-size: 15px; line-height: 22px; }
.ap-problem p { font-weight: 400; font-size: 18px; line-height: 28px; }
.ap-quotes { font-weight: 400; font-size: 15px; line-height: 24px; color: #444; }

/* 5 · Small labels & numbers */
.ap-stats strong { font-weight: 300; font-size: 40px; line-height: 48px; }
.ap-stats span { margin-top: 8px; font-size: 15px; line-height: 22px; color: #555; }
.ap-dt b { font-size: 16px; line-height: 24px; }
.ap-dt span { margin-top: 4px; font-size: 14px; line-height: 20px; color: #444; }
.ap-banner h2 { font-size: 20px; line-height: 28px; letter-spacing: .3px; }
.ap-banner p { margin-top: 12px; font-size: 16px; line-height: 24px; }
.ap-banner { padding: 32px 0; }
.ap-watch-notes { font-size: 15px; line-height: 22px; }
.ap-proto-btn span { font-size: 16px; line-height: 24px; }
.sg-type .faro, .sg-type .avenir { font-size: 32px; line-height: 40px; }

@media (max-width: 1100px) {
  .ap-phase-title, .ap-watch-title, .ap-final-wrap .ap-phase-title, .ap-phase-define .ap-phase-title, .ap-process-head h2 { font-size: 36px; line-height: 44px; }
}
@media (max-width: 760px) {
  .ap-phase-title, .ap-watch-title, .ap-final-wrap .ap-phase-title, .ap-phase-define .ap-phase-title, .ap-process-head h2 { font-size: 30px; line-height: 38px; }
  .ap-sub h3, .ap-chart-text h4, .ap-sg h4 { font-size: 20px; line-height: 28px; }
  .ap-sub p, .ap-note, .ap-card-body, .ap-persona p, .ap-brain p, .ap-moodtext p, .ap-steps p, .ap-asks,
  .ap-chart-text p, .ap-unfinished, .ap-watch-intro p, .ap-surveys, .ap-slogan, .ap-hmw p { font-size: 15px; line-height: 24px; }
  .ap-problem p { font-size: 16px; line-height: 26px; }
  .ap-stats strong { font-size: 34px; line-height: 42px; }
  .ap-phase-list { font-size: 15px; }
}
.ap-tl li { font-size: 15px; }
.ap-slogan { margin-top: 12px; }
.ap-slogan .ul::after { top: 19px; }
.ap-watch-title + p, .ap-watch-intro .ap-watch-title ~ p:first-of-type { margin-top: 12px; }
.ap-banner p { font-weight: 400; color: #bdbdbd; }
.ap-proto-btn { width: auto; height: auto; padding: 16px 32px; gap: 14px; }
.ap-proto-btn img, .ap-proto-btn svg { width: 22px; height: auto; }
.ap p:not(.ap-hmw p), .ap-asks, .ap-asks li { font-weight: 400; }

/* ---------- Style guide: compact, fits in one desktop screen ---------- */
@media (min-width: 1101px) {
  .ap-sg {
    width: 100%; padding: 28px 32px; gap: 28px 40px;
    grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-rows: auto auto;
    grid-template-areas: "logo icons type btn" "drop colors colors colors";
  }
  .ap-sg > div { margin: 0 !important; padding: 0 !important; width: auto !important; }
  .ap-sg h4, .ap-sg h4.sub { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .4px; margin-top: 0; }
  .ap-sg h5 { margin-top: 10px; font-size: 11px; line-height: 16px; }
  .sg-logo img { margin-top: 14px; width: 130px; }
  .sg-icons img { margin-top: 14px; width: auto; height: 24px; display: block; }
  .sg-icons img + img { margin-top: 12px; height: 20px; }
  .sg-type .faro, .sg-type .avenir { margin-top: 2px; font-size: 24px; line-height: 30px; }
  .sg-btn { margin-top: 14px; width: 200px; height: 44px; font-size: 16px; }
  .sg-dropdown img { margin: 10px 0 0 -6px; width: 240px; }
  .sg-colors .swatches + h4.sub, .sg-colors h4.sub { margin-top: 14px; }
  .swatches { margin-top: 10px; padding-left: 6px; }
  .swatches span { width: 58px; height: 58px; margin-left: -6px; font-size: 9px; }
}
.ap .sg-type .faro { font-weight: 700; }

/* ---------- One step smaller overall (desktop) ---------- */
@media (min-width: 1101px) {
  .ap-phase-title, .ap-watch-title, .ap-final-wrap .ap-phase-title, .ap-phase-define .ap-phase-title, .ap-process-head h2 { font-size: 34px; line-height: 42px; }
  .ap-sub h3, .ap-chart-text h4 { font-size: 19px; line-height: 26px; }
  .ap-persona h3, .ap-hmw h3, .ap-moodtext h3, .ap-steps h3, .ap-sg-title, .ap-card h3 { font-size: 16px; line-height: 24px; }
  .ap-moodboard { max-width: 780px; }
  .ap-onboarding { max-width: 900px; }
  .ap-watch-inner { width: 1100px; }
  .ap-watch-notes { grid-template-columns: repeat(5, 1fr); column-gap: 20px; }
}

/* ---------- Consistency pass: sizes that were out of scale ---------- */
.ap-stats strong { font-size: 32px; line-height: 40px; }            /* never bigger than section titles */
.swatches span { font-size: 10px; }                                  /* 9px was too small to read */
.ap-sg h5 { font-size: 12px; }
.ap-asks span, .ap-filters-fig .left .ap-note, .ap-note { font-weight: 400; }
@media (min-width: 1101px) {
  .ap-persona img { width: 280px; }                                  /* both personas same size (were 330 / 310) */
  .ap-brain img { width: 320px; }                                    /* in line with the personas */
  .ap-home-fig { width: 600px; }                                     /* single phone was much bigger than the others */
}
@media (min-width: 1101px) {
  .ap-persona { align-items: center; }
  .ap-persona.p1 img, .ap-persona.p2 img { width: 290px; }
  .ap-persona.p1 > div, .ap-persona.p2 > div { margin-top: 0; }
}
@media (min-width: 1101px) { .ap-persona.p2 img { width: 268px; } }   /* Marta's PNG has less padding: same visible circle as Joe */
.ap-filters p, .ap-event p { line-height: 26px; }
.ap-proto { padding-top: 72px; }   /* keep the orange curve above the title */
@media (max-width: 760px) { .ap-phase-proto .ap-phase-title { line-height: 38px; } .ap-phase-proto { gap: 16px; } .ap-phase-proto .ap-phase-list { margin-top: 0; } }

/* Final product intro: slogan + splash screen */
.ap-final-intro { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ap-splash { width: 170px; flex-shrink: 0; margin-right: 60px; clip-path: inset(1.2% 2.6% 2% 1.9% round 15% / 7.4%); filter: drop-shadow(0 14px 24px rgba(120,80,0,.18)); }
@media (max-width: 760px) { .ap-final-intro { flex-direction: column; align-items: flex-start; } .ap-splash { width: 150px; margin: 8px auto 0; } }
