/* ==========================================================================
   Rukalya – rukalya.com
   Mobile-first: base styles target phones, min-width queries scale up.
   ========================================================================== */

:root {
    /* Brand */
    --indigo: #425B9A;   /* primary: header, headings, primary buttons */
    --sky: #76C0EC;      /* secondary: section tints, icons, hover */
    --cream: #FFF6DC;    /* page background */
    --coral: #FF95A5;    /* CTAs + small accents only */

    /* Supporting tones derived from the brand */
    --ink: #232B4D;          /* body text; also text on coral (passes AA) */
    --ink-soft: #4A5272;
    --indigo-deep: #34497F;
    --sky-wash: #E6F3FA;     /* light sky tint for section backgrounds */
    --cream-deep: #F8EBC6;
    --card: #FFFDF6;
    --line: #EADFC0;

    --font-head: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 20px;
    --radius-lg: 28px;
    --shadow: 0 1px 2px rgba(35, 43, 77, .05), 0 8px 24px rgba(35, 43, 77, .07);
    --gutter: 20px;
    --section-y: 72px;
}

/* ---- Reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; color: var(--indigo); letter-spacing: -.01em; overflow-wrap: break-word; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--indigo); }
svg { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
    text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Shared type -------------------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-weight: 800; font-size: .8125rem;
    text-transform: uppercase; letter-spacing: .12em; color: var(--indigo);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
}
.eyebrow--light { color: var(--sky); }

.section-title { font-size: clamp(1.85rem, 6vw, 2.75rem); font-weight: 800; }
.section-subtitle { margin-top: 16px; font-size: 1.125rem; color: var(--ink-soft); max-width: 36rem; }
.section-head { margin-bottom: 40px; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px;
    font-family: var(--font-head); font-weight: 800; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--small { min-height: 42px; padding: 10px 18px; font-size: .9375rem; }
.btn--large { min-height: 56px; padding: 16px 32px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn--coral { background: var(--coral); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 149, 165, .45); }
.btn--coral:hover { box-shadow: 0 10px 24px rgba(255, 149, 165, .6); }

.btn--primary { background: var(--indigo); color: var(--cream); }
.btn--primary:hover { background: var(--sky); color: var(--ink); }
.btn--primary:disabled { opacity: .7; cursor: progress; transform: none; }

.btn--ghost { background: transparent; color: var(--indigo); box-shadow: inset 0 0 0 2px var(--indigo); }
.btn--ghost:hover { background: var(--sky-wash); box-shadow: inset 0 0 0 2px var(--sky); }

/* ---- 1. Header ---------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--indigo);
    box-shadow: 0 2px 16px rgba(35, 43, 77, .18);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.site-header__brand { text-decoration: none; border-radius: 12px; }

.wordmark { display: inline-flex; align-items: center; gap: 8px; }
.wordmark__mark { width: 22px; height: 28px; flex: none; transition: transform .2s ease; }
.wordmark__text {
    font-family: var(--font-head); font-weight: 900; font-size: 1.625rem; letter-spacing: -.02em;
    color: var(--cream); line-height: 1;
}
.site-header__brand:hover .wordmark__mark { transform: translateY(-2px) rotate(-6deg); }

/* ---- 2. Hero ------------------------------------------------------------ */
.hero { padding: 40px 0 var(--section-y); position: relative; }
.hero__inner { display: grid; gap: 32px; }
.hero__title { font-size: clamp(2.125rem, 9vw, 3.75rem); font-weight: 900; line-height: 1.08; }
.hero__subtitle { margin-top: 18px; font-size: 1.1875rem; color: var(--ink-soft); max-width: 34rem; }
.hero__actions .btn { flex: none; white-space: nowrap; }
.hero__actions { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero__availability { font-size: .9375rem; color: var(--ink-soft); }
.hero__art { display: flex; justify-content: center; }
.phone { width: 100%; max-width: 280px; height: auto; }

/* ---- 3. Story ----------------------------------------------------------- */
.story {
    background: var(--sky-wash);
    padding: var(--section-y) 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
}
.story__inner { max-width: 760px; }

.journey {
    position: relative; display: flex; justify-content: space-between; gap: 8px;
    margin: 36px 0 40px; padding: 0 4px;
}
.journey::before { /* dashed route joining the four stops */
    content: ""; position: absolute; left: 32px; right: 32px; top: 50%;
    border-top: 3px dashed var(--sky);
}
.journey__stop {
    position: relative; width: 64px; height: 64px; padding: 10px;
    background: var(--card); border-radius: 50%; box-shadow: var(--shadow);
}
.journey__stop:nth-child(even) { transform: translateY(-10px); }
.journey__stop svg { width: 100%; height: 100%; }

.story__text { display: grid; gap: 20px; font-size: 1.125rem; line-height: 1.75; }
.story__lead { font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.story__turn {
    font-family: var(--font-head); font-weight: 800; color: var(--indigo);
    font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1.25;
    padding: 8px 0 8px 20px; border-left: 5px solid var(--coral); margin: 12px 0;
}
.story__closing {
    background: var(--card); border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow); font-size: 1.125rem;
}
.story__signature { font-family: var(--font-head); font-weight: 700; color: var(--indigo); font-size: 1.125rem; }

/* ---- 4. Features -------------------------------------------------------- */
.features { padding: var(--section-y) 0; }
.feature-grid { display: grid; gap: 14px; }
.feature-card {
    /* phones: compact row, icon beside text */
    display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start;
    background: var(--card); border-radius: var(--radius); padding: 20px;
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky); }
.feature-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 16px;
    background: var(--sky-wash); color: var(--indigo);
    grid-row: span 2;
}
.feature-card:nth-child(even) .feature-card__icon { background: var(--sky); color: var(--ink); }
.feature-card__icon .icon { width: 28px; height: 28px; }
.feature-card__title { font-size: 1.1875rem; font-weight: 800; }
.feature-card__body { margin-top: 8px; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }

