/* Shared foundation for standalone app pages, using the portfolio theme. */
@import url("../../assets/css/site-theme.css");

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-text-size-adjust:100%;
}

a {
    color: inherit;
    text-underline-offset: 5px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font: inherit;
}

button,a,summary {
    -webkit-tap-highlight-color:transparent;
}

a:focus-visible,button:focus-visible,summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

h1,h2,h3,p,figure {
    margin: 0;
}

h1,h2,h3 {
    line-height: 1.12;
    letter-spacing: -.035em;
}

h2 {
    font-size: clamp(30px,3.5vw,44px);
    font-weight: 650;
}

h3 {
    font-size: 21px;
    font-weight: 650;
}

p {
    color: var(--muted);
}

.wrap {
    width: min(1120px,calc(100% - 80px));
    margin-inline: auto;
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .15em;
    margin-bottom: 18px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--surface);
    padding: 12px;
    z-index: 10;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 104px;
    border-bottom: 1px solid var(--line);
}

.wordmark {
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
    text-decoration: none;
}

.wordmark span {
    color: var(--accent);
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
}

.site-header nav a {
    text-decoration: none;
}

.site-header nav a:hover {
    color: var(--accent);
}

.nav-download {
    border: 1px solid var(--line);
    padding: 10px 17px;
    border-radius: 100px;
}

.nav-download span {
    padding-left: 8px;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 72px;
    align-items: center;
    padding-block: 68px 80px;
}

.app-label {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 12px;
    letter-spacing: .1em;
    font-weight: 700;
    margin-bottom: 30px;
}

.app-label img {
    border-radius: 12px;
}

.app-label small {
    display: block;
    font-weight: 500;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .12em;
    margin-top: 3px;
}

h1 {
    font-size: clamp(52px,6.5vw,80px);
    font-weight: 650;
    line-height: 1.03;
    letter-spacing: -.06em;
}

h1 span {
    color: var(--accent);
}

.intro {
    font-size: 19px;
    line-height: 1.7;
    max-width: 460px;
    margin-top: 27px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
    margin-top: 31px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 16px 23px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    transition: background .15s,transform .15s;
}

.button-primary {
    color: var(--paper);
    background: var(--accent);
}

.button-primary:hover {
    background: #42dfc7;
    transform: translateY(-2px);
}

.text-link {
    font-size: 14px;
    font-weight: 600;
}

.text-link span {
    margin-left: 8px;
}

.app-facts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 29px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.app-facts li:before {
    content: '✓';
    color: var(--accent);
    margin-right: 6px;
}

.byline {
    font-size: 12px;
    margin-top: 20px;
}

.hero-preview {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px 24px 22px;
    transform: rotate(1.5deg);
}

.preview-topline {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 18px;
}

.hero-preview figure {
    max-width: 265px;
    margin: auto;
}

.hero-preview figure img {
    border-radius: 12px;
    box-shadow: 0 18px 30px #00000040;
}

.hero-preview figcaption {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin: 18px 0 12px;
}

.preview-switch {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: auto;
    background: var(--paper);
    width: max-content;
    padding: 4px;
    border-radius: 100px;
}

.preview-switch[hidden] {
    display: none;
}

.preview-switch button {
    border: 0;
    background: transparent;
    padding: 6px 21px;
    color: var(--muted);
    font-size: 12px;
    border-radius: 100px;
    cursor: pointer;
}

.preview-switch button[aria-pressed=true] {
    background: var(--surface-raised);
    color: var(--ink);
    box-shadow: 0 2px 4px #00000030;
}

.use-cases {
    border-top: 1px solid var(--line);
    padding-block: 35px 68px;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 48px;
}

.use-case-grid .number {
    font-size: 11px;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}

.use-case-grid h2 {
    font-size: 20px;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}

.use-case-grid p {
    font-size: 14px;
}

.tests-section {
    background: var(--surface);
    padding-block: 75px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    margin-bottom: 40px;
}

.section-heading>p {
    max-width: 300px;
    font-size: 15px;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 28px;
}

.test-item h3 {
    margin: 23px 0 14px;
    font-size: 20px;
    min-height: 45px;
}

.test-item p {
    font-size: 14px;
    line-height: 1.7;
}

.test-item>span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 18px;
}

.test-art {
    height: 112px;
    border-radius: 10px;
    overflow: hidden;
}

.pixels {
    display: grid;
    grid-template-columns: repeat(3,22px);
    grid-template-rows: repeat(3,22px);
    gap: 5px;
    place-content: center;
    background: #e2dbf3;
}

.pixels i {
    background: #aa96dc;
    border-radius: 3px;
}

.pixels i:nth-child(5) {
    background: #453263;
}

.shades {
    background: linear-gradient(90deg,#44326e,#9671df,#d5bae9,#eacec8);
}

.touch {
    background: #e3e8e2;
    color: #52785b;
    display: grid;
    place-items: center;
}

.touch svg {
    width: 100%;
    height: 100%;
}

.detail {
    background: repeating-linear-gradient(90deg,#aaa3b7 0px,#aaa3b7 1px,#f8f6fa 1px,#f8f6fa 5px);
}

.quiet-note {
    font-size: 12px;
    margin-top: 35px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
    max-width: 840px;
}

.screenshots {
    padding-block: 85px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 22px;
}

.screenshot-grid img {
    border-radius: 12px;
    transition: transform .2s;
}

.screenshot-grid a {
    display: block;
    border-radius: 12px;
}

.screenshot-grid a:hover img {
    transform: translateY(-4px);
}

.screenshot-grid figcaption {
    font-size: 12px;
    margin-top: 15px;
}

.screenshot-grid figcaption span {
    font-size: 10px;
    color: var(--accent);
    margin-right: 7px;
}

.guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-block: 65px;
}

.guide-intro>p:not(.eyebrow) {
    margin: 23px 0;
    max-width: 340px;
}

.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 28px 48px;
}

