/* ============================================================
   ShipsTime — marketing site
   Clean maritime editorial aesthetic.
   Cormorant Garamond (headings) + Inter (body).
   ============================================================ */

:root {
    --navy: #0D2540;
    --navy-soft: #16395f;
    --cream: #F5F0E8;
    --cyan: #6DD7FF;
    --gold: #C9A84C;
    --white: #FFFFFF;

    --ink: #0D2540;
    --ink-soft: #44607c;
    --line: rgba(13, 37, 64, 0.12);
    --line-on-navy: rgba(245, 240, 232, 0.16);

    --maxw: 1120px;
    --radius: 16px;
    --shadow: 0 18px 50px rgba(13, 37, 64, 0.12);
    --shadow-soft: 0 8px 24px rgba(13, 37, 64, 0.08);

    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.12;
    color: var(--navy);
    margin: 0 0 0.4em;
    letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

p { margin: 0 0 1.1em; }

a { color: var(--navy); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--gold); }

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

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

.eyebrow {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 14px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--white); }

.center { text-align: center; }
.lead {
    font-size: 1.2rem;
    color: var(--ink-soft);
    max-width: 640px;
    margin: 0 auto 2em;
}
.section--navy .lead { color: rgba(245, 240, 232, 0.82); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 10px 26px rgba(201, 168, 76, 0.35);
}
.btn--primary:hover { background: #d8b85e; color: var(--navy); }

.btn--play {
    background: var(--navy);
    color: var(--white);
}
.btn--play:hover { background: var(--navy-soft); color: var(--white); }
.section--navy .btn--play {
    background: var(--gold);
    color: var(--navy);
}
.section--navy .btn--play:hover { background: #d8b85e; }

.btn--ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.section--navy .btn--ghost {
    color: var(--cream);
    border-color: var(--line-on-navy);
}
.section--navy .btn--ghost:hover { color: var(--cyan); border-color: var(--cyan); }

.btn .play-glyph { font-size: 1.1rem; line-height: 1; }

.btn-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-row--center { justify-content: center; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(13, 37, 64, 0.96);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line-on-navy);
}
.nav__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__brand {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.nav__brand:hover { color: var(--white); }
.nav__mark {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(109, 215, 255, 0.18);
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0; padding: 0;
}
.nav__links a {
    color: rgba(245, 240, 232, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 2px;
    position: relative;
}
.nav__links a:hover { color: var(--white); }
.nav__links a.active { color: var(--white); }
.nav__links a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}
.nav__toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    width: 40px; height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.nav__toggle span {
    display: block;
    height: 2px;
    width: 24px;
    background: var(--cream);
    border-radius: 2px;
    transition: 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1100px 500px at 80% -10%, rgba(109, 215, 255, 0.16), transparent 60%),
        var(--navy);
    color: var(--cream);
    padding: 150px 0 110px;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero__sub {
    font-size: 1.22rem;
    color: rgba(245, 240, 232, 0.82);
    max-width: 520px;
    margin-bottom: 32px;
}

/* ---------- Phone mockup ---------- */
.phone {
    width: 280px;
    height: 570px;
    margin: 0 auto;
    background: #060d18;
    border-radius: 42px;
    padding: 14px;
    border: 2px solid rgba(245, 240, 232, 0.14);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(109,215,255,0.06);
    position: relative;
}
.phone::before {
    content: "";
    position: absolute;
    top: 16px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 22px;
    background: #060d18;
    border-radius: 0 0 16px 16px;
    z-index: 3;
}
.phone__screen {
    width: 100%; height: 100%;
    border-radius: 30px;
    background: linear-gradient(180deg, #0A1A30 0%, #050B18 100%);
    overflow: hidden;
    padding: 40px 18px 18px;
    color: var(--cream);
    display: flex;
    flex-direction: column;
}
.phone__eyebrow {
    font-size: 0.62rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}
.phone__ship {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--white);
    margin: 2px 0 14px;
}
.phone__clock {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 4.1rem;
    line-height: 1;
    color: var(--white);
    letter-spacing: 1px;
}
.phone__date { font-size: 0.78rem; color: rgba(245,240,232,0.6); margin-top: 4px; }
.phone__divider { height: 1px; background: rgba(109,215,255,0.18); margin: 18px 0 14px; }
.phone__label {
    font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase;
    color: rgba(245,240,232,0.5); margin-bottom: 9px;
}
.phone__row {
    display: flex; align-items: center; gap: 9px;
    font-size: 0.82rem; color: rgba(245,240,232,0.92);
    margin-bottom: 11px;
}
.phone__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--cyan); flex: none;
}
.phone__dot--gold { background: var(--gold); }
.phone__dot--cream { background: rgba(245,240,232,0.5); }

