/* PersonalScapes — self-contained utility stylesheet.
   Deliberately dependency-free (no CDN, no build step) so styling never
   depends on outside network access, in development or in production. */

:root {
    --forest-50:  #f2f7f2;
    --forest-100: #dfeee0;
    --forest-200: #bfdcc1;
    --forest-300: #94c398;
    --forest-400: #68a76e;
    --forest-500: #468c4d;
    --forest-600: #33703a;
    --forest-700: #295a30;
    --forest-800: #234829;
    --forest-900: #1d3c23;
    --clay-500: #a3713f;
    --clay-600: #875a34;
    --amber-50: #fffbeb;
    --amber-200: #fde68a;
    --amber-800: #92400e;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-800: #991b1b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    position: relative;
    background-color: var(--forest-50);
    color: var(--forest-900);
    font-family: 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* Real photo, fixed behind every page, so the app always shows an actual,
   vividly colorful garden rather than a flat color or a drawn pattern.
   Only lightly washed at the very top (behind the nav-adjacent area) so
   long blocks of body text stay easy to read; everywhere else the photo
   shows at full, vibrant color — white cards carry their own solid
   background, so they stay perfectly legible regardless. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(180deg, rgba(242,247,242,0.32) 0%, rgba(242,247,242,0.18) 25%, rgba(242,247,242,0.30) 100%),
        url('../images/photos/terraced-garden.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: saturate(1.15);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

/* ---- layout ---- */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.block { display: block; }
.hidden { display: none; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }
.divide-y > * + * { border-top: 1px solid var(--forest-100); }
.overflow-hidden { overflow: hidden; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
}
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:inline { display: inline; }
}
@media (max-width: 639px) {
    .sm\:inline { display: none; }
}

/* ---- gaps & spacing ---- */
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.space-y-0\.5 > * + * { margin-top: 0.125rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.p-3 { padding: 0.75rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.object-cover { object-fit: cover; }

/* ---- typography ---- */
.font-sans { font-family: 'Segoe UI', ui-sans-serif, system-ui, sans-serif; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.italic { font-style: italic; }
.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.list-decimal { list-style-type: decimal; }
.list-inside { list-style-position: inside; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

/* ---- colors ---- */
.bg-white { background-color: #fff; }
.bg-forest-50 { background-color: var(--forest-50); }
.bg-forest-100 { background-color: var(--forest-100); }
.bg-forest-500 { background-color: var(--forest-500); }
.bg-forest-700 { background-color: var(--forest-700); }
.bg-forest-800 { background-color: var(--forest-800); }
.bg-clay-500 { background-color: var(--clay-500); }
.bg-amber-50 { background-color: var(--amber-50); }
.bg-red-100 { background-color: var(--red-100); }

.text-white { color: #fff; }
.text-forest-300 { color: var(--forest-300); }
.text-forest-400 { color: var(--forest-400); }
.text-forest-500 { color: var(--forest-500); }
.text-forest-600 { color: var(--forest-600); }
.text-forest-700 { color: var(--forest-700); }
.text-forest-800 { color: var(--forest-800); }
.text-forest-900 { color: var(--forest-900); }
.text-clay-600 { color: var(--clay-600); }
.text-amber-800 { color: var(--amber-800); }
.text-red-800 { color: var(--red-800); }

.border { border: 1px solid var(--forest-200); }
.border-2 { border: 2px solid var(--forest-300); }
.border-t { border-top: 1px solid var(--forest-100); }
.border-forest-100 { border-color: var(--forest-100); }
.border-forest-200 { border-color: var(--forest-200); }
.border-forest-300 { border-color: var(--forest-300); }
.border-forest-500 { border-color: var(--forest-500); }
.border-amber-200 { border-color: var(--amber-200); }
.divide-forest-100 > * + * { border-color: var(--forest-100); }

.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.transition { transition: all 0.15s ease-in-out; }

/* completed maintenance task checkbox */
.bg-forest-500.border-forest-500 { background-color: var(--forest-500); border-color: var(--forest-500); }
.opacity-50 { opacity: 0.5; }

/* ---- interactive states ---- */
a.hover\:underline:hover,
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-clay-600:hover { background-color: var(--clay-600); }
.hover\:bg-forest-50:hover { background-color: var(--forest-50); }
.hover\:bg-forest-100:hover { background-color: var(--forest-100); }
.hover\:bg-forest-600:hover { background-color: var(--forest-600); }
.hover\:text-forest-200:hover { color: var(--forest-200); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--forest-400);
    border-color: var(--forest-400);
}

/* ---- hero / showcase banners (real photos as backgrounds) ---- */
.hero-banner {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,40,25,0.25) 0%, rgba(20,40,25,0.55) 55%, rgba(20,40,25,0.85) 100%);
}
.hero-banner > * { position: relative; z-index: 1; }

.card-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 0.75rem 0.75rem 0 0;
}
.card-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,40,25,0.05) 40%, rgba(20,40,25,0.75) 100%);
    border-radius: inherit;
}

