/*
 * The marketing site. Loaded after page.css, whose colours, buttons, grid
 * and tiles it reuses. Hand-written, no build step, mobile first.
 */

:root {
    --brand: #f59e0b;
    --brand-text: #111827;
    --brand-strong: #b45309;
    --surface: #f8f8f7;
    --frame: #111827;
    --shadow: 0 24px 48px -24px rgb(17 24 39 / 0.4);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand-strong: #fbbf24;
        --surface: #16161a;
        --frame: #2a2a30;
        --shadow: none;
    }
}

:root[data-theme="dark"] {
    --brand-strong: #fbbf24;
    --surface: #16161a;
    --frame: #2a2a30;
    --shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

.site {
    font-size: 1.0625rem;
}

.site h1,
.site h2,
.site h3 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.site a {
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: 760px;
}

.readable {
    max-width: 720px;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: -9999px;
    z-index: 10;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--text);
    color: var(--background);
}

.skip-link:focus {
    left: 8px;
}

summary:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.site .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

/* Scoped to the site, or ".site a { color: inherit }" wins and the dark theme puts light text on the amber. */
.site .button--brand {
    background: var(--brand);
    color: var(--brand-text);
}

.site .button--small {
    min-height: 44px;
    padding: 8px 14px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

@media (max-width: 479px) {
    .actions .button {
        flex: 1 1 100%;
    }
}

/* Header and footer */

.site-header {
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    font-weight: 600;
    text-decoration: none;
}

.site-header__link:hover,
.site-footer li a:hover {
    text-decoration: underline;
}

/* The hero's own button is right below on a narrow screen, and the menu has one too. */
@media (max-width: 479px) {
    .site-header .button {
        display: none;
    }
}

.site-nav {
    display: none;
    gap: 4px;
    margin: 0 auto 0 24px;
}

.site-nav a,
.site-menu nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.site-header [aria-current="page"] {
    color: var(--brand-strong);
}

@media (hover: hover) {
    .site-nav a:hover,
    .site-menu nav a:hover {
        background: var(--line);
    }
}

.site-menu {
    position: relative;
}

.site-menu summary {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

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

.site-menu summary svg {
    width: 20px;
    height: 20px;
}

.site-menu nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5;
    display: grid;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--background);
    box-shadow: var(--shadow);
}

.site-header__sign-in {
    display: none;
}

@media (min-width: 880px) {
    .site-nav {
        display: flex;
    }

    .site-menu {
        display: none;
    }

    .site-header__sign-in {
        display: inline-flex;
    }
}

.site-footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--line);
    font-size: 0.9375rem;
}

.site-footer__inner {
    display: grid;
    gap: 32px;
}

.site-footer__about p {
    max-width: 26em;
    margin: 12px 0 0;
    color: var(--muted);
}