/* ---- 5. Trust ----------------------------------------------------------- */
.trust { background: var(--indigo); color: var(--cream); padding: var(--section-y) 0; }
.trust .section-title { color: var(--cream); }
.trust__inner { display: grid; gap: 32px; align-items: center; }
.trust__body { margin-top: 18px; font-size: 1.125rem; color: #E9ECF7; max-width: 34rem; }
.trust__card {
    background: var(--indigo-deep); border-radius: var(--radius-lg); padding: 28px 24px;
    border: 1px solid rgba(118, 192, 236, .35);
}
.trust__points { display: grid; gap: 16px; }
.trust__points li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; font-size: 1.0625rem; }
.trust__points li::before {
    content: ""; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
    background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232B4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.trust__closing {
    margin-top: 24px; padding-top: 20px; border-top: 1px dashed rgba(118, 192, 236, .5);
    font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--sky);
}

/* ---- 6. Help us build it ------------------------------------------------ */
.help { padding: var(--section-y) 0; }
.help__inner { display: grid; gap: 32px; }
.help__card {
    background: var(--card); border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow); border-top: 6px solid var(--sky);
}

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field__hint { font-weight: 400; color: var(--ink-soft); font-size: .875rem; }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; /* 16px stops iOS zoom-on-focus */
    color: var(--ink); background: #fff;
    border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field textarea:hover { border-color: var(--sky); }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(118, 192, 236, .35);
}
.field [aria-invalid="true"] { border-color: #C4475B; }
.field__error, .form-error { color: #B23A4E; font-size: .9rem; font-weight: 500; margin-top: 6px; }
.field__error:empty, .form-error:empty { display: none; }
.form-error { margin: 0 0 14px; }

/* Honeypot: off-screen rather than display:none so naive bots still fill it */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.help__thanks { text-align: center; padding: 16px 0 8px; outline: none; }
.help__thanks-icon { width: 72px; height: 72px; margin: 0 auto 12px; }
.help__thanks-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.help__thanks p { color: var(--ink-soft); margin-bottom: 20px; }

/* ---- 7. Download -------------------------------------------------------- */
.download {
    background: var(--sky-wash); padding: var(--section-y) 0;
    text-align: center; position: relative; overflow: hidden;
}
.download::before, .download::after { /* soft sky shapes */
    content: ""; position: absolute; border-radius: 50%; background: var(--sky); opacity: .22;
}
.download::before { width: 220px; height: 220px; left: -90px; top: -70px; }
.download::after { width: 160px; height: 160px; right: -60px; bottom: -60px; }
.download__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.download .section-subtitle { margin-left: auto; margin-right: auto; }

.store-badges { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 28px; width: 100%; }
/* Every badge is the same fixed size whatever the language; the "coming soon"
   pill sits on the top border so it never squeezes the store name. */
.store-badge {
    position: relative; display: flex; align-items: center; gap: 14px; text-align: left;
    width: 100%; max-width: 280px; height: 76px; padding: 8px 22px; border-radius: 18px;
    text-decoration: none;
}
.store-badge__logo { width: 30px; height: 30px; flex: none; }
.store-badge__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.store-badge__pre { font-size: .75rem; font-weight: 500; white-space: nowrap; }
.store-badge__name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }

.store-badge--soon {
    background: rgba(255, 255, 255, .45); color: #6B7393;
    border: 2px dashed #A9B4D3; cursor: not-allowed; user-select: none;
}
.store-badge__tag {
    position: absolute; top: 0; right: 18px; transform: translateY(-50%);
    background: var(--indigo); color: var(--cream); white-space: nowrap;
    font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; line-height: 1;
    padding: 6px 10px; border-radius: 999px;
}

/* Launch notification sign-up */
.notify {
    margin-top: 40px; width: 100%; max-width: 560px;
    background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 28px 22px;
}
.notify__title { font-size: 1.375rem; font-weight: 800; }
.notify__body { margin: 8px 0 20px; color: var(--ink-soft); }
.notify__row { display: flex; flex-direction: column; gap: 10px; }
.notify__row input {
    width: 100%; min-height: 52px; font: inherit; font-size: 1rem; /* 16px stops iOS zoom-on-focus */
    color: var(--ink); background: #fff;
    border: 2px solid var(--line); border-radius: 999px; padding: 12px 20px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.notify__row input:hover { border-color: var(--sky); }
.notify__row input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(118, 192, 236, .35); }
.notify__row input[aria-invalid="true"] { border-color: #C4475B; }
.notify__row .btn { min-height: 52px; flex: none; }
.notify .field__error { text-align: left; padding-left: 20px; }
.notify .form-error { margin: 10px 0 0; }
.notify__note { margin-top: 14px; font-size: .875rem; color: var(--ink-soft); }
.notify__thanks { outline: none; }
.notify__thanks-icon { width: 64px; height: 64px; margin: 0 auto 8px; }
.notify__thanks-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--indigo); margin-bottom: 4px; }
.notify__thanks p:last-child { color: var(--ink-soft); }

