/* The public pages (home, about, pricing, contact): black ground, very large type, real photos, mint for actions.
   One scroll moment per page at most (the home photo growing). */
.page-dark {
    --hm-bg: #000000;
    --hm-panel: #161617;
    --hm-text: #f5f5f7;
    --hm-muted: #86868b;
    --hm-dim: #3a3a3d;
    --hm-line: rgba(255, 255, 255, 0.12);
    --hm-link: var(--accent-light);
    --hm-font: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
    background: var(--hm-bg);
    color: var(--hm-text);
    font-family: var(--hm-font);
    -webkit-font-smoothing: antialiased;
}

/* Layout chrome on this page: a quiet translucent bar and a black footer */
.page-dark .navbar,
.page-dark .navbar.scrolled {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: none;
    border-bottom: 1px solid var(--hm-line);
    padding-block: 6px;
}
.page-dark .nav-links .nav-link { font-family: var(--hm-font); font-size: 14px; font-weight: 400; color: rgba(245, 245, 247, 0.8); }
.page-dark .nav-links .nav-link:hover,
.page-dark .nav-links .nav-link.active { color: var(--hm-text); }
.page-dark .nav-links .nav-link::after { display: none; }
.page-dark .nav-links .nav-link.active, .page-dark .nav-links .nav-link:hover { background: transparent; box-shadow: none; }
.page-dark .brand-logo { box-shadow: none; }
.page-dark .brand-name span { font-family: var(--hm-font); }
.page-dark .modern-footer { background: var(--hm-bg); border-top: 1px solid var(--hm-line); color: var(--hm-muted); }
.page-dark .modern-footer a { color: var(--hm-muted); }
.page-dark .modern-footer a:hover { color: var(--hm-text); }
.page-dark .footer-accent { display: none; }

.hm-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding-left: max(22px, env(safe-area-inset-left, 0px));
    padding-right: max(22px, env(safe-area-inset-right, 0px));
}

