/* Public website layout. Colors, fonts, buttons and form fields come from brand.css. */

[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:target { scroll-margin-top: 96px; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(247, 247, 245, 0.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-head { background: rgba(247, 247, 245, 0.82); backdrop-filter: blur(10px); } }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand img { width: 186px; height: auto; }
.nav-main { display: flex; gap: 4px; margin-left: auto; }
.nav-main a, .nav-sheet a:not(.btn) { padding: 8px 12px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--muted); border-radius: var(--radius); }
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--ink); background: var(--fog); }
.head-cta { min-height: 40px; }
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 700; font-size: 14px; cursor: pointer; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 16px; height: 2px; background: var(--ink); position: relative; content: ''; }
.bars::before { position: absolute; top: -5px; } .bars::after { position: absolute; top: 5px; }
.nav-mobile[open] .bars { background: transparent; }
.nav-mobile[open] .bars::before { top: 0; transform: rotate(45deg); }
.nav-mobile[open] .bars::after { top: 0; transform: rotate(-45deg); }
.nav-sheet { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 20px; background: var(--mist); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(0, 0, 0, 0.06); }
.nav-sheet a:not(.btn) { font-size: 17px; padding: 12px 8px; color: var(--ink); }
.nav-sheet a[aria-current="page"] { background: var(--fog); }
.nav-sheet .btn { margin-top: 10px; }
@media (max-width: 1040px) {
  .nav-main, .head-cta { display: none; }
  .nav-mobile { display: block; }
  .brand img { width: 168px; }
  .head-row { min-height: 64px; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: #0A0A0A; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p.lead, .lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.sec-head.center p.lead { margin-left: auto; margin-right: auto; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section.tight { padding: 48px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-head p.lead, .lead { font-size: 17px; }
}

/* The brand's 3x3 grid, used as a small decoration */
.gridmark { display: inline-grid; grid-template-columns: repeat(3, 8px); gap: 3px; vertical-align: middle; }
.gridmark i { width: 8px; height: 8px; background: currentColor; opacity: 0.16; }
.gridmark i:nth-child(1), .gridmark i:nth-child(4), .gridmark i:nth-child(7), .gridmark i:nth-child(8), .gridmark i:nth-child(9) { opacity: 1; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 22px; }
.hero .lead { font-size: 20px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span::before { content: '■'; font-size: 9px; margin-right: 7px; vertical-align: 2px; }
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { font-size: 20px; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .lead, .page-hero .lead { font-size: 17px; }
  .page-hero { padding: 48px 0 24px; }
}

/* Product stack: a website, its admin and its app, shown together */
.stack { position: relative; padding: 0 0 40px 0; }
.frame { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10, 10, 10, 0.35); }
.frame .bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--fog); border-bottom: 1px solid var(--line); }
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.frame .bar span { margin-left: 10px; font-size: 11px; color: var(--faint); font-weight: 600; }
.frame img { width: 100%; height: auto; }
.stack .phone { position: absolute; right: -8px; bottom: 0; width: 30%; max-width: 170px; border: 6px solid #0A0A0A; border-radius: 22px; overflow: hidden; background: #0A0A0A; box-shadow: 0 24px 40px -20px rgba(10, 10, 10, 0.5); }
.stack .phone img { width: 100%; height: auto; aspect-ratio: 390 / 700; object-fit: cover; object-position: top; border-radius: 14px; }
.stack .ping { position: absolute; left: -22px; bottom: 18px; width: min(270px, 62%); background: #0A0A0A; color: #fff; border-radius: 6px; padding: 14px 16px; box-shadow: 0 20px 40px -20px rgba(10, 10, 10, 0.6); }
.stack .ping .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #9A9A94; font-weight: 700; }
.stack .ping .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 7px 0; border-top: 1px solid #262626; }
.stack .ping .row:first-of-type { border-top: 0; }
.stack .ping .row b { font-weight: 600; }
.stack .ping .row em { font-style: normal; color: #9A9A94; }
@media (max-width: 900px) { .stack .ping { left: 8px; } .stack .phone { right: 4px; } }

/* ---------------------------------------------------------------- stats strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip .item { padding: 26px 20px; border-left: 1px solid var(--line); }
.strip .item:first-child { border-left: 0; padding-left: 0; }
.strip .num { font-family: var(--font-display); font-size: 26px; font-weight: 500; }
.strip .lab { font-size: 14px; color: var(--muted); }
@media (max-width: 800px) {
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .strip .item { padding: 20px 14px; }
  .strip .item:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip .item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cards.three, .cards.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cards.two, .cards.three, .cards.five { grid-template-columns: 1fr; } }
.page-kits .hero h1 { font-size: clamp(34px, 4.3vw, 54px); }
.offer.feature .btn { background: #fff; color: #0A0A0A; border-color: #fff; align-self: flex-start; margin-top: auto; }
.offer.feature .btn:hover { background: #E9E9E6; }
.offer { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; transition: border-color 0.15s; }
.offer:hover { border-color: var(--line-strong); }
.offer .no { font-family: var(--font-display); font-size: 13px; color: var(--faint); margin-bottom: 26px; }
.offer h3 { margin-bottom: 10px; }
.offer p { color: var(--muted); }
.offer ul { margin: 4px 0 20px; padding: 0; list-style: none; }
.offer li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--line); font-size: 15px; }
.offer li:first-child { border-top: 0; }
.offer li::before { content: ''; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; background: var(--ink); }
.offer .more { margin-top: auto; font-weight: 700; font-size: 15px; text-decoration: none; }
.offer .more::after { content: ' →'; }
.offer.feature { background: #0A0A0A; color: #fff; border-color: #0A0A0A; }
.offer.feature p, .offer.feature .no { color: #A3A39E; }
.offer.feature li { border-color: #262626; }
.offer.feature li::before { background: #fff; }
.offer .badge { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 8px; border: 1px solid currentColor; border-radius: var(--radius); margin-bottom: 18px; }
.also { margin-top: 20px; font-size: 15px; color: var(--muted); }
.also a { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); }
.steps li { list-style: none; padding: 26px 22px; border-left: 1px solid var(--line); counter-increment: step; }
.steps li:first-child { border-left: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 13px; color: var(--faint); margin-bottom: 18px; }
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--muted); margin: 0; }
ol.steps { margin: 0; padding: 0; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .steps, .steps.four { grid-template-columns: 1fr; }
  .steps li { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; padding: 20px; }
  .steps li:first-child { border-top: 0; }
  .steps li::before { margin: 2px 0 0; grid-row: span 2; }
}

/* ---------------------------------------------------------------- rent vs own */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.bill { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); }
.bill .line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 15px; }
.bill .line:first-child { border-top: 0; }
.bill .line span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.bill .total { background: var(--fog); font-weight: 700; }
.bill .big { background: #0A0A0A; color: #fff; font-family: var(--font-display); font-size: 18px; border-radius: 0 0 var(--radius-card) var(--radius-card); }
.bill .note { padding: 12px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.checks { list-style: none; margin: 20px 0 28px; padding: 0; }
.checks li { position: relative; padding: 8px 0 8px 30px; font-size: 17px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 14px; width: 14px; height: 14px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 45%, 45% 45%, 45% 100%, 0 100%); }
.dark .checks li::before { background: #fff; }

/* ---------------------------------------------------------------- work */
.work-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.work-card .shot { aspect-ratio: 16 / 10; background: var(--fog); border-bottom: 1px solid var(--line); overflow: hidden; }
.work-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-card .shot.empty { display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.work-card .shot.empty .gridmark { margin-bottom: 12px; color: var(--ink); }
.work-card .mini-shots { display: grid; grid-template-columns: 1fr 1fr 0.45fr; gap: 10px; margin-top: 16px; align-items: end; }
.work-card .mini-shots a { display: block; color: var(--muted); font-size: 12px; text-decoration: none; }
.work-card .mini-shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 8px; background: var(--fog); }
.work-card .mini-shots .tall img { aspect-ratio: 9 / 16; }
.work-card .mini-shots span { display: block; margin-top: 6px; }
.work-card .mini-shots a:hover img, .work-card .mini-shots a:focus-visible img { border-color: var(--ink); }
.work-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.work-card .kind { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.work-card h3 { margin-bottom: 8px; }
.work-card p { color: var(--muted); font-size: 15px; }
.work-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.work-card .actions { margin-top: auto; }

/* ---------------------------------------------------------------- about */
.portrait { position: relative; margin: 0; }
.portrait img { width: 100%; height: auto; border-radius: var(--radius-card); aspect-ratio: 4 / 5; object-fit: cover; }
.portrait figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.portrait .gridmark { position: absolute; right: -14px; top: -14px; color: var(--ink); background: var(--mist); padding: 8px; }
.quote { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; font-weight: 400; margin: 0 0 24px; }

/* ---------------------------------------------------------------- reviews */
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; }
.review blockquote { margin: 0 0 18px; font-size: 17px; }
.review figcaption { font-size: 14px; color: var(--muted); }
.review figcaption b { color: var(--ink); }

/* ---------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-weight: 700; font-size: 18px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-display); font-size: 22px; font-weight: 400; flex: none; transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }
.faq .ans p:last-child { margin: 0; }
.faq-group { margin-top: 48px; }
.faq-group:first-child { margin-top: 0; }
.faq-group h2 { font-size: 22px; margin-bottom: 8px; }

/* ---------------------------------------------------------------- closing call to action */
.cta-band { padding: 96px 0; text-align: left; }
.cta-band .inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: end; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 54px); margin: 0; max-width: 16ch; }
.cta-band p { color: var(--muted); margin: 16px 0 0; max-width: 54ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .cta-band { padding: 64px 0; } .cta-band .inner { grid-template-columns: 1fr; gap: 28px; } }

/* ---------------------------------------------------------------- apply form */
.apply-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .apply-grid { grid-template-columns: 1fr; gap: 32px; } }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; }
@media (max-width: 600px) { .form-card { padding: 22px 18px; } }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.form-card legend { font-family: var(--font-display); font-size: 18px; padding: 0; margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.req { color: var(--muted); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; user-select: none; background: var(--paper); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { box-shadow: var(--focus); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; background: var(--paper); }
.side-card + .side-card { margin-top: 16px; }
.side-card h3 { font-size: 18px; }
.side-card ol { margin: 0; padding-left: 20px; }
.side-card ol li { padding: 6px 0; }
.waitlist-note { margin-bottom: 20px; }

/* ---------------------------------------------------------------- long text pages */
.prose { max-width: 72ch; }
.prose h2 { font-size: 22px; margin-top: 40px; }
.prose p, .prose li { color: #2B2B2B; }
.prose .updated { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- footer */
.site-foot { padding: 72px 0 32px; }
.site-foot a { color: #CFCFCB; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; padding-bottom: 48px; border-bottom: 1px solid #262626; }
.foot-brand img { width: 214px; height: auto; margin-bottom: 18px; }
.foot-brand p { color: #A3A39E; font-family: var(--font-display); font-size: 18px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #3A3A3A; border-radius: var(--radius); }
.socials a:hover { background: #1C1C1C; text-decoration: none; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot-nav h4 { color: #77776F; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.foot-nav a { display: block; padding: 5px 0; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13px; color: #77776F; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; } }

/* Reviews (filled in from the reviews you approve in the admin) */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.review { margin: 0; padding: 24px; background: var(--mist); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.review figcaption { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.review figcaption strong { color: var(--ink); }
