/* SidexSide public website. Light, calm, scannable. Same colors and fonts as the app. No scripts: pure HTML and CSS.
   Design rules: one clear action per view (Fitts, Hick), about six choices at a time, short chunks (Miller), plenty of
   whitespace (8px grid), progressive disclosure for detail, thumb-sized buttons, strong contrast, follows light/dark. */
:root{
  --bg:#F5E8D5; --surface:#FFFCF6; --soft:#EBD9BE; --line:#DCC8A9;
  --text:#2A1F19; --text-2:#5A4A40;
  --accent:#C24E22; --accent-ink:#8C3816; --tint:#F8D4BF; --sage:#3B8C61; --sage-tint:#CDE6D4; --terra:#C24E22; --sun:#E8A020;
  --btn:#A8431C; --btn-text:#FFFFFF; --urgent:#C0413A; --urgent-tint:#F9D2CC;
  --glow:#F8D4BF;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} }
body{margin:0;background:var(--bg);color:var(--text);font-family:'Manrope',system-ui,sans-serif;font-size:18px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%}
a{color:var(--accent-ink);font-weight:700}
a:focus-visible,.btn:focus-visible,label:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:10px}
.wrap{max-width:1000px;margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-999px;top:8px;background:var(--surface);padding:10px 14px;border-radius:10px;z-index:20}
.skip:focus{left:8px}

/* type scale: 16 / 18 / 24 / 36 / 56 */
h1,h2,h3{font-family:'Fraunces',Georgia,serif;font-weight:500;letter-spacing:-.015em;margin:0}
h1{font-size:clamp(40px,8vw,60px);line-height:1.04}
h2{font-size:clamp(28px,5vw,38px);line-height:1.12;margin-bottom:12px}
h3{font-size:clamp(24px,4vw,30px);line-height:1.15;margin-bottom:8px}
p{margin:0 0 16px}
.sub{font-size:clamp(20px,3.4vw,24px);line-height:1.35;font-weight:700;margin:16px 0 20px}
.lede{font-size:19px;color:var(--text-2)}
.eyebrow{display:block;font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink);margin:0 0 12px}
.small{font-size:15px;color:var(--text-2)}

/* buttons: one primary, big enough for a thumb (48px+) */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 28px;border-radius:999px;background:var(--btn);color:var(--btn-text);font-weight:800;font-size:17px;text-decoration:none}
.btn:hover{filter:brightness(1.07)}
.btn.small{min-height:44px;padding:0 20px;font-size:15px}
.btn.ghost{background:transparent;color:var(--accent-ink);box-shadow:inset 0 0 0 2px var(--accent)}
.link{display:inline-flex;align-items:center;min-height:48px;font-weight:700}

/* top bar and hero */
.band{background:linear-gradient(180deg,var(--glow),var(--bg))}
header.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0}
.brand{display:flex;align-items:center;gap:10px;font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:22px;color:var(--text);text-decoration:none}
.brand img{width:36px;height:36px;border-radius:9px}
.hero{display:grid;gap:32px;align-items:center;padding:16px 0 56px}
@media (min-width:860px){ .hero{grid-template-columns:1.1fr .9fr;gap:56px;padding:32px 0 80px} }
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px;padding:0;list-style:none}
.chips li{background:var(--surface);border-radius:999px;padding:8px 16px;font-size:15px;font-weight:700}
.cta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
.fine{font-size:14.5px;color:var(--text-2);margin:16px 0 0}
.phone{justify-self:center;width:min(280px,72vw);border-radius:40px;border:8px solid var(--text);background:var(--text);box-shadow:0 24px 48px rgba(42,31,25,.2);overflow:hidden}
.phone img{display:block;width:100%;height:auto;border-radius:32px}

/* sections: lots of air */
section{padding:72px 0 8px}
.center{text-align:center}
.center .lede{max-width:560px;margin-left:auto;margin-right:auto}

/* mission: three quiet lines (rule of three) */
.three{display:grid;gap:24px;margin-top:32px;text-align:left}
@media (min-width:760px){ .three{grid-template-columns:repeat(3,1fr);gap:32px} }
.three b{display:block;font-family:'Fraunces',Georgia,serif;font-size:22px;line-height:1.2;margin-bottom:4px}
.three span{color:var(--text-2)}

