/* ShopFair marketing site — shares the app's visual language:
   Syne typeface, deep-green nav, cream cards, botanical background, green accents.
   Responsive: mobile-first, single container, grids collapse on narrow screens. */
:root{
  color-scheme: light dark;
  --green-deep:#103a1e; --green-nav:#4c7a32; --green:#279644; --green-hi:#3ecb6b;
  --cream:#fffdf6; --parchment:#f1ecdb; --ink:#241f0c; --muted:#5c6440;
  --card:#fffdf6; --card-bd:#e3dcc4; --line:#e6dfca;
  --maxw:1060px;
}
*{box-sizing:border-box}
/* Syne is loaded at 400/500/600 only; anything heavier would be browser-synthesised
   and distorts the face (same rule as the app: nothing renders above 600). */
b, strong{font-weight:600}
h1,h2,h3,h4{font-weight:600}
html{scroll-behavior:smooth}
body{
  margin:0; color:var(--ink); font-family:'Syne',system-ui,sans-serif; line-height:1.65;
  background:
    radial-gradient(60% 40% at 85% -5%, rgba(62,203,107,.14) 0%, rgba(62,203,107,0) 60%),
    radial-gradient(50% 40% at -10% 20%, rgba(76,122,50,.12) 0%, rgba(76,122,50,0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560'%3E%3Cg fill='%23279644' fill-opacity='.05'%3E%3Cpath d='M120 40C120 40 60 82 60 144C60 181 87 208 120 208C153 208 180 181 180 144C180 82 120 40 120 40Z' transform='rotate(18 120 124)'/%3E%3Cpath d='M420 300C420 300 372 334 372 384C372 413 394 434 420 434C446 434 468 413 468 384C468 334 420 300 420 300Z' transform='rotate(-24 420 367)'/%3E%3Cpath d='M180 430C180 430 144 455 144 492C144 514 160 530 180 530C200 530 216 514 216 492C216 455 180 430 180 430Z' transform='rotate(40 180 480)'/%3E%3C/g%3E%3Cg stroke='%23279644' stroke-opacity='.06' stroke-width='3' fill='none'%3E%3Cpath d='M300 60V190'/%3E%3Cpath d='M480 120V210'/%3E%3Cpath d='M60 300V420'/%3E%3C/g%3E%3C/svg%3E"),
    var(--parchment);
  background-size:auto, auto, 560px 560px, auto;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--green); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 22px}

/* header */
.site-head{position:sticky; top:0; z-index:20; backdrop-filter:blur(12px);
  background:rgba(241,236,219,.82); border-bottom:1px solid var(--line)}
.site-head .wrap{display:flex; align-items:center; gap:16px; height:64px}
.brand{display:flex; align-items:center; gap:10px; font-weight:600; font-size:20px; color:var(--ink)}
.brand:hover{text-decoration:none}
.brand svg{width:30px; height:30px; flex-shrink:0}
.nav{margin-left:auto; display:flex; gap:22px; align-items:center; flex-wrap:wrap}
.nav a{color:var(--ink); font-weight:500; font-size:15px; opacity:.82}
.nav a:hover{opacity:1; text-decoration:none}

/* hero */
.hero{padding:56px 0 40px}
.hero .wrap{display:grid; grid-template-columns:1.15fr .85fr; gap:44px; align-items:center}
.hero h1{font-size:44px; line-height:1.08; font-weight:600; letter-spacing:-.5px; margin:0 0 16px}
.hero p.lead{font-size:18px; color:#3a4327; margin:0 0 26px; max-width:36ch}
.badges{display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.pill{display:inline-flex; align-items:center; gap:8px; background:var(--green-deep); color:var(--cream);
  border-radius:999px; padding:11px 18px; font-weight:600; font-size:15px}
.pill.soft{background:transparent; color:var(--green); border:1px solid rgba(39,150,68,.4)}
.tagchips{margin-top:22px; display:flex; gap:8px; flex-wrap:wrap}
.tagchips span{font-size:12.5px; font-weight:600; color:var(--green); background:rgba(39,150,68,.10);
  border:1px solid rgba(39,150,68,.22); border-radius:999px; padding:5px 11px}

/* hero app-card preview */
.preview{background:linear-gradient(160deg,#5aa64f,#103a1e); border-radius:30px; padding:22px;
  box-shadow:0 26px 60px rgba(16,45,25,.32)}
.preview .phead{display:flex; align-items:center; gap:8px; color:var(--cream); font-weight:600; margin-bottom:16px}
.preview .phead svg{width:20px;height:20px}
.pcard{background:var(--cream); border-radius:18px; padding:16px 16px 14px}
.pcard .row{display:flex; align-items:center; justify-content:space-between; gap:12px}
/* the mock card is always cream, so its inks stay the light-theme colours in dark mode too */
.pcard .bname{font-size:17px; font-weight:600; color:#241f0c}
.pcard .bcat{font-size:12px; color:#5c6440; letter-spacing:1.2px; text-transform:uppercase; margin-bottom:3px}
.ring{width:58px;height:58px;border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:600; font-size:19px; background:conic-gradient(var(--green-hi) 300deg, rgba(0,0,0,.10) 0)}
.ring b{background:var(--green); width:46px;height:46px;border-radius:50%; display:flex;align-items:center;justify-content:center; font-weight:600}
.pchips{display:flex; gap:6px; margin-top:12px}
.pchips span{font-size:11px; font-weight:600; color:var(--green); background:rgba(39,150,68,.10);
  border:1px solid rgba(39,150,68,.22); border-radius:999px; padding:3px 9px}
.powns{margin-top:12px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22);
  border-radius:14px; padding:11px 13px; color:var(--cream)}
.powns .k{font-size:10px; letter-spacing:1.4px; text-transform:uppercase; opacity:.8}
.powns .v{font-size:14px; font-weight:600}

/* sections */
section.band{padding:44px 0}
h2.sec{font-size:30px; font-weight:600; letter-spacing:-.3px; margin:0 0 6px}
.sub{color:var(--muted); font-size:16px; margin:0 0 28px}
.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:18px}
.feature{background:var(--card); border:1px solid var(--card-bd); border-radius:18px; padding:22px 20px}
.feature .ico{width:42px;height:42px;border-radius:12px; background:rgba(39,150,68,.12);
  display:flex;align-items:center;justify-content:center; margin-bottom:14px}
.feature .ico svg{width:22px;height:22px;stroke:var(--green)}
.feature h3{font-size:18px; font-weight:600; margin:0 0 6px}
.feature p{font-size:14.5px; color:#41492f; margin:0}

.note{background:linear-gradient(160deg,#e9efd9,#dbe6c6); border:1px solid var(--card-bd);
  border-radius:22px; padding:30px 28px}
.note p{font-size:16px; margin:0 0 10px}
.note p:last-child{margin-bottom:0}

/* legal / content pages */
.doc{max-width:720px; margin:0 auto; padding:36px 22px 72px}
.doc h1{font-size:34px; font-weight:600; letter-spacing:-.4px; margin:6px 0 4px}
.doc h2{font-size:20px; font-weight:600; margin:30px 0 8px}
.doc p, .doc li{font-size:15.5px}
.doc .muted{color:var(--muted); font-size:13.5px}
.doc .card{background:var(--card); border:1px solid var(--card-bd); border-radius:14px; padding:4px 18px; margin:18px 0}

/* contact form */
.form{max-width:520px}
.form label{display:block; font-weight:600; font-size:14px; margin:16px 0 6px}
.form input, .form textarea{width:100%; font-family:inherit; font-size:15px; color:var(--ink);
  background:var(--card); border:1px solid var(--card-bd); border-radius:12px; padding:12px 14px}
.form textarea{min-height:140px; resize:vertical}
.form button{margin-top:18px; background:var(--green); color:#fff; border:none; border-radius:12px;
  padding:13px 22px; font-family:inherit; font-weight:600; font-size:15px; cursor:pointer}
.form button:hover{background:#1f7d39}

/* footer */
.site-foot{margin-top:30px; background:linear-gradient(160deg,#2f6b39,#103a1e); color:var(--cream)}
.site-foot .wrap{padding:36px 22px; display:flex; flex-wrap:wrap; gap:20px 40px; align-items:flex-start}
.site-foot .fbrand{display:flex; align-items:center; gap:10px; font-weight:600; font-size:19px}
.site-foot .fbrand svg{width:28px;height:28px}
.site-foot nav{display:flex; gap:22px; flex-wrap:wrap; margin-left:auto}
.site-foot a{color:var(--cream); opacity:.85; font-size:15px}
.site-foot a:hover{opacity:1}
.site-foot .copy{flex-basis:100%; opacity:.6; font-size:13px; margin-top:6px}

@media (max-width:760px){
  .hero{padding:34px 0 24px}
  .hero .wrap{grid-template-columns:1fr; gap:30px}
  .hero h1{font-size:34px}
  .nav{display:none}
  h2.sec{font-size:25px}
}

@media (prefers-color-scheme: dark){
  :root{--parchment:#0c130a; --ink:#f2f6ea; --muted:#a7b795; --card:#161f12; --card-bd:#33422a; --line:#26331f}
  body{background:
    radial-gradient(60% 40% at 85% -5%, rgba(62,203,107,.10) 0%, rgba(62,203,107,0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560'%3E%3Cg fill='%233ecb6b' fill-opacity='.07'%3E%3Cpath d='M120 40C120 40 60 82 60 144C60 181 87 208 120 208C153 208 180 181 180 144C180 82 120 40 120 40Z' transform='rotate(18 120 124)'/%3E%3Cpath d='M420 300C420 300 372 334 372 384C372 413 394 434 420 434C446 434 468 413 468 384C468 334 420 300 420 300Z' transform='rotate(-24 420 367)'/%3E%3Cpath d='M180 430C180 430 144 455 144 492C144 514 160 530 180 530C200 530 216 514 216 492C216 455 180 430 180 430Z' transform='rotate(40 180 480)'/%3E%3C/g%3E%3Cg stroke='%233ecb6b' stroke-opacity='.08' stroke-width='3' fill='none'%3E%3Cpath d='M300 60V190'/%3E%3Cpath d='M480 120V210'/%3E%3Cpath d='M60 300V420'/%3E%3C/g%3E%3C/svg%3E"),
    var(--parchment);
    background-size:auto, 560px 560px, auto}
  .site-head{background:rgba(12,19,10,.82)}
  .hero p.lead{color:#c9d6b8}
  .feature p{color:#c2cfb0}
  .note{background:linear-gradient(160deg,#18271a,#12200f)}
  .nav a, .brand{color:var(--ink)}
}

/* ── Real device screenshots in Apple's official product bezels ── */
.phone img{display:block; width:100%; height:auto;
  filter:drop-shadow(0 22px 44px rgba(10,25,12,.34))}
.heropair{position:relative; aspect-ratio:0.6; max-width:400px; margin:0 auto; width:100%}
.heropair .phone{position:absolute; width:64%}
.heropair .back{left:0; top:0}
.heropair .front{right:0; bottom:0; z-index:2}
.shots{display:grid; grid-auto-flow:column; grid-auto-columns:224px; gap:22px;
  overflow-x:auto; scroll-snap-type:x mandatory; padding:10px 4px 16px;
  -webkit-overflow-scrolling:touch; scrollbar-width:thin}
.shot{margin:0; scroll-snap-align:start}
.shot figcaption{text-align:center; font-size:14px; font-weight:500; color:var(--muted); margin-top:10px}
.watchwrap{display:grid; grid-template-columns:1fr auto; gap:34px; align-items:center}
.watches{display:grid; grid-auto-flow:column; grid-auto-columns:156px; gap:16px;
  overflow-x:auto; scroll-snap-type:x mandatory; padding:6px 4px 10px;
  -webkit-overflow-scrolling:touch; scrollbar-width:thin}
.watch{scroll-snap-align:start}
.watch img{display:block; width:100%; height:auto;
  filter:drop-shadow(0 14px 30px rgba(10,25,12,.3))}
@media (max-width:820px){
  .watchwrap{grid-template-columns:1fr}
  .watches{grid-auto-columns:150px}
}

/* ── Widgets pair (lock screen stacked over the home screen, like the store slide) ── */
.sidewrap{display:grid; grid-template-columns:1fr auto; gap:38px; align-items:center}
.sidewrap.flip{grid-template-columns:auto 1fr}
.sidewrap.flip > div:first-child{order:2}
section[id]{scroll-margin-top:78px}
.stackpair{position:relative; aspect-ratio:0.6; width:min(380px, 88vw)}
.stackpair .phone{position:absolute; width:64%}
.stackpair .back{left:0; top:0}
.stackpair .front{right:0; bottom:0; z-index:2}
.solo{width:min(230px, 60vw)}
@media (max-width:820px){
  .sidewrap, .sidewrap.flip{grid-template-columns:1fr}
  .sidewrap.flip > div:first-child{order:0}
  .stackpair, .solo{margin:0 auto}
}

/* ── The features receipt (ShopFair's own format instead of a card grid) ── */
.receipt{max-width:560px; margin:8px auto 0; background:var(--cream); color:#241f0c;
  padding:26px 30px 30px; box-shadow:0 24px 60px rgba(20,50,25,.18);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 12px),97.5% 100%,95% calc(100% - 12px),92.5% 100%,90% calc(100% - 12px),87.5% 100%,85% calc(100% - 12px),82.5% 100%,80% calc(100% - 12px),77.5% 100%,75% calc(100% - 12px),72.5% 100%,70% calc(100% - 12px),67.5% 100%,65% calc(100% - 12px),62.5% 100%,60% calc(100% - 12px),57.5% 100%,55% calc(100% - 12px),52.5% 100%,50% calc(100% - 12px),47.5% 100%,45% calc(100% - 12px),42.5% 100%,40% calc(100% - 12px),37.5% 100%,35% calc(100% - 12px),32.5% 100%,30% calc(100% - 12px),27.5% 100%,25% calc(100% - 12px),22.5% 100%,20% calc(100% - 12px),17.5% 100%,15% calc(100% - 12px),12.5% 100%,10% calc(100% - 12px),7.5% 100%,5% calc(100% - 12px),2.5% 100%,0 calc(100% - 12px))}
.receipt .rhead{display:flex; align-items:center; justify-content:center; gap:8px;
  font-weight:600; letter-spacing:4px; font-size:15px; padding-bottom:14px;
  border-bottom:2px dashed #d8d0b2}
.receipt .rhead svg{width:18px; height:18px}
.receipt .ritem{padding:14px 0; border-bottom:2px dashed #d8d0b2}
.receipt .ritem h3{margin:0 0 6px; font-size:16px; font-weight:600; display:flex;
  align-items:baseline; justify-content:space-between; gap:12px; color:#241f0c}
.receipt .ritem p{margin:0; font-size:14px; line-height:1.6; color:#5c6440}
.receipt .rtotal{display:flex; justify-content:center; padding:14px 0 6px;
  font-weight:600; font-size:15px; letter-spacing:.4px}
.receipt .rbar{display:block; width:62%; height:22px; margin:8px auto 2px; opacity:.85}
@media (prefers-color-scheme: dark){
  .receipt{box-shadow:0 24px 60px rgba(0,0,0,.5)}
}
