/* ==========================================================================
   landing.css — styles for the redesigned home page (Index.cshtml, served at /)
   Self-contained: this page links ONLY this stylesheet (not site.css), so the
   tokens below are free to define :root without clashing with the live page.
   ========================================================================== */

:root {
    /* Type — Playfair Display for editorial headings, Nunito Sans for everything else */
    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    /* Palette (brand direction) */
    --navy: #062344;
    --coral: #f4563f;
    --coral-strong: #df4226;
    --text: #10233f;
    --cream: #fff7ee;
    --soft-peach: #fff1e6;

    --ink: var(--navy);        /* headings + strong text */
    --body: #637083;           /* descriptive paragraph text */
    --muted: #8b95a1;          /* finer secondary / helper text */

    --accent: var(--coral);    /* buttons, stars, accents */
    --accent-strong: var(--coral-strong);
    --accent-tint: #fde7de;    /* badge / soft accent fills */

    --peach-soft: #fdecdf;     /* panel backgrounds (warm, subtle) */
    --icon-bg: #fbe2d1;        /* icon circle fill */
    --line: #efe6da;           /* hairline borders */
    --card: #ffffff;

    --footer: var(--navy);
    --footer-line: rgba(255, 255, 255, 0.12);
    --footer-muted: #9aa7b6;

    --shadow: 0 18px 40px -24px rgba(6, 35, 68, 0.32);
    --shadow-soft: 0 10px 30px -18px rgba(6, 35, 68, 0.28);

    --wrap: 1080px;
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--card);
    color: var(--body);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2 {
    font-family: var(--font-heading);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.005em;
}

/* Sub-item titles (feature cards, FAQ questions) read as Nunito Sans bold,
   matching the mockup — Playfair is reserved for the larger editorial headings. */
h3 {
    font-family: var(--font-body);
    color: var(--ink);
    font-weight: 700;
}

p {
    margin: 0 0 1rem;
}

a {
    color: inherit;
}

img, svg {
    display: block;
    max-width: 100%;
}

.wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* Shared button -------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.95rem 1.6rem;
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
    background: var(--accent-strong);
}

.btn:active {
    transform: translateY(1px);
}

.btn-block {
    width: 100%;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    flex: none;
    transition: transform 0.15s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

:focus-visible {
    outline: 3px solid rgba(244, 86, 63, 0.45);
    outline-offset: 2px;
}

/* Icon circle (used across receive / signup / coda / faq) --------------- */

.icon-circle {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--icon-bg);
    color: var(--ink);
    flex: none;
}

.icon-circle svg {
    width: 24px;
    height: 24px;
}

.icon-circle.sm {
    width: 44px;
    height: 44px;
}

.icon-circle.sm svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: var(--card);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.4rem;
}

