/* The public introduction page at «/». It reads the tokens and the Cairo faces
   from app.css and adds only its own layout. Light sections take green as their
   one accent; the green bands take gold (brand v1.3: one accent per screen). */

.landing {
    background: var(--surface);
    color: var(--text);
    line-height: 1.7;
}

.landing a {
    color: inherit;
}

.landing h1,
.landing h2,
.landing h3 {
    margin: 0;
    line-height: 1.35;
}

.landing-wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Buttons are links: buying leaves for TOA Digital, signing in goes to /login. */

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--motion), border-color var(--motion), color var(--motion);
}

.landing .landing-btn-primary {
    background: var(--brand-green);
    color: #ffffff;
}

.landing .landing-btn-primary:hover {
    background: var(--brand-green-hover);
}

.landing .landing-btn-outline {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

.landing .landing-btn-outline:hover {
    background: var(--brand-green-soft);
}

.landing .landing-btn-ghost {
    border-color: var(--border-strong);
    color: var(--brand-green);
    background: var(--surface);
}

.landing .landing-btn-ghost:hover {
    border-color: var(--brand-green);
}

.landing .landing-btn-gold {
    background: var(--brand-gold);
    color: var(--brand-green);
}

.landing .landing-btn-gold:hover {
    background: #d6aa42;
}

.landing .landing-btn-outline-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.landing .landing-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
}

.landing-btn:focus-visible,
.landing-nav a:focus-visible,
.landing details summary:focus-visible {
    outline: 3px solid var(--control-focus-ring);
    outline-offset: 2px;
}

/* Header */

.landing-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}

.landing-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 68px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.landing-brand-lockup {
    display: block;
    height: 56px;
    width: auto;
}

.landing-nav {
    display: flex;
    gap: 22px;
    margin-inline-start: auto;
    font-size: 15px;
}

.landing-nav a {
    text-decoration: none;
    color: var(--muted);
}

.landing-nav a:hover {
    color: var(--brand-green);
}

.landing-header-actions {
    display: flex;
    gap: 10px;
}

/* Hero: the brand ground of the sign-in, green with the DataTrace pattern. */

.landing-hero {
    background-color: var(--brand-green);
    background-image: url('../brand/pattern-datatrace.svg');
    background-size: 320px 320px;
    color: #ffffff;
    padding: 72px 0;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
    align-items: center;
}

.landing-eyebrow {
    margin: 0 0 12px;
    color: var(--brand-gold);
    font-weight: 700;
    font-size: 15px;
}

.landing-hero h1 {
    font-size: 40px;
    font-weight: 800;
}

.landing-lead {
    margin: 18px 0 28px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.86);
    max-width: 560px;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-hero-note {
    margin: 22px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.landing-hero-note a {
    color: var(--brand-gold);
    font-weight: 700;
}

.landing-hero-card {
    background: var(--surface);
    color: var(--text);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.landing-mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.landing-mock-title {
    font-weight: 700;
    color: var(--brand-green);
}

.landing-mock-badge {
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--status-success-bg);
    border: 1px solid var(--status-success-border);
    color: var(--status-success-text);
    font-size: 13px;
    font-weight: 700;
}

.landing-mock-list {
    margin: 0;
    display: grid;
}

.landing-mock-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}

.landing-mock-list dt {
    color: var(--muted);
}

.landing-mock-list dd {
    margin: 0;
    font-weight: 600;
}

.landing-mock-files {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.landing-mock-files span {
    padding: 4px 12px;
    border-radius: 8px;
    background: var(--brand-green-soft);
    color: var(--brand-green);
    font-size: 13px;
    font-weight: 700;
}

/* Sections */

.landing-section {
    padding: 72px 0;
}

.landing-section-soft {
    background: var(--app-bg);
}

.landing-section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--brand-green);
    text-align: center;
}

.landing-section-lead {
    margin: 10px auto 0;
    max-width: 640px;
    text-align: center;
    color: var(--muted);
    font-size: 17px;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.landing-feature {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.landing-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-green-soft);
    color: var(--brand-green);
}

.landing-feature h3 {
    margin-top: 14px;
    font-size: 18px;
}

.landing-feature p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.landing-steps {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.landing-steps li {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.landing-step-num {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-green);
    color: #ffffff;
    font-weight: 800;
}

.landing-steps h3 {
    margin-top: 12px;
    font-size: 18px;
}

.landing-steps p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px;
}

/* Plans */

.landing-offer {
    margin: 18px auto 0;
    width: fit-content;
    max-width: 100%;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--status-attention-bg);
    border: 1px solid var(--status-attention-border);
    color: var(--status-attention-text);
    font-weight: 700;
    font-size: 15px;
    text-align: center;
}

.landing-plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 36px;
    align-items: stretch;
}

.landing-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.landing-plan-recommended {
    border: 2px solid var(--brand-green);
    box-shadow: 0 14px 36px rgba(13, 59, 46, 0.12);
}

.landing-plan-badge {
    position: absolute;
    top: -14px;
    inset-inline-start: 24px;
    padding: 2px 14px;
    border-radius: 999px;
    background: var(--brand-green);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.landing-plan h3 {
    font-size: 22px;
    color: var(--brand-green);
}

.landing-plan-summary {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    min-height: 48px;
}

.landing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 16px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.landing-price strong {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    color: var(--text);
}

.landing-price span {
    color: var(--muted);
    font-size: 14px;
}

.landing-plan-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 10px;
    flex: 1;
}

