/* ═══════════════════════════════════════════════════════
   CretaHub — How It Works (Premium v2)
   Design system: Noto Serif + Plus Jakarta Sans
   Palette: #004d70 navy · #FDA53A amber · #fcf9f8 surface
   ═══════════════════════════════════════════════════════ */

/* ── Strip theme padding ─────────────────────────────── */
body.page-template-template-fullwidth .entry-content,
.page-id-17896 .entry-content {
    padding: 0 !important;
    max-width: 100% !important;
}

/* ── Design tokens ───────────────────────────────────── */
.ch-hiw-v2 {
    --primary:         #004d70;
    --primary-dark:    #003552;
    --secondary:       #895200;
    --amber:           #FDA53A;
    --gold:            #FFD080;
    --surface:         #fcf9f8;
    --surface-low:     #f6f3f2;
    --on-surface:      #1b1c1c;
    --on-surface-var:  #3e4850;
    --outline:         #bec8d2;
    --font-display:    'Noto Serif', Georgia, serif;
    --font-body:       'Plus Jakarta Sans', sans-serif;
    font-family: var(--font-body);
    color: var(--on-surface);
    background: var(--surface);
    overflow-x: hidden;
}

.ch-hiw-v2 *, .ch-hiw-v2 *::before, .ch-hiw-v2 *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Animated gradient border ────────────────────────── */
@property --ga {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
@keyframes ch-spin {
    to { --ga: 360deg; }
}
.ch-border-card,
.ch-border-card-white {
    border: 2px solid transparent;
    border-radius: 1.5rem;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.ch-border-card {
    background-image:
        linear-gradient(var(--surface-low), var(--surface-low)),
        conic-gradient(from var(--ga, 0deg), #004d70 0%, #FDA53A 30%, #FFD080 45%, #FDA53A 60%, #004d70 100%);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
}
.ch-border-card-white {
    background-image:
        linear-gradient(#ffffff, #ffffff),
        conic-gradient(from var(--ga, 0deg), #004d70 0%, #FDA53A 30%, #FFD080 45%, #FDA53A 60%, #004d70 100%);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
}
.ch-border-card:hover,
.ch-border-card-white:hover {
    animation: ch-spin 5s linear infinite;
    box-shadow: 0 20px 60px rgba(0,77,112,0.12);
    transform: translateY(-3px);
}

/* ── Scroll reveal ───────────────────────────────────── */
.ch-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.ch-reveal.ch-visible        { opacity: 1; transform: translateY(0); }
.ch-reveal-delay-1           { transition-delay: 0.1s; }
.ch-reveal-delay-2           { transition-delay: 0.2s; }
.ch-reveal-delay-3           { transition-delay: 0.3s; }
.ch-reveal-delay-4           { transition-delay: 0.4s; }

/* ── HERO ─────────────────────────────────────────────── */
.ch-hiw-v2 .ch-hero {
    background: var(--primary);
    padding: 120px 32px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ch-hiw-v2 .ch-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(253,165,58,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.ch-hiw-v2 .ch-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}
.ch-hiw-v2 .ch-eyebrow {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--amber);
    display: block;
    margin-bottom: 24px;
}
.ch-hiw-v2 .ch-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 28px;
}
.ch-hiw-v2 .ch-hero h1 em {
    font-style: italic;
    color: var(--amber);
}
.ch-hiw-v2 .ch-hero-sub {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 300;
    color: rgba(255,255,255,0.62);
    line-height: 1.75;
    max-width: 500px;
    margin: 0 auto 48px;
}
.ch-hiw-v2 .ch-btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: var(--amber);
    color: #fff !important;
    padding: 16px 40px;
    border-radius: 9999px;
    text-decoration: none !important;
    box-shadow: 0 8px 32px rgba(253,165,58,0.4);
    transition: filter 0.25s, transform 0.25s, box-shadow 0.25s;
}
.ch-hiw-v2 .ch-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 14px 44px rgba(253,165,58,0.5);
}
.ch-hiw-v2 .ch-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}
.ch-hiw-v2 .ch-trust-pill {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 7px 16px;
    border-radius: 9999px;
}

/* ── SECTION COMMONS ─────────────────────────────────── */
.ch-hiw-v2 .ch-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.ch-hiw-v2 .ch-section-header {
    margin-bottom: 64px;
}
.ch-hiw-v2 .ch-section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--on-surface);
    margin-top: 16px;
}

/* ── STEPS ───────────────────────────────────────────── */
.ch-hiw-v2 .ch-steps-section {
    background: var(--surface-low);
    padding: 120px 32px;
}
.ch-hiw-v2 .ch-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .ch-hiw-v2 .ch-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .ch-hiw-v2 .ch-steps-grid { grid-template-columns: 1fr; }
}
.ch-hiw-v2 .ch-step-card {
    padding: 36px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ch-hiw-v2 .ch-step-num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--amber);
    line-height: 1;
    letter-spacing: -0.04em;
    opacity: 0.7;
}
.ch-hiw-v2 .ch-step-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--on-surface);
    line-height: 1.2;
}
.ch-hiw-v2 .ch-step-card p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--on-surface-var);
    line-height: 1.8;
}

