/* ============================================================
 * Patients marketing landing — page-for-patients.php
 * Source: NGS_Theme/Taslaklar/for-patients.html
 *
 * Loaded only on the For Patients template (functions.php gated by
 * is_page_template). Tokens (--bg, --ink, --blue, etc.) come from
 * styles.css; base resets, .container, .section, .btn, .tag,
 * .eyebrow, .brand also come from styles.css and are NOT redeclared.
 * Site nav and footer are unified chrome (header.php + footer.php).
 * ============================================================ */

/* ---- Page-scoped helpers ---- */
.patients-eyebrow-row { display: flex; align-items: center; gap: 10px; }
.patients-eyebrow-num { color: var(--blue); }
.patients-em-display { font-style: italic; font-family: var(--display); color: var(--blue-deep); }
.patients-em-cta { font-style: italic; font-family: var(--display); color: var(--gold-soft); }

/* ---- Animations ---- */
@keyframes patients-rise        { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes patients-breathe     { 0%, 100% { transform: scale(1); opacity: 0.65; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes patients-drift       { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes patients-spin-slow   { to { transform: rotate(360deg); } }
@keyframes patients-pulse-ring  { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes patients-draw        { to { stroke-dashoffset: 0; } }
@keyframes patients-scale-in    { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

.page-for-patients .rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
    .page-for-patients .rise { animation: patients-rise 0.7s cubic-bezier(.2,.7,.2,1) forwards; }
}
.page-for-patients .delay-1 { animation-delay: .08s; }
.page-for-patients .delay-2 { animation-delay: .16s; }
.page-for-patients .delay-3 { animation-delay: .24s; }
.page-for-patients .delay-4 { animation-delay: .32s; }

/* ---- Hero ---- */
.patients-hero { padding-top: 80px; padding-bottom: 64px; }
.patients-hero .hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .patients-hero .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.patients-hero-h1 { margin-top: 22px; max-width: 780px; }
/* Above the grid collapse (2-col layout): the headline sits in the narrow
   1.3fr column, so "A second opinion" would wrap. Keep each line on one line
   and cap the font to fit the column. Below 981px it is full-width again. */
@media (min-width: 981px) {
  .patients-hero-h1 { white-space: nowrap; font-size: clamp(40px, 4.4vw, 60px); }
}
.patients-hero-lede { margin-top: 28px; font-size: 18px; line-height: 1.6; color: var(--ink-3); max-width: 560px; }
.patients-hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.patients-hero-disclaimer { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ---- Hero art (DNA helix + breathing badge) ---- */
.hero-art { position: relative; aspect-ratio: 1/1; max-width: 480px; justify-self: center; width: 100%; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-art .helix path { fill: none; stroke: var(--blue-deep); stroke-width: 1.4; opacity: 0.55; }
.hero-art .helix .b { stroke: var(--gold-deep); opacity: 0.6; }
.hero-art .rung { stroke: var(--ink-3); stroke-width: 0.8; opacity: 0.32; }
.hero-art .helix-rot { transform-origin: center; animation: patients-spin-slow 60s linear infinite; }
.hero-art .badge-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }

.hero-badge {
    width: 130px; height: 130px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--paper);
    box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    position: relative;
}
.hero-badge::before, .hero-badge::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 1px solid var(--gold); opacity: 0;
    animation: patients-pulse-ring 3.4s ease-out infinite;
}
.hero-badge::after { animation-delay: 1.7s; }
.hero-badge .b-mark {
    width: 30px; height: 30px; border-radius: 50%; background: var(--gold);
    position: relative; animation: patients-breathe 4s ease-in-out infinite;
}
.hero-badge .b-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--paper); }
.hero-badge .b-cap { font-family: var(--serif); font-size: 13px; color: var(--ink); letter-spacing: -0.01em; }
.hero-badge .b-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }

/* ---- Trust strip ---- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 72px; }
.trust > div { padding: 26px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust > div:first-child { padding-left: 20px; }
.trust > div:last-child { border-right: none; padding-right: 20px; }
.trust .t-icon { width: 24px; height: 24px; color: var(--blue-deep); }
.trust .t-h { font-family: var(--serif); font-size: 18px; letter-spacing: -0.01em; margin-top: 14px; }
.trust .t-s { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
@media (max-width: 780px) {
    .trust { grid-template-columns: 1fr 1fr; }
    .trust > div:nth-child(2) { border-right: none; }
    .trust > div:nth-child(1), .trust > div:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
    .trust > div:nth-child(3) { padding-top: 24px; border-right: 1px solid var(--line); }
    .trust > div:nth-child(4) { padding-top: 24px; }
}

/* ---- Steps section (sticky-left scrollytelling) ---- */
.patients-steps-h2 { margin-top: 18px; max-width: 920px; }

.steps-grid { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; margin-top: 56px; }
@media (max-width: 980px) { .steps-grid { grid-template-columns: 1fr; gap: 32px; } }

.steps-nav { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 980px) {
    .steps-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
}
.steps-nav button {
    font-family: var(--sans); background: none; border: none; text-align: left;
    padding: 14px 14px; color: var(--muted); font-size: 14px; cursor: pointer;
    border-radius: var(--radius); display: flex; align-items: center; gap: 14px;
    transition: color .18s, background .18s; white-space: nowrap; width: 100%;
}
.steps-nav button:hover { color: var(--ink-2); }
.steps-nav button .step-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; opacity: 0.65; }
.steps-nav button.is-on { color: var(--ink); font-weight: 500; }
.steps-nav button.is-on .step-marker { background: var(--ink); box-shadow: 0 0 0 3px rgba(11, 18, 32, 0.06); }
.step-marker { width: 8px; height: 8px; border-radius: 50%; background: transparent; border: 1px solid var(--muted-2); transition: all .25s; flex-shrink: 0; }