/* ── Hero ─────────────────────────────────────────────── */
.hm-hero { padding-top: 132px; text-align: center; overflow: hidden; }
.hm-title {
    font-size: clamp(64px, 13vw, 168px);
    line-height: 0.92;
    letter-spacing: -0.055em;
    font-weight: 700;
    margin: 0 0 22px;
}
.hm-lede {
    font-size: clamp(19px, 2.2vw, 26px);
    line-height: 1.35;
    color: var(--hm-muted);
    max-width: 30em;
    margin: 0 auto 30px;
    font-weight: 400;
    text-wrap: balance;
}
.hm-actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; }
.hm-btn {
    background: var(--accent);
    color: var(--on-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    padding: 13px 26px;
    border-radius: 999px;
    transition: transform 0.2s ease, background 0.2s ease;
}
.hm-btn:hover { background: var(--accent); color: var(--on-accent); transform: scale(1.03); }
.hm-link { color: var(--hm-link); text-decoration: none; font-size: 17px; }
.hm-link:hover { color: var(--hm-link); text-decoration: underline; }
.hm-btn:focus-visible, .hm-link:focus-visible, .hm-input:focus-visible { outline: 2px solid var(--hm-link); outline-offset: 3px; }

.hm-stage { margin-top: 64px; padding-inline: max(12px, env(safe-area-inset-left, 0px)); }
.hm-photo {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    overflow: hidden;
    transform-origin: 50% 0;
    background: var(--hm-panel);
}
.hm-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.hm-photo img.active { opacity: 1; }

/* ── Kinds of business: dim until they come into view, then lit for good ── */
.hm-kinds { padding-block: 120px 40px; }
.hm-kind {
    font-size: clamp(40px, 7.4vw, 96px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 700;
    margin: 0;
    color: var(--hm-text);
}
.hm-kinds-end { font-size: clamp(22px, 2.6vw, 30px); color: var(--hm-muted); margin: 36px 0 0; letter-spacing: -0.01em; }

/* ── Reveal (home.js): only once the script has marked the page, so nothing is ever hidden without it.
   Each element plays once and stays; nothing fades back on the way up. ── */
.js-reveal [data-rise]:not(.is-in) { opacity: 0; transform: translateY(28px); }
.js-reveal [data-rise] { transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-reveal [data-light]:not(.is-in) { color: var(--hm-dim); }
.js-reveal [data-light] { transition: color 0.8s ease-out; }
@media (prefers-reduced-motion: reduce) {
    .js-reveal [data-rise], .js-reveal [data-light] { transition: none; }
}

/* ── Sections ─────────────────────────────────────────── */
.hm-section { padding-block: 120px; }
.hm-h2 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 700;
    margin: 0 0 18px;
    max-width: 14em;
    text-wrap: balance;
}
.hm-sub { font-size: clamp(18px, 2vw, 23px); line-height: 1.4; color: var(--hm-muted); max-width: 32em; margin: 0 0 48px; }

.hm-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.hm-steps li {
    background: var(--hm-panel);
    border-radius: 22px;
    padding: 22px 18px 24px;
    display: grid;
    gap: 6px;
    align-content: start;
    min-height: 168px;
}
.hm-step-n { font-size: 15px; color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.hm-steps b { font-size: 22px; letter-spacing: -0.02em; margin-top: 28px; }
.hm-steps li span:last-child { color: var(--hm-muted); font-size: 15px; line-height: 1.35; }
.hm-steps li:last-child { background: var(--hm-text); color: #000; }
.hm-steps li:last-child span { color: #515154; }

.hm-app { background: var(--hm-panel); }
.hm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--hm-line); padding-top: 36px; }
.hm-facts div { display: grid; gap: 8px; }
.hm-facts b { font-size: 21px; letter-spacing: -0.02em; }
.hm-facts span { color: var(--hm-muted); font-size: 16px; line-height: 1.45; }
.hm-note { color: var(--hm-muted); font-size: 14px; margin: 40px 0 0; }

/* ── Search ───────────────────────────────────────────── */
.hm-find { text-align: center; }
.hm-find .hm-h2, .hm-find .hm-sub { margin-inline: auto; }
.hm-search { position: relative; max-width: 620px; margin: 0 auto; }
.hm-input {
    width: 100%;
    font: inherit;
    font-size: 19px;
    color: var(--hm-text);
    background: var(--hm-panel);
    border: 1px solid var(--hm-line);
    border-radius: 16px;
    padding: 18px 22px;
}
.hm-input::placeholder { color: var(--hm-muted); }
.hm-search .search-results-container {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: var(--hm-panel);
    border: 1px solid var(--hm-line);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    z-index: 3;
    max-height: 360px;
    overflow-y: auto;
}
.hm-search .search-result-item { display: flex; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--hm-line); color: inherit; text-decoration: none; }
.hm-search .search-result-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hm-search .search-result-item:last-child { border-bottom: 0; }
.hm-search .search-result-item:hover { background: rgba(255, 255, 255, 0.06); }
.hm-search .search-result-image img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.hm-search .search-result-name { font-weight: 600; }
.hm-search .search-result-location { color: var(--hm-muted); font-size: 14px; }
.hm-search .no-results, .hm-search .error-results { padding: 16px; color: var(--hm-muted); }

.hm-close { text-align: center; padding-bottom: 140px; }
.hm-close .hm-h2 { margin-inline: auto; margin-bottom: 32px; }
.hm-actions-center { justify-content: center; }

/* ── Narrow screens ───────────────────────────────────── */
@media (max-width: 900px) {
    .hm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hm-facts { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
    .hm-hero { padding-top: 104px; }
    .hm-photo { aspect-ratio: 4 / 5; border-radius: 24px; }
    .hm-section { padding-block: 84px; }
    .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-steps li { min-height: 140px; }
    .hm-steps b { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-photo img { transition: none; }
    .hm-btn { transition: none; }
}

/* ── Inner pages: a large title, a line under it, a wide photo ── */
.pg-hero { padding-top: 132px; text-align: center; }
.pg-title { font-size: clamp(48px, 9vw, 112px); line-height: 0.95; letter-spacing: -0.05em; font-weight: 700; margin: 0 0 22px; text-wrap: balance; }
.pg-lede { margin-bottom: 0; }
.pg-wide { max-width: 1440px; margin: 64px auto 0; padding-inline: max(12px, env(safe-area-inset-left, 0px)); }
.pg-wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 32px; display: block; }

/* ── Photos ── */
.pg-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 64px; }
.pg-gallery figure, .pg-pair figure { margin: 0; position: relative; overflow: hidden; border-radius: 24px; background: var(--hm-panel); }
.pg-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.6s ease; }
.pg-gallery figure:hover img { transform: scale(1.04); }
.pg-gallery figcaption, .pg-pair figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 40px 18px 14px; font-weight: 600; font-size: 17px; color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.pg-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto 72px; }
.pg-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.pg-photo-band { position: relative; background: #000 url("/assets/photos/street.jpg") center / cover no-repeat; padding-block: 160px; }
.pg-photo-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.82)); }
.pg-photo-band > .hm-wrap { position: relative; }

