/* ======================================================================
   Landing page — the public front door.

   Standalone rather than built on webapp.css: that stylesheet assumes the
   logged-in shell (tab bar, navbar, form wrappers) and carries a lot this
   page never uses. The PALETTE and typeface are copied from it deliberately,
   so the landing page and the product a visitor signs into look like one
   thing.
   ====================================================================== */

:root {
    --lp-gold: #C59B6C;
    --lp-gold-dark: #A97F4F;
    --lp-champagne: #D9B380;
    --lp-cream: #F5F2ED;
    --lp-soft: #F7F1E8;

    --lp-ink: #1B1B1B;
    --lp-ink-2: #4A4340;
    --lp-ink-3: #8A817B;

    --lp-surface: #FFFFFF;
    --lp-line: #E6E0D9;

    --lp-font: 'El Messiri', 'Tajawal', 'Segoe UI', sans-serif;
    --lp-radius: 16px;
    --lp-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--lp-font);
    color: var(--lp-ink);
    background: var(--lp-surface);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; line-height: 1.45; }
p { margin: 0; }

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

.lp-container {
    width: min(1140px, 100% - 2.5rem);
    margin-inline: auto;
}

.lp-narrow { width: min(780px, 100% - 2.5rem); }

/* ---- buttons --------------------------------------------------------- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .6rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--lp-pill);
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.lp-btn-solid {
    background: var(--lp-gold);
    border-color: var(--lp-gold);
    color: #fff;
}

.lp-btn-solid:hover { background: var(--lp-gold-dark); border-color: var(--lp-gold-dark); }

.lp-btn-outline {
    border-color: var(--lp-gold);
    color: var(--lp-gold-dark);
    background: transparent;
}

.lp-btn-outline:hover { background: var(--lp-soft); }

.lp-btn-ghost { color: var(--lp-ink-2); }
.lp-btn-ghost:hover { color: var(--lp-gold-dark); }

.lp-btn-lg { padding: .8rem 2rem; font-size: 1.05rem; }
.lp-btn-block { width: 100%; margin-top: 1rem; }

/* ---- nav -------------------------------------------------------------- */

.lp-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--lp-line);
}

.lp-nav-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: .55rem 0;
}

/* The logo is a STACKED lockup (wordmark over "for marriage", beside the ring
   mark) at roughly 1.6:1. Sizing it by height made it ~62px wide and it read
   as an oversized block in the bar, so it is bounded by width instead and the
   height follows. */
.lp-brand img {
    width: clamp(88px, 11vw, 116px);
    height: auto;
}

.lp-nav-links {
    display: flex;
    gap: 1.25rem;
    margin-inline-start: 1rem;
    font-size: .93rem;
    color: var(--lp-ink-2);
}

.lp-nav-links a:hover { color: var(--lp-gold-dark); }

.lp-nav-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-inline-start: auto;
}

/* The links are the first thing to go on a narrow screen: the two buttons
   are what the page is for. */
@media (max-width: 860px) {
    .lp-nav-links { display: none; }
}

@media (max-width: 420px) {
    .lp-nav-inner { gap: .6rem; }
    .lp-btn { padding: .5rem 1rem; font-size: .88rem; }
}

/* ---- hero ------------------------------------------------------------- */

.lp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #FBF8F3 0%, var(--lp-cream) 100%);
    border-bottom: 1px solid var(--lp-line);
}

/* Two blurred washes rather than a photograph: depth with nothing to
   download, and no faces to date the page. */
.lp-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.lp-hero-glow-a {
    top: -12rem;
    inset-inline-start: -8rem;
    width: 30rem;
    height: 30rem;
    background: rgba(217, 179, 128, .38);
}

.lp-hero-glow-b {
    bottom: -16rem;
    inset-inline-end: -10rem;
    width: 34rem;
    height: 34rem;
    background: rgba(197, 155, 108, .22);
}

.lp-hero-inner {
    position: relative;
    display: grid;
    gap: 2.5rem;
    align-items: center;
    padding: 3rem 0 3.5rem;
    text-align: center;
}

/* Text beside artwork from the tablet up; stacked below, where a side-by-side
   split would leave both halves too narrow to read. */
@media (min-width: 900px) {
    .lp-hero-inner {
        grid-template-columns: 1.05fr .95fr;
        gap: 3.5rem;
        padding: 4rem 0 4.5rem;
        text-align: start;
    }
}