.steps li:last-child {
    padding-bottom: 0;
}

.steps li:before {
    content: '0' counter(step);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 12px;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
}

.steps h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.steps p {
    font-size: 14px;
}

.faq {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 70px;
    padding-block: 80px;
}

.questions details {
    border-bottom: 1px solid var(--line);
}

.questions summary {
    padding: 18px 28px 18px 0;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    list-style: none;
    font-weight: 550;
}

.questions summary::-webkit-details-marker {
    display: none;
}

.questions summary:after {
    content: '+';
    position: absolute;
    right: 3px;
    color: var(--accent);
    font-size: 21px;
    top: 12px;
}

.questions details[open] summary:after {
    content: '−';
}

.questions details p {
    font-size: 14px;
    padding: 0 18px 20px 0;
}

.download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    background: var(--surface);
    border-radius: 20px;
    padding: 48px 56px;
    margin-bottom: 65px;
}

.download img {
    border-radius: 14px;
    margin-bottom: 22px;
}

.download .eyebrow {
    margin-bottom: 12px;
}

.download h2 {
    font-size: 42px;
}

.download p:last-child {
    margin-top: 16px;
    font-size: 15px;
}

.site-footer {
    display: flex;
    align-items: center;
    gap: 24px;
    border-top: 1px solid var(--line);
    padding-block: 28px 35px;
}

.site-footer .wordmark {
    font-size: 26px;
}

.site-footer p {
    font-size: 12px;
}

.site-footer nav {
    margin-left: auto;
    display: flex;
    gap: 24px;
    font-size: 12px;
}

@media(min-width:1400px) {
    .hero {
        gap: 110px;
    }
}

@media(max-width:950px) {
    .wrap {
        width: calc(100% - 48px);
    }
    .hero {
        gap: 35px;
    }
    .test-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 35px;
    }
    .test-item h3 {
        min-height: 0;
    }
    .guide {
        gap: 45px;
    }
    .faq {
        gap: 40px;
    }
    .screenshot-grid {
        gap: 14px;
    }
    .site-footer {
        flex-wrap: wrap;
    }
    .site-footer nav {
        margin-left: 0;
    }
    .use-case-grid {
        gap: 25px;
    }
    .preview-topline span:last-child {
        display: none;
    }
}

@media(max-width:640px) {
    .wrap {
        width: calc(100% - 40px);
    }
    .site-header {
        min-height: 78px;
    }
    .wordmark {
        font-size: 29px;
    }
    .site-header nav {
        gap: 18px;
        font-size: 12px;
    }
    .site-header nav>a:nth-child(2) {
        display: none;
    }
    .nav-download {
        padding: 8px 12px;
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-block: 40px 48px;
    }
    .app-label {
        margin-bottom: 24px;
    }
    h1 {
        font-size: clamp(42px,12vw,60px);
    }
    .intro {
        font-size: 17px;
        max-width: 440px;
    }
    .hero-actions {
        gap: 17px;
        margin-top: 26px;
    }
    .hero-preview {
        transform: none;
        max-width: 400px;
        width: 100%;
        margin: auto;
        padding: 18px 24px;
    }
    .hero-preview figure {
        max-width: 230px;
    }
    .use-cases {
        padding-block: 28px 45px;
    }
    .use-case-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .use-case-grid article {
        position: relative;
        padding-left: 35px;
    }
    .use-case-grid .number {
        position: absolute;
        left: 0;
        top: 2px;
    }
    .use-case-grid h2 {
        margin-bottom: 8px;
    }
    .section-heading {
        display: block;
        margin-bottom: 30px;
    }
    .section-heading>p {
        margin-top: 20px;
        max-width: 100%;
    }
    .tests-section {
        padding-block: 45px;
    }
    .test-grid {
        gap: 28px 20px;
    }
    .test-item h3 {
        font-size: 19px;
    }
    .test-item p {
        font-size: 13px;
    }
    .test-item>span {
        font-size: 10px;
    }
    .test-art {
        height: 90px;
    }
    .screenshots {
        padding-block: 48px;
    }
    .screenshot-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 25px 15px;
    }
    .screenshot-grid figcaption {
        font-size: 11px;
    }
    .screenshot-grid figcaption span {
        display: none;
    }
    .guide,.faq {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-block: 45px;
    }
    .guide-intro>p:not(.eyebrow) {
        max-width: none;
    }
    .download {
        padding: 30px 25px;
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 40px;
    }
    .download h2 {
        font-size: 35px;
    }
    .site-footer {
        gap: 16px;
        padding-block: 25px;
    }
    .site-footer nav {
        width: 100%;
        gap: 20px;
        flex-wrap: wrap;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    *,*:before,*:after {
        transition: none!important;
    }
}
