/* =============================================================
   BriskCoders — Mobile App Development page
   Every rule is prefixed .ma- so nothing here can reach another
   page. Colours, type and spacing come from css/styles.css.
   ============================================================= */
.bg-cream { background: var(--cream); }
.ma-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 0 clamp(32px, 4.5vw, 52px); }
.ma-head.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.ma-head .lead { max-width: 54ch; }

/* ===== 1. Banner =============================================== */
.ma-banner {
  position: relative; overflow: hidden;
  padding: clamp(34px, 5vw, 60px) var(--gutter) clamp(56px, 7vw, 88px);
  background:
    radial-gradient(900px 420px at 50% -12%, #FFE3BF 0%, rgba(255, 227, 191, 0) 72%),
    linear-gradient(180deg, #FFF9F0 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}
.ma-banner-in { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 2vw, 22px); text-align: center; }
.ma-banner .crumbs { justify-content: center; }
.ma-banner h1 {
  margin: 0; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(32px, 5vw, 66px); line-height: 1.06; letter-spacing: -0.04em; max-width: 16ch;
}
.ma-banner h1 em { font-style: normal; color: var(--link); position: relative; white-space: nowrap; }
.ma-banner h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .14em; background: var(--orange); opacity: .32; border-radius: 3px; }
.ma-banner .lead { max-width: 56ch; }
.ma-banner .actions { justify-content: center; margin-top: 4px; }

/* Device trio */
.ma-devices { display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 3vw, 34px); margin-top: clamp(26px, 4vw, 44px); width: 100%; }
.ma-dev { flex: 0 1 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ma-dev-frame {
  width: clamp(104px, 15vw, 168px); aspect-ratio: 1 / 2.03;
  border: 3px solid var(--ink); border-radius: clamp(16px, 2.4vw, 26px);
  background: var(--white); box-shadow: 0 30px 60px -34px rgba(80, 35, 0, .6);
  padding: 9px 8px 10px; display: flex; flex-direction: column; gap: 7px; position: relative; overflow: hidden;
}
.ma-dev.mid .ma-dev-frame { width: clamp(126px, 18vw, 200px); border-width: 3.5px; }
.ma-dev-frame::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 34%; height: 5px; border-radius: 99px; background: var(--ink); }
.ma-scr { flex: none; border-radius: 7px; background: var(--line-3); }
.ma-scr.hero { height: 26%; background: linear-gradient(135deg, var(--orange) 0%, var(--amber) 100%); margin-top: 9px; }
.ma-scr.row { height: 8px; }
.ma-scr.row.w70 { width: 70%; } .ma-scr.row.w50 { width: 50%; } .ma-scr.row.w85 { width: 85%; }
.ma-scr.tiles { height: 22%; background: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ma-scr.tiles i { display: block; border-radius: 6px; background: var(--peach); }
.ma-scr.tiles i:nth-child(2), .ma-scr.tiles i:nth-child(3) { background: var(--line-3); }
.ma-scr.bar { margin-top: auto; height: 22px; border-radius: 99px; background: var(--ink); }
.ma-dev-tag { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-2); }
@media (max-width: 560px) { .ma-dev.side { display: none; } .ma-dev.mid .ma-dev-frame { width: 168px; } }

/* ===== 2. Platform columns ===================================== */
.ma-plat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.ma-col {
  display: flex; flex-direction: column; gap: 14px; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(22px, 2.6vw, 34px); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ma-col::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--orange); }
.ma-col:nth-child(2)::before { background: var(--ink); }
.ma-col:nth-child(3)::before { background: var(--amber); }
.ma-col:hover { transform: translateY(-4px); box-shadow: 0 34px 70px -44px rgba(80, 35, 0, .6); }
.ma-col h3 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; line-height: 1.2; }
.ma-col p { margin: 0; font-size: 16px; line-height: 1.62; color: var(--ink-2); }
.ma-col ul { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.ma-col li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.ma-col li .ic { width: 17px; height: 17px; color: var(--link); margin-top: 3px; }
.ma-col .ma-col-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-3); font-size: 13px; font-weight: 600; color: var(--ink-3); }
@media (max-width: 900px) { .ma-plat { grid-template-columns: 1fr; } }