/* ---- small nav links that can sit directly over the page's photo
   background (not inside a white card) — a solid pill keeps them readable
   regardless of what's behind them ---- */
.back-link {
    display: inline-block;
    background-color: rgba(255,255,255,0.9);
    color: var(--forest-700);
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    font-weight: 500;
}
.back-link:hover { background-color: #fff; text-decoration: none; }

/* ---- photo gallery grids (homepage showcase, inspiration strips) ---- */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
}
.photo-gallery .card-banner { border-radius: 0.6rem; }
.photo-gallery .card-banner::before { display: none; }

/* ---- auth pages: real, full-vibrancy photo collage beside the form ---- */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 768px) {
    .auth-layout { grid-template-columns: 1.05fr 1fr; }
}
.auth-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 110px;
    gap: 0.6rem;
}
.auth-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.85rem;
    display: block;
    box-shadow: 0 2px 8px rgba(20,40,25,0.18);
}
.auth-gallery .tall { grid-row: span 2; }
@media (min-width: 768px) {
    .auth-gallery { grid-auto-rows: 140px; }
}

/* ---- form elements ---- */
input[type="text"], input[type="email"], input[type="password"], input[type="file"],
select, textarea {
    border: 1px solid var(--forest-200);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

/* ---- simple button reset ---- */
button[type="submit"] {
    border: none;
}

/* ---- cinematic homepage hero: a slow crossfade between real photos with
   a gentle Ken-Burns drift, plus a staggered fade-in for the text over it.
   Restrained on purpose — motion never interferes with reading, and
   prefers-reduced-motion turns it all off below. ---- */
.cinematic-hero {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    min-height: 82vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.cinematic-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15,28,17,0.6) 0%, rgba(15,28,17,0.6) 45%, rgba(15,28,17,0.9) 100%);
}
.cinematic-hero .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroCrossfade 24s infinite;
}
.cinematic-hero .hero-slide:nth-child(1) { animation-delay: 0s; }
.cinematic-hero .hero-slide:nth-child(2) { animation-delay: 6s; }
.cinematic-hero .hero-slide:nth-child(3) { animation-delay: 12s; }
.cinematic-hero .hero-slide:nth-child(4) { animation-delay: 18s; }
@keyframes heroCrossfade {
    0%   { opacity: 0; transform: scale(1); }
    4%   { opacity: 1; }
    25%  { opacity: 1; transform: scale(1.06); }
    29%  { opacity: 0; }
    100% { opacity: 0; }
}
.cinematic-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 42rem;
    padding: 0 1.5rem;
}
.cinematic-hero .hero-content h1,
.cinematic-hero .hero-content p,
.reveal-screen .reveal-content h1,
.reveal-screen .reveal-content p {
    text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.9s ease-out forwards;
}
.fade-in-up.delay-1 { animation-delay: 0.25s; }
.fade-in-up.delay-2 { animation-delay: 0.55s; }
.fade-in-up.delay-3 { animation-delay: 0.9s; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .cinematic-hero .hero-slide { animation: none; opacity: 1; }
    .cinematic-hero .hero-slide:not(:first-child) { display: none; }
    .fade-in-up, .fade-in-up.delay-1, .fade-in-up.delay-2, .fade-in-up.delay-3 {
        animation: none; opacity: 1; transform: none;
    }
}

