/* 1Buck Apps — shared styles for the line page, app pages and legal pages.
   Brand: Antosha orange, white surfaces, near-black type (matches the apps). */

:root {
    --bg: #F6F4F1;
    --surface: #FFFFFF;
    --text: #141210;
    --muted: #6B645E;
    --hairline: rgba(20, 18, 16, 0.08);
    --accent: #FF6A13;
    --accent-deep: #C2410C;
    --accent-soft: rgba(255, 106, 19, 0.12);
    --dark: #141210;
    --dark-2: #1E1B18;
    --success: #12B76A;
    --radius-lg: 28px;
    --radius-md: 20px;
    --shadow: 0 18px 50px rgba(20, 18, 16, 0.08);
    --shadow-accent: 0 18px 40px rgba(255, 106, 19, 0.28);
    --max: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Navigation ---------- */
.nb-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 244, 241, 0.82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background .3s ease;
}
.nb-nav.is-scrolled { border-bottom-color: var(--hairline); }
.nb-nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.nb-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nb-brand .nb-name { display: flex; flex-direction: column; line-height: 1.1; }
.nb-brand .nb-by { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.nb-brand .nb-tagline { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; padding-left: 12px; border-left: 1px solid var(--hairline); }
@media (max-width: 960px) { .nb-brand .nb-tagline { display: none; } }
.nb-brand .nb-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 18px;
}
.nb-links { display: flex; align-items: center; gap: 26px; }
.nb-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s ease; }
.nb-links a:hover { color: var(--text); }
.nb-links .nb-cta { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 16px; font-weight: 700; font-size: 16px;
    text-decoration: none; border: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: var(--shadow-accent); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline); }
.btn-small { padding: 10px 16px; font-size: 14px; border-radius: 12px; }

.store-badge {
    display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px;
    border-radius: 14px; background: var(--dark); color: #fff; text-decoration: none;
}
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 11px; opacity: .75; line-height: 1.1; }
.store-badge strong { display: block; font-size: 18px; line-height: 1.2; font-weight: 700; }
.store-badge.is-soon { position: relative; cursor: default; }
.store-badge.is-soon::after {
    content: "Soon"; position: absolute; top: -9px; right: -10px; font-size: 11px; font-weight: 800;
    background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 999px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px; background: var(--accent-soft);
    color: var(--accent-deep); font-weight: 700; font-size: 13px; letter-spacing: .02em;
}
.h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; }
.accent { color: var(--accent); }
.accent-deep { color: var(--accent-deep); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.section-head .h2 { margin: 14px 0 14px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; width: 780px; height: 780px; right: -220px; top: -160px;
    background: radial-gradient(circle, rgba(255, 106, 19, 0.20) 0%, rgba(255, 106, 19, 0) 62%);
    pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; position: relative; }
.hero .h1 { margin: 18px 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; align-items: center; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Phone mockups ---------- */
.phones { position: relative; height: 620px; }
.phone {
    position: absolute; width: 280px; border-radius: 44px; padding: 10px;
    background: #0E0D0C; box-shadow: 0 40px 80px rgba(20, 18, 16, 0.25), inset 0 0 0 2px #2a2724;
}
.phone img { border-radius: 34px; width: 100%; height: auto; }
.phone-back { right: 12%; top: 40px; transform: rotate(6deg); animation: float-b 7s ease-in-out infinite; }
.phone-front { left: 6%; top: 0; transform: rotate(-4deg); animation: float-a 6s ease-in-out infinite; z-index: 2; }
.phone-single { position: relative; margin: 0 auto; animation: none; transform: none; }
@keyframes float-a { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-14px); } }
@keyframes float-b { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(12px); } }

.app-icon-lg { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow-accent); }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 110px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media::before {
    content: ""; position: absolute; inset: 8% 10%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 19, 0.16), transparent 65%); z-index: 0;
}
.feature-media .phone { position: relative; z-index: 1; }
.feature-copy .h2 { margin: 14px 0 16px; }
.feature-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-weight: 500; }
.feature-list li::before {
    content: "✓"; flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent-deep); font-size: 13px; font-weight: 800; margin-top: 1px;
}

