/* === Brand palette (final) === */
:root{
    --bg-warm: #FAF9F6;    /* warm white */
    --imperial-red: #ED2939;
    --deep-sage: #4B7159;
    --soft-blue: #AFCBFF;
    --charcoal: #2D2D2D;
    --muted: #7A7A7A;
    --card: #FFFFFF;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(43,43,43,0.06);
    --top-left: #91b8ff;
    --bot-right: #ED2939;
}

/* === Reset & base === */
*{box-sizing:border-box}
html,body{height:100%}
body{
    margin:0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background:var(--bg-warm);
    color:var(--charcoal);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    line-height:1.5;
    padding-bottom:60px;
}

a { color: inherit; text-decoration: none; }
img { max-width:100%; display:block; }

/* === Container widths === */
.wrap { max-width:1100px; margin:0 auto; padding:20px; }

/* === Header === */
header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:20px 0;
    z-index:20;
}
.logo {
    display:flex;
    align-items:center;
    gap:12px;
}
.logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--top-left), var(--bot-right));
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    transform: rotate(-6deg);
}

.logo-mark svg {
    width: 48px;
    height: 48px;
}

.footer-logo {
    display: inline-flex;
    width: 24px;
    height: 24px;
}

.brand .title{ font-size:20px; font-weight:700; color:var(--deep-sage); }
.brand .subtitle{ font-size:12px; color:var(--muted); margin-top:-4px; }

/* === Hero === */
.hero{
    display:grid;
    grid-template-columns: 1fr 420px;
    gap:28px;
    align-items:center;
    margin-top:6px;
    margin-bottom:30px;
}

.hero-left{
    background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(250,250,250,0.95));
    border-radius:var(--radius);
    padding:36px;
    box-shadow:var(--shadow);
    position:relative;
    overflow:visible;
}

.kicker{
    display:inline-block;
    font-size:13px;
    color:var(--deep-sage);
    padding:6px 10px;
    border-radius:999px;
    background:rgba(75,113,89,0.07);
    font-weight:600;
    margin-bottom:12px;
}

h1{
    margin:0 0 8px 0;
    font-family: 'Patrick Hand', Inter, sans-serif;
    font-size:36px;
    line-height:1.03;
    color:var(--charcoal);
}
.lead{ color:var(--muted); margin:12px 0 18px; font-size:16px; }

/* hand-drawn squiggles behind heading */
.squiggle {
    position:absolute;
    right:10px;
    top:-12px;
    opacity:0.18;
    transform: rotate(-12deg);
}

/* features list (doodly) */
.features {
    display:grid;
    gap:12px;
    margin-top:12px;
}
.feature {
    display:flex;
    gap:12px;
    align-items:flex-start;
}
.doodle {
    width: 52px;
    height: 52px;
    min-width: 52px; /* Prevents shrinking in flex/grid */
    min-height: 52px; /* Prevents shrinking in flex/grid */
    border-radius: 12px;
    background: var(--card);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(10, 10, 10, 0.04);
    border: 1px dashed rgba(0, 0, 0, 0.05);
    font-size: 22px;
    overflow: hidden; /* Ensures emoji doesn't visually overflow */
}
.feature h3{ margin:0; font-size:15px; color:var(--charcoal) }
.feature p{ margin:6px 0 0 0; color:var(--muted); font-size:14px; }

/* hero-right card */
.hero-right{
    background: linear-gradient(180deg, rgba(175,203,255,0.08), rgba(75,113,89,0.03));
    border-radius:14px;
    padding:18px;
    min-height:220px;
    box-shadow:var(--shadow);
    display:flex;
    flex-direction:column;
    gap:12px;
    justify-content:center;
}
.card-head { display:flex; justify-content:space-between; align-items:center; }
.signup{
    padding:12px;border-radius:12px;border:1px solid rgba(45,45,45,0.04);
    background: linear-gradient(180deg, white, rgba(255,255,255,0.9));
    display:flex; gap:8px; align-items:center;
    justify-content: center;
}

.signup button{ background:var(--deep-sage); color:white; border:0;padding:10px 12px;border-radius:10px;font-weight:700; cursor:pointer; }

/* small tags */
.chip{ padding:6px 8px;border-radius:10px;background:rgba(237,41,57,0.06); color:var(--imperial-red); font-weight:700; font-size:13px; }

/* animated chain area */
.chain-wrap {
    display:flex;gap:12px;align-items:center;justify-content:center;
}
.chain-item{
    width:64px;height:64px;border-radius:50%;
    background:var(--card);display:grid;place-items:center;box-shadow:0 8px 20px rgba(10,10,10,0.04);
    font-weight:700;color:var(--deep-sage); font-family:'Patrick Hand';
    position:relative; overflow:visible;
}
.chain-arrow{ font-size:22px; color:var(--imperial-red); transform:rotate(0.5deg); }

/* hand-drawn stroke animation (SVG) */
.draw path{ stroke: rgba(45,45,45,0.14); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; fill:none;
    stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* === Sections === */
section.section { max-width:1100px;}
.grid-cards { display:grid; gap:18px; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
.card {
    background:var(--card);
    border-radius:14px;padding:18px;
    box-shadow: 0 10px 24px rgba(12,12,12,0.04);
    border:1px solid rgba(15,15,15,0.02);
    position:relative;
    overflow:visible;
}
.review-section{
    margin-top: 36px;
}
.hand-title {
    font-family:'Patrick Hand', Inter, sans-serif;
    font-size:20px;color:var(--imperial-red);margin:0 0 6px;
}
.card p { color:var(--muted); margin:6px 0 0; }

/* decorative squiggle placed in each section */
.section-squiggle{ width:120px; height:36px; opacity:0.14; margin-bottom:8px; }

/* footer */
footer{ 
    color:var(--muted); padding:28px 12px; font-size:13px; 
    justify-content: center; /* Horizontally center */
    display: flex;          /* Enable Flexbox */
    align-items: center;    /* Vertically center children */
    gap: 8px;              /* Add spacing between text and logo */
}

/* responsive */
@media (max-width:980px){
    .hero{ grid-template-columns: 1fr; padding: 0 8px; }
    .hero-right{ order: -1; }
    .hero-left{ padding:22px; }
    .logo-mark{ width:44px;height:44px }
}

@media (max-width:420px){
    h1{ font-size:28px }
    .chain-item{ width:56px;height:56px }
}

/* subtle interactive wiggle on doodles */
.doodle:hover, .chain-item:hover { transform: translateY(-4px); transition: transform .16s ease; }