.wordmark {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.badge {
    display: inline-block;
    background: var(--accent-tint);
    color: var(--accent-strong);
    /* A small radius reads as a label/tag — deliberately crisper than the
       pills, buttons (12px) and cards (16px) elsewhere on the page. */
    border-radius: 6px;
    padding: 0.5rem 0.95rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    background-color: #fce2cf; /* fallback while the image loads or if it fails */
    background-image: url("../img/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3rem 0 3.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.75rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 2.9rem);
    line-height: 1.08;
    margin: 0 0 1rem;
}

.hero h1 em {
    color: var(--accent);
    font-style: italic;
}

.hero-lede {
    font-size: 1.13rem;
    line-height: 1.4;
    color: var(--ink);
    font-weight: 600;
    margin: 0 0 1rem;
}

.hero-body {
    color: var(--body);
    font-size: 0.97rem;
    line-height: 1.55;
    margin: 0 0 1.4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.55rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    margin: 0 auto 0.5rem;
}

.hero-stat span {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.hero-cta-note {
    color: var(--body);
    font-size: 0.92rem;
    margin: 0.8rem 0 0;
}

/* Hero figure + overlapping testimonial */

.hero-figure {
    position: relative;
}

.hero-figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-quote {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    padding: 1.1rem 1.2rem 1.1rem 1rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    backdrop-filter: blur(2px);
}

.hero-quote .mark {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    line-height: 0.7;
    color: var(--accent);
    flex: none;
}

.hero-quote p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--ink);
}

/* ==========================================================================
   What you'll receive
   ========================================================================== */

.section {
    padding: 4.5rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.05rem);
    margin: 0 0 2.75rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.feature {
    text-align: center;
    padding: 0 1.5rem;
    border-left: 1px solid var(--line);
}

.feature:nth-child(4n + 1) {
    border-left: none;
}

.feature .icon-circle {
    margin: 0 auto 1rem;
}

.feature h3 {
    font-size: 1.08rem;
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.feature p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

/* ==========================================================================
   Loved by couples (testimonial panel)
   ========================================================================== */

.panel {
    background: var(--peach-soft);
    border-radius: var(--radius);
    padding: 2.75rem 2.25rem;
}

.loved .section-title {
    margin-bottom: 2.25rem;
}

.quotes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.quote {
    padding: 0 1.5rem;
    border-left: 1px solid rgba(21, 42, 69, 0.1);
}

.quote:nth-child(4n + 1) {
    border-left: none;
}

.stars {
    display: flex;
    gap: 0.15rem;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.stars svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.quote p {
    margin: 0;
    text-align: center;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink);
}

/* ==========================================================================
   Signup
   ========================================================================== */

.signup .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 2.75rem;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: start;
}

.signup-intro h2 {
    font-size: clamp(1.5rem, 2.6vw, 1.95rem);
    margin: 0 0 0.4rem;
}

.signup-intro .accent-rule {
    width: 42px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 1.1rem;
}

.signup-intro > p {
    color: var(--body);
    margin-bottom: 1.75rem;
}

.trust-item {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.trust-item .icon-circle {
    background: #f1f3f5;
    width: 40px;
    height: 40px;
}

.trust-item .icon-circle svg {
    width: 18px;
    height: 18px;
    color: var(--ink);
}

.trust-item strong {
    display: block;
    color: var(--ink);
    font-size: 0.96rem;
}

.trust-item span {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Form */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.1rem;
}

.field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.field input {
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
}

.field input::placeholder {
    color: #b6bcc3;
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(244, 86, 63, 0.14);
}

fieldset.partner {
    border: none;
    padding: 0;
    margin: 0.5rem 0 1.25rem;
}

fieldset.partner legend {
    padding: 0;
    font-weight: 700;
    color: var(--ink);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

fieldset.partner legend .optional {
    color: var(--muted);
    font-weight: 400;
}

.form-help {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0 0 1rem;
}

.form-trust {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0.9rem 0 0;
}

/* Honeypot — kept in the DOM for bots, invisible to humans + assistive tech. */
.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-error,
.validation-summary {
    color: var(--accent-strong);
    font-size: 0.88rem;
    margin-top: 0.3rem;
}

.validation-summary {
    margin-bottom: 1rem;
}

.validation-summary ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* ==========================================================================
   Coda — "You don't need another relationship system."
   ========================================================================== */

.coda-panel {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: var(--peach-soft);
    border-radius: var(--radius);
    padding: 2.25rem 2.5rem;
}

.coda-icon {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-soft);
}

.coda-icon svg {
    width: 34px;
    height: 34px;
    color: var(--accent);
}

.coda-text {
    flex: 1;
}

.coda-text h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    margin: 0 0 0.5rem;
}

.coda-text p {
    margin: 0 0 0.35rem;
    color: var(--body);
}

.coda-text .coda-strong {
    color: var(--ink);
    font-weight: 700;
    margin: 0;
}

.coda-plane {
    flex: none;
    color: var(--accent);
}

.coda-plane svg {
    width: 96px;
    height: 60px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 2.5rem;
}

.faq-item {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.faq-item h3 {
    font-size: 1rem;
    margin: 0 0 0.3rem;
    line-height: 1.25;
}

.faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--footer);
    color: var(--footer-muted);
    padding: 3rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand .wordmark {
    color: #fff;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    margin: 0 0 1.1rem;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--footer-line);
    color: #cdd6e0;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.footer-social a:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-col {
    display: flex;
    gap: 0.75rem;
}

.footer-col svg {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 0.15rem;
    color: var(--footer-muted);
}

.footer-col p {
    margin: 0;
}

.footer-col a {
    color: #cdd6e0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .hero {
        padding: 2.5rem 0 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .hero-figure {
        max-width: 460px;
        margin-inline: auto;
        width: 100%;
    }

    .section {
        padding: 3.5rem 0;
    }

    /* Two-up grids on tablet */
    .features,
    .quotes,
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .feature,
    .quote {
        padding: 0 1rem;
    }

    .feature:nth-child(4n + 1),
    .quote:nth-child(4n + 1) {
        border-left: 1px solid var(--line);
    }

    .feature:nth-child(2n + 1) {
        border-left: none;
    }

    .quote:nth-child(2n + 1) {
        border-left: none;
    }

    /* rows 2+ get a little vertical breathing room */
    .feature:nth-child(n + 3),
    .quote:nth-child(n + 3) {
        padding-top: 0.5rem;
    }

    .signup .card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.25rem;
    }

    .coda-panel {
        padding: 2rem;
        gap: 1.25rem;
    }

    .coda-plane {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .site-header .wrap {
        padding-block: 1.1rem;
    }

    .badge {
        font-size: 0.62rem;
        padding: 0.45rem 0.7rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* Keep the hero copy left-aligned (more readable), align the stat icons to
       the copy, and let the CTA span the column so it doesn't sit lonely on the
       left — anchored rather than centered. */
    .hero-stat {
        text-align: left;
    }

    .hero-stat svg {
        margin: 0 0 0.5rem;
    }

    .hero .btn {
        width: 100%;
    }

    /* Single column for content grids */
    .features,
    .quotes,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .feature,
    .quote {
        border-left: none !important;
        padding: 0;
    }

    .quote {
        padding-top: 1.5rem;
        border-top: 1px solid rgba(21, 42, 69, 0.1);
    }

    .quote:first-child {
        padding-top: 0;
        border-top: none;
    }

    .panel {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .coda-panel {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .signup .card {
        padding: 1.75rem 1.4rem;
    }

    .faq-item {
        padding-top: 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}
