* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1f1e1c;
    color: #ede7dc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav {
    position: sticky;
    top: 0;
    background: rgba(31, 30, 28, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #3a3739;
    z-index: 100;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    color: #ede7dc;
}

.brand-mark {
    width: 35px;
    height: 35px;
    background: #ede7dc;
    color: #1f1e1c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #ede7dc;
    text-decoration: none;
    font-size: 15px;
}

.nav-links a:hover {
    color: #9aae93;
}

/* Make Start a Project button text black */
.nav-links .btn-primary {
    color: #1f1e1c;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #3a3739;
    border-radius: 8px;
    padding: 8px 15px;
    color: #ede7dc;
    cursor: pointer;
    font-size: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #9aae93;
    color: #1f1e1c;
}

.btn-primary:hover {
    background: #aec2a7;
}

.btn-secondary {
    background: transparent;
    color: #ede7dc;
    border: 1px solid #3a3739;
}

.btn-secondary:hover {
    background: #28272a;
}

.btn-small {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    max-width: 800px;
    margin: 0 auto 20px;
    font-family: Georgia, serif;
}

.hero h1 em {
    color: #9aae93;
    font-style: normal;
}

.lead {
    font-size: 18px;
    color: #9a9485;
    max-width: 600px;
    margin: 0 auto;
}

.hero-description {
    text-align: center;
    margin-top: 20px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.features {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #28272a;
    border: 1px solid #3a3739;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.step-number {
    font-size: 48px;
    font-weight: bold;
    color: #9aae93;
    margin-bottom: 16px;
}

.step-detail {
    font-size: 12px;
    color: #9a9485;
    margin-top: 12px;
}

.small {
    font-size: 12px;
    color: #9a9485;
    margin-top: 8px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-family: Georgia, serif;
}

.feature-card p {
    color: #9a9485;
    margin-bottom: 20px;
}

.feature-card a {
    color: #9aae93;
    text-decoration: none;
}

.cta-section {
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid #3a3739;
    border-bottom: 1px solid #3a3739;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 16px;
    font-family: Georgia, serif;
}

.cta-section p {
    color: #9a9485;
    margin-bottom: 24px;
}

footer {
    padding: 60px 0 30px;
    color: #9a9485;
    font-size: 14px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-inner h4 {
    font-size: 14px;
    margin-bottom: 16px;
    color: #ede7dc;
}

.footer-inner ul {
    list-style: none;
}

.footer-inner li {
    margin-bottom: 10px;
}

.footer-inner a {
    color: #9a9485;
    text-decoration: none;
}

.footer-inner a:hover {
    color: #ede7dc;
}

.footer-bottom {
    border-top: 1px solid #3a3739;
    padding-top: 30px;
    text-align: center;
    font-size: 12px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .container {
        padding: 0 16px;
    }
}

/* === Animated "pocketdial" wordmark logo (hero, header + footer) ===
   Letters slide in and a "p" flips over to become the "d". Rendered in the
   site's Georgia italic wordmark font; animation logic lives in js/logo.js. */
.pd-wordmark {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    color: #ede7dc;        /* base letters — cream, readable on the dark bars */
    font-size: 22px;       /* header / footer size; hero overrides below */
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    position: relative;
}
/* Hero keeps the large display size + tight tracking it already used.
   Tracking is in em (not px) so it scales WITH the clamped font-size: a fixed
   -9px/-8px stayed constant while the font dropped to its 36px floor on phones,
   crushing the letters together. At the 85px desktop cap these em values equal
   the old -9px/-8px, so the desktop look is unchanged. */
.logo-container .pd-wordmark { font-size: clamp(36px, 9vw, 85px); letter-spacing: -0.106em; }
.logo-container .pd-ltr { margin-right: -0.094em; }
.pd-stage { position: relative; display: inline-block; }
.pd-ltr   { display: inline-block; }

.pd-mover, .pd-mover-b {
    position: absolute;
    pointer-events: none;
    font: inherit;
    line-height: 1;
    display: none;
}
/* Pivot on the true centre so a 180° turn leaves the box exactly in place;
   the rotated "p" is then centred on the "d" slot via --pd-tx-flip below. */
.pd-mover { transform-origin: 50% 50%; }

/* Accent colour (site green) — declared AFTER the base rules so it wins. */
.pd-ltr.pd-p, .pd-ltr.pd-d, .pd-ltr.pd-l,
.pd-mover, .pd-mover-b { color: #9aae93; }

/* Pre-animation state (JS-controlled host) */
.pd-stage.pd-js .pd-ltr { opacity: 0; }
.pd-stage.pd-js .pd-ltr.pd-p { opacity: 1; }

.pd-stage.pd-animate .pd-ltr.pd-p { opacity: 1; }
.pd-stage.pd-animate .pd-ltr.pd-d { opacity: 0; }

.pd-stage.pd-animate .pd-o,
.pd-stage.pd-animate .pd-k,
.pd-stage.pd-animate .pd-t,
.pd-stage.pd-animate .pd-a {
    animation: pd-slide-down 0.40s cubic-bezier(0.2, 0.8, 0.25, 1) 1.80s both;
}
.pd-stage.pd-animate .pd-c,
.pd-stage.pd-animate .pd-e,
.pd-stage.pd-animate .pd-i {
    animation: pd-slide-up 0.40s cubic-bezier(0.2, 0.8, 0.25, 1) 1.80s both;
}

.pd-stage.pd-animate .pd-l {
    animation: pd-l-from-d 0.35s cubic-bezier(0.2, 0.8, 0.25, 1) 1.30s forwards;
}
@keyframes pd-l-from-d {
    from { opacity: 1; transform: translateX(var(--pd-l-from-d, 0px)); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pd-slide-down { from { opacity: 0; transform: translateY(-1.1em); } to { opacity: 1; transform: translateY(0); } }
@keyframes pd-slide-up   { from { opacity: 0; transform: translateY( 1.1em); } to { opacity: 1; transform: translateY(0); } }

.pd-stage.pd-animate .pd-mover   { display: inline-block; animation: pd-flip 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.25s both; }
.pd-stage.pd-animate .pd-mover-b { display: inline-block; animation: pd-flop 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.25s both; }

@keyframes pd-flip {
    0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    40%  { transform: translate(0, 0) rotate(180deg); opacity: 1;
            animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.4); }
    70%  { transform: translate(var(--pd-tx-flip, 0), var(--pd-ty-flip, 0)) rotate(180deg); opacity: 0; }
    100% { transform: translate(var(--pd-tx-flip, 0), var(--pd-ty-flip, 0)) rotate(180deg); opacity: 0; }
}
@keyframes pd-flop {
    0%   { transform: translate(0, 0); opacity: 0; }
    40%  { transform: translate(0, 0); opacity: 0;
            animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.4); }
    70%  { transform: translate(var(--pd-tx, 0), var(--pd-ty, 0)); opacity: 1; }
    100% { transform: translate(var(--pd-tx, 0), var(--pd-ty, 0)); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .pd-stage.pd-js .pd-ltr { opacity: 1 !important; animation: none !important; }
    .pd-stage.pd-js .pd-mover, .pd-stage.pd-js .pd-mover-b { display: none !important; }
}

/* "pd" mark in the header/footer box — italic + tracking to match the favicon. */
.brand-mark { font-style: italic; letter-spacing: -1px; }