/* the story */
.story{display:grid;gap:32px}
@media (min-width:860px){ .story{grid-template-columns:1fr 1fr;gap:56px;align-items:start} }
.story .big{font-family:'Fraunces',Georgia,serif;font-size:clamp(24px,4vw,30px);line-height:1.25;font-weight:500;margin-bottom:16px}
.quotes{display:grid;gap:12px}
.q{background:var(--surface);border-radius:24px;padding:20px 24px}
.q p{margin:0 0 8px;font-family:'Fraunces',Georgia,serif;font-size:20px;line-height:1.35}
.q small{display:block;font-size:14.5px;color:var(--text-2)}
.q b{font-weight:800;color:var(--text)}

/* the tour: six buttons, one part at a time (CSS only) */
.tourtabs{position:relative}
.tourtabs > input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.tabbar{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:32px 0 40px}
.tabbar label{cursor:pointer;display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:999px;background:var(--surface);font-weight:800;font-size:16px;color:var(--text);user-select:none;box-shadow:inset 0 0 0 1px var(--line)}
.tabbar label:hover{background:var(--tint)}
.panel{display:none;gap:32px;align-items:center}
@media (min-width:860px){ .panel{grid-template-columns:minmax(0,340px) 1fr;gap:56px} }
.panel .area{display:block;font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink);margin:0 0 8px}
.feats{list-style:none;padding:0;margin:16px 0 0}
.feats li{position:relative;padding:0 0 0 28px;margin-bottom:12px}
.feats li::before{content:"";position:absolute;left:3px;top:9px;width:10px;height:6px;border-left:3px solid var(--sage);border-bottom:3px solid var(--sage);transform:rotate(-45deg)}
.phones{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 4px 16px;margin:0 -4px}
@media (min-width:860px){ .phones{overflow:visible;justify-content:center} }
.shot{flex:none;width:min(230px,64vw);scroll-snap-align:center;border-radius:32px;border:6px solid var(--text);background:var(--text);box-shadow:0 16px 32px rgba(42,31,25,.18);overflow:hidden}
.shot img{display:block;width:100%;height:auto;border-radius:26px}
.note{text-align:center;font-size:14.5px;color:var(--text-2);margin:24px 0 0}

/* soft link card to the safety page */
.safecard{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;background:var(--sage-tint);border-radius:28px;padding:28px}
.safecard h3{margin:0 0 4px;font-size:24px}
.safecard p{margin:0;color:var(--text-2)}
.crisis{background:var(--urgent-tint);border-radius:20px;padding:16px 20px;margin-top:16px;font-size:16px}
.crisis p{margin:0}
.final{text-align:center;padding:80px 0 16px}
.final .cta{justify-content:center;margin-top:24px}
footer{margin:48px 0 0;padding:24px 0 96px;border-top:1px solid var(--line);font-size:15px;color:var(--text-2)}
footer .row{display:flex;flex-wrap:wrap;gap:8px 20px;margin-bottom:12px}

/* thumb-reachable main action on phones */
.sticky{display:none}
@media (max-width:640px){
  .sticky{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:10;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(180deg,transparent,var(--bg) 40%);justify-content:center}
  .sticky .btn{width:100%;max-width:420px;box-shadow:0 8px 20px rgba(0,0,0,.18)}
  .tabbar{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;margin-left:-20px;margin-right:-20px;padding:2px 20px 12px;scroll-snap-type:x proximity}
  .tabbar label{flex:none;scroll-snap-align:start;white-space:nowrap}
}

/* the safety page: a short summary, then detail only when asked for (progressive disclosure) */
.phead{padding:8px 0 48px;max-width:720px}
.take{display:grid;gap:16px;padding:8px 0 8px}
@media (min-width:760px){ .take{grid-template-columns:repeat(3,1fr);gap:24px} }
.take div{background:var(--surface);border-radius:24px;padding:24px}
.take b{display:block;font-family:'Fraunces',Georgia,serif;font-size:22px;line-height:1.2;margin-bottom:6px}
.take span{color:var(--text-2)}
.hint{text-align:center;color:var(--text-2);font-size:15px;margin:40px 0 16px}
.acc{max-width:760px;margin:0 auto}
.acc details{background:var(--surface);border-radius:24px;margin:0 0 12px}
.acc summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:16px;padding:20px 24px;font-family:'Fraunces',Georgia,serif;font-size:22px;font-weight:600;line-height:1.2;min-height:64px}
.acc summary::-webkit-details-marker{display:none}
.acc summary::after{content:"";margin-left:auto;width:10px;height:10px;border-right:3px solid var(--accent);border-bottom:3px solid var(--accent);transform:rotate(45deg);flex:none;transition:transform .15s}
.acc details[open] > summary::after{transform:rotate(-135deg)}
.acc .body{padding:0 24px 24px}
.acc .body .feats{margin-top:0}
.tablewrap{overflow-x:auto;border-radius:16px;background:var(--bg);margin:16px 0 0}
.tablewrap table{border-collapse:collapse;width:100%;min-width:440px;font-size:15.5px;line-height:1.45}
.tablewrap th,.tablewrap td{text-align:left;vertical-align:top;padding:12px 14px;border-bottom:1px solid var(--line)}
.tablewrap th{background:var(--soft);font-weight:800}
.tablewrap tr:last-child td{border-bottom:0}

