/* The learning-method page (/methodology). It shares the homepage's tokens, header, footer, buttons,
   phone bezel and download section; this file only lays out the page's own sections. */

.method-page main{overflow-x:clip}
.method-page .eyebrow{color:var(--blue);margin-bottom:18px}
.method-page h2{font-size:clamp(32px,4.2vw,52px);line-height:1.08;letter-spacing:-.045em;font-weight:600}
.method-page h3{font-size:19px;line-height:1.3;letter-spacing:-.02em;font-weight:650}

/* phones: the homepage bezel, with both theme screenshots; the page theme shows one */
.mphone{position:relative;display:block;width:var(--phone-w,240px);aspect-ratio:887/1774;filter:drop-shadow(0 18px 22px #1022411f)}
[data-theme=dark] .mphone{filter:drop-shadow(0 18px 22px #0008)}
.mphone .phone-viewport{position:absolute;left:10.1466%;top:3.2694%;width:79.5941%;height:92.3337%;border-radius:14.1643% / 6.1050%;overflow:hidden;background:var(--surface);display:block}
.mphone .phone-screen{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.mphone .phone-frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.mphone .shot-dark,[data-theme=dark] .mphone .shot-light{display:none}
[data-theme=dark] .mphone .shot-dark{display:block}

/* hero: the promise, the three real numbers, one button */
.m-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);align-items:center;gap:clamp(40px,6vw,96px);padding-block:clamp(56px,8vw,112px) clamp(64px,8vw,120px)}
.m-hero h1{font-size:clamp(40px,5.2vw,68px);line-height:1.03;letter-spacing:-.05em;font-weight:600;max-width:13ch;white-space:normal;text-wrap:balance}
.m-lede{margin-top:24px;font-size:17px;line-height:1.75;color:var(--muted);max-width:50ch}
.m-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:44px 0 0;padding:28px 0 0;border-top:1px solid var(--line);max-width:620px}
.m-stats div{margin:0}
.m-stats dt{font-size:clamp(34px,3.6vw,46px);line-height:1;font-weight:650;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:var(--ink)}
.m-stats dd{margin:10px 0 0;font-size:13px;line-height:1.55;color:var(--muted)}
.m-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;margin-top:40px}
.m-actions .text-link{font-size:13px}
.m-hero-visual{display:flex;justify-content:center}
.m-hero-visual .mphone{--phone-w:clamp(230px,24vw,300px)}

/* each lesson: four steps, each with its real screen */
.m-steps{background:var(--soft-blue);padding-block:clamp(72px,9vw,120px)}
.m-heading{max-width:640px;margin-bottom:clamp(40px,5vw,64px)}
.m-heading>p:last-child{margin-top:18px;font-size:16px;line-height:1.75;color:var(--muted);max-width:52ch}
.m-heading .eyebrow{margin-bottom:14px}
.m-step-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(20px,3vw,40px)}
.m-step-list li{display:flex;flex-direction:column;gap:22px}
.m-step-list .mphone{--phone-w:min(100%,220px)}
.m-step-number{display:block;font-size:13px;font-weight:750;letter-spacing:.12em;color:var(--blue);margin-bottom:8px;font-variant-numeric:tabular-nums}
.m-step-text p{margin-top:8px;font-size:15px;line-height:1.65;color:var(--muted)}

/* the learning card, part by part */
.m-card-section{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:center;gap:clamp(40px,7vw,110px);padding-block:clamp(80px,10vw,140px)}
.m-card-visual{display:flex;justify-content:center}
.m-card-visual .mphone{--phone-w:clamp(240px,25vw,310px)}
.m-card-copy>p{margin-top:20px;font-size:16px;line-height:1.75;color:var(--muted);max-width:54ch}
.m-anatomy{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:0;max-width:560px;border-top:1px solid var(--line)}
.m-anatomy li{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);font-size:15px;line-height:1.55;color:var(--muted)}
.m-anatomy strong{color:var(--ink);font-weight:650}
.m-anatomy .icon{flex:none;width:22px;height:22px;color:var(--blue)}
.m-anatomy-ar{flex:none;width:22px;text-align:center;font-family:"Amiri","Geeza Pro","Noto Naskh Arabic",serif;font-size:22px;line-height:1;color:var(--blue)}

