:root {
    --ink: #171717;
    --muted: #505050;
    --line: #dedede;
    --surface: #f5f5f5;
    --section-space: clamp(2.25rem, 5vw, 4.75rem);
}

body {
    color: var(--ink);
    background: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: underline; text-underline-offset: .21em; }
a:hover { color: inherit; text-decoration-color: var(--shashap-secondary); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 650; }
.hero-title, .reading-page h1 { color: var(--shashap-brand); }
h2 { font-size: clamp(1.4rem, 2.65vw, 2rem); line-height: 1.2; letter-spacing: -.024em; }
section[id], #contact { scroll-margin-top: 1.5rem; }
.hero-art, .card-feature-panel, .get-started-panel, .reading-card, .shashap-terms .card { border-radius: 10px; }

.site-header, .site-footer { background: var(--surface); color: white; }
.site-header { background: white; }
.site-header :is(a, summary):focus-visible, .site-footer a:focus-visible { outline-color: white; }
.site-header-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 16px; }
.site-brand { display: inline-flex; align-items: center; flex: none; justify-self: start; }
.desktop-navigation { display: flex; align-items: center; gap: clamp(.65rem, 2vw, 1.65rem); margin-left: auto; }
.desktop-navigation a, .language a, .mobile-navigation summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}
.desktop-navigation a:not(.site-button):hover, .language a:hover { text-decoration: underline; }
.site-header nav a, .mobile-navigation summary { color: var(--shashap-brand); }
.site-header nav a:not(.site-button):is(:hover, :focus-visible),
.mobile-navigation summary:is(:hover, :focus-visible) { color: var(--shashap-secondary); }
.mobile-navigation { display: none; }
.language { display: flex; }
.language a { justify-content: center; min-width: 44px; border-bottom: 2px solid transparent; }
.language a[aria-current="page"] { border-bottom-color: var(--shashap-brand); }
.site-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .95rem;
    border: 1px solid var(--shashap-brand);
    border-radius: 4px;
    background: transparent;
    color: var(--shashap-brand);
    font-weight: 650;
    text-decoration: none;
}
.site-button:is(:hover, :focus-visible) {
    background: var(--shashap-brand);
    color: white;
    text-decoration: none;
}

.hero-wrap { padding-block: var(--section-space) calc(var(--section-space) / 2); }
.hero-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hero-copy::before {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    margin-bottom: 1.35rem;
    background: var(--shashap-brand);
}
.hero-title {
    max-width: 20ch;
    margin: 0 0 .9rem;
    font-size: clamp(2rem, 3.9vw, 3.45rem);
    line-height: 1.1;
    letter-spacing: -.032em;
    text-wrap: balance;
}
.hero-desc { max-width: 44ch; font-size: clamp(1rem, 1.65vw, 1.125rem); color: var(--muted); margin-bottom: 1.35rem; }
.hero-art {
    display: grid;
    place-items: center;
    padding: clamp(1.2rem, 3vw, 2rem);
    background: var(--surface);
}
.hero-art img { width: min(100%, 19.5rem); }
.store-icons { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.store-icons a { display: inline-flex; align-items: center; min-height: 44px; border-radius: 5px; }
.store-icons img { width: 128px; height: 37.6px; border-radius: inherit; }
.reviews { margin: .8rem 0 0; color: var(--muted); font-size: .875rem; }
.reviews a { display: inline-flex; min-height: 44px; align-items: center; }

.landing-section { padding-block: calc(var(--section-space) / 2); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: stretch; }
.card-feature-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: var(--surface);
}
.card-feature-copy { padding: clamp(1.25rem, 3vw, 2rem); border-top: 3px solid var(--shashap-brand); }
.card-feature-copy p, .control-panel p, .product-strip p { max-width: 47ch; color: var(--muted); }
.card-feature-image { position: relative; min-height: 14rem; aspect-ratio: 4 / 3; }
.card-feature-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 67% center; }
.card-feature-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(0 0 0 / 60%), rgb(0 0 0 / 15%) 75%);
    pointer-events: none;
}
.feature-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 650; }
.feature-link:focus-visible { outline-offset: 2px; }
.control-panel { padding: 1.35rem 0; border-top: 1px solid var(--shashap-secondary); align-self: center; }
.control-panel p { margin-bottom: 0; }
.product-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2.5rem;
    align-items: start;
    padding-block: clamp(1.5rem, 4vw, 3.5rem);
    border-block: 1px solid var(--line);
}
.product-strip h2, .more-apps h2, .get-started-panel h2 { margin: 0; }
.more-apps h2 { color: var(--shashap-brand); }
.product-strip p { margin-top: 0; }
.more-apps { padding-block: calc(var(--section-space) / 2); }
.more-apps-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; align-items: start; }
.services-list { padding: 0; margin: 0; list-style: none; }
.services-list li { display: flex; align-items: center; gap: .75rem; min-height: 47px; border-bottom: 1px solid var(--line); font-weight: 600; }
.services-list li:first-child { border-top: 1px solid var(--line); }
.services-list li::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--shashap-brand); }
.get-started-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border-inline-start: 3px solid var(--shashap-brand);
    color: white;
    background-color: var(--ink);
    background-image: linear-gradient(rgb(0 0 0 / 70%), rgb(0 0 0 / 55%)), url("/assets/img/shashap-logo.png");
    background-position: center 65%;
    background-size: cover;
}
.get-started-panel h2 { max-width: 24ch; }
.get-started-panel .store-icons { flex: none; }
.get-started-panel .store-icons a:focus-visible { outline-color: white; }
#get-started { padding-bottom: var(--section-space); }