/* ---------- Feature sections (one tool per section) ---------- */
section.tight { padding-bottom: 24px; }
.feature-section { padding: 72px 0; }
.feature-section .feature-row { margin-bottom: 0; }
.feature-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.feature-index a {
    text-decoration: none; background: var(--surface); padding: 9px 16px; border-radius: 999px;
    font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px var(--hairline); transition: box-shadow .2s ease, color .2s ease;
}
.feature-index a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-deep); }
.feature-copy .how { font-size: 17px; margin: 26px 0 12px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; color: var(--text); }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-deep); font-weight: 800; font-size: 14px; display: grid; place-items: center;
}
.note {
    margin-top: 22px; padding: 14px 18px; border-radius: 16px; background: var(--surface);
    box-shadow: 0 1px 0 var(--hairline); color: var(--muted); font-size: 15px;
}
.note::before { content: "🔒 "; }
.align-center { align-items: center; }
.tablet {
    max-width: 640px; margin: 0 auto; padding: 14px; border-radius: 40px; background: #0E0D0C;
    box-shadow: 0 40px 80px rgba(20, 18, 16, 0.25), inset 0 0 0 2px #2a2724;
}
.tablet img { border-radius: 28px; width: 100%; height: auto; }
section[id] { scroll-margin-top: 76px; }

