/* tolafood.com, the home page only (after styles.css): the hero, the feature sections, the device frames. */

/* ---------- Home ---------- */
.home section.wrap{padding-top:128px}
.hero{display:flow-root;overflow-x:clip;padding:0 0 32px;text-align:center}
.hero .lead{margin-top:12px}
.hero .sub{margin-top:12px;color:var(--ink-2)}
.hero .badges,.end .badges{justify-content:center;margin-top:32px}
.hero .badges,.end .badges{--h:48px}
.note{margin-top:16px;color:var(--ink-2);font:400 15px/24px var(--font)}
/* Orbit: food icons turn around the Tola icon on a flat ellipse (CSS only, slow). Its size follows the screen height
   too, so the badges stay in the first view. Still with Reduce Motion. */
.orbit{--k:.58;--st:max(300px,min(92vw,620px,calc((100svh - 30rem)/var(--k))));position:relative;width:var(--st);height:calc(var(--st)*.67);margin:8px auto 16px;
 -webkit-mask-image:radial-gradient(closest-side,#000 72%,transparent);mask-image:radial-gradient(closest-side,#000 72%,transparent)}
.orbit .logo{position:absolute;left:50%;top:50%;width:calc(var(--st)*.17);height:auto;transform:translate(-50%,-50%);border-radius:22.5%;box-shadow:0 0 calc(var(--st)*.1) var(--halo);z-index:1}
.ring{position:absolute;left:0;top:50%;width:var(--st);height:var(--st);margin-top:calc(var(--st)/-2);transform:scaleY(var(--k));animation:orbit var(--t) linear infinite}
.ring>span{position:absolute;left:50%;top:50%;width:var(--i);height:var(--i);margin:calc(var(--i)/-2);transform:rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a)*-1))}
.ring img{width:100%;height:100%;transform:scaleY(calc(1/var(--k)));animation:upright var(--t) linear infinite;filter:var(--icon-fx)}
.r1{--r:calc(var(--st)*.26);--i:calc(var(--st)*.075);--t:240s}
.r2{--r:calc(var(--st)*.44);--i:calc(var(--st)*.062);--t:360s;opacity:.6}
@keyframes orbit{from{transform:scaleY(var(--k)) rotate(0)}to{transform:scaleY(var(--k)) rotate(360deg)}}
@keyframes upright{from{transform:rotate(0) scaleY(calc(1/var(--k)))}to{transform:rotate(-360deg) scaleY(calc(1/var(--k)))}}
.r1>span:nth-child(1){--a:0deg}.r1>span:nth-child(2){--a:60deg}.r1>span:nth-child(3){--a:120deg}.r1>span:nth-child(4){--a:180deg}.r1>span:nth-child(5){--a:240deg}.r1>span:nth-child(6){--a:300deg}
.r2>span:nth-child(1){--a:20deg}.r2>span:nth-child(2){--a:60deg}.r2>span:nth-child(3){--a:100deg}.r2>span:nth-child(4){--a:140deg}.r2>span:nth-child(5){--a:180deg}.r2>span:nth-child(6){--a:220deg}.r2>span:nth-child(7){--a:260deg}.r2>span:nth-child(8){--a:300deg}.r2>span:nth-child(9){--a:340deg}
.home h2{font-size:48px;line-height:52px;letter-spacing:-.028em}
.home section>p.mut{margin-top:16px}
.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:64px;align-items:center}
.row.alt .shot{order:-1}
.copy{max-width:30rem}
.copy>p.mut{margin-top:16px}
/* Feature pictures: an iPhone and an Android shot. js/theme.js sets data-pf on <html> before paint (the visitor's
   choice, else the platform), and the "iPhone | Android" switch (js/site.js) changes every section at once. Without
   JavaScript both show side by side with a caption, and the switch is hidden. */
.shot{display:flex;flex-direction:column;align-items:center;gap:24px;width:min(340px,100%);justify-self:center}
.pf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;width:100%}
.pf figure{margin:0}
.pf figcaption{margin-top:12px;color:var(--ink-2);font:400 15px/24px var(--font);text-align:center}
.js .pf{grid-template-columns:minmax(0,1fr)}
.js .pf figcaption,.js .pf-android,.js[data-pf=android] .pf-ios{display:none}
.js[data-pf=android] .pf-android{display:block}
html:not(.js) .pf-seg{display:none}
html:not(.js) .shot{width:min(520px,100%)}
.points{list-style:none;margin:24px 0 0;padding:0;display:grid;gap:12px}
.points li{position:relative;padding-left:20px;color:var(--ink-2)}
.points li::before{content:"";position:absolute;left:0;top:11px;width:6px;height:6px;border-radius:50%;background:var(--ink-2)}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gutter);margin-top:40px}
.tiles.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.home .new{padding-top:64px}
.new .tiles{margin-top:0}
.tile{padding:28px 28px 32px;border-radius:24px;background:var(--surface);text-align:left}
.tile h3{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.tile p{margin-top:8px;color:var(--ink-2)}
.tile .glyph{width:44px;height:44px;margin-bottom:20px;border-radius:12px}
.diff .intro,.world .intro{max-width:38rem}
.regions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:40px}
.region{display:flex;flex-direction:column;padding:22px 22px 20px;border-radius:24px;background:var(--surface)}
.region h3 a{text-decoration:none}
.region h3 a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.region .count{color:var(--ink-2);font:400 15px/24px var(--font);font-variant-numeric:tabular-nums}
.region .foods{margin:10px 0 16px}
.region .foods a:hover,.region .cuisines-list a{background:var(--raised)}
.region .cuisines-list a:hover{background:var(--raised-2)}
.region .cuisines-list{margin-top:auto}
.name,.icons,.devices-section,.end,.langs{text-align:center}
.name p,.icons p,.devices-section>p,.langs p{max-width:36rem;margin-left:auto;margin-right:auto}
.icons img{width:min(100%,720px);margin:48px auto 0}
/* Devices: one bento of cards for Apple, one for Android */
.bento{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--gutter);margin-top:56px;text-align:left}
.card{overflow:hidden;display:flex;flex-direction:column;border-radius:32px;background:var(--surface)}
.card .txt{padding:36px 40px 0}
.card h3{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:24px;line-height:30px}
.card .txt p{max-width:30em;margin-top:6px;color:var(--ink-2)}
.card.center .txt{text-align:center}
.card.center h3{justify-content:center}
.card.center .txt p{margin-left:auto;margin-right:auto}
.card .art{display:flex;flex:1;justify-content:center;align-items:flex-start;gap:24px;margin-top:32px;padding:0 40px}
.card .art.mid{align-items:center;margin-top:24px;padding-bottom:40px}
.c12{grid-column:span 12}.c7{grid-column:span 7}.c6{grid-column:span 6}.c5{grid-column:span 5}
.h-a{height:560px}.h-b{height:520px}
.window{display:block;height:auto;border-radius:12px;box-shadow:0 2px 6px rgba(0,0,0,.12),0 24px 60px rgba(0,0,0,.24)}
.w-mac{width:880px;flex:none}.w-ipad{width:min(440px,100%);flex:none}.w-ph{width:264px;flex:none}.w-tab{width:800px;flex:none}
.devices-section .tiles{margin-top:var(--gutter)}
.devices-section .tile{padding:32px 40px 36px;border-radius:32px}
.end .app-icon{width:88px;height:88px;margin:0 auto 24px;box-shadow:0 0 72px var(--halo)}
.end>p.mut{margin-top:8px;font:500 24px/32px var(--font);letter-spacing:-.015em}