.site-footer { padding-block: clamp(1.75rem, 4vw, 3rem); }
.footer-layout { display: grid; grid-template-columns: minmax(14rem, 1fr) 1.6fr; align-items: start; gap: 1rem 2.5rem; }
.footer-navigation { display: flex; align-items: start; flex-wrap: wrap; gap: .1rem 1.2rem; }
.footer-navigation a, .footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--shashap-brand);
}
.footer-navigation a:is(:hover, :focus-visible),
.footer-contact a:is(:hover, :focus-visible) { color: var(--shashap-secondary); }
.site-footer .social-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: .5rem; }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--shashap-brand); }
.social-links a:is(:hover, :focus-visible) { color: var(--shashap-secondary); }
.social-links a::before {
    content: "";
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: var(--social-icon) center / contain no-repeat;
    mask: var(--social-icon) center / contain no-repeat;
}
.social-links [data-icon="facebook.svg"] { --social-icon: url("/assets/img/social-facebook.svg"); }
.social-links [data-icon="instagram.svg"] { --social-icon: url("/assets/img/social-instagram.svg"); }
@media (forced-colors: active) {
    .social-links a::before { forced-color-adjust: none; background-color: LinkText; }
}
.footer-contact { grid-column: 1; grid-row: 2; color: var(--muted); }
.footer-contact p, .footer-contact address { margin-bottom: .25rem; }
.footer-contact ul { display: flex; flex-wrap: wrap; gap: .15rem 1.2rem; padding: 0; margin: 0; list-style: none; }

.reading-page { max-width: 76ch; padding-block: var(--section-space); overflow-wrap: anywhere; }
.reading-page h1 { font-size: clamp(1.9rem, 4.6vw, 2.85rem); line-height: 1.12; letter-spacing: -.027em; margin-bottom: 1.25rem; }
.reading-page h2 { font-size: clamp(1.25rem, 3.3vw, 1.55rem); }
.reading-page h3 { font-size: 1.1rem; line-height: 1.4; }
.reading-page .text-primary { color: var(--ink) !important; }
.shashap-terms .card { border: 0; }
.shashap-terms .card-body { padding: 0; }
.shashap-terms > nav.card { background: var(--surface); padding: 1.25rem; margin-block: 1.4rem 1.8rem; }
.shashap-terms > section.card, .reading-card, .shashap-privacy-policy > section {
    border-top: 1px solid var(--line);
    padding-top: 1.35rem;
    margin-top: 1.35rem;
}
.shashap-terms ul, .shashap-terms ol, .reading-page ol, .reading-page ul { padding-inline-start: 1.4rem; }
.reading-page table { display: block; max-width: 100%; overflow-x: auto; }

@media (max-width: 991px) {
    .feature-grid { grid-template-columns: 1fr; }
    .control-panel { padding-block: 1rem 0; }
    .get-started-panel { flex-wrap: wrap; }
}
@media (max-width: 767px) {
    .desktop-navigation { display: none; }
    .mobile-navigation { display: block; position: relative; margin-left: auto; }
    .mobile-navigation summary { gap: .4rem; cursor: pointer; }
    .mobile-navigation summary::before { content: ""; width: .45rem; height: .45rem; border-inline-end: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
    .mobile-navigation[open] summary::before { transform: rotate(225deg); }
    .mobile-navigation nav { display: grid; position: absolute; inset-inline-end: 0; z-index: 1; min-width: 12rem; background: #fff; border: 1px solid var(--line); padding: .3rem .8rem; }
    .site-header .mobile-navigation nav a:not(.site-button) { display: flex; align-items: center; min-height: 44px; color: var(--shashap-brand); }
    .site-header .mobile-navigation nav a:focus-visible { outline-color: var(--ink); }
    .site-header-inner { gap: .65rem; padding-inline: 24px; }
    .hero-layout, .product-strip, .more-apps-layout, .footer-layout { grid-template-columns: 1fr; }
    .hero-layout { gap: 1.5rem; }
    .hero-art img { width: min(100%, 15rem); }
    .hero-copy::before { margin-bottom: 1rem; }
    .footer-contact, .site-footer .social-links { grid-column: auto; grid-row: auto; }
}
@media (max-width: 520px) {
    .card-feature-panel { grid-template-columns: 1fr; }
    .card-feature-image { min-height: 0; aspect-ratio: 16 / 9; }
    .card-feature-photo { object-position: center 68%; }
    .get-started-panel { padding-inline: .75rem; }
    .get-started-panel .store-icons { flex: 0 1 auto; }
}
.hero-title, .reading-page h1, .more-apps h2,
.site-header nav a, .mobile-navigation summary, .footer-navigation a, .footer-contact a,
.social-links a, .site-button { color: var(--shashap-link); }
.site-header :is(a, summary):focus-visible, .site-footer a:focus-visible { outline-color: var(--ink); }
.site-header .mobile-navigation nav a:not(.site-button) { color: var(--shashap-link); }
.site-header nav a:not(.site-button):is(:hover,:focus-visible),
.mobile-navigation summary:is(:hover,:focus-visible), .footer-navigation a:is(:hover,:focus-visible),
.footer-contact a:is(:hover,:focus-visible), .social-links a:is(:hover,:focus-visible) { color: var(--ink); }
.site-button { border-color: var(--shashap-link); }
.site-button:is(:hover,:focus-visible), .site-header nav .site-button:is(:hover,:focus-visible) { color: var(--ink); }
.hero-art img { width: min(100%, 13rem); border-radius: 10px; }
.card-feature-image { background: var(--shashap-brand); }
.card-feature-photo { padding: 14%; object-fit: contain; object-position: center; }
.get-started-panel { background-size: auto, 16rem; background-repeat: no-repeat; background-position: center, right 4rem center; }
