@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Malayalam:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #0b2a4a;
    --gold: #d7a63c;
    --cream: #f7f3ea;
    --ink: #17212b;
    --muted: #687586;

    /* Link Colors */
    --link-blue: #0066cc;
    --link-hover: #004999;
}

/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Noto Sans Malayalam', system-ui, sans-serif;
    line-height: 1.6;
}

/* =========================
   GENERAL LINKS
========================= */

a {
    color: var(--link-blue);
}

a:hover {
    color: var(--link-hover);
}

/* =========================
   HEADER
========================= */

header {
    height: 66px;
    padding: 0 16px;
    background: var(--navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 5;
}

header a {
    color: white;
    text-decoration: none;
    font-weight: 800;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.brand b {
    background: var(--gold);
    color: var(--navy);
    padding: 8px;
    border-radius: 9px;
    font-size: 11px;
}

/* =========================
   HERO
========================= */

.hero {
    background: linear-gradient(145deg, #0b2a4a, #16476f);
    color: #fff;
    text-align: center;
    padding: 42px 18px 30px;
}

.hero small,
.content > small,
.offer small,
.checkout > small {
    color: #e5c268;
    font-weight: 800;
    letter-spacing: 1.7px;
    font-size: 11px;
}

.hero h1 {
    font-size: clamp(42px, 12vw, 72px);
    line-height: 1.04;
    margin: 16px 0;
}

.hero em {
    color: #f0c761;
    font-style: normal;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 23px;
    color: #dce7f0;
}

/* =========================
   BUTTONS
========================= */

.actions {
    display: grid;
    gap: 10px;
    max-width: 430px;
    margin: auto;
}

.gold,
.white {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 49px;
    padding: 12px 17px;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 800;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.gold {
    background: var(--gold);
    color: #132b40;
}

.gold:hover {
    color: #132b40;
    filter: brightness(0.96);
}

.white {
    background: #fff;
    color: var(--navy);
}

.white:hover {
    color: var(--navy);
    filter: brightness(0.97);
}

.trust {
    font-size: 11px;
    color: #d8e4ee;
    margin-top: 15px;
}

/* =========================
   BOOK COVER
========================= */

.book {
    display: flex;
    justify-content: center;
    padding: 30px 18px;
}

.book > div {
    width: 245px;
    aspect-ratio: .69;
    border-radius: 4px 13px 13px 4px;
    padding: 23px;
    background: linear-gradient(150deg, #174d77, #071f37);
    color: white;
    box-shadow: 12px 16px 35px #14263c35;
    display: flex;
    flex-direction: column;
}

.book small {
    color: #e7c46b;
    letter-spacing: 2px;
}

.book h2 {
    font-size: 38px;
    line-height: 1.02;
    margin: 28px 0;
}

.book span {
    font-size: 10px;
    color: #d8e4ed;
    margin-top: auto;
}

.book b {
    font-size: 9px;
    letter-spacing: 2px;
    color: #e7c46b;
    margin-top: 20px;
}

/* =========================
   CONTENT
========================= */

.content {
    padding: 28px 18px;
    max-width: 1000px;
    margin: auto;
}

.content h2,
.offer h2,
.faq h2,
.checkout h1 {
    font-size: 29px;
    line-height: 1.2;
    margin: 7px 0 20px;
}

/* =========================
   FEATURE GRID
========================= */

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.grid article {
    background: white;
    border: 1px solid #e9e1d4;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.grid article b {
    margin: 7px 0;
}

.grid article span {
    font-size: 12px;
    color: var(--muted);
}

/* =========================
   OFFER
========================= */

.offer {
    margin: 5px 18px 25px;
    background: var(--navy);
    color: white;
    padding: 23px;
    border-radius: 21px;
    max-width: 964px;
}

.offer p {
    color: #d9e5ee;
    font-size: 13px;
}

.offer strong {
    display: block;
    color: #f0c761;
    font-size: 38px;
}

.offer del {
    color: #9fb0bf;
}

/* =========================
   STEPS
========================= */

.steps {
    display: grid;
    gap: 9px;
}

.steps div {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    display: grid;
    grid-template-columns: 36px 1fr;
}

.steps b {
    grid-row: span 2;
    background: #f0e1ba;
    border-radius: 50%;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
}

.steps span {
    grid-column: 2;
    color: var(--muted);
    font-size: 12px;
}

/* =========================
   FAQ
========================= */

.faq {
    padding: 20px 18px 85px;
    max-width: 800px;
    margin: auto;
}

.faq details {
    background: white;
    border: 1px solid #e9e1d4;
    border-radius: 13px;
    padding: 12px;
    margin: 8px 0;
}

.faq p {
    font-size: 13px;
    color: var(--muted);
}

/* =========================
   FOOTER
========================= */

footer {
    background: #071e34;
    color: #d1dce5;
    padding: 25px 18px 80px;
    font-size: 12px;
}

.site-footer {
    background: #071e34;
    color: #d1dce5;
    padding: 28px 18px 95px;
    font-size: 12px;
}

/* Footer links BLUE */

.site-footer a {
    color: var(--link-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer a:hover {
    color: #66b5ff;
}

.footer-brand {
    font-size: 18px;
}

.footer-brand b {
    background: #d7a63c;
    color: #0b2a4a;
    padding: 5px 8px;
    border-radius: 7px;
    margin-right: 6px;
}

.site-footer p {
    margin: 7px 0 15px;
    color: #b8c7d4;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 14px;
}

.footer-contact {
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--link-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer small {
    color: #93a5b4;
}

/* =========================
   STICKY BUY BUTTON
========================= */

.sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 9px;
    border-top: 1px solid #ddd;
    z-index: 10;
}

.sticky a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gold);
    color: #10283e;
    text-decoration: none;
    height: 45px;
    border-radius: 11px;
    font-weight: 900;
}

.sticky a:hover {
    color: #10283e;
}

/* =========================
   CHECKOUT
========================= */

.checkout {
    max-width: 600px;
    margin: auto;
    padding: 35px 16px;
}

.card {
    background: white;
    border: 1px solid #e8e1d7;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px #0001;
}

.order {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.order span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

.ticks {
    font-size: 12px;
    padding: 15px 0;
    color: #40505f;
}

.card label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin: 10px 0 5px;
}

.card input {
    width: 100%;
    height: 47px;
    border: 1px solid #d8d2c8;
    border-radius: 10px;
    padding: 0 12px;
    font: inherit;
}

.full {
    width: 100%;
    margin-top: 15px;
}

.card small {
    color: var(--muted);
}

.center {
    text-align: center;
}

.ok {
    margin: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e7f4e9;
    color: #27763c;
    font-size: 28px;
    font-weight: 900;
}

/* =========================
   LEGAL / POLICY PAGES
========================= */

.legal {
    max-width: 900px;
    margin: auto;
    padding: 28px 16px 55px;
}

.legal-card {
    background: #fff;
    border: 1px solid #e6dfd4;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 28px #0000000d;
}

.legal-card > small {
    color: #a47a16;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 11px;
}

.legal-card h1 {
    font-size: 34px;
    line-height: 1.2;
    margin: 8px 0 18px;
    color: #0b2a4a;
}

.legal-card h2 {
    font-size: 19px;
    color: #0b2a4a;
    margin: 25px 0 7px;
}

.legal-card p,
.legal-card li {
    font-size: 14px;
    color: #4f5e6b;
}

/* Terms / Privacy / Refund links BLUE */

.legal-card a {
    color: var(--link-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-card a:hover {
    color: var(--link-hover);
}

.legal-card ul {
    padding-left: 22px;
}

/* =========================
   POLICY NOTICE
========================= */

.notice {
    background: #f7f1df;
    border-left: 4px solid #d7a63c;
    padding: 13px 15px;
    border-radius: 10px;
}

/* =========================
   CONTACT
========================= */

.contact-box {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #f7f3ea;
    border-radius: 14px;
    padding: 15px;
    margin: 10px 0;
}

.contact-box span {
    font-size: 25px;
}

.contact-box div {
    display: flex;
    flex-direction: column;
}

.contact-box b {
    font-size: 12px;
    color: #687586;
}

.contact-box a {
    font-size: 17px;
    color: var(--link-blue);
    text-decoration: underline;
}

.contact-box a:hover {
    color: var(--link-hover);
}

/* =========================
   CHECKOUT POLICY CHECKBOX
========================= */

.policy-check {
    display: flex !important;
    gap: 8px;
    align-items: flex-start;
    margin-top: 15px !important;
    font-size: 12px !important;
    color: #687586 !important;
}

.policy-check input {
    width: auto !important;
    height: auto !important;
    margin-top: 4px;
}

.policy-check a {
    color: var(--link-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.policy-check a:hover {
    color: var(--link-hover);
}

/* =========================
   CHECKOUT FOOTER
========================= */

.checkout .site-footer {
    margin-left: -16px;
    margin-right: -16px;
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 760px) {

    .actions {
        grid-template-columns: 1fr 1fr;
        max-width: 650px;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .offer {
        margin-left: auto;
        margin-right: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .sticky {
        display: none;
    }

    .legal-card {
        padding: 34px;
    }

    .site-footer {
        padding-left: max(18px, calc((100% - 1000px) / 2));
        padding-right: max(18px, calc((100% - 1000px) / 2));
    }
}