/* The licence line, set as a pill above the headline. */
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.5rem;
    padding: .4rem 1rem;
    border: 1px solid var(--lp-champagne);
    border-radius: var(--lp-pill);
    background: rgba(255, 255, 255, .75);
    font-size: .82rem;
    color: var(--lp-gold-dark);
}

.lp-badge i { font-size: .75rem; }

.lp-hero-title {
    font-size: clamp(1.9rem, 5.2vw, 3.1rem);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
}

/* The promise itself, lifted out of the headline in gold. */
.lp-accent {
    display: block;
    background: linear-gradient(90deg, var(--lp-gold-dark), var(--lp-champagne));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-hero-sub {
    max-width: 32rem;
    margin: 0 0 2rem;
    font-size: 1.08rem;
    color: var(--lp-ink-2);
}

.lp-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

.lp-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem 1.5rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .88rem;
    color: var(--lp-ink-2);
}

.lp-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.lp-trust i { color: var(--lp-gold); font-size: .85rem; }

@media (min-width: 900px) {
    .lp-hero-sub { margin-inline: 0; }
    .lp-hero-cta, .lp-trust { justify-content: flex-start; }
}

/* The phone-only copy of the verse: shown exactly when the artwork that
   normally carries it is hidden. */
.lp-hero-verse-inline {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lp-line);
    font-size: 1rem;
    line-height: 2.1;
    color: var(--lp-gold-dark);
}

.lp-hero-verse-inline span {
    display: block;
    font-size: .75rem;
    color: var(--lp-ink-3);
}

@media (min-width: 900px) {
    .lp-hero-verse-inline { display: none; }
}

/* ---- hero artwork ------------------------------------------------------ */

/* Illustrated, not photographic: the app's ring mark at the centre with the
   four promises orbiting it. Decorative throughout — the page reads the same
   without it, so the block is aria-hidden in the markup. */
.lp-hero-art {
    position: relative;
    display: none;
    min-height: 25rem;
}

@media (min-width: 900px) {
    .lp-hero-art { display: block; }
}

.lp-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 25rem;
}

/* Two concentric rings, counter-rotating. Dashed so the motion is legible;
   a solid circle spinning reads as static. */
.lp-orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed var(--lp-champagne);
    opacity: .55;
}

.lp-orbit-ring-1 {
    width: 15rem;
    height: 15rem;
    animation: lp-spin 34s linear infinite;
}

.lp-orbit-ring-2 {
    width: 21.5rem;
    height: 21.5rem;
    border-style: solid;
    border-color: var(--lp-line);
    animation: lp-spin 46s linear infinite reverse;
}

/* The ring mark, on a soft plate so it reads against the rings behind it. */
.lp-orbit-core {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 9.5rem;
    height: 9.5rem;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #FFFFFF, var(--lp-soft));
    box-shadow: 0 18px 40px rgba(197, 155, 108, .28);
    color: var(--lp-gold-dark);
    animation: lp-breathe 6s ease-in-out infinite;
}

/* The four promises. Positioned on the inner ring rather than spun with it,
   so the glyphs stay upright and readable. */
.lp-orbit-chip {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    box-shadow: 0 8px 20px rgba(27, 27, 27, .08);
    color: var(--lp-gold-dark);
    font-size: 1.1rem;
    animation: lp-float 5s ease-in-out infinite;
}

.lp-orbit-chip-1 { top: 1.4rem;    inset-inline-end: 6.5rem; animation-delay: 0s; }
.lp-orbit-chip-2 { top: 7.5rem;    inset-inline-start: 1.2rem; animation-delay: .8s; }
.lp-orbit-chip-3 { bottom: 6.5rem; inset-inline-end: 1.2rem; animation-delay: 1.6s; }
.lp-orbit-chip-4 { bottom: 1.6rem; inset-inline-start: 6.8rem; animation-delay: 2.4s; }

@keyframes lp-spin {
    to { transform: rotate(360deg); }
}

/* A slow swell rather than a pulse: the mark should feel alive, not blink. */
@keyframes lp-breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.045); }
}

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

/* ---- entrance ----------------------------------------------------------- */

/* The hero column rises into place on load. Applied to a few elements with
   staggered delays rather than to everything, which would read as a page
   that cannot settle. */
.lp-hero-text > * {
    animation: lp-rise .7s cubic-bezier(.22, .78, .3, 1) backwards;
}

