/* Home page (screen 1).
   Section-specific layout only — colour, type and spacing come from the tokens
   in ez-design.css, so the page follows the theme without any literal values. */

/* --- hero --------------------------------------------------------------- */

.ez-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 44px;
    padding: 24px var(--gutter) clamp(40px, 6vw, 56px);
    align-items: start;
}

.ez-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.ez-hero h1 {
    font-size: clamp(36px, 4.3vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-wrap: pretty;
}

/* The yellow marker behind "same day approved" is a gradient rather than a
   background, so it sits under the text like a highlighter stroke. */
.ez-mark {
    font-style: normal;
    /* Keeps the highlighted phrase whole: the line breaks before it rather than
       stranding "approved." on a line of its own. Released below 460px, where
       the phrase is wider than the column and nowrap would overflow. */
    white-space: nowrap;
    background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 94%, transparent 94%);
    padding: 0 0.08em;
}

.ez-hero-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 52ch;
    text-wrap: pretty;
}

.ez-start-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    max-width: 470px;
    scroll-margin-top: 90px;
}

.ez-start-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ez-start-row .ez-select {
    flex: 1 1 180px;
    min-width: 0;
    background: var(--paper);
}

.ez-start-row .ez-btn {
    white-space: nowrap;
}

.ez-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    padding-top: 4px;
}

.ez-stat {
    display: flex;
    flex-direction: column;
}

.ez-stat-value {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.ez-stat-label {
    font-size: 13px;
    color: var(--ink-3);
}

.ez-stat-rule {
    width: 1px;
    height: 34px;
    background: var(--line);
}

.ez-hero-media {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.ez-hero-image {
    aspect-ratio: 4 / 3.4;
    max-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.ez-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ez-price-note {
    display: flex;
    gap: 14px;
    background: var(--accent-btn);
    color: var(--on-accent);
    border-radius: 14px;
    padding: 18px 20px;
    align-items: center;
}

.ez-price-note-figure {
    font-family: var(--display);
    font-size: 38px;
    line-height: 1;
    font-weight: 700;
    color: var(--sun);
}

.ez-price-note-text {
    font-size: 14px;
    line-height: 1.5;
}

/* --- section headers ---------------------------------------------------- */

.ez-section-head {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
}

.ez-section-head h2 {
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.08;
    max-width: 24ch;
}

.ez-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 48px;
    align-items: start;
}

.ez-split-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.ez-split-intro h2 {
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.08;
}

/* --- how it works ------------------------------------------------------- */

.ez-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
}

.ez-step {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: clamp(20px, 3vw, 26px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ez-step-badge {
    align-self: flex-start;
    background: var(--sun);
    color: var(--on-sun);
    border-radius: 6px;
    padding: 5px 10px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
}

.ez-step-title {
    font-family: var(--display);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

/* --- states band -------------------------------------------------------- */

.ez-band-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 44px;
    align-items: start;
}

.ez-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    gap: 9px;
    font-size: 15px;
    font-weight: 500;
    min-width: 0;
}

/* Must outrank the site-wide `.ez-page a:not(.btn):not(.ez-btn)` link colour
   (an ink green that all but disappears against the dark band in light mode),
   so it repeats the same :not() chain on top of three classes. */
.ez-page .ez-band .ez-tile-grid a:not(.btn):not(.ez-btn) {
    color: var(--band-heading);
    border: 1px solid var(--band-line);
    border-radius: 10px;
    padding: 13px 15px;
}

.ez-condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    gap: 10px;
    min-width: 0;
}

.ez-condition {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    font-size: 15px;
    font-weight: 500;
    background: var(--surface);
}

/* --- EZ Express banner -------------------------------------------------- */

.ez-express {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--ink-band);
    color: var(--band-heading);
    padding: clamp(30px, 4.5vw, 52px);
    scroll-margin-top: 90px;
}

/* The banner is itself a link, so the site-wide link colour would otherwise win
   over the .ez-express rule above and wash the card out in light mode. */
.ez-page a.ez-express {
    color: var(--band-heading);
}

.ez-express:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.ez-express::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 88% 18%, rgba(253, 217, 19, 0.22), transparent 42%);
    pointer-events: none;
}

.ez-express-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 28px 44px;
    align-items: center;
    justify-content: space-between;
}

.ez-express-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    flex: 1 1 320px;
}

.ez-express-pill {
    align-self: flex-start;
    background: var(--sun);
    color: var(--on-sun);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
}

.ez-express h2 {
    /* Dark card in both themes, so the heading cannot take the light-mode ink. */
    color: var(--band-heading);
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.05;
    text-wrap: pretty;
}

.ez-express-sun {
    color: var(--sun);
}

.ez-express-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

.ez-express-step {
    flex: 1 1 150px;
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 13px 15px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.ez-express-step-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--sun);
    color: var(--on-sun);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ez-express-offer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 0 0 auto;
}

.ez-express-offer-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--band-muted);
}

.ez-express-prices {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    line-height: 1;
}