/* ── PAYMENT ─────────────────────────────────────────── */
.ch-hiw-v2 .ch-payment-section {
    background: var(--surface);
    padding: 120px 32px;
}
.ch-hiw-v2 .ch-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 56px;
}
@media (max-width: 768px) {
    .ch-hiw-v2 .ch-payment-grid { grid-template-columns: 1fr; }
}
.ch-hiw-v2 .ch-payment-card {
    padding: 40px 32px;
}
.ch-hiw-v2 .ch-card-num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    color: var(--outline);
    line-height: 1;
    letter-spacing: -0.04em;
    display: block;
    margin-bottom: 20px;
}
.ch-hiw-v2 .ch-payment-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--on-surface);
    margin-bottom: 12px;
}
.ch-hiw-v2 .ch-payment-card p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--on-surface-var);
    line-height: 1.8;
}

/* ── TIMELINE ────────────────────────────────────────── */
.ch-hiw-v2 .ch-timeline-section {
    background: var(--surface-low);
    padding: 120px 32px;
}
.ch-hiw-v2 .ch-timeline {
    display: flex;
    flex-direction: column;
    margin-top: 56px;
    max-width: 640px;
}
.ch-hiw-v2 .ch-tl-item {
    display: flex;
    gap: 28px;
    position: relative;
    padding-bottom: 44px;
}
.ch-hiw-v2 .ch-tl-item:last-child { padding-bottom: 0; }
.ch-hiw-v2 .ch-tl-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 1px;
    background: var(--outline);
    opacity: 0.5;
}
.ch-hiw-v2 .ch-tl-dot {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ch-hiw-v2 .ch-tl-body { padding-top: 6px; }
.ch-hiw-v2 .ch-tl-tag {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--amber);
    display: block;
    margin-bottom: 8px;
}
.ch-hiw-v2 .ch-tl-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--on-surface);
    margin-bottom: 8px;
}
.ch-hiw-v2 .ch-tl-body p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--on-surface-var);
    line-height: 1.8;
}

/* ── FAQ ─────────────────────────────────────────────── */
.ch-hiw-v2 .ch-faq-section {
    background: var(--surface);
    padding: 120px 32px;
}
.ch-hiw-v2 .ch-faq-list {
    max-width: 700px;
    margin-top: 56px;
}
.ch-hiw-v2 .ch-faq-item {
    border-bottom: 1px solid var(--outline);
    padding: 28px 0;
    cursor: pointer;
}
.ch-hiw-v2 .ch-faq-item:first-child { border-top: 1px solid var(--outline); }
.ch-hiw-v2 .ch-faq-q {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--on-surface);
    line-height: 1.35;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.ch-hiw-v2 .ch-faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    border: 1px solid var(--outline);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.ch-hiw-v2 .ch-faq-item.ch-open .ch-faq-icon { transform: rotate(45deg); }
.ch-hiw-v2 .ch-faq-a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--on-surface-var);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding-top 0.4s ease;
}
.ch-hiw-v2 .ch-faq-item.ch-open .ch-faq-a {
    max-height: 200px;
    padding-top: 16px;
}
.ch-hiw-v2 .ch-faq-a a { color: var(--primary); text-decoration: none; }
.ch-hiw-v2 .ch-faq-a a:hover { text-decoration: underline; }

/* ── CTA ─────────────────────────────────────────────── */
.ch-hiw-v2 .ch-cta-section {
    padding: 80px 32px;
    background: var(--surface-low);
}
.ch-hiw-v2 .ch-cta-block {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 2.5rem;
    padding: clamp(60px, 8vw, 100px) clamp(40px, 6vw, 100px);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0,77,112,0.28);
    border: 2px solid transparent;
    background-image:
        linear-gradient(#004d70, #004d70),
        conic-gradient(from var(--ga, 0deg), #FDA53A 0%, #FFD080 30%, #004d70 50%, #FDA53A 80%, #FFD080 100%);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
}
.ch-hiw-v2 .ch-cta-block:hover {
    animation: ch-spin 6s linear infinite;
}
.ch-hiw-v2 .ch-cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 2.5rem;
}
.ch-hiw-v2 .ch-cta-eyebrow {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    display: block;
    margin-bottom: 20px;
    position: relative;
}
.ch-hiw-v2 .ch-cta-block h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
}
.ch-hiw-v2 .ch-cta-block h2 em { font-style: italic; color: #FDA53A; }
.ch-hiw-v2 .ch-cta-block > p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    max-width: 400px;
    margin: 0 auto 44px;
    line-height: 1.75;
    position: relative;
}