.lp-hero-text > *:nth-child(1) { animation-delay: .05s; }
.lp-hero-text > *:nth-child(2) { animation-delay: .14s; }
.lp-hero-text > *:nth-child(3) { animation-delay: .23s; }
.lp-hero-text > *:nth-child(4) { animation-delay: .32s; }
.lp-hero-text > *:nth-child(5) { animation-delay: .41s; }
.lp-hero-text > *:nth-child(6) { animation-delay: .5s; }

.lp-hero-art { animation: lp-rise .9s .2s cubic-bezier(.22, .78, .3, 1) backwards; }

@keyframes lp-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Everything above is decoration. Anyone who has asked for less motion gets
   the page with none of it — including the entrance, which would otherwise
   leave content briefly invisible. */
@media (prefers-reduced-motion: reduce) {
    .lp-orbit-ring,
    .lp-orbit-core,
    .lp-orbit-chip,
    .lp-hero-text > *,
    .lp-hero-art {
        animation: none;
    }
}

/* ---- sections --------------------------------------------------------- */

.lp-section { padding: 4.5rem 0; }
.lp-section-alt { background: var(--lp-soft); }

.lp-section-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: .75rem;
}

/* A short gold rule under each heading, in place of a heavier divider. */
.lp-section-title::after {
    content: '';
    display: block;
    width: 2.75rem;
    height: 3px;
    margin: .75rem auto 0;
    border-radius: var(--lp-pill);
    background: linear-gradient(90deg, var(--lp-champagne), var(--lp-gold));
}

.lp-section-lead {
    text-align: center;
    color: var(--lp-ink-2);
    margin-bottom: 2.25rem;
}

.lp-section-note {
    margin-top: 1.75rem;
    text-align: center;
    font-size: .85rem;
    color: var(--lp-ink-3);
}

/* ---- grid ------------------------------------------------------------- */

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

@media (min-width: 640px) {
    .lp-grid-2, .lp-grid-3, .lp-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .lp-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- quote band -------------------------------------------------------- */

/* A second visual beat partway down, so the page does not run as rows of
   cards from the hero to the footer. */
.lp-quote {
    padding: 0;
    background: var(--lp-ink);
    color: #fff;
}

.lp-quote-inner {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
}

/* A large quotation mark behind the text, in place of the photograph this
   band used to carry. */
.lp-quote-inner::before {
    content: '”';
    position: absolute;
    top: -1.5rem;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    font-size: 11rem;
    line-height: 1;
    color: var(--lp-champagne);
    opacity: .16;
    pointer-events: none;
}

.lp-quote-text {
    position: relative;
    margin: 0;
    max-width: 46rem;
    padding: 3.5rem clamp(1.25rem, 4vw, 2rem);
    text-align: center;
}

.lp-quote-text p {
    font-size: clamp(1.15rem, 2.6vw, 1.6rem);
    line-height: 2;
    font-weight: 600;
}

.lp-quote-text footer {
    margin-top: 1.25rem;
    font-size: .85rem;
    color: var(--lp-champagne);
}

/* ---- cards ------------------------------------------------------------ */

.lp-card {
    position: relative;
    padding: 1.9rem 1.5rem;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.lp-card:hover {
    transform: translateY(-4px);
    border-color: var(--lp-champagne);
    box-shadow: 0 14px 34px rgba(27, 27, 27, .09);
}

/* Motion is decoration here; anyone who has asked for less does not need it
   to understand the page. */
@media (prefers-reduced-motion: reduce) {
    .lp-card, .lp-card:hover { transform: none; transition: none; }
}

.lp-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.lp-card p { color: var(--lp-ink-2); font-size: .93rem; }

.lp-card-plain:hover { box-shadow: none; border-color: var(--lp-line); }

.lp-card-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--lp-soft), #FFF);
    border: 1px solid var(--lp-line);
    font-size: 1.15rem;
    color: var(--lp-gold-dark);
}

.lp-inline-icon { color: var(--lp-gold); margin-inline-end: .4rem; }

/* The step number sits in the card's top-outer corner; `inset-inline` keeps
   it on the correct side under RTL. */
.lp-step-num {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1.1rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--lp-champagne);
    opacity: .35;
}

/* ---- values ----------------------------------------------------------- */