.landing-plan-list li {
    position: relative;
    padding-inline-start: 26px;
    font-size: 15px;
}

.landing-plan-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-green-soft);
    box-shadow: inset 0 0 0 5px var(--brand-green-soft), inset 0 0 0 8px var(--brand-green);
}

.landing-plan-extra {
    margin: -6px 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.landing-plan-enterprise {
    border-top: 4px solid var(--brand-gold);
}

.landing-size-terms {
    margin: 28px auto 0;
    padding: 0;
    max-width: 760px;
    list-style: none;
    text-align: center;
    font-size: 15px;
    line-height: 1.9;
}

.landing-terms {
    margin: 24px auto 0;
    max-width: 760px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.landing-addons {
    margin: 28px auto 0;
    max-width: 760px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--app-bg);
}

.landing-addons h3 {
    font-size: 17px;
    color: var(--brand-green);
}

.landing-addons ul {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.landing-addons li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 15px;
}

.landing-addons li strong {
    white-space: nowrap;
    color: var(--text);
}

/* FAQ: native details, no script. */

.landing-faq-wrap {
    max-width: 780px;
}

.landing-faq-wrap .landing-section-title {
    margin-bottom: 28px;
}

.landing details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.landing summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 700;
    list-style-position: inside;
}

.landing details p {
    margin: 0;
    padding: 0 20px 16px;
    color: var(--muted);
}

/* Closing band */

.landing-cta {
    background-color: var(--brand-green);
    background-image: url('../brand/pattern-datatrace.svg');
    background-size: 320px 320px;
    color: #ffffff;
    padding: 48px 0;
}

.landing-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-cta h2 {
    font-size: 26px;
}

.landing-cta p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.landing-cta p a {
    color: var(--brand-gold);
}

.landing-footer {
    padding: 24px 0;
    font-size: 14px;
    color: var(--muted);
}

.landing-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.landing-footer p {
    margin: 0;
}

.landing-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.landing-footer nav a {
    color: var(--brand-green);
}

@media (max-width: 1180px) and (min-width: 961px) {
    .landing-plans {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .landing-nav {
        display: none;
    }

    .landing-header-actions {
        margin-inline-start: auto;
    }

    .landing-hero-grid,
    .landing-features,
    .landing-steps,
    .landing-plans {
        grid-template-columns: 1fr;
    }

    .landing-hero-card {
        max-width: 460px;
    }

    .landing-plans {
        max-width: 480px;
        margin-inline: auto;
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .landing-hide-sm {
        display: none;
    }

    .landing-brand-lockup {
        height: 46px;
    }

    .landing-hero {
        padding: 44px 0;
    }

    .landing-hero h1 {
        font-size: 30px;
    }

    .landing-lead {
        font-size: 16px;
    }

    .landing-section {
        padding: 52px 0;
    }

    .landing-section-title {
        font-size: 25px;
    }

    .landing-cta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-addons li {
        flex-direction: column;
        gap: 2px;
    }
}

/* Section links land below the sticky header, not under it. */
.landing section[id] {
    scroll-margin-top: 76px;
}

/* «اطلب تجربة» (/trial): the landing page's green band carries the message
   (gold only on green), and the card sits over the band's lower edge. */
.trial-page {
    min-height: 60vh;
    padding-bottom: 64px;
    background: var(--app-bg);
}

.trial-hero {
    padding: 56px 0 120px;
}

.trial-hero-inner {
    max-width: 640px;
    text-align: center;
}

.trial-hero .landing-lead {
    margin: 14px auto 18px;
}

.trial-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.trial-points li::before {
    content: "✓";
    margin-inline-end: 6px;
    color: var(--brand-gold);
    font-weight: 800;
}

.trial-card {
    position: relative;
    max-width: 560px;
    margin: -84px auto 0;
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--brand-gold);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(13, 59, 46, 0.14);
}

.trial-card-title {
    margin: 0 0 16px;
    font-size: 1.2rem;
    color: var(--brand-green);
}

.trial-lead {
    margin: 0 0 16px;
}

.trial-done {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--brand-green);
    color: var(--brand-gold);
    font-size: 28px;
    font-weight: 800;
}

.trial-form {
    display: grid;
    gap: 14px;
}

.trial-field {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.trial-field small {
    font-weight: 400;
    opacity: 0.75;
}

.trial-field input,
.trial-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font: inherit;
    font-weight: 400;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
}

.trial-field input:focus,
.trial-field textarea:focus {
    outline: 2px solid var(--brand-gold);
    outline-offset: 1px;
}

.trial-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.95rem;
}

.trial-consent input {
    margin-top: 6px;
}

.trial-submit {
    justify-self: start;
}

.trial-errors {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: #fdf1f0;
    color: #8a2a20;
}

.trial-errors ul {
    margin: 0;
    padding-inline-start: 18px;
}

.trial-success {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: #eef6f1;
    color: var(--brand-green);
}

.trial-success p {
    margin: 0;
}

/* The points on a card (the quote page), not on the green band. */
.trial-points--dark {
    justify-content: flex-start;
    color: var(--text);
}

/* Clipped, not display:none, so the robots that skip hidden fields still fill
   it; never pushed off-screen, which in RTL widens the page sideways. */
.trial-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
