:root{color-scheme:dark;--bg:#000;--fg:#f5f5f7;--mut:#a1a1a6;--card:#111;--chip:#1f1f1f}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:17px/1.55 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img{display:block;max-width:100%;height:auto}
a{color:var(--fg)}
a:focus-visible{outline:2px solid var(--fg);outline-offset:4px;border-radius:6px}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:1080px;margin:0 auto;padding:0 max(20px,env(safe-area-inset-left))}
h2{font-size:clamp(2rem,1.3rem + 2.6vw,3.25rem);line-height:1.08;font-weight:700;letter-spacing:-.025em;margin:0 0 1rem;text-wrap:balance}
p{margin:0 0 .9rem}
.mut{color:var(--mut)}

/* Hero */
.hero{text-align:center;padding-bottom:clamp(3.5rem,8vw,6rem)}
.hero-art{width:100%;max-width:1680px;margin:0 auto;aspect-ratio:7/6;object-fit:cover;
 -webkit-mask-image:linear-gradient(#000 72%,transparent);mask-image:linear-gradient(#000 72%,transparent)}
.headline{font-size:clamp(1.9rem,1.2rem + 2.6vw,3.2rem);line-height:1.08;font-weight:700;letter-spacing:-.025em;max-width:22ch;margin:.25rem auto 2rem;text-wrap:balance}
.lead{font-size:clamp(1.2rem,1rem + .9vw,1.6rem);line-height:1.35;font-weight:500;letter-spacing:-.012em;max-width:32rem;margin:.5rem auto 2rem;text-wrap:balance}
.store{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:52px;padding:0 1.4rem;border-radius:14px;white-space:nowrap;background:var(--fg);color:#000;text-decoration:none;font-size:1.0625rem;font-weight:600;letter-spacing:-.01em;transition:background-color .2s,transform .2s}
.store svg{width:19px;height:19px;margin-top:-2px;flex:none}
.store svg.play{width:20px;height:20px;margin-top:0}
.store span{display:flex;flex-direction:column;align-items:flex-start;line-height:1.1;text-align:left}
.store small{font-size:.6875rem;font-weight:500;letter-spacing:0;margin-bottom:.1rem}
.store:hover{background:#fff;transform:translateY(-1px)}
.stores{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem}
.stores .store{min-width:11rem}
.note{color:var(--mut);font-size:.9375rem;margin:1rem 0 0}

/* Sections */
main section.wrap{padding-top:clamp(4.5rem,10vw,8.5rem);padding-bottom:0}
main{padding-bottom:clamp(4.5rem,10vw,8.5rem)}
.row{display:grid;gap:3rem;align-items:center}
.copy{max-width:30rem}
.phone{width:min(340px,80vw);justify-self:center}

/* Device frame: every screenshot sits in one frame, a modern iPhone drawn in CSS from its own width
 (1cqw is 1% of the device width): concentric corners, a thin black bezel, a fine titanium edge, the
 Dynamic Island, a soft shadow and a faint reflection. Phones show their top half, which fades out; the
 iPad and the iPhone Duo are shown whole. The numbers come from docs/device-frame.md in the repository. */
.device{--e-r:1.0638;--b-r:2.1277;--rs-r:13.1915;--e:max(1px,calc(var(--e-r)*1cqw));--b:max(2px,calc(var(--b-r)*1cqw));--rs:calc(var(--rs-r)*1cqw);--S:calc(100cqw - 2*(var(--e) + var(--b)));
 --fade:linear-gradient(#000 0 50%,rgba(0,0,0,.9) 58%,rgba(0,0,0,.7) 66.5%,rgba(0,0,0,.45) 75.5%,rgba(0,0,0,.22) 84.5%,rgba(0,0,0,.07) 93%,transparent);
 container-type:inline-size;position:relative;display:block}
@supports (width:round(1.5px,1px)){.device{--e:max(1px,round(calc(var(--e-r)*1cqw),1px));--b:max(2px,round(calc(var(--b-r)*1cqw),1px))}}
.device-body{display:block;filter:drop-shadow(0 .4cqw .6cqw rgba(0,0,0,.5)) drop-shadow(0 3cqw 6cqw rgba(0,0,0,.45))}
.device-edge{position:relative;display:block;padding:var(--e) var(--e) 0;border-radius:calc(var(--rs) + var(--b) + var(--e)) calc(var(--rs) + var(--b) + var(--e)) 0 0;
 background:conic-gradient(#3d3c3b,#4b4946 20deg,#2a2a2c 55deg,#1d1d1f 120deg 240deg,#2a2a2c 300deg,#7d7a75 322deg,#3d3c3b);
 box-shadow:inset 0 .5px 0 rgba(255,255,255,.22),inset 0 0 0 .5px rgba(255,255,255,.07);-webkit-mask-image:var(--fade);mask-image:var(--fade)}
.device-screen{position:relative;display:block;padding:var(--b) var(--b) 0;border-radius:calc(var(--rs) + var(--b)) calc(var(--rs) + var(--b)) 0 0;background:#000}
.device-screen img{width:100%;border-radius:var(--rs) var(--rs) 0 0}
.device-screen::before{content:"";position:absolute;z-index:1;top:calc(var(--b) + var(--S)*.0284);left:0;right:0;width:calc(var(--S)*.2);height:calc(var(--S)*.0852);margin-inline:auto;border-radius:999px;background:#000}
.device-screen::after{content:"";position:absolute;inset:var(--b) var(--b) 0;border-radius:var(--rs) var(--rs) 0 0;background:linear-gradient(165deg,rgba(255,255,255,.05),rgba(255,255,255,0) 30%);pointer-events:none}
.device--whole .device-edge{padding:var(--e);border-radius:calc(var(--rs) + var(--b) + var(--e));-webkit-mask-image:none;mask-image:none}
.device--whole .device-screen{padding:var(--b);border-radius:calc(var(--rs) + var(--b))}
.device--whole .device-screen img{border-radius:var(--rs)}
.device--whole .device-screen::after{inset:var(--b);border-radius:var(--rs)}
/* 13-inch iPad in landscape: the front camera sits in the middle of the top bezel */
.device--ipad{--e-r:.2049;--b-r:2.8005;--rs-r:2.0492}
.device--ipad .device-screen::before{--d:max(2px,.41cqw);top:calc((var(--b) - var(--d))/2);width:var(--d);height:var(--d);background:radial-gradient(circle,#232a38 0 35%,#121317 50%)}
/* iPhone Duo, open: no island on the inner screen; the hinge is a hairline break in the edge, top and bottom */
.device--duo{--e-r:.5056;--b-r:1.4156;--rs-r:5.5612}
.device--duo .device-screen::before{content:none}
.device--duo .device-edge::before{content:"";position:absolute;top:0;bottom:0;left:calc(50% - .5px);width:1px;background:linear-gradient(rgba(0,0,0,.55) 0 var(--e),transparent 0 calc(100% - var(--e)),rgba(0,0,0,.55) 0)}

.points{list-style:none;margin:1.5rem 0 0;padding:0;display:grid;gap:1rem}
.points li{color:var(--mut);padding-left:1.25rem;position:relative}
.points li::before{content:"";position:absolute;left:0;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--mut)}
.points strong{color:var(--fg);font-weight:600}

/* Why Tola is different */
.tiles{display:grid;gap:1rem;margin-top:clamp(1.75rem,4vw,2.75rem)}
.tile{background:var(--card);border-radius:24px;padding:1.6rem 1.5rem 1.65rem}
.tile h3{font-size:1.25rem;line-height:1.25;letter-spacing:-.015em;margin:0 0 .5rem;text-wrap:balance}
.tile p{color:var(--mut);margin:0}
.tile p.label{margin-top:1rem}
.diff .intro{max-width:36rem}
.tiles.two{text-align:left;margin-top:clamp(2.5rem,6vw,4rem)}

/* Food from many countries: nine equal cards, each with the same rows (name, count, cuisines, four dishes) */
.world .intro{max-width:36rem}
.regions{display:grid;gap:.75rem;margin-top:clamp(1.75rem,4vw,2.75rem)}
.region{display:grid;grid-template-rows:auto auto auto 1fr;align-content:start;background:var(--card);border-radius:20px;padding:1.25rem 1.25rem 1.375rem}
.region h3{font-size:1.125rem;line-height:1.3;font-weight:600;letter-spacing:-.01em;margin:0}
.region .count{font-size:.9375rem;line-height:1.4;font-weight:500;font-variant-numeric:tabular-nums;margin:.125rem 0 0}
.region .cuisines{color:var(--mut);font-size:.9375rem;line-height:1.45;min-height:2.9em;margin:.5rem 0 0;text-wrap:pretty}
.foods{list-style:none;margin:1.25rem 0 0;padding:0;display:grid;grid-auto-rows:minmax(36px,auto);gap:.75rem 1.5rem;align-content:start}
.foods li{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;column-gap:.75rem;min-width:0;font-size:.9375rem;line-height:1.3}
.foods img{width:36px;height:36px}
.more{margin:1.5rem 0 0}

/* The name */
.name{text-align:center}
.name p{max-width:36rem;margin-left:auto;margin-right:auto}
.name [lang=hi],.name [lang=ur]{color:var(--fg)}
.label{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .6rem;margin-top:1.1rem;font-size:.8125rem;line-height:1.3;color:var(--mut)}
.chip{background:var(--chip);color:var(--fg);border-radius:999px;padding:.4rem .8rem;font-weight:600;white-space:nowrap}

.icons,.devices-section,.end{text-align:center}
.icons p,.devices-section>p{max-width:36rem;margin-left:auto;margin-right:auto}
.icons img{width:min(100%,720px);margin:clamp(2rem,5vw,3.5rem) auto 0}

.devices{display:grid;gap:2.5rem;margin-top:clamp(2.5rem,6vw,4rem);justify-items:center}
.devices figure{margin:0;width:100%;max-width:640px}
.d-phone .device{width:min(240px,62vw);margin:0 auto}
.devices figcaption{color:var(--mut);font-size:.9375rem;margin-top:1.1rem}

/* Android: a punch-hole camera in place of the Dynamic Island; two phones side by side */
.device--android .device-screen::before{width:calc(var(--S)*.04);height:calc(var(--S)*.04);top:calc(var(--b) + var(--S)*.035)}
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1rem,4vw,2rem);width:min(100%,520px);justify-self:center}
.android .store{margin-top:1.75rem}
.langs{text-align:center}
.langs p{max-width:36rem;margin-left:auto;margin-right:auto}

.end .app-icon{width:88px;height:88px;border-radius:22.4%;margin:0 auto 1.5rem}
.end h2{margin-bottom:.4rem}
.end>p.mut{font-size:1.125rem;margin-bottom:1.75rem}
.fine{color:var(--mut);font-size:.8125rem;line-height:1.5;max-width:30rem;margin:2.25rem auto 0}

/* Footer */
footer{padding-bottom:max(2.5rem,env(safe-area-inset-bottom))}
main.doc+footer{max-width:40rem}
footer nav{display:flex;flex-wrap:wrap;gap:0 1.75rem}
footer a{display:inline-flex;align-items:center;min-height:44px;color:var(--mut);text-decoration:none;font-size:.9375rem;transition:color .2s}
footer a:hover{color:var(--fg)}

/* Privacy and support */
.doc{max-width:40rem;margin:0 auto;padding:1.5rem max(20px,env(safe-area-inset-left)) 1rem}
.doc h1{font-size:clamp(2rem,1.6rem + 1.6vw,2.6rem);line-height:1.1;letter-spacing:-.025em;margin:2rem 0 .5rem}
.doc h2{font-size:1.25rem;line-height:1.3;letter-spacing:-.01em;margin:2.25rem 0 .5rem}
.doc h3{font-size:1.0625rem;line-height:1.35;margin:1.6rem 0 .35rem}
.doc ul{padding-left:1.2rem;margin:0 0 .9rem}
.doc li{margin:.4rem 0}
.doc p a,.doc li a{text-underline-offset:.15em}
header.doc{padding-bottom:0}
main.doc{padding-top:0;padding-bottom:3rem}
.home{display:inline-flex;align-items:center;gap:.6rem;min-height:44px;text-decoration:none;font-weight:600}
.home img{width:32px;height:32px;border-radius:22.4%}

@media(min-width:600px){
 .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tiles .tile:first-child{grid-column:1/-1}
 .tiles.even .tile:first-child,.tiles.two .tile:first-child{grid-column:auto}
 .regions{gap:1rem}
 .region{border-radius:24px;padding:1.5rem 1.75rem 1.625rem}
 .region .cuisines{min-height:0}
 .regions .foods{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:599px){
 .tiles{gap:.75rem}
 .tile{border-radius:20px;padding:1.3rem 1.25rem 1.4rem}
 .tile h3{font-size:1.125rem}
 .stores{flex-wrap:nowrap}
 .stores .store{flex:0 1 11rem;min-width:0;padding:0 .9rem}
}
@media(max-width:359px){
 .store{font-size:.9375rem;padding:0 1.1rem}
 .stores{flex-wrap:wrap}
 .stores .store{flex:0 1 auto}
}
@media(min-width:760px){
 body{font-size:18px}
 .wrap{padding:0 max(32px,env(safe-area-inset-left))}
 .doc{padding-left:32px;padding-right:32px}
 .hero-art{aspect-ratio:auto;-webkit-mask-image:linear-gradient(#000 70%,transparent),linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(#000 70%,transparent),linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);-webkit-mask-composite:source-in;mask-composite:intersect}
 .row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4rem}
 .row.alt .phone,.row.alt .pair{order:-1}
}
@media(min-width:980px){
 .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
 .tiles .tile:first-child{grid-column:auto}
 .tiles.two{grid-template-columns:repeat(2,minmax(0,1fr))}
 .devices{grid-template-columns:minmax(0,.6fr) minmax(0,1fr) minmax(0,1fr);align-items:end;gap:2rem}
 .d-phone .device{width:100%}
}
@media(min-width:1024px){
 .regions{grid-template-columns:repeat(3,minmax(0,1fr))}
 .region{padding:1.375rem 1.375rem 1.5rem}
 .region h3{font-size:1.0625rem}
 .region .cuisines{min-height:2.9em}
 .regions .foods{grid-template-columns:minmax(0,1fr)}
}
@supports (grid-template-rows:subgrid){
 @media(min-width:1024px){
  .region{grid-row:span 4;grid-template-rows:subgrid;row-gap:0}
 }
}
@media(prefers-reduced-motion:reduce){
 .store,footer a{transition:none}
 .store:hover{transform:none}
}
