/* palvelusovellus/hieronta-opas/style.css */

:root {
    --bg-color: #faf9f7;
    --text-color: #2c2a29;
    --text-light: #6b6661;
    --primary-color: #8E44AD;
    --primary-hover: #732d91;
    --primary-light: rgba(142, 68, 173, 0.05);
    --card-bg: #ffffff;
    --border-color: #eae6e1;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --radius: 12px;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.app-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.app-nav {
    display: flex;
    gap: 1.5rem;
}
.app-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}
.app-nav a:hover {
    color: var(--primary-color);
}
.logo-link { 
    text-decoration: none; 
}

/* Hero Intro */
.hero-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}
.hero-intro h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.hero-intro p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Progress */
.progress-section {
    margin-bottom: 2rem;
    text-align: center;
}
.step-count {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 500;
}
.progress-bar-bg {
    background-color: var(--border-color);
    height: 4px;
    border-radius: 2px;
    width: 100%;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.4s ease;
}

/* Quiz Card */
.quiz-wrapper {
    flex-grow: 1;
}
.quiz-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-soft);
}

.question-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 400;
    background: var(--card-bg);
}
.option-label:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.1);
}
.option-label.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    font-weight: 500;
    box-shadow: 0 0 0 1px var(--primary-color);
}
.option-label input[type="radio"] { 
    display: none; 
}

/* Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}
.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-text {
    background: transparent;
    color: var(--text-light);
    text-decoration: underline;
    padding: 10px;
}
.btn-text:hover { 
    color: var(--primary-color); 
}
.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    width: 100%;
}

/* Result Card */
.result-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
}
.result-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}
.result-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 3rem;
    line-height: 1.5;
    color: var(--text-color);
}

/* Main Recommendation */
.main-recommendation {
    background: var(--bg-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    text-align: left;
}
.main-rec-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}
.main-rec-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: center;
}
.main-rec-micro {
    font-size: 0.95rem;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 1rem;
    text-align: center;
}
.main-rec-time {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    width: fit-content;
    margin: 0 auto 1.5rem auto;
}
.main-rec-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Why This Fits You Block */
.why-fits-box {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.why-fits-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}
.why-fits-list {
    list-style: none;
    padding: 0;
}
.why-fits-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}
.why-fits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* First-Timer Message */
.first-timer-msg {
    font-size: 0.95rem;
    color: var(--text-color);
    background: var(--primary-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-color);
}
.first-timer-msg strong {
    font-weight: 600;
}

/* Secondary Suggestions */
.secondary-suggestions-wrapper {
    margin-bottom: 3rem;
}
.secondary-title {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.secondary-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    transition: var(--transition);
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
}
.secondary-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}
.sec-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--text-color);
}
.sec-card-micro {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-style: italic;
}
.sec-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    flex-grow: 1;
}
.sec-card-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: var(--transition);
}
.sec-card-btn:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Booking Area */
.booking-area {
    background: var(--primary-light);
    border: 1px solid rgba(142, 68, 173, 0.15);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
}
.booking-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.booking-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Trust Signals */
.trust-signals {
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
    margin-bottom: 2.5rem;
}
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-color);
}
.trust-icon {
    font-size: 1.2rem;
}

/* Disclaimer */
.disclaimer-box {
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: left;
    line-height: 1.6;
    border: 1px solid var(--border-color);
}

/* Comparison Section */
.comparison-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}
.comparison-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.comp-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    padding-top: 2.2rem; /* space for badge */
}
.comp-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.comp-badges {
    position: absolute;
    top: -12px;
    left: 1.5rem;
}
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-primary { background: var(--primary-color); color: #fff; }
.badge-soft { background: #e3d2eb; color: var(--primary-hover); }
.badge-warm { background: #d7af90; color: #fff; }
.badge-strong { background: #2c2a29; color: #fff; }
.badge-focus { background: #9fa19f; color: #fff; }

.comp-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.comp-micro {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}
.comp-card ul {
    list-style: none;
    padding: 0;
}
.comp-card li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}
.comp-card li strong {
    color: var(--text-color);
    font-weight: 600;
}

/* SEO Content & Internal Linking */
.seo-content {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}
.seo-intro h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.seo-intro p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}
.seo-services h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}
.seo-service-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border-color);
}
.seo-service-item h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.seo-service-item h4 a {
    color: var(--primary-color);
    text-decoration: none;
}
.seo-service-item p {
    color: var(--text-light);
    line-height: 1.6;
}
.inline-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    margin-left: 0.5rem;
}
.inline-link:hover {
    color: var(--primary-hover);
}

/* FAQ Section */
.faq-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.faq-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}
.faq-item {
    margin-bottom: 1.5rem;
}
.faq-question {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}
.faq-answer {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Cross-Link Block */
.cross-link-block {
    margin-top: 4rem;
    padding: 2.5rem;
    background: #ffffff;
    border: 1px dashed var(--primary-color);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.05);
}
.cross-link-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}
.cross-link-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Footer */
.app-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-light);
}
.app-footer p { 
    margin-bottom: 8px; 
}
.app-footer a { 
    color: var(--text-light); 
    text-decoration: underline; 
}
.app-footer a:hover { 
    color: var(--primary-color); 
}

/* Animations */
.fade-in { 
    animation: fadeIn 0.4s ease forwards; 
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .app-container { padding: 1.5rem 1rem; }
    .quiz-card, .result-card { padding: 2rem 1.2rem; }
    .secondary-grid { grid-template-columns: 1fr; gap: 1rem; }
    .trust-grid { grid-template-columns: 1fr; gap: 1rem; }
    .question-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
    .main-rec-title { font-size: 1.6rem; }
    .option-label { padding: 1rem 1.2rem; }
    .booking-area { padding: 2rem 1.2rem; }
    .hero-intro h1 { font-size: 1.8rem; }
    .cross-link-block { padding: 1.5rem; }
}
