/* ShalaSquare public website. One stylesheet for every page; built by site/build.mjs. */
:root {
  --ink: #14231E;
  --ink-2: #3C4D46;
  --muted: #56665F;
  --line: #DDE3DA;
  --paper: #F7F8F4;
  --card: #FFFFFF;
  --green: #1F4D3F;
  --green-2: #285C4C;
  --green-deep: #123128;
  --green-soft: #E3EDE6;
  --green-tint: #EEF3EE;
  --on-green: #EAF2EC;
  --on-green-2: #B9CEC1;
  --amber: #E9A21B;
  --amber-soft: #F8E3B5;
  --amber-ink: #6B4A06;
  --amber-light: #F5C25B;
  --cream: #FBF4E4;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: Inter, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-deep); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 16px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 14px 22px; border-radius: 8px; border: 1.5px solid var(--green); line-height: 1.2; text-align: center; }
.btn--solid { background: var(--green); color: #fff; }
.btn--solid:hover { background: var(--green-deep); color: #fff; }
.btn--line { background: transparent; color: var(--green); }
.btn--amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-light); color: var(--ink); }
.btn--ghost-light { border-color: var(--on-green-2); color: #fff; }
.btn--ghost-light:hover { color: #fff; background: var(--green-2); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { display: grid; grid-template-columns: repeat(2, 12px); gap: 3px; }
.brand__mark span { width: 12px; height: 12px; border-radius: 2px; background: var(--green); }
.brand__mark span:nth-child(2), .brand__mark span:nth-child(3) { background: var(--amber); }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 15px; font-weight: 500; }
.nav > a, .menu > summary { text-decoration: none; color: var(--ink); padding: 10px 10px; border-radius: 8px; cursor: pointer; }
.nav > a:hover, .menu > summary:hover { background: var(--green-tint); }
.nav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { padding: 11px 18px; margin-left: 6px; }
.nav > a.btn--solid, .nav > a.btn--solid:hover { color: #fff; background: var(--green); }
.nav > a.btn--solid:hover { background: var(--green-deep); }
.nav-toggle { display: none; font: inherit; font-weight: 600; font-size: 15px; background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 16px; cursor: pointer; }
.menu { position: relative; }
.menu > summary { list-style: none; display: flex; align-items: center; gap: 6px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.menu[open] > summary { background: var(--green-tint); }
.menu__panel { position: absolute; top: calc(100% + 8px); left: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(20,35,30,0.14); padding: 14px; min-width: min(280px, calc(100vw - 48px)); display: grid; gap: 2px; z-index: 12; }
.site-header .wrap { position: relative; }
.menu--mega { position: static; }
.menu__panel--wide { left: 24px; right: 24px; top: calc(100% - 6px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; align-items: start; }
.menu__all { grid-column: 1 / -1; background: var(--green-tint); }
/* Short desktop windows: the panel scrolls inside the window rather than running off its bottom. */
.menu__panel { max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain; }
.menu__col { display: grid; gap: 2px; }
.menu__panel a { display: block; text-decoration: none; color: var(--ink); padding: 9px 12px; border-radius: 8px; }
.menu__panel a:hover { background: var(--green-tint); }
.menu__panel a span { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.menu__group { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
@media (max-width: 900px) {
  .site-header { position: static; }
  .menu, .site-header .wrap { position: static; }
  .menu__panel, .menu__panel--wide { position: static; min-width: 0; grid-template-columns: 1fr; box-shadow: none; margin-top: 6px; max-height: none; overflow: visible; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; }
  .nav .btn { margin: 6px 0 0; }
  .js .nav-toggle { display: inline-block; }
  .js .site-header:not(.nav-open) .nav { display: none; }
}

/* sections */
.section { padding: 80px 0; }
.section--white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: 56px 0; }
.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 46em; margin-bottom: 36px; }
.section__head h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; }
.section__head p { color: var(--ink-2); }

/* hero */
.hero { padding: 72px 0; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__text h1 { font-weight: 800; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.02em; }
.hero__visual { flex: 0 1 380px; min-width: 0; margin: 0 auto; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }

/* dark strip */
.strip { background: var(--green); color: var(--on-green); padding: 56px 0; }
.strip h2 { color: #fff; font-weight: 800; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; margin-bottom: 28px; }
.strip__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; }
.strip__item { background: var(--green-2); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.strip__item strong { color: #fff; font-weight: 600; }
.strip__item span { font-size: 15px; color: var(--on-green-2); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.card h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.card p { font-size: 15px; color: var(--ink-2); }
.card ul { margin: 0; padding-left: 20px; font-size: 15px; color: var(--ink-2); display: grid; gap: 6px; }
a.card { text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.card__more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--green); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.tag--pro { background: var(--amber-soft); color: var(--amber-ink); }
.tag--plus { background: var(--ink); color: #fff; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 22px; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.steps h3 { font-size: 20px; font-weight: 700; }
.steps p { font-size: 15px; color: var(--ink-2); }

/* split: text + list */
.split { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.split__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split__text h2 { font-weight: 800; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.split__text p { color: var(--ink-2); }
.split__list { flex: 1 1 420px; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.split__list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 46px; position: relative; font-size: 16px; }
.split__list li::before { content: ''; position: absolute; left: 18px; top: 19px; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; color: var(--green); }
.stat span { font-size: 15px; color: var(--ink-2); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 24px; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* tables */
.table-box { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
thead tr { background: var(--green-tint); }
th, td { padding: 12px 18px; text-align: left; }
th { font-weight: 600; }
tbody tr { border-top: 1px solid var(--line); }
tbody th { font-weight: 500; }
td.c, th.c { text-align: center; }
td.r, th.r { text-align: right; }
td.yes { color: var(--green); font-weight: 700; text-align: center; }
td.no { color: #8A9690; text-align: center; }
tr.hi { background: var(--cream); }
.table-box--compare table { min-width: 640px; }
.table-note { margin-top: 14px; }

/* plans */
.plans { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.plan { flex: 1 1 300px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.plan--pick { border: 2px solid var(--green); }
.plan--dark { background: var(--ink); color: var(--on-green); border-color: var(--ink); }
.plan--dark h3, .plan--dark .plan__price strong { color: #fff; }
.plan--dark .plan__sub, .plan--dark .plan__price span, .plan--dark .plan__note { color: var(--on-green-2); }
.plan h3 { font-size: 26px; font-weight: 700; }
.plan__sub { font-size: 15px; color: var(--ink-2); }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price strong { font-family: var(--display); font-size: 46px; font-weight: 800; letter-spacing: -0.02em; }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan__note { font-size: 14px; color: var(--muted); margin-top: -10px; }
.plan .tag { align-self: flex-start; }
.panel td, .panel th { white-space: nowrap; }
.plan__plus { font-size: 14px; font-weight: 600; color: var(--green); }
.plan--dark .plan__plus { color: var(--amber-light); }
.plan ul { margin: 0; padding-left: 20px; display: grid; gap: 9px; font-size: 15px; }

/* prose (legal, about) */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 26px; font-weight: 700; margin-top: 18px; }
.prose h3 { font-size: 19px; font-weight: 700; margin-top: 6px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose p, .prose li { color: var(--ink-2); }
.note { background: var(--cream); border: 1px solid #F0D9A4; border-radius: 12px; padding: 14px 18px; font-size: 15px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }

/* related links */
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 500; color: var(--ink); }
.related a:hover { border-color: var(--green); color: var(--green); }

/* call to action band */
.cta { background: var(--green); color: var(--on-green); }
.cta .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta__text h2 { color: #fff; font-weight: 800; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; }
.cta__text p { color: var(--on-green-2); max-width: 36em; }
.cta__actions { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.cta__actions p { color: var(--on-green-2); }
.cta__actions p a { color: #fff; font-weight: 600; }

/* footer */
.site-footer { background: var(--ink); color: var(--on-green-2); padding: 56px 0 32px; font-size: 14px; }
.site-footer a { color: var(--on-green); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 28px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-green-2); margin-bottom: 4px; }
.footer__brand .brand { color: #fff; }
.footer__brand .brand:hover { color: #fff; text-decoration: none; }
.footer__base { border-top: 1px solid #2C3D37; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* drawn phone */
.phone { width: 300px; max-width: 100%; margin: 0 auto; background: var(--ink); border-radius: 40px; padding: 12px; box-shadow: 0 24px 48px rgba(20,35,30,0.18); }
.phone__screen { background: var(--paper); border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; }
.phone__bar { background: var(--green); color: #fff; padding: 22px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.phone__bar small { font-size: 12px; color: var(--on-green-2); }
.phone__bar b { font-family: var(--display); font-weight: 700; font-size: 20px; }
.phone__body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.phone__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.phone__tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.phone__tile b { display: block; font-family: var(--display); font-weight: 800; font-size: 24px; }
.phone__tile span { font-size: 12px; color: var(--muted); }
.phone__row { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.phone__row--warn { background: var(--cream); border-color: #F0D9A4; }
.phone__row--stack { flex-direction: column; align-items: flex-start; gap: 2px; }
.phone__row--stack span { color: var(--muted); }
.phone__btn { background: var(--green); color: #fff; border-radius: 10px; padding: 12px; text-align: center; font-weight: 600; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.pill--bad { background: #F9DCD3; color: #8A2E12; }
.pill--late { background: var(--amber-soft); color: var(--amber-ink); }
.phone--lock .phone__screen { background: #DCE6DF; padding: 26px 12px 18px; gap: 10px; }
.lock__time { text-align: center; font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; }
.lock__day { text-align: center; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.lock__note { background: rgba(255,255,255,0.92); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.lock__note small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.lock__note span { color: var(--ink-2); }
.figcap { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* drawn laptop panel */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px rgba(20,35,30,0.12); overflow: hidden; }
.panel__bar { background: var(--green-tint); padding: 12px 16px; display: flex; gap: 6px; align-items: center; }
.panel__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.panel__bar b { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.panel__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.panel table { font-size: 13px; }
.panel th, .panel td { padding: 8px 10px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.card { transition: none; } }
@media print { .site-header, .cta, .site-footer { display: none; } body { background: #fff; } }