/* ===== 3. Screen scroller ====================================== */
.ma-screens { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 18px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); -webkit-overflow-scrolling: touch; }
.ma-screens::-webkit-scrollbar { height: 8px; }
.ma-screens::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.ma-screens::-webkit-scrollbar-track { background: transparent; }
.ma-screen { scroll-snap-align: start; flex: 0 0 clamp(214px, 25vw, 268px); background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ma-screen-art { height: 142px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line-3); padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.ma-screen-art i { display: block; border-radius: 6px; background: var(--peach); height: 10px; }
.ma-screen-art i.tall { height: 44px; background: linear-gradient(135deg, var(--orange), var(--amber)); }
.ma-screen-art i.dark { background: var(--ink); opacity: .14; }
.ma-screen-art i.w60 { width: 60%; } .ma-screen-art i.w40 { width: 40%; } .ma-screen-art i.w80 { width: 80%; }
.ma-screen-art .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ma-screen-art .two i { height: 34px; }
.ma-screen h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.ma-screen p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.ma-scroll-hint { font-size: 13px; color: var(--ink-3); margin: 0; }

/* ===== 4. Sprint board ========================================= */
.ma-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ma-lane { background: rgba(255, 255, 255, .05); border: 1px solid var(--dark-line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ma-lane-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ma-lane-top h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--white); }
.ma-lane-no { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--ink); background: var(--orange); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.ma-task { background: #101010; border: 1px solid var(--dark-line); border-left: 3px solid var(--orange); border-radius: 12px; padding: 12px 13px; display: flex; flex-direction: column; gap: 5px; }
.ma-task b { font-size: 14.5px; font-weight: 700; color: var(--white); }
.ma-task span { font-size: 13.5px; line-height: 1.5; color: #BDBDBD; }
.ma-lane:nth-child(2) .ma-task { border-left-color: var(--amber); }
.ma-lane:nth-child(3) .ma-task { border-left-color: #6FB5FF; }
.ma-lane:nth-child(4) .ma-task { border-left-color: #63C58E; }
.ma-lane-note { margin: auto 0 0; font-size: 12.5px; color: #8E8E8E; }
@media (max-width: 1000px) { .ma-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ma-board { grid-template-columns: 1fr; } }

/* ===== 5. Stack matrix ========================================= */
.ma-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .ma-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ma-stack { grid-template-columns: 1fr; } }
.ma-layer { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.ma-layer h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.ma-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

/* ===== 6. Comparison table ===================================== */
.ma-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.ma-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 15px; }
.ma-table th, .ma-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line-3); vertical-align: top; line-height: 1.5; }
.ma-table thead th { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; background: var(--cream); border-bottom: 1px solid var(--line); }
.ma-table thead th:first-child { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ma-table tbody th { font-weight: 700; font-size: 14.5px; width: 24%; }
.ma-table tbody tr:last-child th, .ma-table tbody tr:last-child td { border-bottom: 0; }
.ma-table td.best { background: #FFFBF3; }
.ma-table .tick { color: var(--ok); font-weight: 700; }

/* ===== 7. Platform picker ====================================== */
.ma-pick { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 38px); align-items: flex-start; }
.ma-pick-list { flex: 1.6 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .ma-pick-list { grid-template-columns: 1fr; } }
.ma-opt {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 15px 16px; border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--white); font-family: var(--font-body); cursor: pointer; color: var(--ink);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.ma-opt:hover { transform: translateY(-2px); border-color: var(--ink); }
.ma-opt .ma-opt-name { font-size: 15.5px; font-weight: 700; display: block; }
.ma-opt .ma-opt-desc { font-size: 13px; color: var(--ink-3); display: block; margin-top: 2px; line-height: 1.45; }
.ma-opt .ma-sw { margin-left: auto; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .18s ease; }
.ma-opt .ma-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform .18s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.ma-opt[aria-pressed="true"] { border-color: var(--orange); background: #FFFBF3; }
.ma-opt[aria-pressed="true"] .ma-sw { background: var(--orange); }
.ma-opt[aria-pressed="true"] .ma-sw::after { transform: translateX(18px); }
.ma-pick-side { flex: 1 1 290px; min-width: 0; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; background: var(--ink); color: var(--white); border-radius: 24px; padding: clamp(22px, 2.6vw, 30px); }
.ma-pick-side h3 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.ma-pick-side p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #CFCFCF; }
.ma-pick-count { display: flex; align-items: baseline; gap: 9px; }
.ma-pick-count b { font-family: var(--font-head); font-size: 34px; font-weight: 600; color: var(--orange); line-height: 1; }
.ma-pick-count span { font-size: 15px; font-weight: 600; }
.ma-pick-chosen { display: flex; flex-wrap: wrap; gap: 7px; }
.ma-pick-chosen span { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.ma-pick-side .btn { width: 100%; }
@media (max-width: 1000px) { .ma-pick-side { position: static; } }

/* ===== 8. FAQ ================================================== */
.ma-faqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .ma-faqs { grid-template-columns: 1fr; } }
.ma-faq { background: rgba(255, 255, 255, .05); border: 1px solid var(--dark-line); border-radius: 18px; padding: 4px 20px; height: fit-content; }
.ma-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 16.5px; font-weight: 700; color: var(--white); }
.ma-faq .ans { padding: 0 0 18px; }
.ma-faq .ans p { margin: 0; font-size: 15.5px; line-height: 1.65; color: #CFCFCF; }
.ma-faq .faq-ic { color: var(--orange); }

/* ===== 9. Contact ============================================== */
.ma-contact { position: relative; overflow: hidden; background: var(--cream); padding: var(--sec-pad) var(--gutter); border-top: 1px solid var(--line); }
.ma-contact-in { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); align-items: flex-start; }
.ma-contact-l { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ma-contact-l h2 { max-width: 15ch; }
.ma-contact-l h2 span { color: var(--link); }
.ma-contact-l p { margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.ma-pts { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14.5px; font-weight: 600; }
.ma-pts span { display: inline-flex; align-items: center; gap: 8px; }
.ma-pts .ic { width: 17px; height: 17px; color: var(--link); }
.ma-contact .mail { font-family: var(--font-head); font-weight: 600; font-size: clamp(19px, 2.2vw, 27px); color: var(--ink); text-decoration: none; word-break: break-word; }
.ma-contact .mail:hover { color: var(--link); }
.ma-contact .form-card { flex: 1 1 400px; min-width: 0; }