/* remembering: the app's own review stages, and the research behind spacing */
.m-review{background:var(--soft-blue);padding-block:clamp(72px,9vw,120px)}
.m-stages{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;align-items:center;gap:0}
.m-stage{display:flex;flex-direction:column;gap:6px;padding:22px 22px 20px;border-radius:18px;background:var(--surface);border:1px solid var(--line)}
.m-stage strong{display:flex;align-items:center;gap:10px;font-size:18px;letter-spacing:-.02em;font-weight:650;color:var(--ink)}
.m-stage strong::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--dot)}
.m-stage span{font-size:14px;color:var(--muted)}
.m-gap{display:flex;flex-direction:column;align-items:center;gap:6px;padding:0 10px;font-size:12px;font-weight:700;color:var(--blue);white-space:nowrap}
.m-gap::after{content:"";width:34px;height:2px;border-radius:1px;background:currentColor;opacity:.5}
.m-study{position:relative;margin:clamp(44px,5vw,64px) 0 0;max-width:720px;padding:34px 38px 30px;border-radius:14px;background:#FAF7F2;color:#1C1917;
  box-shadow:0 26px 50px -24px rgb(16 34 65 / .35),0 0 0 1px rgb(28 25 23 / .08)}
.m-study-meta{display:flex;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:2px solid rgb(180 138 69 / .35);font-size:12px;font-weight:750;letter-spacing:.16em;text-transform:uppercase;color:#8A6830}
.m-study blockquote{margin:18px 0 0}
.m-study blockquote p{font-size:clamp(21px,2.2vw,27px);line-height:1.22;letter-spacing:-.025em;font-weight:700;color:#1C1917}
.m-study figcaption{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:16px}
.m-study-authors{font-size:14px;color:rgb(28 25 23 / .62)}
.m-study-finding{font-size:16px;line-height:1.6;color:#1C1917}
.m-study-finding strong{color:#8A6830}
.m-study .text-link{color:#1C1917;font-size:13px}
.m-study .text-link:focus-visible{outline:2px solid #8A6830;outline-offset:3px;border-radius:4px}

/* beyond vocabulary */
.m-beyond{padding-block:clamp(80px,10vw,140px)}
.m-beyond-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,3vw,36px)}
.m-feature{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:clamp(22px,3vw,40px);padding:clamp(24px,3vw,40px);border-radius:24px;background:var(--surface);border:1px solid var(--line)}
.m-feature .mphone{--phone-w:clamp(140px,13vw,190px)}
.m-feature-copy p{margin-top:10px;font-size:15px;line-height:1.7;color:var(--muted)}

.m-publisher{padding-block:28px 8px;font-size:13px;color:var(--muted);text-align:center}
.m-publisher a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* ---- tablet ---- */
@media (max-width:1024px){
  .m-step-list{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:48px}
  .m-stages{grid-template-columns:minmax(0,1fr);max-width:520px}
  .m-gap{padding:8px 0}
  .m-gap::after{width:2px;height:16px}
  .m-beyond-grid{grid-template-columns:minmax(0,1fr)}
}
/* ---- phone ---- */
@media (max-width:760px){
  .m-hero{grid-template-columns:minmax(0,1fr);text-align:center;gap:40px;padding-top:44px}
  .m-hero h1{font-size:clamp(34px,9.6vw,44px);margin-inline:auto}
  .m-lede{font-size:16px;margin-inline:auto}
  .m-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;text-align:center;margin-inline:auto}
  .m-stats dt{font-size:32px}
  .m-stats dd{font-size:12px}
  .m-actions{justify-content:center}
  .m-hero-visual .mphone{--phone-w:min(62vw,250px)}
  .method-page h2{font-size:clamp(30px,8.5vw,38px)}
  .m-heading{text-align:center;margin-inline:auto}
  .m-heading>p:last-child{margin-inline:auto;font-size:15px}
  .m-step-list{grid-template-columns:minmax(0,1fr);gap:28px}
  .m-step-list li{flex-direction:row;align-items:center;gap:20px}
  .m-step-list .mphone{--phone-w:118px;flex:none}
  .m-step-text p{font-size:14px}
  .m-card-section{grid-template-columns:minmax(0,1fr);gap:36px}
  .m-card-copy{text-align:center}
  .m-card-copy>p{margin-inline:auto}
  .m-anatomy{text-align:left;margin-inline:auto}
  .m-card-visual .mphone{--phone-w:min(58vw,240px)}
  .m-stages{margin-inline:auto}
  .m-study{padding:26px 22px 24px}
  .m-feature{grid-template-columns:auto minmax(0,1fr);gap:18px;padding:20px}
  .m-feature .mphone{--phone-w:108px}
  .m-feature h3{font-size:17px}
  .m-feature-copy p{font-size:14px}
}