.site-footer__about p a {
    color: var(--text);
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.site-footer h2 {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    text-decoration: none;
}

@media (pointer: coarse) {
    .site-footer li a {
        min-height: 44px;
    }
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer .theme-switch {
    position: static;
}

@media (min-width: 760px) {
    .site-footer__inner {
        grid-template-columns: 1.2fr 2fr;
    }
}

/* Hero */

.hero {
    padding: 48px 0 56px;
}

.hero__inner {
    display: grid;
    align-items: center;
    gap: 48px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
    letter-spacing: -0.02em;
}

.lead {
    max-width: 36em;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}

.hero__note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.875rem;
}

@media (min-width: 880px) {
    .hero {
        padding: 72px 0 80px;
    }

    .hero__inner {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

/* The drawings: a phone, a post, a link and the page it leads to */

.phone {
    position: relative;
    width: min(100%, 290px);
    margin: 0 auto;
    padding: 10px;
    border-radius: 44px;
    background: var(--frame);
    box-shadow: var(--shadow);
}

.phone--compact {
    width: min(100%, 210px);
    padding: 7px;
    border-radius: 30px;
}

.phone__screen {
    position: relative;
    overflow: hidden;
    padding-bottom: 10px;
    border-radius: 34px;
    background: var(--background);
}

.phone--compact .phone__screen {
    border-radius: 24px;
}

.phone__address,
.destination__address {
    overflow: hidden;
    margin: 10px 12px;
    padding: 5px 10px;
    border-radius: 99px;
    background: var(--line);
    /* Small text on the grey pill: the muted colour falls short of the contrast it needs. */
    color: var(--text);
    font-size: 0.6875rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone .profile__inner {
    column-gap: 10px;
    padding: 8px 12px 12px;
}

.phone__avatar {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #e11d48);
    color: #ffffff;
    font-weight: 700;
}

.phone .profile__name {
    font-size: 0.95rem;
}

.phone .profile__username {
    font-size: 0.75rem;
}

.phone .profile__buttons {
    gap: 6px;
    margin-top: 10px;
}

.phone .button {
    flex: 1;
    min-height: 0;
    padding: 7px 4px;
    border-radius: 8px;
    font-size: 0.72rem;
}

.phone .tabs {
    font-size: 0.5625rem;
}

.phone .tabs__tab {
    gap: 4px;
    padding: 7px 2px;
}

.phone .tabs svg {
    width: 8px;
    height: 8px;
}

.tile__picture {
    display: block;
    overflow: hidden;
    aspect-ratio: var(--tile-ratio);
    background: var(--line);
}

.tile__picture svg,
.ig-post__picture svg,
.destination__picture svg,
.pair__picture svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tile--picked .tile__picture {
    outline: 3px solid var(--brand);
    outline-offset: -3px;
}

.phone__callout {
    position: absolute;
    bottom: 16px;
    left: 50%;
    margin: 0;
    padding: 7px 12px;
    border-radius: 99px;
    background: #111827;
    box-shadow: 0 6px 16px rgb(0 0 0 / 0.3);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    transform: translateX(-50%);
}

.ig-post,
.link-field,
.destination {
    overflow: hidden;
    width: 100%;
    max-width: 200px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--background);
    font-size: 0.8125rem;
    text-align: left;
}

.ig-post p,
.destination p {
    margin: 0;
}

.ig-post__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-weight: 600;
}

.ig-post .phone__avatar {
    width: 24px;
    height: 24px;
    font-size: 0.625rem;
}

.ig-post__picture,
.destination__picture {
    aspect-ratio: 1;
}

.ig-post .ig-post__actions {
    display: flex;
    gap: 10px;
    padding: 8px 10px 0;
}

.ig-post__actions svg {
    width: 20px;
    height: 20px;
}

.ig-post .ig-post__caption {
    padding: 6px 10px 10px;
}

.link-field {
    display: grid;
    gap: 6px;
    max-width: 230px;
    padding: 14px;
}

.link-field__label,
.destination .destination__title {
    font-weight: 700;
}

.link-field__value {
    overflow: hidden;
    padding: 8px;
    border: 2px solid var(--brand);
    border-radius: 8px;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-field__saved {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.link-field__saved svg {
    width: 16px;
    height: 16px;
    color: #16a34a;
}

.destination .destination__title {
    margin: 10px 10px 0;
}

.destination__button {
    display: block;
    margin: 10px;
    padding: 8px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
}

/* Sections */

.section {
    padding: 64px 0;
}

.section--tinted {
    background: var(--surface);
}

.section__heading,
.cta h2 {
    max-width: 24em;
    font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
}

.section__lead {
    max-width: 40em;
    margin: 12px 0 0;
    color: var(--muted);
}

.flow {
    display: grid;
    gap: 44px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.flow__step {
    position: relative;
    display: flex;
    flex-direction: column;
}

.flow__step:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -28px;
    left: 50%;
    width: 12px;
    height: 12px;
    border: solid var(--muted);
    border-width: 0 2px 2px 0;
    transform: translateX(-50%) rotate(45deg);
}

.flow__drawing {
    display: grid;
    flex: 1;
    place-items: center;
    padding: 20px;
    border-radius: 18px;
    background: var(--surface);
}

.flow__label {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 14px 0 0;
    font-weight: 600;
}

.flow__number {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-text);
    font-size: 0.875rem;
}

@media (min-width: 880px) {
    .flow {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px;
    }

    .flow__step:not(:last-child)::after {
        top: 45%;
        right: -20px;
        bottom: auto;
        left: auto;
        transform: rotate(-45deg);
    }
}

.compare,
.cards {
    display: grid;
    gap: 16px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.compare__item,
.card,
.scenario {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--background);
}

.compare__item--ours {
    border: 2px solid var(--brand);
}

.compare__item h3,
.card h3 {
    font-size: 1.125rem;
}

.compare__item p,
.card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.card__icon {
    width: 28px;
    height: 28px;
    margin-bottom: 14px;
    color: var(--brand-strong);
}

@media (min-width: 640px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 760px) {
    .compare {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 960px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trust {
    padding: 28px 0;
    border-block: 1px solid var(--line);
    background: var(--surface);
}

.trust__list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    font-size: 0.9375rem;
    list-style: none;
}

.trust__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.trust__list svg {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--brand-strong);
}

@media (min-width: 760px) {
    .trust__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1040px) {
    .trust__list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.faq {
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

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

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 12px 0;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

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

.faq__item summary::after {
    content: "+";
    color: var(--muted);
    font-size: 1.5rem;
    font-weight: 400;
}

.faq__item[open] summary::after {
    content: "\2212";
}

.faq__item p {
    margin: 0 0 18px;
    color: var(--muted);
}

.cta {
    padding: 72px 0;
    background: #111827;
    color: #f9fafb;
    text-align: center;
}

.cta h2 {
    margin: 0 auto;
}

.cta p {
    max-width: 34em;
    margin: 12px auto 0;
    color: #d1d5db;
}

.cta .actions {
    justify-content: center;
}

.cta .button--quiet {
    border-color: #4b5563;
    color: #f9fafb;
}

@media (hover: hover) {
    .cta .button--quiet:hover {
        background: #1f2937;
    }
}

.more-link {
    margin: 28px 0 0;
    font-weight: 600;
}

/* Pages below the homepage */

.intro {
    padding: 40px 0 32px;
}

.intro h1 {
    max-width: 22em;
    font-size: clamp(1.875rem, 1.3rem + 2.4vw, 2.75rem);
    letter-spacing: -0.02em;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    color: var(--muted);
    font-size: 0.875rem;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 6px;
}

.section--flush {
    padding-top: 8px;
}

.split {
    display: grid;
    align-items: start;
    gap: 40px;
}

@media (min-width: 880px) {
    .split {
        grid-template-columns: 1fr 320px;
        gap: 64px;
    }

    .split__aside {
        position: sticky;
        top: 24px;
    }
}

.steps {
    display: grid;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    padding-left: 56px;
    counter-increment: step;
}

.step::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-text);
    font-weight: 700;
}

.step :is(h2, h3) {
    padding-top: 8px;
    font-size: 1.25rem;
}

.step p,
.scenario__about {
    margin: 8px 0 0;
    color: var(--muted);
}

.scenarios {
    display: grid;
    gap: 20px;
}

@media (min-width: 960px) {
    .scenarios {
        grid-template-columns: repeat(3, 1fr);
    }
}

.scenario h2 {
    font-size: 1.375rem;
}

.scenario .eyebrow {
    margin-bottom: 6px;
}

.pairs {
    display: grid;
    gap: 16px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.pair {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pair__picture {
    overflow: hidden;
    flex: none;
    width: 56px;
    border-radius: 6px;
    aspect-ratio: var(--tile-ratio);
}

.pair__text {
    display: grid;
    gap: 2px;
    min-width: 0;
    font-size: 0.9375rem;
}

.pair__post {
    font-weight: 600;
}

.pair__link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-strong);
    font-weight: 600;
    overflow-wrap: break-word;
}

.pair__link svg {
    flex: none;
    width: 16px;
    height: 16px;
}

.pair__why {
    color: var(--muted);
    font-size: 0.875rem;
}

.prose h2 {
    margin: 40px 0 12px;
    font-size: 1.375rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin: 28px 0 8px;
    font-size: 1.125rem;
}

.prose a {
    color: var(--brand-strong);
}

.prose ul,
.prose ol {
    padding-left: 22px;
}

.prose code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--surface);
    font-size: 0.875em;
}

.article-dates {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* The whole card opens the guide. */
.guide-card {
    position: relative;
}

.guide-card h2 {
    font-size: 1.25rem;
}

.guide-card h2 a {
    text-decoration: none;
}

.guide-card h2 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
}

@media (hover: hover) {
    .guide-card:hover {
        border-color: var(--brand);
    }
}

.guide-card .guide-card__date {
    font-size: 0.875rem;
}

.prose li + li {
    margin-top: 8px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.table th,
.table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.table code {
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}

.table__note {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.8125rem;
}

/* Wider than a phone: it scrolls on its own, the page does not. */
.table-scroll {
    overflow-x: auto;
    margin-top: 24px;
}

.table-scroll:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.table--compare {
    min-width: 640px;
}

.table--compare :is(th, td):last-child {
    background: var(--surface);
}

.pairs--row {
    margin-top: 32px;
}

@media (min-width: 760px) {
    .pairs--row {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .pairs--row .pair__picture {
        width: 72px;
    }
}

.related,
.checks {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.related a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--background);
    font-weight: 600;
    text-decoration: none;
}

.related svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--brand-strong);
}

@media (hover: hover) {
    .related a:hover {
        border-color: var(--brand);
    }
}

@media (min-width: 760px) {
    .related {
        grid-template-columns: repeat(3, 1fr);
    }
}

.checks li {
    position: relative;
    padding-left: 30px;
}

.checks li::before {
    content: "";
    position: absolute;
    top: 0.35em;
    left: 3px;
    width: 12px;
    height: 6px;
    border: solid var(--brand-strong);
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

.steps--spaced {
    margin-top: 24px;
}

.example-link {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--surface);
    font-size: 0.8125rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* The pricing page: the one plan, drawn as a card. */
.plan {
    max-width: 560px;
    margin-top: 8px;
    padding: 28px;
    border: 2px solid var(--brand);
    border-radius: 16px;
    background: var(--background);
}

.plan h2 {
    font-size: 2.25rem;
}

.plan__price {
    margin: 6px 0 0;
    color: var(--muted);
}

.plan__amount {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
}

.plan .checks {
    margin-top: 20px;
}

.plan .actions {
    margin-top: 24px;
}
