/* The Cartily app page (/cartily-app/, owner 12/6), built by scripts/build-app-page.mjs. Website only. One grid: every section spans the shell's middle column; splits are two equal
   columns; section rhythm is --m2-pad top and bottom; headers sit on the left edge. */
html.web-shell .m2{--m2-pad:56px;--m2-gap:40px;--m2-r:20px;--m2-hgap:14px;--m2-shadow:0 22px 44px -26px #2d231d66;font:400 17px/1.55 var(--sans,system-ui);color:var(--ws-ink)}
html.web-shell .m2 :is(h1,h2,h3){font-family:'Archivo',system-ui,sans-serif;font-weight:800;font-stretch:90%;letter-spacing:-.02em;color:var(--ws-ink);margin:0;text-wrap:balance}
html.web-shell .m2 p{margin:0}
.m2 figure{margin:0}
.m2-eyebrow{font:800 12px/1 'Archivo',system-ui;letter-spacing:.12em;text-transform:uppercase;color:var(--ws-brand-ink);margin:0 0 12px!important}
.m2-lede{font-size:18px;color:var(--ws-ink2);max-width:40ch}

/* buttons, badges, QR */
.m2-cta{display:flex;flex-wrap:wrap;gap:10px}
.m2-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 22px;border-radius:999px;font:700 16px 'Archivo',system-ui;text-decoration:none;border:1px solid transparent}
.m2-btn.wide{width:100%}
.m2-btn-1{background:var(--ws-brand);color:#fffaf3}
.m2-btn-2{background:var(--ws-surface);color:var(--ws-ink);border-color:var(--ws-line2)}
.m2-badges{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.m2-badges a{display:block;line-height:0}
.m2-badges img{height:48px;width:auto;display:block}
.m2-qr{display:flex;align-items:center;gap:14px}
.m2-qr-tile{flex:none;display:block;background:#fff;border:1px solid var(--ws-line);border-radius:14px;padding:8px;line-height:0}
.m2-qr-tile img{width:84px;height:84px;display:block}
.m2-qr-tile.big{display:inline-block;margin:2px 0 14px}
.m2-qr-tile.big img{width:120px;height:120px}
.m2-qr-t{font:500 14px/1.35 var(--sans,system-ui);color:var(--ws-ink2)}
.m2-qr-t b{display:block;font:800 15px 'Archivo',system-ui;color:var(--ws-ink)}

/* hero */
.m2-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:var(--m2-gap);align-items:center;padding-block:28px var(--m2-pad)}
.m2-hero h1{font-size:clamp(36px,3.6vw,48px);line-height:1.03;margin-bottom:16px}
.m2-hero-copy{display:grid;gap:20px;justify-items:start}
html.web-shell .m2 .m2-hero-copy h1+.m2-lede{margin-top:calc(var(--m2-hgap) - 20px)}
.m2-hero-copy>h1,.m2-hero-copy>.m2-eyebrow{margin-bottom:0}
.m2-hero-copy .m2-eyebrow{margin:0!important}
.m2-hero-art{position:relative;display:grid;justify-items:center}
.m2-mouse{position:absolute;left:-22%;bottom:-4%;width:58%;height:auto;filter:drop-shadow(0 10px 14px #2d231d33)}

/* phone frame: whole screen visible, never cropped */
.m2-phone{width:100%;max-width:236px;justify-self:center;border-radius:36px;background:#1f1a17;padding:8px;box-shadow:var(--m2-shadow)}
.m2-phone img{display:block;width:100%;height:auto;border-radius:29px}

/* sections */
.m2-sec{padding-block:var(--m2-pad);border-top:1px solid var(--ws-line)}
.m2-h{display:block;max-width:560px;margin-bottom:28px}
.m2 .m2-h .m2-eyebrow{margin:0 0 10px!important}
html.web-shell .m2 .m2-h h2+p,html.web-shell .m2 .m2-band-h h2+p,html.web-shell .m2 .m2-end-copy h2+p{margin-top:var(--m2-hgap)}
.m2-h h2{font-size:34px;line-height:1.06}
.m2-h p:not(.m2-eyebrow){color:var(--ws-ink2);max-width:46ch}
.m2-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--m2-gap);align-items:center}
.m2-split .m2-h{margin-bottom:0}
.m2-flip>:first-child{order:2}
.m2-copy{display:grid;gap:20px;min-width:0}
.m2-ticks{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.m2-ticks li{display:flex;gap:10px;align-items:flex-start;font-weight:600}
.m2-ticks li::before{content:"";flex:none;width:20px;height:20px;margin-top:2px;border-radius:50%;background:var(--ws-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b2452a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat}
.m2-soon{display:inline-block;margin-left:4px;padding:1px 8px;border-radius:999px;background:var(--ws-honey-soft);color:var(--ws-honey-ink);font:800 11px/1.6 'Archivo',system-ui;letter-spacing:.04em;text-transform:uppercase;vertical-align:1px}

/* map strip with real pins */
.m2-map{position:relative;height:320px;border-radius:var(--m2-r);overflow:hidden;background:#eef0e1;border:1px solid var(--ws-line);box-shadow:var(--m2-shadow)}
.m2-roads{position:absolute;inset:0;width:100%;height:100%}
.m2-roads path{fill:none}
.m2-roads .r1{stroke:#fffdf6;stroke-width:14}
.m2-roads .r2{stroke:#fffdf6;stroke-width:7}
.m2-roads .water{stroke:#b9d8e6;stroke-width:10}
.m2-chips{position:absolute;left:14px;top:14px;display:flex;gap:6px;z-index:3;flex-wrap:wrap;right:14px}
.m2-chips span{background:#fffdf9;border:1px solid var(--ws-line);border-radius:999px;padding:5px 12px;font:700 13px 'Archivo',system-ui;color:var(--ws-ink2);box-shadow:0 2px 6px #2d231d14}
.m2-chips span.on{background:var(--ws-open);color:#fff;border-color:var(--ws-open)}
.m2-pin{position:absolute;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;border:3px solid #fff;box-shadow:0 4px 10px #2d231d40;background:#fff;z-index:2}
.m2-pin img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.m2-pin.open::after{content:"";position:absolute;right:-3px;bottom:-1px;width:12px;height:12px;border-radius:50%;background:var(--ws-open-dot);border:2px solid #fff}
.m2-mapcard{position:absolute;right:14px;bottom:14px;z-index:3;display:flex;gap:10px;align-items:center;background:#fffdf9;border-radius:16px;padding:8px 14px 8px 8px;box-shadow:0 10px 24px -10px #2d231d66;max-width:calc(100% - 28px)}
.m2-mapcard img{width:52px;height:52px;border-radius:12px;object-fit:cover}
.m2-mapcard b{display:block;font:800 15px 'Archivo',system-ui}
.m2-mapcard span{display:block;font-size:13px;color:var(--ws-ink2)}
.m2-mapcard em{font:700 12px var(--sans,system-ui);font-style:normal;color:var(--ws-open)}
.m2-maplabel{position:absolute;left:14px;bottom:14px;z-index:3;background:#2d231dcc;color:#fffaf3;border-radius:999px;padding:5px 12px;font:700 12px 'Archivo',system-ui}

/* big numbers */
.m2-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.m2-stats div{border-top:3px solid var(--ws-brand);padding-top:10px}
.m2-stats b{display:block;font:800 40px/1 'Archivo',system-ui;font-stretch:85%;font-variant-numeric:tabular-nums}
.m2-stats span{font-size:15px;color:var(--ws-ink2)}

/* alert stack */
.m2-alertwrap{display:grid;gap:8px;justify-items:center}
.m2-alerts{list-style:none;margin:0;padding:22px 18px;width:100%;max-width:360px;display:grid;gap:8px;border-radius:28px;background:linear-gradient(160deg,#c98b6a,#8c5a46 55%,#5b3d32);box-shadow:var(--m2-shadow)}
.m2-alerts li{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:start;background:#fffaf3eb;border-radius:16px;padding:10px 12px}
.m2-alerts img{width:34px;height:34px;border-radius:9px;background:#fff}
.m2-alerts b{display:block;font:700 14px/1.3 var(--sans,system-ui);color:#2d231d}
.m2-alerts span{display:block;font-size:13px;color:#5d5047;line-height:1.35}
.m2-alerts time{font-size:12px;color:#76695e}
.m2-alerts li:nth-child(n+3){opacity:.92}
.m2-ex{font:600 12px var(--sans,system-ui);color:var(--ws-ink3)}

/* photo band: deliberate bleed to the column edges, scrolls sideways */
.m2-band{padding-block:var(--m2-pad);border-top:1px solid var(--ws-line)}
.m2-band-h{margin-bottom:20px}
.m2-band-h h2{font-size:34px;line-height:1.06}
.m2-band-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(180px,31%);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:thin}
.m2-shot{position:relative;scroll-snap-align:start;border-radius:18px;overflow:hidden;aspect-ratio:4/5;background:var(--ws-sunk)}
.m2-shot img{width:100%;height:100%;object-fit:cover;display:block}
.m2-shot figcaption{position:absolute;left:8px;right:8px;bottom:8px;background:#fffdf9f2;border-radius:12px;padding:7px 10px;font-size:12px;color:var(--ws-ink2);line-height:1.3}
.m2-shot figcaption b{display:block;font:800 14px 'Archivo',system-ui;color:var(--ws-ink)}

/* punch card */
.m2-punch{justify-self:center;width:100%;max-width:340px;border-radius:22px;background:var(--ws-surface);border:1px solid var(--ws-line);box-shadow:var(--m2-shadow);overflow:hidden}
.m2-punch-top{display:flex;gap:12px;align-items:center;background:var(--ws-brand);color:#fffaf3;padding:14px 16px}
.m2-punch-top img{width:44px;height:44px;border-radius:12px;object-fit:cover;border:2px solid #fffaf3}
.m2-punch-top b{display:block;font:800 17px 'Archivo',system-ui}
.m2-punch-top span{font-size:13px;opacity:.9}
.m2-punch-r{font:800 20px 'Archivo',system-ui;padding:16px 16px 6px}
.m2-stamps{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;padding:4px 16px}
.m2-stamps i{aspect-ratio:1;border-radius:50%;border:2px dashed var(--ws-line2);display:block}
.m2-stamps i.s{border:0;background:url(/assets/brand/category-cookies@2x.png) center/80% no-repeat,var(--ws-brand-soft)}
.m2-punch-n{font-size:13px;color:var(--ws-ink2);padding:10px 16px 16px}
.m2-soonline{display:flex;gap:12px;align-items:center;font-size:15px;color:var(--ws-ink2)}
.m2-soonline img{height:36px;width:auto;opacity:.55;filter:grayscale(1)}
.m2-soonline em{font-style:normal;display:inline-block;margin-left:4px;padding:1px 8px;border-radius:999px;background:var(--ws-honey-soft);color:var(--ws-honey-ink);font:800 11px/1.6 'Archivo',system-ui;text-transform:uppercase}

/* town events */
.m2-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.m2-ev{background:var(--ws-surface);border:1px solid var(--ws-line);border-radius:var(--m2-r);padding:20px;display:grid;gap:8px;align-content:start}
.m2-ev h3{font-size:19px}
.m2-ev span{font-size:15px;color:var(--ws-ink2);line-height:1.45}
.m2-ev>img{width:52px;height:52px}
.m2-goal{background:var(--ws-honey-soft);border-color:transparent}
.m2-bar{height:12px;border-radius:999px;background:#fffdf9;overflow:hidden}
.m2-bar i{display:block;height:100%;border-radius:999px;background:var(--ws-brand)}
.m2-goal p{font-size:15px;color:var(--ws-ink2)}
.m2-goal p b{font:800 24px 'Archivo',system-ui;color:var(--ws-ink)}
.m2-awards{display:flex;gap:4px}
.m2-awards img{width:56px;height:56px}

/* feature grid */
.m2-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px}
.m2-grid img{width:48px;height:48px;display:block;margin-bottom:10px}
.m2-grid h3{font-size:18px;margin-bottom:4px}
.m2-grid p{font-size:15px;color:var(--ws-ink2);line-height:1.45}

/* steps, faq */
.m2-steps{counter-reset:s;list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.m2-steps li{counter-increment:s;border-top:3px solid var(--ws-brand);padding-top:12px;display:grid;gap:4px}
.m2-steps li::before{content:counter(s);font:800 32px/1 'Archivo',system-ui;color:var(--ws-brand)}
.m2-steps b{font:800 18px 'Archivo',system-ui}
.m2-steps span{font-size:15px;color:var(--ws-ink2)}
.m2-faq details{border-bottom:1px solid var(--ws-line);padding:16px 0}
.m2-faq details:first-child{border-top:1px solid var(--ws-line)}
.m2-faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px;font:700 17px 'Archivo',system-ui}
.m2-faq summary::-webkit-details-marker{display:none}
.m2-faq summary::after{content:"+";font-size:22px;line-height:1;color:var(--ws-ink3)}
.m2-faq details[open] summary::after{content:"–"}
.m2-faq details p{margin-top:8px;color:var(--ws-ink2);max-width:58ch}

/* closing band */
.m2-end{display:grid;grid-template-columns:200px minmax(0,1fr);gap:var(--m2-gap);align-items:center;background:var(--ws-brand-soft);border-radius:28px;padding:32px;margin-top:8px}
.m2-end-art{width:100%;height:auto}
.m2-end-copy{display:grid;gap:0;justify-items:start}
.m2-end-copy .m2-badges{margin-top:18px}
.m2-end-copy h2{font-size:32px;line-height:1.06}
.m2-end-copy p{color:var(--ws-ink2)}

/* right rail */
.m2-rail{display:grid;gap:16px}
.m2-card{background:var(--ws-surface);border:1px solid var(--ws-line);border-radius:var(--m2-r);padding:20px}
.m2-card h2{font:800 17px 'Archivo',system-ui;margin:0 0 4px}
.m2-card>p{font-size:14px;color:var(--ws-ink2);margin:0 0 14px;line-height:1.45}
.m2-getapp .m2-badges{gap:8px}
.m2-getapp .m2-badges img{height:40px}
.m2-mini{display:flex;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--ws-line);font:700 14px 'Archivo',system-ui;color:var(--ws-ink);text-decoration:none}
.m2-card h2+.m2-mini{border-top:0;margin-top:6px}
.m2-mini img{width:34px;height:34px;flex:none}

/* the rail shows the QR at 1280+, so the hero and the closing band drop theirs; phones never show a QR */
@media(min-width:1280px){.m2-hero-qr,.m2-end-qr{display:none}}
@media(max-width:999px){.m2-hero-qr,.m2-end-qr{display:none}}

/* tablet: middle column is narrower */
@media(max-width:1279px){html.web-shell .m2{--m2-gap:28px}.m2-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* phone: full width, no boxes, edge-to-edge bands */
@media(max-width:760px){
  html.web-shell .m2{--m2-pad:40px;--m2-gap:24px}
  .m2-hero,.m2-split{grid-template-columns:1fr}
  .m2-flip>:first-child{order:0}
  .m2-hero{padding-top:8px}
  .m2-hero h1{font-size:36px}
  .m2-hero-art{padding-left:22%}
  .m2-mouse{left:-2%;width:40%}
  .m2-phone{max-width:220px}
  .m2-h h2,.m2-band-h h2{font-size:28px}
  .m2-map{height:300px;margin-inline:-16px;border-radius:0;border-inline:0}
  .m2-band-row{margin-inline:-16px;padding-inline:16px;grid-auto-columns:68%;scroll-padding-inline:16px}
  .m2-stats b{font-size:32px}
  .m2-events{grid-template-columns:1fr;gap:0}
  .m2-ev{background:none;border:0;border-radius:0;border-top:1px solid var(--ws-line);padding:18px 0}
  .m2-goal{background:var(--ws-honey-soft);margin-inline:-16px;padding:20px 16px;border:0}
  .m2-grid{grid-template-columns:1fr;gap:0}
  .m2-grid>div{display:grid;grid-template-columns:48px 1fr;column-gap:14px;padding:16px 0;border-top:1px solid var(--ws-line)}
  .m2-grid img{grid-row:span 2;margin:0}
  .m2-steps{grid-template-columns:1fr}
  .m2-end{grid-template-columns:1fr;border-radius:0;margin-inline:-16px;padding:32px 16px}
  .m2-end-art{width:150px}
  .m2-badges img{height:44px}
}


/* page basics the guide stylesheets give the guides: one sans font everywhere, a skip link that shows only on focus */
html.web-shell body.app-page{--sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;font-family:var(--sans);color:var(--ws-ink)}
html.web-shell body.app-page .ws-left,html.web-shell body.app-page .ws-right{font-family:var(--sans)}
body.app-page .skip{position:absolute;left:-9999px}
body.app-page .skip:focus{left:16px;top:10px;z-index:60;background:#fff;padding:8px 12px;border-radius:8px}

/* phone: the store badges sit side by side, and the map's town label gives way to the shop card (owner 12/6 live check) */
@media(max-width:760px){
  .m2-hero-copy .m2-badges{flex-wrap:nowrap}
  .m2-hero-copy .m2-badges img{height:42px}
  .m2-maplabel{display:none}
}
