/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
    --color-primary: #2A9D8F;
    --color-primary-light: #e8f5f3;
    --color-accent: #E9C46A;
    --color-accent-dark: #c9a44a;
    --color-bg: #F8F7F4;
    --color-bg-white: #FFFFFF;
    --color-text: #1A1A2E;
    --color-text-muted: #5a5a72;
    --color-border: #e5e4e0;
    --radius-btn: 12px;
    --radius-card: 16px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.07);
    --shadow-btn-hover: 0 8px 24px rgba(233, 196, 106, 0.4);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-text: 680px;
    --max-cards: 1100px;
    --section-pad: 96px;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.5vw, 34px); }
h3 { font-size: clamp(18px, 2.5vw, 22px); }

p { line-height: 1.7; }

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--max-cards);
    margin-inline: auto;
    padding-inline: 24px;
}

.container--text {
    max-width: var(--max-text);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding-block: var(--section-pad);
}

.section--white { background-color: var(--color-bg-white); }
.section--teal { background-color: var(--color-primary); color: #fff; }
.section--teal-light { background-color: var(--color-primary-light); }

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

/* =========================================================
   CTA BUTTON
   ========================================================= */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-accent);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.btn-cta:hover,
.btn-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.btn-cta:active {
    transform: translateY(0);
}

.btn-cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* On teal background, button stays amber */
.section--teal .btn-cta {
    background-color: var(--color-accent);
    color: var(--color-text);
}

/* =========================================================
   PHONE MOCKUP FRAME
   ========================================================= */
.phone-frame {
    position: relative;
    width: 260px;
    height: 544px;
    background: #1c1c1e;
    border-radius: 38px;
    border: 3px solid #3a3a3c;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255,255,255,0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 6px;
    background: #3a3a3c;
    border-radius: 3px;
    z-index: 2;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Smaller frame variant for feature cards */
.phone-frame--sm {
    width: 200px;
    height: 420px;
    border-radius: 30px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav.scrolled {
    border-color: var(--color-border);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 18px;
}

.nav__logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

/* Smaller CTA for nav */
.btn-cta--sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    background: linear-gradient(160deg, var(--color-bg) 60%, #d4eeea 100%);
    overflow: hidden;
}

.hero__inner {
    display: flex;
    align-items: center;
    gap: 64px;
}

.hero__text {
    flex: 1;
    min-width: 0;
}

.hero__text h1 {
    margin-bottom: 24px;
}

.hero__sub {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero__trust {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.01em;
}

.hero__visual {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero__inner {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero__sub {
        margin-inline: auto;
    }

    .hero__trust {
        text-align: center;
    }
}

/* =========================================================
   PROBLEM STATEMENT
   ========================================================= */
.problem__text {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.8;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how__title {
    margin-bottom: 56px;
}

.how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.how__step {
    background: var(--color-bg-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 36px 28px;
    position: relative;
}

.how__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 12px;
    user-select: none;
}

.how__step-title {
    margin-bottom: 8px;
}

.how__step p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .how__steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================================================
   FEATURES
   ========================================================= */
.features__title {
    margin-bottom: 56px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.feature-card__visual {
    display: flex;
    justify-content: center;
}

.feature-card__body h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-card__body p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .features__grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   YKI BLOCK
   ========================================================= */
.yki__inner {
    display: flex;
    align-items: center;
    gap: 64px;
}

.yki__text {
    flex: 1;
    min-width: 0;
}

.yki__text h2 {
    margin-bottom: 20px;
}

.yki__text p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.yki__text p:last-of-type {
    margin-bottom: 32px;
}

.yki__visual {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .yki__inner {
        flex-direction: column;
        gap: 40px;
    }

    /* On mobile, put visual above text */
    .yki__visual {
        order: -1;
    }
}

/* =========================================================
   SOCIAL PROOF
   ========================================================= */
.social__inner {
    display: flex;
    align-items: center;
    gap: 64px;
}

.social__founder {
    flex: 1;
    min-width: 0;
}

.founder-note {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.founder-note__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.founder-note__quote {
    border-left: 3px solid var(--color-primary);
    padding-left: 20px;
}

.founder-note__quote p {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 12px;
}

.founder-note__quote cite {
    font-size: 0.85rem;
    font-style: normal;
    color: var(--color-text);
    font-weight: 600;
}

/* Collage of two overlapping phone frames */
.social__screenshots {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    height: 460px;
}

.social__shot {
    position: absolute;
}

.social__shot--back {
    top: 0;
    left: 0;
    transform: rotate(-4deg);
    opacity: 0.85;
}

.social__shot--front {
    top: 40px;
    left: 60px;
    transform: rotate(3deg);
}

@media (max-width: 768px) {
    .social__inner {
        flex-direction: column;
        gap: 40px;
    }

    .social__screenshots {
        width: 240px;
        height: 380px;
    }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq__title {
    margin-bottom: 48px;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--color-bg-white);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.faq__details::-webkit-details-marker {
    display: none;
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__icon {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-primary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    line-height: 1;
}

details[open] .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    padding: 0 24px 20px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.faq__answer p {
    line-height: 1.7;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta-final__heading {
    color: #fff;
    margin-bottom: 16px;
}

.cta-final__sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding-block: 32px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
    justify-content: space-between;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.footer__tagline {
    font-size: 0.8rem;
}

.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__links a {
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--color-accent);
}

@media (max-width: 600px) {
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip to main content link (visually hidden until focused) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 200;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Ensure phone frames don't overflow on very small screens */
@media (max-width: 480px) {
    .phone-frame {
        width: 220px;
        height: 460px;
    }

    .phone-frame--sm {
        width: 170px;
        height: 355px;
    }

    .social__screenshots {
        width: 200px;
        height: 320px;
    }
}