/* Device frames: a modern phone drawn in CSS from its own width (1cqw is 1% of the device width); the numbers come
   from docs/device-frame.md in the app repository. Phones show their top half, which fades out; the iPad and the
   iPhone Duo are shown whole. The app screenshots stay dark in both themes (dark is the app's default look). */
.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:var(--shadow-device)}
.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)}
.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%)}
.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)}
.device--android .device-screen::before{width:calc(var(--S)*.04);height:calc(var(--S)*.04);top:calc(var(--b) + var(--S)*.035)}
.device--tablet{--e-r:.25;--b-r:2.2;--rs-r:2.4}
.device--tablet .device-screen::before{--d:max(2px,.45cqw);top:calc((var(--b) - var(--d))/2);width:var(--d);height:var(--d);background:radial-gradient(circle,#232a38 0 35%,#121317 50%)}
/* Apple Watch: a plain case and crown around the real 416 x 496 shot */
.watch{container-type:inline-size;position:relative;display:block;width:min(176px,44%);flex:none}
.watch-body{position:relative;display:block;padding:8cqw;border-radius:27cqw;background:#0A0A0B;box-shadow:inset 0 0 0 1px #3A3A3D,inset 0 0 0 2.5cqw #18181A;filter:var(--shadow-device)}
.watch-body img{width:100%;height:auto;border-radius:17cqw}
.watch-body::after{content:"";position:absolute;right:-3.2cqw;top:27%;width:3.4cqw;height:15%;border-radius:1cqw 2.4cqw 2.4cqw 1cqw;background:linear-gradient(90deg,#2A2A2C,#4A4A4D)}

@media(max-width:1023px){
 .regions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .c7,.c6,.c5{grid-column:span 6}
 .card .txt{padding:28px 28px 0}
 .card .art{padding:0 28px}
 .devices-section .tile{padding:28px}
 .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tiles:not(.two) .tile:first-child{grid-column:1/-1}
}
@media(max-width:719px){
 .home h2{font-size:30px;line-height:36px}
 .home section.wrap{padding-top:72px}
 .home .new{padding-top:40px}
 .orbit{margin-top:0}
 .hero .badges{margin-top:24px}
 .hero .badges,.end .badges{--h:44px}
 .row{grid-template-columns:minmax(0,1fr);gap:40px}
 .row.alt .shot{order:0}
 .js .shot{width:280px}
 .tiles,.tiles.two{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:28px}
 .tile{padding:22px 22px 24px;border-radius:20px}
 .devices-section .tile{padding:24px;border-radius:24px}
 /* The region cards sit in one row that scrolls sideways; the next card shows at the edge */
 .regions{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin:28px -20px 0;padding:0 20px;scroll-padding-inline:20px;scrollbar-width:none}
 .regions::-webkit-scrollbar{display:none}
 .region{flex:0 0 min(80vw,19rem);scroll-snap-align:start}
 .pf{gap:16px}
 /* The device cards sit in one row that scrolls sideways; the next card shows at the edge */
 .bento{display:flex;gap:12px;margin:32px -20px 0;padding:0 20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:20px;scrollbar-width:none}
 .bento::-webkit-scrollbar{display:none}
 .card{flex:0 0 86%;scroll-snap-align:start;border-radius:24px}
 .h-a,.h-b{height:448px}
 .card .txt{padding:24px 24px 0}
 .card h3{font-size:20px;line-height:26px}
 .card .txt p{font-size:15px;line-height:22px}
 .card .art{margin-top:24px;padding:0 24px;gap:12px}
 .card .art.mid{padding-bottom:24px}
 .w-ph{width:200px}
}
@media(max-width:374px){
 .hero .badges,.end .badges{--h:40px}
}
@media(prefers-reduced-motion:reduce){
 .ring,.ring img{animation:none}
}