.ez-express-was {
    position: relative;
    display: inline-block;
    font-family: var(--display);
    font-size: clamp(30px, 3.2vw, 38px);
    font-weight: 800;
    color: #FFFFFF;
}

/* The strike is drawn rather than text-decoration so it can sit at an angle. */
.ez-express-was::after {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    top: 52%;
    height: 3px;
    border-radius: 2px;
    background: #FF6B5B;
    transform: rotate(-11deg);
}

.ez-express-now {
    font-family: var(--script);
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 700;
    color: var(--sun);
}

.ez-express-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--sun);
    color: var(--on-sun);
    border-radius: 999px;
    padding: 17px 30px;
    font-size: clamp(16px, 1.7vw, 18px);
    font-weight: 700;
    white-space: nowrap;
}

/* --- comparison table --------------------------------------------------- */

.ez-compare {
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
}

.ez-compare-head {
    background: var(--ink-band);
    color: var(--band-heading);
    padding: clamp(22px, 3.6vw, 32px) clamp(20px, 3.6vw, 36px);
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: space-between;
    align-items: center;
}

.ez-compare-head h2 {
    /* Same reason as .ez-express h2: the header strip is dark in both themes. */
    color: var(--band-heading);
    font-size: clamp(26px, 2.9vw, 36px);
    line-height: 1.1;
}

.ez-compare-head-sub {
    font-size: 15px;
    line-height: 1.6;
    color: var(--band-body);
}

.ez-compare-tag {
    border: 1px solid var(--sun);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sun);
    white-space: nowrap;
}

.ez-compare-hint {
    padding: 12px 20px 0;
    font-size: 13px;
    color: var(--ink-3);
}

.ez-compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ez-compare-grid {
    min-width: 760px;
}

.ez-compare-row {
    display: grid;
    grid-template-columns: 1.15fr 1.4fr 1.1fr 1.1fr;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
    line-height: 1.55;
}

.ez-compare-row:last-child {
    border-bottom: 0;
}

.ez-compare-row-head {
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.ez-compare-row > div {
    padding: 18px 20px;
}

.ez-compare-label {
    font-weight: 600;
}

.ez-compare-feature {
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

/* The EZFast column shares the plain styling of the competitor columns. */
.ez-compare-us-head,
.ez-compare-them-head {
    color: var(--ink-strong);
}

.ez-compare-us,
.ez-compare-them {
    color: var(--ink-3);
}

.ez-compare-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    justify-content: space-between;
    align-items: center;
    padding: clamp(18px, 3vw, 24px) clamp(20px, 3.6vw, 36px);
    background: var(--surface-muted);
    border-top: 1px solid var(--line);
}

.ez-compare-foot-text {
    font-size: 15px;
    color: var(--ink-2);
}

/* Below the table's own minimum the swipe hint is the only affordance. */
@media (min-width: 1000px) {
    .ez-compare-hint {
        display: none;
    }
}

/* --- FAQ ---------------------------------------------------------------- */

.ez-home-faq {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ez-home-faq details {
    border-top: 1px solid var(--line);
}

.ez-home-faq details:last-child {
    border-bottom: 1px solid var(--line);
}

.ez-home-faq summary {
    /* The padding belongs to the summary, not the details, so the whole row is
       a tap target rather than just the 25px of text. */
    padding: 18px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
}

.ez-home-faq summary::-webkit-details-marker {
    display: none;
}

.ez-home-faq summary::after {
    content: '+';
    float: right;
    margin-left: 16px;
    font-weight: 400;
    color: var(--ink-3);
}

.ez-home-faq details[open] summary::after {
    content: '–';
}

.ez-home-faq p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 62ch;
}

/* --- testimonial + CTA -------------------------------------------------- */

.ez-testimonial-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 48px;
    align-items: center;
}

.ez-quote {
    font-family: var(--display);
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.ez-quote-by {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ez-quote-by img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.ez-cta-card {
    background: var(--accent-btn);
    color: var(--on-accent);
    border-radius: 18px;
    padding: clamp(24px, 4vw, 36px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.ez-cta-card-title {
    font-family: var(--display);
    font-size: clamp(26px, 2.8vw, 34px);
    line-height: 1.1;
    font-weight: 700;
}

.ez-cta-card-sub {
    font-size: 15px;
    line-height: 1.6;
}

/* --- pricing strip ------------------------------------------------------ */

.ez-pricing {
    margin: 0 var(--gutter) clamp(44px, 7vw, 64px);
    border: 1px solid var(--sun-panel-line);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 36px) clamp(22px, 4vw, 40px);
    display: flex;
    flex-wrap: wrap;
    gap: 24px 36px;
    justify-content: space-between;
    align-items: center;
    background: var(--sun-panel);
    scroll-margin-top: 90px;
}

.ez-pricing-figure {
    font-family: var(--display);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.1;
}

.ez-pricing-note {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 62ch;
}

.ez-strike {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

@media (max-width: 459px) {
    .ez-mark {
        white-space: normal;
    }
}