/* ---- Cookie consent banner ---------------------------------------------- */
.consent {
    position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px;
    max-width: 560px; margin: 0 auto; padding: 18px 20px;
    background: var(--card); color: var(--ink); border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(35, 43, 77, .25); border: 1px solid var(--line);
}
.consent[hidden] { display: none; }
.consent__text { margin: 0; font-size: .9375rem; line-height: 1.5; }
.consent__actions { margin-top: 14px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent__actions .btn { flex: 1 1 auto; }

/* ---- 8. Footer ---------------------------------------------------------- */
.site-footer { background: var(--indigo); color: #E9ECF7; padding: 48px 0 32px; }
.site-footer__inner { display: grid; gap: 24px; }
.site-footer__tagline { margin-top: 10px; font-size: .9375rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__links a { color: var(--cream); font-weight: 600; text-decoration: none; padding: 6px 0; }
.site-footer__link-button {
    font: inherit; font-weight: 600; color: var(--cream); background: none; border: 0;
    padding: 6px 0; cursor: pointer;
}
.site-footer__link-button:hover { color: var(--sky); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__links a:hover { color: var(--sky); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__languages { display: flex; align-items: center; gap: 10px; }
.site-footer__languages svg { width: 18px; height: 18px; flex: none; color: var(--sky); }
.site-footer__languages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer__languages a { color: #E9ECF7; font-size: .9375rem; text-decoration: none; padding: 6px 0; display: inline-block; }
.site-footer__languages a:hover { color: var(--sky); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__languages a[aria-current] { color: var(--cream); font-weight: 600; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-footer__copy { font-size: .875rem; color: #C4CCE6; padding-top: 20px; border-top: 1px solid rgba(255, 246, 220, .15); }

/* ---- Plain pages (privacy policy) --------------------------------------- */
.plain-page { padding: 48px 0 96px; min-height: 60vh; }
.plain-page__inner { max-width: 720px; }
.plain-page .btn { margin-top: 40px; }

.policy__updated { margin: 12px 0 0; font-size: .9375rem; color: var(--ink-soft); }
.policy .section-subtitle { max-width: none; }
.policy__section { margin-top: 40px; }
.policy__section h2 { font-size: 1.375rem; font-weight: 800; margin-bottom: 12px; }
.policy__section p, .policy__section ul { margin: 0 0 12px; line-height: 1.65; }
.policy__section ul { padding-left: 1.25em; }
.policy__section li { margin-bottom: 8px; }
.policy__section li::marker { color: var(--coral); }
.policy__section a { overflow-wrap: anywhere; }

/* ==========================================================================
   Larger phones / small tablets
   ========================================================================== */
@media (min-width: 560px) {
    :root { --gutter: 28px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .feature-card { display: block; padding: 24px; }
    .feature-card__icon { margin-bottom: 16px; }
    .journey__stop { width: 80px; height: 80px; padding: 14px; }
    .journey::before { left: 40px; right: 40px; }
    .hero__actions { flex-direction: row; align-items: center; gap: 20px; }
    .help__card { padding: 36px; }
    .store-badges { flex-direction: row; justify-content: center; gap: 20px; }
    .store-badge { width: 280px; }
    .notify { padding: 36px; }
    .notify__row { flex-direction: row; }
}

/* ==========================================================================
   Tablet / desktop
   ========================================================================== */
@media (min-width: 900px) {
    :root { --section-y: 112px; --gutter: 40px; }
    .site-header__inner { min-height: 76px; }
    .wordmark__text { font-size: 1.875rem; }
    .wordmark__mark { width: 26px; height: 32px; }

    .hero { padding-top: 72px; }
    .hero__inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
    .phone { max-width: 400px; }

    .story { border-radius: 48px 48px 0 0; }
    .story__text { font-size: 1.1875rem; }
    .story__closing { padding: 32px; }

    .trust__inner { grid-template-columns: 1.1fr .9fr; gap: 64px; }
    .trust__card { padding: 36px; }

    .help__inner { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
    .help__intro { position: sticky; top: 120px; }

    .site-footer__inner { grid-template-columns: 1fr auto; align-items: end; }
    .site-footer__languages { grid-column: 1 / -1; }
    .site-footer__copy { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
    .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