.steps-stack { display: flex; flex-direction: column; gap: 24px; }
.step-panel {
    background: var(--blue-soft); border: 1px solid rgba(43, 108, 176, 0.25); border-radius: var(--radius-lg);
    padding: 48px; min-height: 480px; scroll-margin-top: 140px;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.step-panel.gold { background: var(--gold-soft); border-color: rgba(184, 134, 47, 0.25); }
@media (max-width: 780px) {
    .step-panel { grid-template-columns: 1fr; gap: 24px; padding: 32px; min-height: 0; }
}
.step-panel .s-eye { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--blue-deep); text-transform: uppercase; }
.step-panel.gold .s-eye { color: var(--gold-deep); }
.step-panel .s-h { font-family: var(--serif); font-size: 34px; letter-spacing: -0.015em; line-height: 1.15; color: var(--ink); margin-top: 18px; max-width: 380px; }
.step-panel .s-body { margin-top: 18px; font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 420px; }
.step-panel .s-bullets { margin-top: 22px; list-style: none; padding: 0; display: grid; gap: 10px; }
.step-panel .s-bullets li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.step-panel .s-bullets svg { flex-shrink: 0; margin-top: 3px; color: var(--blue-deep); }
.step-panel.gold .s-bullets svg { color: var(--gold-deep); }

.step-art {
    aspect-ratio: 1.05/1; width: 100%; background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
}

/* Step art: envelope */
.envelope {
    width: 62%; aspect-ratio: 1.5/1;
    background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px;
    position: relative; animation: patients-drift 5s ease-in-out infinite; box-shadow: var(--shadow-md);
}
.envelope::before {
    content: ""; position: absolute; inset: 0; border-bottom: 1.5px solid var(--ink);
    clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 0, 0 0); background: var(--bg-2);
}
.envelope .seal {
    /* margin offsets center the 32x32 seal on (50%, 56%) without using
       transform — the patients-breathe keyframe already animates
       transform (scale), so a static translate would be overridden. */
    position: absolute; top: 56%; left: 50%; width: 32px; height: 32px;
    margin-top: -16px; margin-left: -16px;
    background: var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); color: var(--paper); font-size: 14px;
    line-height: 1; text-indent: 0.02em;
    animation: patients-breathe 3.5s ease-in-out infinite;
}
.envelope .lock { position: absolute; bottom: 14px; right: 14px; width: 22px; height: 22px; color: var(--ink-2); }
.envelope .lock svg { width: 100%; height: 100%; }