/* ---- design reveal: full-bleed moment before the compare/result pages,
   with a quiet pause (staggered fade-ins) before the call to action ---- */
.reveal-screen {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    min-height: 88vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-color: var(--forest-800);
}
.reveal-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,30,18,0.55) 0%, rgba(15,30,18,0.65) 100%);
    backdrop-filter: blur(1px);
}
.reveal-screen .reveal-content {
    position: relative;
    z-index: 2;
    max-width: 34rem;
    padding: 0 1.5rem;
}

/* ---- homepage hero price badge: a loud, sticker-like stamp so the offer
   is the very first thing anyone reads, not a detail they find later ---- */
.price-burst {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 9.5rem;
    height: 9.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 9999px;
    background: var(--clay-500);
    color: #fff;
    border: 3px solid #fff;
    transform: rotate(-6deg);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4), 0 0 0 6px rgba(255,255,255,0.15);
}
.price-burst .price-burst-amount {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: none;
}
.price-burst .price-burst-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.95;
    margin-top: 0.2rem;
    text-shadow: none;
}
@media (max-width: 480px) {
    .price-burst { width: 7.5rem; height: 7.5rem; }
    .price-burst .price-burst-amount { font-size: 1.65rem; }
}
.hero-eyebrow-badge {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---- Sage, the AI garden companion avatar ---- */
.sage-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(160deg, var(--forest-300), var(--forest-600));
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    flex-shrink: 0;
}
.sage-avatar svg { width: 72%; height: 72%; }
.sage-avatar.sage-sm { width: 2.75rem; height: 2.75rem; }
.sage-avatar.sage-md { width: 4.5rem; height: 4.5rem; }
.sage-avatar.sage-lg { width: 7rem; height: 7rem; }
.sage-bubble-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 40;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 9999px;
    background: linear-gradient(160deg, var(--forest-300), var(--forest-600));
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease-out;
}
.sage-bubble-btn:hover { transform: scale(1.07); }
.sage-bubble-btn svg { width: 75%; height: 75%; }
.sage-bubble-label {
    position: fixed;
    right: 5.75rem;
    bottom: 1.9rem;
    z-index: 40;
    background: #fff;
    color: var(--forest-800);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    white-space: nowrap;
}
@media (max-width: 480px) {
    .sage-bubble-label { display: none; }
}
.sage-sway { animation: sageSway 4.5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes sageSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) {
    .sage-sway { animation: none; }
}

/* ---- Sage's spoken homepage welcome ---- */
.sage-welcome-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 0.85rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    padding: 1rem 1.25rem;
    max-width: 640px;
    margin: -1.75rem auto 2rem;
    position: relative;
    z-index: 5;
    text-align: left;
}
.sage-welcome-text { flex: 1; min-width: 0; }
.sage-welcome-caption {
    font-size: 0.85rem;
    color: var(--forest-700, #2f4a30);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.sage-welcome-play-btn {
    background: var(--clay-500, #b5703c);
    color: #fff;
    border: none;
    padding: 0.45rem 0.9rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}
.sage-welcome-play-btn:hover { filter: brightness(1.08); }
.sage-speaking .sage-avatar { animation: sageSpeakPulse 0.9s ease-in-out infinite; }
@keyframes sageSpeakPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .sage-speaking .sage-avatar { animation: none; }
}
@media (max-width: 640px) {
    .sage-welcome-card { flex-direction: column; text-align: center; margin-top: 1rem; }
}

/* ---- staggered card entrance for the 3-design compare grid ---- */
.reveal-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}
.reveal-card:nth-child(1) { animation-delay: 0.1s; }
.reveal-card:nth-child(2) { animation-delay: 0.3s; }
.reveal-card:nth-child(3) { animation-delay: 0.5s; }
@media (prefers-reduced-motion: reduce) {
    .reveal-card { animation: none; opacity: 1; }
}