/* which part of the app shows: the chosen button's panel only */
#tab1:checked ~ .tabbar label[for=tab1]{background:var(--btn);color:var(--btn-text);box-shadow:none}
#tab1:focus-visible ~ .tabbar label[for=tab1]{outline:3px solid var(--accent);outline-offset:3px}
#tab1:checked ~ .panels #p1{display:grid}
#tab2:checked ~ .tabbar label[for=tab2]{background:var(--btn);color:var(--btn-text);box-shadow:none}
#tab2:focus-visible ~ .tabbar label[for=tab2]{outline:3px solid var(--accent);outline-offset:3px}
#tab2:checked ~ .panels #p2{display:grid}
#tab3:checked ~ .tabbar label[for=tab3]{background:var(--btn);color:var(--btn-text);box-shadow:none}
#tab3:focus-visible ~ .tabbar label[for=tab3]{outline:3px solid var(--accent);outline-offset:3px}
#tab3:checked ~ .panels #p3{display:grid}
#tab4:checked ~ .tabbar label[for=tab4]{background:var(--btn);color:var(--btn-text);box-shadow:none}
#tab4:focus-visible ~ .tabbar label[for=tab4]{outline:3px solid var(--accent);outline-offset:3px}
#tab4:checked ~ .panels #p4{display:grid}
#tab5:checked ~ .tabbar label[for=tab5]{background:var(--btn);color:var(--btn-text);box-shadow:none}
#tab5:focus-visible ~ .tabbar label[for=tab5]{outline:3px solid var(--accent);outline-offset:3px}
#tab5:checked ~ .panels #p5{display:grid}
#tab6:checked ~ .tabbar label[for=tab6]{background:var(--btn);color:var(--btn-text);box-shadow:none}
#tab6:focus-visible ~ .tabbar label[for=tab6]{outline:3px solid var(--accent);outline-offset:3px}
#tab6:checked ~ .panels #p6{display:grid}

