/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Baskerville Std', 'Baskerville', 'Libre Baskerville', serif;
    line-height: 1.6;
    color: #555;
    background-color: #fdf6f9;
    background-image: linear-gradient(to bottom, #fdf6f9, #f9f0ff);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 30px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-family: 'Baskerville Std', 'Baskerville', 'Libre Baskerville', serif;
    font-size: 42px;
    color: #de5d83;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Hero section */
.hero {
    padding: 30px 0 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.app-image {
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.app-image:hover {
    transform: translateY(-5px);
}

.app-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(222, 93, 131, 0.1);
}

.app-info {
    margin-bottom: 40px;
}

.app-info h1 {
    font-family: 'Quintessential Pro', 'Quintessential', cursive;
    font-size: 42px;
    margin-bottom: 15px;
    color: #de5d83;
}

.tagline {
    font-size: 20px;
    margin-bottom: 40px;
    color: #8e7591;
    font-weight: 500;
}

.app-store-link {
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.3s ease;
    width: 150px;
    height: 50px;
}

.app-store-link:hover {
    transform: scale(1.05);
}

.app-store-badge {
    display: block;
    width: 40%;
    height: 100%;
}

/* Privacy policy */
.privacy-policy {
    padding: 50px 0;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-policy h1 {
    font-size: 36px;
    margin-bottom: 25px;
    text-align: center;
    color: #de5d83;
}

.policy-content {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.policy-content h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #de5d83;
}

.policy-content p {
    margin-bottom: 20px;
    color: #666;
}

.policy-content ul {
    margin-bottom: 20px;
    margin-left: 20px;
}

.policy-content li {
    margin-bottom: 10px;
    color: #666;
}

.back-button {
    display: inline-block;
    background-color: #de5d83;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 20px 0;
    box-shadow: 0 8px 15px rgba(222, 93, 131, 0.15);
}

.back-button:hover {
    background-color: #d14775;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(222, 93, 131, 0.2);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(222, 93, 131, 0.1);
    margin-top: 40px;
}

footer nav {
    margin-bottom: 20px;
}

footer a {
    color: #de5d83;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #d14775;
    text-decoration: none;
}

footer p {
    color: #8e7591;
    font-size: 14px;
}

/* Responsive design */
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
    
    .app-image {
        flex: 1;
        margin-right: 50px;
        margin-bottom: 0;
    }
    
    .app-info {
        flex: 1;
    }
}

.subtitle {
    font-family: 'Pacifico', cursive;
    font-size: 22px;
    color: #8e7591;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding: 0 30px;
}

.subtitle:before,
.subtitle:after {
    content: "✿";
    color: #de5d83;
    font-size: 24px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.subtitle:before {
    left: 0;
    animation: float 2s ease-in-out infinite;
}

.subtitle:after {
    right: 0;
    animation: float 2s ease-in-out infinite reverse;
}

.subtitle-wrapper {
    position: relative;
    padding: 10px 0;
    margin-top: 15px;
    overflow: visible;
}

/* Corner decorations */
.subtitle-wrapper::before,
.subtitle-wrapper::after {
    content: "❀";
    font-size: 16px;
    color: #de5d83;
    position: absolute;
    width: auto;
    height: auto;
    background: none;
    opacity: 0.7;
}

.subtitle-wrapper::before {
    top: -10px;
    left: 0;
    animation: cornerFloat 3s ease-in-out infinite;
}

.subtitle-wrapper::after {
    bottom: -10px;
    right: 0;
    animation: cornerFloatReverse 3s ease-in-out infinite;
}

/* Horizontal lines */
.subtitle-wrapper .line-top,
.subtitle-wrapper .line-bottom {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, transparent, #de5d83, transparent);
    width: 80%;
    left: 10%;
}

.subtitle-wrapper .line-top {
    top: 0;
    animation: shimmer 3s infinite alternate;
}

.subtitle-wrapper .line-bottom {
    bottom: 0;
    animation: shimmer 3s infinite alternate-reverse;
}

@keyframes shimmer {
    from {
        opacity: 0.5;
        width: 70%;
        left: 15%;
    }
    to {
        opacity: 1;
        width: 90%;
        left: 5%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
    }
    50% {
        transform: translateY(-50%) rotate(15deg);
    }
}

/* Corner flowers animation */
@keyframes cornerFloat {
    0%, 100% {
        transform: rotate(-25deg);
    }
    50% {
        transform: rotate(-15deg) translateY(-2px);
    }
}

@keyframes cornerFloatReverse {
    0%, 100% {
        transform: rotate(25deg);
    }
    50% {
        transform: rotate(15deg) translateY(-2px);
    }
}

/* App Screenshots Showcase */
.app-showcase {
    padding: 50px 0;
    text-align: center;
    margin-bottom: 40px;
}

.showcase-heading {
    font-family: 'Quintessential Pro', 'Quintessential', cursive;
    font-size: 30px;
    color: #de5d83;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.showcase-heading:before,
.showcase-heading:after {
    content: "✧";
    color: #de5d83;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.showcase-heading:before {
    left: -10px;
}

.showcase-heading:after {
    right: -10px;
}

.screenshots-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(222, 93, 131, 0.1);
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.screenshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(222, 93, 131, 0.15);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.featured-screenshot img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.screenshot-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding-bottom: 35px;
    color: #8e7591;
    font-style: italic;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screenshot:hover .screenshot-caption {
    transform: translateY(0);
}

.featured-screenshot {
    grid-column: 1 / -1;
}

.screenshots-container .screenshot:not(.featured-screenshot) {
    background: transparent;
    box-shadow: none;
}

.screenshots-container .screenshot:not(.featured-screenshot):hover {
    box-shadow: none;
}

.screenshots-container .screenshot:not(.featured-screenshot) img {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(222, 93, 131, 0.1);
}

.screenshots-container .screenshot:not(.featured-screenshot):hover img {
    box-shadow: 0 20px 40px rgba(222, 93, 131, 0.15);
}

/* Responsive grid layout for screenshots */
@media (min-width: 768px) {
    .screenshots-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-screenshot {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    /* One large screenshot on the left, six smaller ones in three columns beside it. */
    .screenshots-container {
        display: grid;
        grid-template-columns: 1.7fr 1fr 1fr 1fr;
        grid-template-rows: minmax(0, auto) minmax(0, auto);
        gap: 15px;
        align-items: start;
        max-width: 1200px;
    }
    
    .featured-screenshot {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
        max-height: 100%;
        background: transparent;
    }
    
    .screenshot:not(.featured-screenshot) {
        max-width: 100%;
        height: auto;
        margin-top: -10px;
        background: transparent;
        box-shadow: none;
    }
    
    .screenshot:nth-child(2) { grid-column: 2; grid-row: 1; margin-top: -30px; }
    .screenshot:nth-child(3) { grid-column: 3; grid-row: 1; margin-top: -30px; }
    .screenshot:nth-child(4) { grid-column: 4; grid-row: 1; margin-top: -30px; }
    .screenshot:nth-child(5) { grid-column: 2; grid-row: 2; margin-top: -60px; }
    .screenshot:nth-child(6) { grid-column: 3; grid-row: 2; margin-top: -60px; }
    .screenshot:nth-child(7) { grid-column: 4; grid-row: 2; margin-top: -60px; }
    
    .featured-screenshot img {
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
        transform: scale(1.05);
    }
    
    .screenshots-container .screenshot:not(.featured-screenshot) img {
        max-width: 100%;
        transition: transform 0.3s ease;
        transform: scale(0.85);
        box-shadow: 0 15px 30px rgba(222, 93, 131, 0.1);
        border-radius: 20px;
    }
    
    .screenshots-container .screenshot:not(.featured-screenshot):hover img {
        transform: scale(0.9);
        box-shadow: 0 20px 40px rgba(222, 93, 131, 0.15);
    }
}


/* ------------------------------------------------------------------
   Home page, 2026. Scoped to body.home so the privacy page keeps its
   own look. Rose and plum come from the app; the spines use the blues
   and purples of its yearly challenge card.
   ------------------------------------------------------------------ */
.home {
    --rose: #f46f8d;
    --plum: #7a1d44;
    --ink: #3b1a2a;
    --blush: #fff3f6;
    --lavender: #cdb8f5;
    --sky: #a8d8ff;
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background-color: var(--blush);
    background-image:
        radial-gradient(60rem 36rem at 88% -6%, rgba(244, 111, 141, 0.20), transparent 62%),
        radial-gradient(48rem 32rem at -8% 38%, rgba(205, 184, 245, 0.30), transparent 60%);
    background-repeat: no-repeat;
    /* Tilted phones must never make the page scroll sideways. */
    overflow-x: clip;
}

.home .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
}

.home .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Quintessential', cursive;
    font-size: 28px;
    color: var(--plum);
    text-decoration: none;
}

.home .brand img {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 6px 16px -6px rgba(122, 29, 68, 0.35);
}

.home .header-link {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: var(--plum);
    padding: 11px 20px;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.home .header-link:hover { background: #5f1534; }

.home a:focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: 4px;
    border-radius: 12px;
}

.home .hero2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    padding: 28px 0 72px;
}

.home .hero2-copy h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 6.2vw, 4.4rem);
    line-height: 1.03;
    letter-spacing: -0.022em;
    color: var(--plum);
    max-width: 13ch;
    margin-bottom: 22px;
}

.home .hero2-lede {
    font-size: 1.16rem;
    line-height: 1.62;
    max-width: 46ch;
    color: rgba(59, 26, 42, 0.82);
    margin-bottom: 30px;
}

.home .store {
    display: inline-block;
    transition: transform 0.2s ease;
}

.home .store:hover { transform: translateY(-2px); }

.home .store img {
    display: block;
    height: 58px;
    width: auto;
}

.home .hero2-note {
    margin-top: 16px;
    font-size: 0.98rem;
    color: rgba(122, 29, 68, 0.78);
}

/* The phones lean on a shelf, between a few books. */
.home .hero2-art {
    position: relative;
    height: 500px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.home .phone {
    position: absolute;
    bottom: 16px;
    aspect-ratio: 901 / 1950;
    padding: 8px;
    border-radius: 38px;
    background: #2b1220;
    box-shadow: 0 34px 60px -24px rgba(122, 29, 68, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    transform-origin: bottom center;
}

.home .phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 31px;
}

.home .phone-front {
    width: 212px;
    left: 50%;
    margin-left: -170px;
    transform: rotate(-4deg);
    z-index: 2;
}

.home .phone-back {
    width: 190px;
    left: 50%;
    margin-left: 18px;
    transform: rotate(6deg);
    z-index: 1;
}

.home .spines {
    position: absolute;
    bottom: 16px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
}

.home .spines-left { left: 0; }
.home .spines-right { right: 0; }

.home .spine {
    display: block;
    width: 22px;
    border-radius: 5px 5px 2px 2px;
    box-shadow: inset -4px 0 0 rgba(0, 0, 0, 0.06);
}

.home .spines-left .spine:last-child { transform: rotate(7deg); transform-origin: bottom left; margin-left: 4px; }
.home .spines-right .spine:first-child { transform: rotate(-8deg); transform-origin: bottom right; margin-right: 6px; }

.home .s-sky { background: #a8d8ff; }
.home .s-lavender { background: #cdb8f5; }
.home .s-pink { background: #ffc9da; }
.home .s-ice { background: #cceaff; }
.home .s-periwinkle { background: #b0beff; }
.home .s-mint { background: #b0e8cd; }

.home .plank {
    position: absolute;
    left: -12px;
    right: -12px;
    bottom: 0;
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(#f8c3d2, #ee9fb8);
    box-shadow: 0 14px 24px -12px rgba(122, 29, 68, 0.45);
}

/* One moment on load: the phones settle onto the shelf. */
@media (prefers-reduced-motion: no-preference) {
    .home .phone-front { animation: settle-front 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
    .home .phone-back { animation: settle-back 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both; }
}

@keyframes settle-front {
    from { opacity: 0; transform: translateY(26px) rotate(0deg); }
    to { opacity: 1; transform: translateY(0) rotate(-4deg); }
}

@keyframes settle-back {
    from { opacity: 0; transform: translateY(26px) rotate(0deg); }
    to { opacity: 1; transform: translateY(0) rotate(6deg); }
}

@media (max-width: 520px) {
    .home .hero2-art { height: 420px; }
    .home .phone-front { width: 172px; margin-left: -152px; }
    .home .phone-back { width: 150px; margin-left: 0; }
    .home .spine { width: 16px; }
    .home .spines-left .spine:first-child { display: none; }
    .home .brand { font-size: 24px; }
}

@media (min-width: 900px) {
    .home .hero2 {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 40px;
        padding: 56px 0 96px;
    }
    .home .hero2-art { height: 570px; max-width: 560px; }
    .home .phone-front { width: 238px; margin-left: -196px; }
    .home .phone-back { width: 212px; margin-left: 8px; }
    .home .spine { width: 26px; }
}

/* The rest of the home page in the same voice. */
.home .showcase-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    letter-spacing: -0.015em;
    color: var(--plum);
    padding: 0;
}

.home .showcase-heading:before,
.home .showcase-heading:after { content: none; }

.home .screenshot-caption {
    font-style: normal;
    font-size: 0.95rem;
    color: var(--ink);
    padding: 12px 14px 22px;
}

.home footer { border-top-color: rgba(122, 29, 68, 0.12); }
.home footer a { color: var(--plum); font-weight: 500; }
.home footer a:hover { color: var(--rose); }
.home footer p { color: rgba(59, 26, 42, 0.62); }


/* The privacy page: the same header, type and colours as the home page, set as a
   document to read. */
.home.legal .privacy-policy {
    max-width: 760px;
    padding: 36px 0 24px;
}

.home.legal .privacy-policy h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--plum);
    text-align: left;
    margin-bottom: 28px;
}

.home.legal .policy-content {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(122, 29, 68, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 50px -30px rgba(122, 29, 68, 0.35);
    padding: clamp(24px, 5vw, 44px);
    margin-bottom: 28px;
}

.home.legal .policy-content h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
    color: var(--plum);
    margin-top: 34px;
    margin-bottom: 12px;
}

.home.legal .policy-content h2:first-child { margin-top: 0; }

.home.legal .policy-content p,
.home.legal .policy-content li {
    font-size: 1.04rem;
    line-height: 1.7;
    color: rgba(59, 26, 42, 0.84);
}

.home.legal .policy-content p { margin-bottom: 16px; }
.home.legal .policy-content ul { margin: 0 0 18px 22px; }
.home.legal .policy-content li { margin-bottom: 8px; }
.home.legal .policy-content li::marker { color: var(--rose); }
.home.legal .policy-content a { color: var(--plum); font-weight: 500; }

.home.legal .back-button {
    background: var(--plum);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 999px;
    box-shadow: none;
    margin: 0 0 12px;
}

.home.legal .back-button:hover {
    background: #5f1534;
    transform: none;
    box-shadow: none;
}


/* Inside the app. The section borrows the app's onboarding: its sky to cream wash, its
   navy ink, left aligned text beside a picture, and the thin bar that shows how far
   along you are. */
.home .tour {
    --sky: #cee4f6;
    --cream: #f2f2ed;
    --navy: #23364b;
    --navy-soft: #556a82;
    --action: #5a7fa6;
    --track: #c4d2e0;
    margin: 24px -20px 0;
    padding: 72px 20px 80px;
    border-radius: 44px;
    background: linear-gradient(var(--sky), var(--cream));
}

.home .tour-head {
    max-width: 980px;
    margin: 0 auto 12px;
}

.home .tour-head h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2rem, 4.4vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 10px;
}

.home .tour-head p {
    font-size: 1.1rem;
    color: var(--navy-soft);
    max-width: 48ch;
}

.home .tour-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
    padding: 44px 0;
}

.home .tour-art {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.home .tour .phone {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 0;
    width: 230px;
    flex: none;
    animation: none;
    transform: none;
    box-shadow: 0 30px 56px -26px rgba(35, 54, 75, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.home .tour-art.pair .phone:first-child {
    transform: rotate(-3deg);
    z-index: 2;
}

.home .tour-art.pair .phone:last-child {
    width: 204px;
    margin-left: -64px;
    margin-top: 46px;
    transform: rotate(5deg);
}

.home .tour-copy h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.018em;
    color: var(--navy);
    margin-bottom: 14px;
    max-width: 18ch;
}

.home .tour-live {
    display: grid;
    gap: 10px;
    max-width: 380px;
    margin: 4px 0 18px;
}

.home .tour-live img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 18px 34px -22px rgba(35, 54, 75, 0.55);
}

.home .tour-copy p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--navy-soft);
    max-width: 44ch;
}

.home .tour-steps {
    display: flex;
    gap: 6px;
    margin-top: 26px;
    max-width: 240px;
}

.home .tour-steps span {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: var(--track);
}

.home .tour-steps span.on { background: var(--action); }

.home .tour-free {
    max-width: 980px;
    margin: 36px auto 0;
    padding-top: 48px;
    border-top: 1px solid rgba(35, 54, 75, 0.12);
}

.home .tour-free .tour-free-word {
    margin-bottom: 0;
    max-width: none;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(4.5rem, 13vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.home .tour-free h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--navy);
    margin: 6px 0 12px;
}

.home .tour-free p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--navy-soft);
    max-width: 46ch;
    margin-bottom: 26px;
}

@media (max-width: 520px) {
    .home .tour { border-radius: 32px; padding: 52px 20px 60px; }
    .home .tour .phone { width: 200px; }
    .home .tour-art.pair .phone:last-child { width: 176px; margin-left: -58px; }
}

@media (min-width: 860px) {
    .home .tour-row {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        padding: 64px 0;
    }
    .home .tour-row.flip .tour-art { order: 2; }
    .home .tour .phone { width: 250px; }
    .home .tour-art.pair .phone:last-child { width: 222px; margin-left: -70px; }
}

/* Store badges. */
.home .stores {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.home footer { border-top: none; margin-top: 20px; }

/* The narrowest phones. */
@media (max-width: 380px) {
    .home .phone-front { width: 158px; margin-left: -142px; }
    .home .phone-back { width: 138px; margin-left: -2px; }
    .home .tour .phone { width: 178px; }
    .home .tour-art.pair .phone:last-child { width: 156px; margin-left: -54px; }
}

@media (max-width: 340px) {
    .home .phone-front { width: 142px; margin-left: -128px; }
    .home .phone-back { width: 124px; margin-left: -4px; }
    .home .tour .phone { width: 160px; }
    .home .tour-art.pair .phone:last-child { width: 140px; margin-left: -50px; }
}

/* Header actions: Sign in for the web app, and the store link. */
.home .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.home .header-signin {
    font-weight: 600;
    font-size: 15px;
    color: var(--plum);
    padding: 11px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.home .header-signin:hover { background: rgba(122, 29, 68, 0.08); }

/* The web app, beside the store badges and the same height. */
.home .web-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 0 24px;
    border-radius: 12px;
    border: 1.5px solid var(--plum);
    background: rgba(255, 255, 255, 0.7);
    color: var(--plum);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.home .web-cta:hover { background: #fff; transform: translateY(-2px); }

@media (max-width: 520px) {
    .home .header-signin { padding: 10px 10px; font-size: 14px; }
    .home .header-link { padding: 10px 16px; font-size: 14px; }
    .home .web-cta { height: 50px; }
    .home .store img { height: 50px; }
}

.home .site-header { gap: 8px; }

@media (max-width: 380px) {
    .home .brand { gap: 8px; font-size: 22px; }
    .home .brand img { width: 36px; height: 36px; border-radius: 11px; }
    .home .header-signin { padding: 10px 8px; }
    .home .header-link { padding: 10px 14px; }
}
