/* LanguageCoach site.
   The navy is sampled from the App Store screenshots themselves (#103C80 at
   the top of those frames), so the store images sit on the page without a
   visible seam. Cream text and the cream button are the app's own colours
   inverted onto it. System fonts only, one stylesheet, no JavaScript. */
:root{
  --navy:#0B2A57; --navy-2:#123566; --navy-3:#103C80;
  --cream:#F4F1E9; --muted:#A8B6CD;
  --hair:rgba(244,241,233,.16);
  --wrap:1040px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--navy);color:var(--cream);
  font:400 17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--cream)}
h1,h2,h3{font-family:"New York","Iowan Old Style",Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.01em}
h1{font-size:clamp(30px,4.6vw,46px);line-height:1.15;margin:0 0 18px}
h2{font-size:clamp(24px,3vw,32px);line-height:1.25;margin:0 0 14px}
h3{font-size:19px;margin:0 0 6px}
h3.sub{font-size:20px;margin-top:0}
p{margin:0 0 14px}
.lede{font-size:18.5px;color:#DCE4F0;max-width:52ch}
.note{font-size:14px;color:var(--muted)}

.top{
  max-width:var(--wrap);margin:0 auto;padding:20px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:600}
.brand img{border-radius:7px}
.langs{display:flex;gap:14px;font-size:14.5px}
.langs a{color:var(--muted)}
.langs [aria-current]{color:var(--cream);text-decoration:underline;text-underline-offset:4px}

main{max-width:var(--wrap);margin:0 auto;padding:0 24px}
section{padding:56px 0;border-top:1px solid var(--hair)}
section:first-child{border-top:0;padding-top:24px}

.hero{display:grid;grid-template-columns:1fr auto;gap:48px;align-items:center}
.hero-shot img{width:300px;border-radius:26px;border:1px solid var(--hair)}

.cta{
  display:inline-block;background:var(--cream);color:var(--navy);text-decoration:none;
  padding:15px 26px;border-radius:26px;font-size:16px;font-weight:600;
}
.cta:hover{background:#fff}

.steps{list-style:none;margin:0;padding:0;display:grid;gap:36px;grid-template-columns:repeat(3,1fr)}
.step{display:flex;flex-direction:column;gap:18px}
.shot img{width:100%;max-width:280px;border-radius:22px;border:1px solid var(--hair)}
figure{margin:0}

.split{display:grid;grid-template-columns:1fr auto;gap:48px;align-items:center}
.split .side img{width:260px}
.mt{margin-top:34px}

.cards{list-style:none;margin:0;padding:0;display:grid;gap:18px;grid-template-columns:repeat(3,1fr)}
.cards.two{grid-template-columns:repeat(2,1fr)}
.cards li{background:var(--navy-2);border:1px solid var(--hair);border-radius:18px;padding:22px}
.cards p{margin:0;color:#DCE4F0;font-size:16px}

.gallery{display:flex;gap:16px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory}
.gallery img{width:240px;flex:0 0 auto;border-radius:16px;scroll-snap-align:start}

details{border-top:1px solid var(--hair);padding:16px 0}
details:last-of-type{border-bottom:1px solid var(--hair)}
summary{cursor:pointer;font-weight:500;list-style-position:inside}
details p{margin:12px 0 0;color:#DCE4F0;max-width:68ch}

.closing{text-align:center}

footer{
  max-width:var(--wrap);margin:0 auto;padding:36px 24px 56px;
  border-top:1px solid var(--hair);display:flex;flex-direction:column;gap:10px;align-items:center;
  font-size:14.5px;color:var(--muted);text-align:center;
}
footer a{color:var(--muted)}

@media (max-width:860px){
  /* On a phone the page gutter was eating a third of the width and the
     screenshots were shrinking to fit what was left. */
  main{padding:0 18px}
  .top,footer{padding-left:18px;padding-right:18px}
  .hero,.split{grid-template-columns:1fr;gap:28px}
  /* Centred with flex, not justify-self: a shrink-to-fit figure makes the
     image's own percentage width cyclic, and Safari then falls back to the
     intrinsic 900px, which overflowed the screen to the right. */
  .hero-shot,.split .side{display:flex;justify-content:center}
  .split .side{order:2}
  .steps,.cards,.cards.two{grid-template-columns:1fr}
  .step{flex-direction:row;align-items:flex-start;gap:20px}
  .step .shot img{width:132px;flex:0 0 auto}
  .hero-shot img{width:320px;max-width:100%}
  .split .side img{width:320px;max-width:100%}
  section{padding:40px 0}
}
@media (max-width:420px){
  /* The thumbnail stays beside the text — a full-width screenshot here would
     add three phone-heights of scrolling before the reader reaches the point. */
  .step .shot img{width:104px}
}