/* Step art: translation */
.translate-art { position: relative; width: 80%; height: 74%; display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.t-card { border: 1px solid var(--line); border-radius: 6px; padding: 16px; background: var(--paper); position: relative; overflow: hidden; }
.t-card .t-eye { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.t-card.t-from { background: linear-gradient(180deg, #F7F8FA 0%, #EEF1F4 100%); }
.t-card.t-from .line { height: 6px; background: var(--bg-3); border-radius: 1px; margin-top: 6px; }
.t-card.t-from .line.long { width: 96%; }
.t-card.t-from .line.med { width: 60%; }
.t-card.t-from .line.sh { width: 42%; }
.t-card .blob {
    position: absolute; font-family: var(--mono); font-size: 10px;
    color: var(--blue-deep); background: var(--blue-soft);
    padding: 2px 6px; border-radius: 2px; top: 8px; right: 8px; letter-spacing: 0.04em;
}
.t-card.t-to { background: var(--paper); border-color: var(--gold); }
.t-card.t-to h5 { font-family: var(--serif); font-size: 15px; margin: 8px 0 6px; letter-spacing: -0.005em; color: var(--ink); }
.t-card.t-to p { font-size: 11.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.t-arrow {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 34px; height: 34px; background: var(--ink); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--paper);
    z-index: 2; box-shadow: var(--shadow-md); animation: patients-scale-in .6s ease both;
}

/* Step art: physician dialogue */
.dialog-art { width: 84%; display: flex; flex-direction: column; gap: 10px; }
.bubble {
    padding: 12px 14px; border-radius: 14px; max-width: 80%;
    font-size: 12.5px; line-height: 1.5; animation: patients-rise .8s ease both;
    border: 1px solid var(--line); background: var(--paper);
}
.bubble.from-l { align-self: flex-start; border-bottom-left-radius: 4px; background: var(--bg-2); }
.bubble.from-r { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bubble .b-eye { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: inherit; opacity: 0.6; display: block; margin-bottom: 4px; }
.bubble:nth-child(2) { animation-delay: .4s; }
.bubble:nth-child(3) { animation-delay: .9s; }
.bubble:nth-child(4) { animation-delay: 1.4s; }

/* Step art: native-language report */
.report-art {
    width: 78%; aspect-ratio: 1/1.3; background: var(--paper);
    border: 1px solid var(--line); border-radius: 6px; padding: 18px;
    box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 8px;
    position: relative; animation: patients-drift 6s ease-in-out infinite;
}
.report-art .r-head {
    display: flex; justify-content: space-between;
    font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
    padding-bottom: 8px; border-bottom: 1px solid var(--line-2);
}
.report-art .r-title { font-family: var(--serif); font-size: 14px; margin-top: 4px; color: var(--ink); letter-spacing: -0.005em; }
.report-art .r-line { height: 5px; background: var(--bg-3); border-radius: 1px; }
.report-art .r-line.short { width: 58%; }
.report-art .r-line.gold { background: var(--gold); width: 30%; }

/* ---- Privacy section ---- */
.patients-privacy-h2 { max-width: 480px; }
.patients-privacy-lede { margin-top: 18px; font-size: 15.5px; line-height: 1.65; color: var(--ink-3); max-width: 480px; }

.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 48px; }
@media (max-width: 880px) { .privacy-grid { grid-template-columns: 1fr; gap: 32px; } }

.shield-art { aspect-ratio: 1/1; max-width: 380px; justify-self: center; width: 100%; position: relative; }
.shield-art svg { width: 100%; height: 100%; display: block; }
.shield-art .ring { stroke: var(--blue); fill: none; opacity: 0.18; }
.shield-art .ring-pulse { transform-origin: center; animation: patients-breathe 4s ease-in-out infinite; }
.shield-art .shield-body { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.shield-art .check {
    stroke: var(--gold-deep); stroke-width: 2.5; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 30; stroke-dashoffset: 30;
    animation: patients-draw 1.6s ease .6s forwards;
}

.privacy-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.privacy-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.privacy-list .p-icon {
    width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft);
    color: var(--blue-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.privacy-list .p-h { font-size: 14.5px; font-weight: 500; color: var(--ink); letter-spacing: -0.005em; }
.privacy-list .p-s { font-size: 13px; color: var(--ink-3); line-height: 1.5; margin-top: 4px; }

/* ---- Stories ---- */
.patients-stories-h2 { margin-top: 18px; max-width: 780px; }

.stories-rail { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .stories-rail { grid-template-columns: 1fr; } }

.story {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 300px;
    transition: transform .25s, box-shadow .25s;
}
.story:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.story .s-quote { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.4; color: var(--ink); letter-spacing: -0.005em; }
.story .s-meta { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.story .s-name { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.story .s-ctx { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* ---- FAQ ---- */
.patients-faq-h2 { margin-top: 18px; max-width: 780px; }

.faq-list { margin-top: 48px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%; background: none; border: none; padding: 24px 0;
    display: flex; justify-content: space-between; align-items: center; text-align: left; cursor: pointer;
    font-family: var(--serif); font-size: 20px; color: var(--ink); letter-spacing: -0.005em;
    transition: color .15s;
}
.faq-q:hover { color: var(--blue-deep); }
.faq-q .faq-icon {
    width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%;
    position: relative; color: var(--ink-2);
    transition: transform .3s, background .2s, color .2s;
    flex-shrink: 0; margin-left: 18px;
    font-size: 0;
}
.faq-q .faq-icon::before,
.faq-q .faq-icon::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    background: currentColor; border-radius: 1px;
}
.faq-q .faq-icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-q .faq-icon::after  { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }
.faq-q.is-open .faq-icon { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a.is-open { max-height: 400px; }
.faq-a .inner { padding: 0 0 28px; font-size: 14.5px; color: var(--ink-3); line-height: 1.65; max-width: 780px; }

/* ---- CTA card ---- */
.patients-cta-h2 { color: var(--paper); }
.patients-cta-body { margin-top: 18px; color: rgba(247, 248, 250, 0.78); font-size: 15.5px; line-height: 1.6; max-width: 520px; }

.cta-card {
    margin-top: 48px; background: var(--ink); color: var(--paper);
    border-radius: var(--radius-lg); padding: 56px;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
    position: relative; overflow: hidden;
}
.cta-card::before {
    content: ""; position: absolute; top: -40%; right: -10%;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 134, 47, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.cta-card .cta-actions { display: flex; flex-direction: column; gap: 12px; justify-self: end; }
.cta-card .btn-primary { background: var(--gold); color: var(--ink); }
.cta-card .btn-primary:hover { background: #caa051; }
.cta-card .btn-ghost { color: var(--paper); border-color: rgba(255, 255, 255, 0.3); }
.cta-card .btn-ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 780px) {
    .cta-card { grid-template-columns: 1fr; padding: 36px; }
    .cta-card .cta-actions { justify-self: start; }
}

/* ---- Sticky reassurance pill ---- */
.reassure-pill {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30;
    background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 18px 10px 14px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 10px;
    opacity: 0; pointer-events: none;
    transition: opacity .35s;
}
.reassure-pill::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--positive, #3F7D5F); box-shadow: 0 0 0 3px rgba(63, 125, 95, 0.18);
    animation: patients-breathe 3s ease-in-out infinite;
}
.reassure-pill.is-on { opacity: 1; pointer-events: auto; }
@media (max-width: 600px) {
    .reassure-pill { font-size: 10px; padding: 8px 14px 8px 10px; }
}