/* ---------- Feature cards ---------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 30px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: rgba(109, 215, 255, 0.16);
    color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* ---------- How it works ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    counter-reset: step;
}
.step {
    text-align: center;
    padding: 14px;
}
.step__num {
    counter-increment: step;
    width: 54px; height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--cyan);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif);
    font-size: 1.5rem;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Port guide band ---------- */
.portband__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag {
    border: 1px solid var(--line-on-navy);
    color: var(--cream);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.85rem;
}
.bignum {
    font-family: var(--serif);
    font-size: clamp(4rem, 10vw, 7rem);
    color: var(--cyan);
    line-height: 0.9;
}

/* ---------- Detailed feature list (features.html) ---------- */
.feature-list { display: grid; gap: 20px; }
.feature-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow-soft);
    align-items: start;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-item__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--navy);
    color: var(--cyan);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.feature-item h3 { margin-bottom: 6px; }
.feature-item p { color: var(--ink-soft); margin: 0; }
.badge-soon {
    display: inline-block;
    font-size: 0.66rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 999px;
    padding: 2px 10px;
    margin-left: 10px;
    vertical-align: middle;
}

/* ---------- Article (about.html) ---------- */
.article {
    max-width: 720px;
    margin: 0 auto;
}
.article h2 {
    margin-top: 1.6em;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.article p { font-size: 1.12rem; color: #2c4258; }
.article .article__lead {
    font-size: 1.35rem;
    color: var(--ink-soft);
    font-style: italic;
    font-family: var(--serif);
}
.article blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--gold);
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--navy);
    font-style: italic;
}

/* ---------- FAQ (support.html) ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    margin-bottom: 14px;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.08rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--gold);
    transition: transform 0.2s ease;
    line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    padding: 0 24px 22px;
    margin: 0;
    color: var(--ink-soft);
}
.support-cta {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 620px;
    margin: 0 auto 48px;
    box-shadow: var(--shadow-soft);
}
.support-cta a { color: var(--gold); font-weight: 600; }

/* ---------- Generic prose (privacy) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose .meta {
    color: var(--ink-soft);
    font-size: 0.95rem;
    border-left: 3px solid var(--gold);
    padding-left: 16px;
    margin-bottom: 28px;
}

/* ---------- Page header (sub pages) ---------- */
.page-head {
    background: var(--navy);
    color: var(--cream);
    padding: 140px 0 70px;
    text-align: center;
}
.page-head h1 { color: var(--white); }
.page-head p { color: rgba(245, 240, 232, 0.8); max-width: 600px; margin: 0 auto; }

/* ---------- Footer ---------- */
.footer {
    background: var(--navy);
    color: rgba(245, 240, 232, 0.7);
    padding: 56px 0 40px;
    border-top: 1px solid var(--line-on-navy);
    font-size: 0.92rem;
}
.footer__top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
}
.footer__brand {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--white);
}
.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0; padding: 0;
}
.footer__links a { color: rgba(245, 240, 232, 0.75); }
.footer__links a:hover { color: var(--cyan); }
.footer__built { color: rgba(245, 240, 232, 0.85); margin-bottom: 14px; }
.footer__disclaimer {
    border-top: 1px solid var(--line-on-navy);
    padding-top: 20px;
    font-size: 0.82rem;
    color: rgba(245, 240, 232, 0.55);
    max-width: 760px;
    line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .hero__copy { text-align: center; }
    .hero__sub { margin-left: auto; margin-right: auto; }
    .hero .btn-row { justify-content: center; }
    .grid-3 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .portband__grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .tag-row { justify-content: center; }

    .nav__toggle { display: flex; }
    .nav__links {
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: var(--navy);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 18px;
        border-bottom: 1px solid var(--line-on-navy);
        display: none;
    }
    .nav__links.open { display: flex; }
    .nav__links li { width: 100%; }
    .nav__links a { display: block; padding: 13px 0; width: 100%; }
    .nav__links a.active::after { display: none; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .section { padding: 64px 0; }
    .steps { grid-template-columns: 1fr; }
    .feature-item { grid-template-columns: 1fr; }
    .feature-item__icon { margin-bottom: 4px; }
    .footer__top { flex-direction: column; align-items: flex-start; }
}
