/* Aptio brand layer. Loaded after bootstrap.min.css and style.css.
   Colours come from the app: ink blue, teal, amber, and the logo gradient. */

:root {
    --aptio-ink: #16243B;
    --aptio-ink-2: #243A5E;
    --aptio-ink-70: #41506B;
    --aptio-teal: #1F6F6B;
    --aptio-teal-soft: #E2F1F0;
    --aptio-amber: #F4A23B;
    --aptio-amber-soft: #FDF1DF;
    --aptio-gradient: linear-gradient(135deg, #1B2D5E 0%, #3D5A98 48%, #30919A 100%);
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--aptio-ink-70);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-weight: 600;
    color: var(--aptio-ink);
}

a { color: var(--aptio-ink-2); }
a:hover { color: var(--aptio-teal); }

/* Small label above a heading */
.kicker {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aptio-teal);
    margin-bottom: 0.75rem;
}

.btn { border-radius: 50rem; }

.btn-amber {
    color: var(--aptio-ink);
    background: var(--aptio-amber);
    border: none;
}

.btn-amber:hover {
    color: var(--aptio-ink);
    background: #FFD08A;
}

.btn-outline-white {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
    color: var(--aptio-ink);
    background: #fff;
}

/* Navbar */
.navbar-brand .brand-name {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--aptio-ink);
    vertical-align: middle;
}

.navbar-light .navbar-brand img,
.nav-bar .navbar-light .navbar-brand img {
    height: 46px;
    max-height: 46px;
    border-radius: 11px;
    margin-right: 10px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--aptio-ink);
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--aptio-teal);
}

/* Home hero */
.hero {
    background: var(--aptio-gradient);
    overflow: hidden;
}

.hero .kicker { color: #FFD08A; }

.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
}

.hero p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 34rem;
}

/* Phone frame around an app screenshot */
.phone {
    width: 250px;
    max-width: 70vw;
    padding: 9px;
    border-radius: 42px;
    background: #0B1322;
    box-shadow: 0 30px 60px rgba(8, 15, 30, 0.35);
}

.phone img {
    display: block;
    width: 100%;
    border-radius: 34px;
}

.phone-pair {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.phone-pair .phone-back {
    transform: translate(40px, 30px) rotate(4deg);
    opacity: 0.95;
}

.phone-pair .phone-front {
    margin-left: -120px;
    transform: translate(-20px, -10px) rotate(-3deg);
    z-index: 2;
}

@media (max-width: 575px) {
    .phone-pair .phone-back { display: none; }
    .phone-pair .phone-front { margin-left: 0; transform: none; }
}

/* Page header on the inner pages */
.bg-breadcrumb {
    background: var(--aptio-gradient);
    padding: 50px 0;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item.active { color: #FFD08A !important; }
.bg-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.6); }

/* Cards */
.feature .feature-item { height: 100%; }
.feature .feature-item .feature-icon { color: var(--aptio-teal); }

.fact-item {
    height: 100%;
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--bs-light);
}

.fact-item .fact-number {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1;
    color: var(--aptio-teal);
}

.fact-item h4 { margin: 0.5rem 0 0.25rem; font-size: 1.15rem; }
.fact-item p { margin: 0; font-size: 0.95rem; }

/* Product cards: show the top of a tall screenshot */
.service .service-item { height: 100%; display: flex; flex-direction: column; }
.service .service-item .service-content { flex: 1; }

.service .service-item .service-img {
    height: 300px;
    background: var(--aptio-teal-soft);
    padding: 24px 24px 0;
}

.service .service-item .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 10px 30px rgba(22, 36, 59, 0.18);
}

.service .service-item .service-img::after { background: rgba(31, 111, 107, 0.12); }

/* Exam cards on the product page */
.exam-card {
    height: 100%;
    padding: 1.75rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #E3E8F0;
}

.exam-card .board {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--aptio-teal);
}

.exam-card ul { padding-left: 1.1rem; margin: 0.75rem 0 0; }
.exam-card li { margin-bottom: 0.25rem; }

.pill {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--aptio-ink);
    background: var(--aptio-amber-soft);
}

.plan-card {
    height: 100%;
    padding: 2rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #E3E8F0;
}

.plan-card.plan-premium {
    border: 2px solid var(--aptio-amber);
}

.check-list { list-style: none; padding: 0; margin: 0; }

.check-list li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.6rem;
    color: var(--aptio-ink);
}

.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--aptio-teal);
}

/* Call-to-action band */
.cta-band {
    background: var(--aptio-gradient);
    border-radius: 16px;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); }

/* Contact */
.contact .contact-add-item {
    height: 100%;
    padding: 1.75rem;
    border-radius: 10px;
    background: #fff;
}

.contact .form-label {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--aptio-ink);
}

/* Typed text is dark, the hint inside an empty field is grey */
.contact .form-control {
    padding: 0.85rem 1rem;
    border: 1px solid #D5DCE8 !important;
    color: var(--aptio-ink);
}

.contact .form-control::placeholder {
    color: #7C879B;
    opacity: 1;
}

.contact .form-control:focus {
    border-color: var(--aptio-teal) !important;
    box-shadow: 0 0 0 0.2rem rgba(31, 111, 107, 0.15);
}

.contact .form-note { font-size: 0.95rem; }
.contact .form-note .btn-link { font-size: inherit; color: var(--aptio-teal); }

.contact .contact-done {
    padding: 2rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    background: var(--aptio-teal-soft);
}

.contact .contact-done i {
    margin-bottom: 0.75rem;
    font-size: 2.2rem;
    color: var(--aptio-teal);
}

/* Footer */
.footer { background: var(--aptio-ink); }
.footer .footer-item p, .footer .footer-note { color: rgba(255, 255, 255, 0.75); }
.footer .footer-item a { color: rgba(255, 255, 255, 0.85); }
.footer .footer-item a:hover { color: #FFD08A; }
.footer .brand-name { font-family: "Source Serif 4", Georgia, serif; font-size: 1.7rem; font-weight: 600; color: #fff; }
.footer .footer-logo { height: 44px; border-radius: 10px; margin-right: 10px; }
.footer .footer-note { font-size: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }

.copyright { background: #0E1828; }
.copyright, .copyright a { color: rgba(255, 255, 255, 0.75); }
.copyright a:hover { color: #FFD08A; }

.back-to-top { display: none; }

/* Keep the back-to-top button off the last line on phones */
@media (max-width: 767px) {
    .copyright { padding-bottom: 5.5rem !important; }
}