/* the three promises as colored circles, like people on the app's People and Help out screens */
.circles{display:grid;gap:32px;margin-top:40px;text-align:center}
@media (min-width:760px){ .circles{grid-template-columns:repeat(3,1fr);gap:40px} }
.circle{display:flex;flex-direction:column;align-items:center}
.ring{width:96px;height:96px;border-radius:50%;padding:5px;background:conic-gradient(#2E7D55,#E5A94B,#2E7D55);margin-bottom:16px}
.ring span{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;border:3px solid var(--bg);color:#fff;font-family:'Fraunces',Georgia,serif;font-size:38px;font-weight:600}
.circle b{font-family:'Fraunces',Georgia,serif;font-size:24px;line-height:1.2;margin-bottom:6px}
.circle p{margin:0;color:var(--text-2);max-width:300px}

/* tabs with three or more screens: text on top, screens in a row below, so nothing gets squeezed */
.panel > div{min-width:0}
@media (min-width:860px){
  .panel.wide{grid-template-columns:minmax(0,1fr)}
  .panel.wide > div:first-child{max-width:620px;margin:0 auto}
  .panel.wide .phones{flex-wrap:wrap}
  .panel.wide .shot{width:210px}
}

/* the app's own signatures: a two-tone bar under headings, the x mark on labels, the hills, the sunrise glow */
h1::after,h2::after{content:"";display:block;width:54px;height:3px;margin-top:14px;border-radius:2px;background:linear-gradient(90deg,var(--sage) 0 47%,transparent 47% 53%,var(--terra) 53% 100%)}
.center h2::after,.final h2::after,.center h1::after{margin-left:auto;margin-right:auto}
.eyebrow{display:flex;align-items:center;gap:8px;letter-spacing:.08em}
.center .eyebrow{justify-content:center}
.eyebrow::before{content:"";flex:none;width:11px;height:11px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6' stroke='%233B8C61' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M8 2L2 8' stroke='%23C24E22' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
.hills{line-height:0;height:36px;margin-top:56px}
.hills svg{display:block;width:100%;height:100%}
.hills .a{fill:var(--sage)}
.hills .b{fill:var(--terra)}
.hills.tall{height:64px;margin-top:0}
.heroart{position:relative;justify-self:center;display:grid;place-items:center}
.sunglow{position:absolute;width:min(360px,90vw);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(232,160,32,.55) 0 34%,rgba(232,160,32,.18) 52%,rgba(232,160,32,0) 70%);right:-8%;top:-12%}
.heroart .phone{position:relative;z-index:1}
.three,.circles{margin-top:40px}
.card,.q,.take div,.safecard,.acc details{border-radius:22px}
.q,.take div{box-shadow:0 1px 0 var(--line)}

/* calmer and simpler: more air, one idea per screen, quiet quotes */
section{padding:112px 0 8px}
.hero{padding-bottom:72px}
.lede{max-width:560px}
.center .lede{margin-bottom:0}
.circles{margin-top:64px}
.story{gap:48px}
.story .big{font-size:clamp(26px,4.4vw,34px);line-height:1.2;margin:0 0 20px}
.quotes{gap:32px}
.q{background:none;box-shadow:none;border-radius:0;padding:0 0 0 24px;border-left:3px solid var(--line)}
.q p{font-size:21px;line-height:1.4;margin-bottom:10px}
.tabbar{margin:40px 0 56px}
.final{padding:96px 0 16px}
.final .lede{margin-left:auto;margin-right:auto}
.hills{margin-top:96px}

/* nothing hides off to the side: the buttons and the screens wrap, so every one can be clicked with a mouse or a thumb */
.tabbar{flex-wrap:wrap;justify-content:center;overflow:visible;margin-left:0;margin-right:0;padding:0;scroll-snap-type:none}
.tabbar label{white-space:normal;text-align:center;justify-content:center}
.phones{overflow:visible;flex-wrap:wrap;justify-content:center;scroll-snap-type:none;margin:0;padding:4px 0 16px}
@media (max-width:640px){
  .tabbar{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
  .tabbar label{padding:0 6px;min-height:52px;font-size:15px}
  .shot{width:calc(50% - 8px)}
  .panel:not(.wide) .phones .shot:only-child{width:min(260px,80%)}
}

/* more color, like the app's people circles; always light */
:root{color-scheme:light;--bg:#FFF6E8;--cream:#FFF6E8;--peach:#FBE0CB;--sunlt:#FCEBC4;--sage-tint:#D3EBDA;--ink-on-color:#2A1F19}
body{background:var(--bg)}
.band{background:linear-gradient(180deg,#F9CFB4 0%,#FBE3B8 55%,var(--bg) 100%)}
.sunglow{background:radial-gradient(circle,rgba(232,160,32,.75) 0 36%,rgba(232,160,32,.28) 54%,rgba(232,160,32,0) 72%)}
h1{color:#2A1F19}
/* full-width colored bands without changing the page structure */
#why{background:var(--sage-tint);box-shadow:0 0 0 100vmax var(--sage-tint);clip-path:inset(0 -100vmax);padding-bottom:96px;margin-top:112px}
#inside{background:var(--peach);box-shadow:0 0 0 100vmax var(--peach);clip-path:inset(0 -100vmax);padding-bottom:88px;margin-top:0}
#mission{padding-bottom:0}
.final{background:#C24E22;box-shadow:0 0 0 100vmax #C24E22;clip-path:inset(0 -100vmax);padding:96px 0 96px;margin-top:0;color:#fff}
.final h2,.final .lede,.final .fine{color:#fff}
.final h2::after{background:linear-gradient(90deg,#FCEBC4 0 47%,transparent 47% 53%,#FCEBC4 53% 100%)}
.final .btn{background:#fff;color:#8C3816}
.final .link{color:#fff}
.hills.endhills{margin-top:0}
.hills.endhills .b{fill:#C24E22}
footer{background:none}
/* quotes: a colored bar for each person, like their circle in the app */
.quotes .q:nth-child(1){border-left-color:#8C5509}
.quotes .q:nth-child(2){border-left-color:#5B54B0}
.quotes .q:nth-child(3){border-left-color:#A83A6B}
.q{border-left-width:5px}
.circle .ring{box-shadow:0 8px 20px rgba(42,31,25,.12)}
.safecard{background:var(--sage-tint)}
.take div:nth-child(1){background:#D9EEEE}
.take div:nth-child(2){background:#FBE0CB}
.take div:nth-child(3){background:#EBDDF3}
#p1{--c:#2A7A78}
.tabbar label[for=tab1]{color:#2A7A78;box-shadow:inset 0 0 0 2px #2A7A78;background:#fff}
#tab1:checked ~ .tabbar label[for=tab1]{background:#2A7A78;color:#fff;box-shadow:none}
#p2{--c:#C24E22}
.tabbar label[for=tab2]{color:#C24E22;box-shadow:inset 0 0 0 2px #C24E22;background:#fff}
#tab2:checked ~ .tabbar label[for=tab2]{background:#C24E22;color:#fff;box-shadow:none}
#p3{--c:#A83A6B}
.tabbar label[for=tab3]{color:#A83A6B;box-shadow:inset 0 0 0 2px #A83A6B;background:#fff}
#tab3:checked ~ .tabbar label[for=tab3]{background:#A83A6B;color:#fff;box-shadow:none}
#p4{--c:#5B54B0}
.tabbar label[for=tab4]{color:#5B54B0;box-shadow:inset 0 0 0 2px #5B54B0;background:#fff}
#tab4:checked ~ .tabbar label[for=tab4]{background:#5B54B0;color:#fff;box-shadow:none}
#p5{--c:#3B8C61}
.tabbar label[for=tab5]{color:#3B8C61;box-shadow:inset 0 0 0 2px #3B8C61;background:#fff}
#tab5:checked ~ .tabbar label[for=tab5]{background:#3B8C61;color:#fff;box-shadow:none}
#p6{--c:#8C5509}
.tabbar label[for=tab6]{color:#8C5509;box-shadow:inset 0 0 0 2px #8C5509;background:#fff}
#tab6:checked ~ .tabbar label[for=tab6]{background:#8C5509;color:#fff;box-shadow:none}
.panel .area{color:var(--c)}
.panel .feats li::before{border-color:var(--c)}
.tabbar label:hover{filter:brightness(.96);background:#fff}
.tabbar label{font-size:16px}

/* all the language is centered */
body{text-align:center}
.eyebrow{justify-content:center}
h1::after,h2::after{margin-left:auto;margin-right:auto}
.lede,.sub,.fine{margin-left:auto;margin-right:auto}
.cta{justify-content:center}
.hero > div:first-child{text-align:center}
/* the story: centered words, and each quote gets its colored bar on top instead of the side */
.q{border-left:0;border-top:5px solid var(--line);padding:20px 8px 0;text-align:center}
.quotes .q:nth-child(1){border-top-color:#8C5509}
.quotes .q:nth-child(2){border-top-color:#5B54B0}
.quotes .q:nth-child(3){border-top-color:#A83A6B}
/* the tour: the words sit centered above the screens, for every part of the app */
.panel,.panel.wide{grid-template-columns:minmax(0,1fr) !important;gap:32px}
.panel > div:first-child{max-width:640px;margin:0 auto;text-align:center}
.panel .area{text-align:center}
.feats{text-align:center}
.feats li{padding-left:0}
.feats li::before{position:static;display:inline-block;width:10px;height:6px;margin:0 10px 0 0;vertical-align:middle;transform:rotate(-45deg) translateY(-2px)}
.phones,.panel.wide .phones{justify-content:center}
footer{text-align:center}
footer .row{justify-content:center}
/* the safety page */
.phead{margin-left:auto;margin-right:auto;text-align:center}
.take div{text-align:center}
.acc summary{justify-content:center;text-align:center;position:relative;padding-left:56px;padding-right:56px}
.acc summary::after{position:absolute;right:26px;top:50%;margin-top:-8px}
.acc .body{text-align:center}
.tablewrap th,.tablewrap td{text-align:center}
/* the three promises: plain icons in rounded tiles (circles are only for people) */
.icons{display:grid;gap:40px;margin-top:64px}
@media (min-width:760px){ .icons{grid-template-columns:repeat(3,1fr);gap:40px} }
.icon{display:flex;flex-direction:column;align-items:center}
.tile{width:72px;height:72px;border-radius:22px;display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.icon b{font-family:'Fraunces',Georgia,serif;font-size:24px;line-height:1.2;margin-bottom:6px;font-weight:500}
.icon p{margin:0;color:var(--text-2);max-width:300px}
/* the three of us, on the same level, as circles like the people in the app */
.people3{display:grid;gap:48px;margin-top:56px}
@media (min-width:860px){ .people3{grid-template-columns:repeat(3,1fr);gap:40px} }
.person{display:flex;flex-direction:column;align-items:center}
.person .ring{margin-bottom:16px}
.person .ring span{border-color:var(--sage-tint)}
.person b{font-family:'Fraunces',Georgia,serif;font-size:26px;font-weight:500;line-height:1.2}
.person small{display:block;font-size:14.5px;color:var(--text-2);margin:2px 0 16px}
.person p{font-family:'Fraunces',Georgia,serif;font-size:19px;line-height:1.45;margin:0;max-width:300px}
#why .lede{max-width:760px}