.lp-values-title {
    margin: 2.5rem 0 1rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.lp-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.lp-values li {
    padding: .4rem 1rem;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-pill);
    font-size: .88rem;
    color: var(--lp-ink-2);
}

/* ---- plans ------------------------------------------------------------ */

.lp-plan {
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

/* A gold hairline across the top edge, revealed on hover. */
.lp-plan::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lp-champagne), var(--lp-gold));
    opacity: 0;
    transition: opacity .2s ease;
}

.lp-plan:hover::before { opacity: 1; }

.lp-plan-price {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--lp-gold-dark);
    line-height: 1.2;
    margin-top: .5rem;
}

.lp-plan-price span { font-size: .95rem; font-weight: 400; color: var(--lp-ink-3); }

.lp-plan-length { font-size: .85rem; color: var(--lp-ink-3); margin-bottom: 1rem; }

.lp-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    text-align: start;
    font-size: .9rem;
    color: var(--lp-ink-2);
}

.lp-plan-features li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 0;
}

.lp-plan-features i { color: var(--lp-gold); font-size: .8rem; }

/* ---- faq -------------------------------------------------------------- */

.lp-faq {
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    margin-bottom: .65rem;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.lp-faq:hover { border-color: var(--lp-champagne); }

/* The open question is the one being read, so it gets the emphasis. */
.lp-faq[open] {
    border-color: var(--lp-champagne);
    box-shadow: 0 8px 22px rgba(27, 27, 27, .06);
}

.lp-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

/* Safari draws its own disclosure triangle without this. */
.lp-faq summary::-webkit-details-marker { display: none; }

.lp-faq summary i {
    color: var(--lp-gold);
    font-size: .8rem;
    transition: transform .2s ease;
}

.lp-faq[open] summary i { transform: rotate(180deg); }

.lp-faq p {
    padding: 0 1.25rem 1.15rem;
    color: var(--lp-ink-2);
    font-size: .93rem;
}

/* ---- closing call to action ------------------------------------------- */

.lp-cta {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--lp-gold-dark), var(--lp-gold) 55%, var(--lp-champagne));
    color: #fff;
}

.lp-cta h2 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-bottom: .7rem;
}

.lp-cta p { color: rgba(255, 255, 255, .9); margin-bottom: 2rem; }

/* On the gold band the solid gold button would vanish, so it inverts. */
.lp-cta .lp-btn-solid {
    background: #fff;
    border-color: #fff;
    color: var(--lp-gold-dark);
}

.lp-cta .lp-btn-solid:hover { background: var(--lp-cream); border-color: var(--lp-cream); }

/* ---- footer ----------------------------------------------------------- */

.lp-footer {
    padding: 2.5rem 0 1.25rem;
    background: var(--lp-ink);
    color: #fff;
}

.lp-footer-inner {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

@media (min-width: 768px) {
    .lp-footer-inner { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* Same stacked lockup as the nav, so it is bounded by width too. The dark
   footer needs the mark lightened: the wordmark is near-black artwork. */
.lp-footer-logo {
    width: 104px;
    height: auto;
    margin-bottom: .9rem;
    filter: brightness(0) invert(1);
    opacity: .92;
}

.lp-footer-brand p { font-size: .88rem; color: rgba(255, 255, 255, .65); }

.lp-footer-links {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: .9rem;
    color: rgba(255, 255, 255, .8);
}

.lp-footer-links a:hover { color: var(--lp-champagne); }

.lp-footer-contact {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    font-size: .9rem;
    color: rgba(255, 255, 255, .8);
}

.lp-contact-link { display: inline-flex; align-items: center; gap: .5rem; }
.lp-contact-link:hover { color: var(--lp-champagne); }
.lp-contact-link i { color: var(--lp-champagne); }

.lp-socials { display: flex; gap: .6rem; margin-top: .3rem; }

.lp-socials a {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
}

.lp-socials a:hover { background: var(--lp-gold); border-color: var(--lp-gold); }

.lp-copy {
    padding-top: 1.25rem;
    text-align: center;
    font-size: .82rem;
    color: rgba(255, 255, 255, .55);
}

/* ---- scroll reveal ------------------------------------------------------ */

/* `is-reveal` is applied by script, never in the markup: without JavaScript
   the page renders fully visible instead of blank. */
.is-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .78, .3, 1);
}

.is-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .is-reveal { opacity: 1; transform: none; transition: none; }
}
