/* Landing page styles. Brand colors come from brand.css. */

:root {
    --accent-sun: #ffd98a;
    --accent-peach: #ffb9a0;
    --accent-sky: #bfe3f2;
    --primary-dark: #2f4419;
    --surface: #ffffff;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow-card: 0 12px 32px var(--primary-shadow-strong);
    --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
    --content-width: 1080px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4.5rem;
}

body {
    margin: 0;
    background: var(--primary-background);
    color: var(--text);
    font-family: var(--font-display);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--primary);
}

.container {
    width: min(100% - 2.5rem, var(--content-width));
    margin-inline: auto;
}

.section {
    padding-block: 5rem;
}

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

.section__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.15;
    color: var(--primary-dark);
}

.section__lead {
    margin: 0 0 3rem;
    max-width: 36rem;
    color: var(--text);
    font-size: 1.1rem;
}

.highlight {
    position: relative;
    z-index: 0;
    white-space: nowrap;
}

.highlight::after {
    content: "";
    position: absolute;
    inset: 55% -0.15em 0 -0.15em;
    z-index: -1;
    background: var(--accent-sun);
    border-radius: 999px;
    transform: rotate(-1.5deg);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(249, 250, 239, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--primary-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.9rem;
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary);
    text-decoration: none;
}

.logo__dot {
    color: var(--accent-peach);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

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

/* Buttons */
.button {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px var(--primary-border);
}

/* Hero */
.hero {
    position: relative;
    padding-block: 4rem 5rem;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--accent-sky);
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero__title {
    margin: 0 0 1.25rem;
    font-size: clamp(2.6rem, 6.5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--primary-dark);
}

.hero__text {
    margin: 0 0 2rem;
    max-width: 30rem;
    font-size: 1.2rem;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.store-badges img {
    height: 56px;
    width: auto;
    transition: transform 0.2s ease;
}

.store-badges a:hover img {
    transform: translateY(-3px) rotate(-1deg);
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__blob {
    position: absolute;
    inset: 8% 0 auto 8%;
    width: 85%;
    aspect-ratio: 1;
    background: var(--primary-light);
    border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
    opacity: 0.55;
}

.phone {
    position: relative;
    width: min(100%, 280px);
    overflow: hidden;
    border: 8px solid var(--primary-dark);
    border-radius: 36px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.phone--tilted {
    transform: rotate(4deg);
}

.phone--small {
    width: min(100%, 150px);
    border-width: 5px;
    border-radius: 24px;
}

.sync-flow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    margin-top: 1.75rem;
}

/* Spans from inside the left phone to inside the right phone */
.sync-flow__arrow {
    position: absolute;
    top: 20%;
    left: 30%;
    width: 40%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.sync-flow__arrow path {
    fill: none;
    stroke-linecap: round;
}

.sync-flow__arrow-halo {
    stroke: #fff;
    stroke-width: 26;
}

.sync-flow__arrow-line {
    stroke: var(--primary-dark);
    stroke-width: 14;
}

.sync-flow__arrow marker path {
    fill: var(--primary-dark);
    stroke: none;
}

.sync-flow__caption {
    margin: 1rem 0 0;
    text-align: center;
    color: var(--text);
}

.chip {
    position: absolute;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    animation: float 5s ease-in-out infinite;
}

.chip--top {
    top: 12%;
    left: -4%;
}

.chip--bottom {
    bottom: 14%;
    right: -2%;
    background: var(--accent-peach);
    animation-delay: -2.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* How it works */
.steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    width: 100%;
    padding: 1.1rem 1.4rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: var(--surface);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--primary-shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.step:hover {
    transform: translateX(4px);
}

.step[aria-selected="true"] {
    border-color: var(--primary);
}

.step__title {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.step__text {
    display: none;
    margin-top: 0.35rem;
}

.step[aria-selected="true"] .step__text {
    display: block;
}

.steps__visual {
    display: flex;
    justify-content: center;
}

.steps__visual .phone {
    transform: rotate(-3deg);
}

/* Same page comparison */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.compare__label {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
}

.compare__label--before {
    background: var(--accent-peach);
    color: var(--primary-dark);
}

.compare__label--after {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.compare__caption {
    margin: 2.5rem auto 0;
    max-width: 36rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.chat {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--secondary-background);
    border: 2px dashed var(--primary-border);
}

.bubble {
    max-width: 82%;
    margin: 0;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 2px 8px var(--primary-shadow-soft);
}

.bubble__author {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
}

.bubble--them {
    border-bottom-left-radius: 6px;
}

.bubble--me {
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    background: var(--accent-sky);
}

.calendar-card {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.calendar-card p {
    margin: 0;
}

.calendar-card__day {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.calendar-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.calendar-card__time s {
    color: var(--text-light);
}

.calendar-card .calendar-card__status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 4px 14px var(--primary-shadow-soft);
    transition: transform 0.2s ease;
}

.feature:nth-child(odd) {
    transform: rotate(-1deg);
}

.feature:nth-child(even) {
    transform: rotate(1deg);
}

.feature:hover {
    transform: rotate(0) translateY(-4px);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    font-size: 1.6rem;
}

.feature:nth-child(1) .feature__icon { background: var(--accent-sun); }
.feature:nth-child(2) .feature__icon { background: var(--accent-sky); }
.feature:nth-child(3) .feature__icon { background: var(--accent-peach); }

.feature__title {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.feature__text {
    margin: 0;
}

/* Call to action */
.cta {
    padding: 3.5rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: #fff;
    text-align: center;
}

.cta .section__title {
    color: #fff;
}

.cta .section__lead {
    margin-inline: auto;
    color: var(--secondary-background);
}

.cta .store-badges {
    justify-content: center;
}

/* Footer */
.site-footer {
    padding-block: 2.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.site-footer__links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.site-footer a {
    font-weight: 700;
    text-decoration: none;
}

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

.site-footer p {
    margin: 0;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 800px) {
    .section {
        padding-block: 3.5rem;
    }

    .hero__inner,
    .steps,
    .compare {
        grid-template-columns: 1fr;
    }

    .hero__text {
        max-width: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .site-nav a:not(.button) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