/* ---------- Why (manifesto long form) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.why-card { background: var(--surface); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow); }
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 15px; }
.why-card .vs { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); color: var(--text); font-weight: 600; font-size: 15px; }
.why-card .vs::before { content: "1Buck: "; color: var(--accent-deep); font-weight: 800; }
.quote { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; max-width: 860px; }
.quote .accent { font-weight: 800; }

/* ---------- Cards grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
    background: var(--surface); border-radius: var(--radius-md); padding: 26px;
    box-shadow: 0 1px 0 var(--hairline), var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--hairline), 0 26px 60px rgba(20, 18, 16, 0.10); }
.card .icon {
    width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }
.tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }

/* ---------- Dark band ---------- */
.band-dark { background: var(--dark); color: #fff; border-radius: 40px; margin: 0 16px; padding: 88px 0; position: relative; overflow: hidden; }
.band-dark::after {
    content: ""; position: absolute; width: 640px; height: 640px; left: -200px; bottom: -320px;
    background: radial-gradient(circle, rgba(255, 106, 19, 0.28), transparent 62%);
}
.band-dark .lead { color: rgba(255, 255, 255, 0.72); }
.band-dark .card { background: var(--dark-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.band-dark .card p { color: rgba(255, 255, 255, 0.66); }
.band-dark .card h3 { color: #fff; }
.band-dark .container { position: relative; z-index: 1; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1000px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
.price-card { background: var(--surface); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.price-card.is-featured { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.price-card .badge { position: absolute; top: -12px; left: 30px; background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.price-card .name { font-weight: 700; color: var(--muted); }
.price-card .price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 2px; }
.price-card .per { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.price-card ul { list-style: none; display: grid; gap: 10px; margin-top: auto; }
.price-card li { font-size: 15px; padding-left: 26px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.fine { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 18px; padding: 20px 24px; box-shadow: 0 1px 0 var(--hairline); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff;
    border-radius: 36px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-band .lead { color: rgba(255, 255, 255, 0.86); margin: 12px auto 28px; }
.cta-band .store-badge { background: #fff; color: var(--text); }
.cta-band .store-badge.is-soon::after { background: var(--dark); }

/* ---------- Manifesto ---------- */
.manifesto { font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.manifesto span { display: block; }
.manifesto span:nth-child(2) { color: var(--accent); }
.manifesto span:nth-child(3) { color: var(--muted); }

.app-tile { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: var(--surface); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); text-decoration: none; transition: transform .25s ease; }
.app-tile:hover { transform: translateY(-4px); }
.app-tile img { width: 84px; height: 84px; border-radius: 20px; }
.app-tile .meta { color: var(--muted); font-size: 15px; }
.app-tile .go { font-weight: 700; color: var(--accent-deep); white-space: nowrap; }
.app-tile.is-placeholder { background: transparent; box-shadow: inset 0 0 0 2px dashed var(--hairline); border: 2px dashed rgba(20, 18, 16, 0.14); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 14px; color: var(--muted); padding-top: 22px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 780px; margin: 0 auto; padding: 40px 0 80px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.1; margin: 16px 0 8px; }
.prose .updated { color: var(--muted); margin-bottom: 36px; }
.prose h2 { font-size: 22px; margin: 38px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: #3d3833; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; }
.prose .callout { background: var(--surface); border-radius: 18px; padding: 20px 22px; box-shadow: 0 1px 0 var(--hairline); margin: 20px 0; }
.prose a { color: var(--accent-deep); }

/* ---------- Footer ---------- */
.nb-footer { padding: 64px 0 40px; color: var(--muted); font-size: 14px; }
.nb-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.nb-footer h4, .nb-footer .nb-footer-title { color: var(--text); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.nb-footer a { display: block; text-decoration: none; margin-bottom: 8px; }
.nb-footer a:hover { color: var(--text); }
.nb-footer .nb-brand { display: inline-flex; color: var(--text); margin-bottom: 0; }
.nb-footer .follow a { display: flex; align-items: center; gap: 8px; }
.nb-footer .follow svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.nb-footer .bottom { border-top: 1px solid var(--hairline); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .phone-front, .phone-back { animation: none; }
    .btn:hover, .card:hover, .app-tile:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero .container, .feature-row { grid-template-columns: 1fr; gap: 40px; }
    .feature-row.reverse .feature-media { order: 0; }
    .phones { height: 560px; max-width: 440px; margin: 0 auto; width: 100%; }
    .grid-3, .pricing, .why-grid { grid-template-columns: 1fr; }
    .feature-section { padding: 56px 0; }
    .nb-footer .cols { grid-template-columns: 1fr 1fr; }
    .nb-links a:not(.nb-cta) { display: none; }
    section { padding: 72px 0; }
    .feature-row { margin-bottom: 80px; }
}
@media (max-width: 560px) {
    .grid-2 { grid-template-columns: 1fr; }
    .phones { height: 500px; }
    .phone { width: 230px; border-radius: 38px; }
    .phone img { border-radius: 29px; }
    .phone-back { right: 0; }
    .phone-front { left: 0; }
    .band-dark { margin: 0 8px; border-radius: 28px; padding: 64px 0; }
    .cta-band { padding: 48px 22px; border-radius: 28px; }
    .app-tile { grid-template-columns: auto 1fr; }
    .app-tile .go { grid-column: 1 / -1; }
    .nb-footer .cols { grid-template-columns: 1fr; }
}

/* Two plan cards (Free + Premium) */
.pricing.pricing-2 { grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; }
@media (max-width: 640px) { .pricing.pricing-2 { grid-template-columns: 1fr; } }

/* Right-to-left pages (Arabic): mirror the physical offsets used above */
[dir="rtl"] .nb-brand .nb-tagline { padding-left: 0; border-left: 0; padding-right: 12px; border-right: 1px solid var(--hairline); }
[dir="rtl"] .steps li { padding-left: 0; padding-right: 40px; }
[dir="rtl"] .steps li::before { left: auto; right: 0; }
[dir="rtl"] .tag { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .breadcrumbs li:not(:last-child)::after { content: "‹"; margin-left: 0; margin-right: 6px; }
[dir="rtl"] .prose ul { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .price-card li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .price-card li::before { left: auto; right: 0; }
[dir="rtl"] .price-card .badge { left: auto; right: 30px; }

/* Footer language list on pages that exist in several languages */
.lang-list { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 28px 0 0; font-size: 14px; }
.lang-list strong { width: 100%; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lang-list a[aria-current="true"] { font-weight: 700; }
.nb-footer .lang-list { margin: -12px 0 28px; }
.nb-footer .lang-list a { display: inline; margin: 0; }