/* ── Words in columns ── */
.pg-three, .pg-values { display: grid; gap: 32px; }
.pg-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-three div, .pg-values div { display: grid; gap: 8px; align-content: start; border-top: 1px solid var(--hm-line); padding-top: 22px; }
.pg-three b, .pg-values b { font-size: 24px; letter-spacing: -0.02em; }
.pg-three span, .pg-values span { color: var(--hm-muted); font-size: 17px; line-height: 1.5; }
.pg-two-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pg-card { background: var(--hm-panel); border-radius: 26px; padding: 32px; display: grid; gap: 14px; align-content: start; }
.pg-card h2 { font-size: 28px; letter-spacing: -0.03em; margin: 0; }
.pg-card p { color: var(--hm-muted); font-size: 17px; line-height: 1.55; margin: 0; }

/* ── Pricing ── */
.pg-toggle { display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; font-size: 16px; color: var(--hm-muted); }
.billing-label.active { color: var(--hm-text); }
.pg-discount { color: var(--accent); font-weight: 600; margin-left: 4px; }
.pg-switch { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; border-radius: 999px; background: #3a3a3d; position: relative; cursor: pointer; transition: background 0.2s ease; }
.pg-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.2s ease; }
.pg-switch:checked { background: var(--accent); }
.pg-switch:checked::after { transform: translateX(22px); }
.pg-switch:focus-visible { outline: 2px solid var(--hm-link); outline-offset: 3px; }
.pg-plans-section { padding-block: 64px 40px; }
.pg-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pg-plan { position: relative; background: var(--hm-panel); border: 1px solid var(--hm-line); border-radius: 28px; padding: 32px 28px; display: flex; flex-direction: column; gap: 6px; }
.pg-plan-pick { border: 2px solid var(--accent); }
.pg-badge { position: absolute; top: -13px; left: 28px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 13px; border-radius: 999px; padding: 4px 12px; }
.pg-plan h3 { font-size: 26px; letter-spacing: -0.03em; margin: 0; }
.pg-plan-for { color: var(--hm-muted); margin: 0 0 14px; }
.pg-price { font-size: 46px; font-weight: 700; letter-spacing: -0.04em; margin: 0; font-variant-numeric: tabular-nums; }
.pg-price small { font-size: 17px; font-weight: 400; color: var(--hm-muted); letter-spacing: 0; margin-left: 4px; }
.pg-save { color: var(--accent); font-weight: 600; margin: 0; }
.pg-plan ul { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 10px; flex: 1; }
.pg-plan li { padding-left: 26px; position: relative; font-size: 16px; }
.pg-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pg-plan .hm-btn, .pg-btn-ghost { text-align: center; }
.pg-btn-ghost { border: 1px solid var(--hm-line); color: var(--hm-text); text-decoration: none; font-weight: 600; font-size: 17px; padding: 13px 26px; border-radius: 999px; }
.pg-btn-ghost:hover { color: var(--hm-text); border-color: var(--hm-text); }
.pg-table-wrap { overflow-x: auto; }
.pg-table { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 520px; }
.pg-table th, .pg-table td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--hm-line); }
.pg-table th { color: var(--hm-muted); font-weight: 500; font-size: 15px; }
.pg-yes { color: var(--accent); font-weight: 700; }
.pg-no { color: var(--hm-muted); }
.pg-faq { display: grid; gap: 10px; max-width: 820px; }
.pg-faq details { background: var(--hm-bg); border: 1px solid var(--hm-line); border-radius: 18px; padding: 20px 24px; }
.pg-faq summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 400; font-size: 24px; line-height: 1; }
.pg-faq details[open] summary::after { content: "−"; }
.pg-faq p { color: var(--hm-muted); margin: 12px 0 0; font-size: 17px; }

@media (max-width: 900px) {
    .pg-plans, .pg-three, .pg-two-cards { grid-template-columns: 1fr; }
    .pg-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .pg-hero { padding-top: 104px; }
    .pg-wide img { aspect-ratio: 4 / 3; border-radius: 22px; }
    .pg-values, .pg-pair { grid-template-columns: 1fr; }
    .pg-gallery { gap: 10px; }
    .pg-gallery figcaption { font-size: 15px; padding: 28px 12px 10px; }
    .pg-photo-band { padding-block: 110px; }
}
@media (prefers-reduced-motion: reduce) {
    .pg-gallery img, .pg-switch, .pg-switch::after { transition: none; }
}
