/* Pricing page: tier palette */
.pricing-hero, .tier-section, .estimator-section, .compare-section {
    --free: #0e9f8a; --free-2: #57d1b8;
    --basic: #2563eb; --basic-2: #60a5fa;
    --silver: #5f6b7a; --silver-2: #aab4c0; --silver-sheen: linear-gradient(120deg, #4a5462 0%, #7d8896 38%, #b9c2cc 50%, #7d8896 62%, #4f5967 100%);
    --gold: #d97706; --gold-2: #fbbf24;
    --platinum: #0f172a; --platinum-2: #64748b;
}
.tier-free { --c1: var(--free); --c2: var(--free-2); }
.tier-basic { --c1: var(--basic); --c2: var(--basic-2); }
.tier-silver { --c1: var(--silver); --c2: var(--silver-2); }
.tier-gold { --c1: var(--gold); --c2: var(--gold-2); }
.tier-platinum { --c1: var(--platinum); --c2: var(--platinum-2); }

.centered { margin-inline: auto; text-align: center; }
.centered p { margin-inline: auto; }

/* Hero */
.pricing-hero { position: relative; overflow: hidden; padding: 96px 0 104px; color: #fff; text-align: center;
    background: linear-gradient(135deg, #0b2b30 0%, #123c46 38%, #2b2364 72%, #4a1f63 100%); }
.pricing-hero-inner { position: relative; z-index: 1; }
.pricing-hero .eyebrow { color: #8ff0d6; }
.pricing-hero h1 { max-width: 980px; margin-inline: auto; }
.pricing-hero h1 em { background: linear-gradient(90deg, #6ee7c8, #a5b4fc 50%, #fcd34d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pricing-hero p { max-width: 760px; margin-inline: auto; font-size: 1.08rem; line-height: 1.8; color: #d7e6e6; }
.pricing-hero .button-row { justify-content: center; margin-top: 34px; }
.button-glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(6px); }
.button-glass:hover { background: rgba(255,255,255,.2); color: #fff; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 34px 0 0; padding: 0; }
.hero-chips li { padding: 7px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.07); font-size: .82rem; color: #e8f3f1; }
.hero-chips li::before { content: "\2713"; margin-right: 8px; color: #6ee7c8; font-weight: 700; }
.pricing-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: orb-float 14s ease-in-out infinite alternate; }
.orb-one { width: 380px; height: 380px; left: -90px; top: -110px; background: #0e9f8a; }
.orb-two { width: 340px; height: 340px; right: -60px; top: 40px; background: #7c3aed; animation-delay: -5s; }
.orb-three { width: 260px; height: 260px; left: 42%; bottom: -170px; background: #d97706; opacity: .35; animation-delay: -9s; }
@keyframes orb-float { from { transform: translate(0, 0); } to { transform: translate(40px, 30px); } }

/* Tier cards */
.tier-section { background: linear-gradient(180deg, #f5f7fb 0%, var(--paper) 100%); }
.tier-section .section-heading { margin-bottom: 52px; }
.tier-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.tier-card { position: relative; display: flex; flex-direction: column; padding: 30px 22px 24px; border: 1px solid #e3e8ef; border-radius: 18px; background: #fff;
    box-shadow: 0 10px 30px rgba(16,45,50,.06); transition: transform .22s, box-shadow .22s; overflow: hidden; }
.tier-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.tier-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(16,45,50,.13); }
.tier-card.is-featured { border-color: var(--c1); box-shadow: 0 20px 50px rgba(71,85,105,.24); transform: translateY(-10px); }
.tier-card.is-featured:hover { transform: translateY(-14px); }
.tier-ribbon { position: absolute; top: 16px; right: -34px; width: 140px; padding: 4px 0; transform: rotate(38deg); background: linear-gradient(90deg, var(--c1), var(--c2));
    color: #fff; font-size: .62rem; font-weight: 750; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.tier-top h3 { display: inline-block; margin-bottom: 6px; font-size: 1.35rem; font-weight: 700; background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier-market { min-height: 3.1em; margin-bottom: 18px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.tier-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.tier-price strong { font-family: var(--serif); font-size: 2.15rem; font-weight: 500; letter-spacing: -.03em; color: var(--deep); line-height: 1.1; }
.tier-price span { color: var(--muted); font-size: .82rem; }
.tier-setup { margin: 8px 0 20px; padding-bottom: 18px; border-bottom: 1px dashed #dfe5ec; color: var(--c1); font-size: .82rem; font-weight: 650; }
.tier-limits { flex: 1; list-style: none; margin: 0 0 24px; padding: 0; }
.tier-limits li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .88rem; }
.limit-icon { flex: none; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; }
.limit-icon::after { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .68rem; font-weight: 800; }
.icon-study::after { content: "S"; } .icon-site::after { content: "\25C9"; } .icon-depot::after { content: "D"; } .icon-subject::after { content: "\263A"; }
.tier-cta { display: block; padding: 12px 14px; border-radius: 10px; background: linear-gradient(90deg, var(--c1), var(--c2)); color: #fff; font-size: .84rem; font-weight: 700; text-align: center; text-decoration: none; transition: filter .18s, transform .18s; }
.tier-cta:hover, .tier-cta:focus { color: #fff; filter: brightness(1.08) saturate(1.1); transform: translateY(-1px); }
.rate-source { margin: 34px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }

/* Included features */
.included-section { background: var(--paper); padding-top: 40px; }
.included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.included-item { padding: 26px 26px 22px; border-radius: 16px; border: 1px solid transparent; }
.included-item h3 { margin-bottom: 8px; font-size: 1.08rem; font-weight: 700; }
.included-item p { margin: 0; color: #3d5355; font-size: .92rem; }
.hue-teal { background: #e6f7f3; border-color: #c4ece2; } .hue-teal h3 { color: #0b7e6d; }
.hue-violet { background: #f1ecfe; border-color: #ddd1fb; } .hue-violet h3 { color: #6d28d9; }
.hue-amber { background: #fdf3e2; border-color: #f7dfb3; } .hue-amber h3 { color: #b45309; }
.hue-rose { background: #fdecf0; border-color: #f8cfd9; } .hue-rose h3 { color: #be185d; }
.hue-blue { background: #e9f1fe; border-color: #c9dcfc; } .hue-blue h3 { color: #1d4ed8; }
.hue-green { background: #ecf6e7; border-color: #cfe7c4; } .hue-green h3 { color: #3f7d20; }

/* Estimator */
.estimator-section { background: radial-gradient(ellipse at 10% 0, #e7f4ef 0, transparent 55%), radial-gradient(ellipse at 95% 100%, #efe9fc 0, transparent 55%), #f7f8fb; }
.estimator { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start;
    --c1: var(--basic); --c2: var(--basic-2); }
.estimator[data-tier="free"] { --c1: var(--free); --c2: var(--free-2); }
.estimator[data-tier="silver"] { --c1: var(--silver); --c2: var(--silver-2); }
.estimator[data-tier="gold"] { --c1: var(--gold); --c2: var(--gold-2); }
.estimator[data-tier="platinum"] { --c1: var(--platinum); --c2: var(--platinum-2); }
.estimator-controls { padding: 32px; border: 1px solid #e3e8ef; border-radius: 20px; background: #fff; box-shadow: 0 12px 34px rgba(16,45,50,.07); }
.slider-field { margin-bottom: 24px; }
.duration-field { padding: 20px; margin-bottom: 30px; border-radius: 14px; background: linear-gradient(135deg, #f1f7ff, #f6f1ff); }
.slider-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.slider-label label { font-weight: 650; font-size: .92rem; }
.slider-label output { font-family: var(--serif); font-size: 1.15rem; color: var(--c1); font-weight: 600; transition: color .25s; }
.duration-field .slider-label output { font-size: 1.45rem; }
.slider-scale { display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); font-size: .72rem; }
.estimator input[type="range"] { --fill: 0%; width: 100%; height: 8px; margin: 10px 0 0; border-radius: 999px; appearance: none; -webkit-appearance: none; cursor: pointer;
    background: linear-gradient(90deg, var(--c1), var(--c2)) 0 / var(--fill) 100% no-repeat, #e5e9f0; }
.estimator input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border: 4px solid #fff; border-radius: 50%; background: var(--c1); box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: transform .15s; }
.estimator input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 4px solid #fff; border-radius: 50%; background: var(--c1); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.estimator input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.estimator input[type="range"]:focus-visible { outline: 3px solid var(--c2); outline-offset: 6px; }
.tier-picker { margin: 6px 0 0; padding: 0; border: 0; }
.tier-picker legend { margin-bottom: 12px; font-size: .92rem; font-weight: 650; }
.picker-options { display: flex; flex-wrap: wrap; gap: 8px; }
.picker-option { position: relative; cursor: pointer; }
.picker-option input { position: absolute; opacity: 0; }
.picker-option span { display: inline-block; padding: 8px 16px; border: 1px solid #d8dfe8; border-radius: 999px; background: #fff; font-size: .82rem; font-weight: 600; transition: all .18s; }
.picker-option:hover span { border-color: #9aa8b8; }
.picker-option input:checked + span { border-color: transparent; color: #fff; background: linear-gradient(90deg, #17383b, #2d5f63); }
.picker-option.picker-free input:checked + span { background: linear-gradient(90deg, var(--free), var(--free-2)); }
.picker-option.picker-basic input:checked + span { background: linear-gradient(90deg, var(--basic), var(--basic-2)); }
.picker-option.picker-silver input:checked + span { background: var(--silver-sheen); text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.picker-option.picker-gold input:checked + span { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.picker-option.picker-platinum input:checked + span { background: linear-gradient(90deg, var(--platinum), var(--platinum-2)); }
.picker-option input:focus-visible + span { outline: 3px solid #93c5fd; outline-offset: 2px; }

.estimator-result { position: sticky; top: 110px; padding: 34px 32px; border-radius: 22px; color: #fff; overflow: hidden;
    background: linear-gradient(150deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 55%, #0b1b2b) 100%); box-shadow: 0 24px 60px rgba(16,30,60,.25); transition: background .35s; }
.estimator-result::after { content: ""; position: absolute; width: 280px; height: 280px; right: -110px; top: -110px; border-radius: 50%; background: var(--c2); opacity: .35; filter: blur(10px); }
.result-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-label { font-size: .72rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; opacity: .85; }
.result-tier { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); font-size: .76rem; font-weight: 700; }
.result-total { position: relative; z-index: 1; display: block; margin: 16px 0 4px; font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.result-note { position: relative; z-index: 1; margin-bottom: 22px; color: rgba(255,255,255,.86); font-size: .9rem; }
.estimator-result .result-breakdown dt, .estimator-result .result-breakdown dd, .estimator-result .result-label { color: #fff; }
.result-breakdown { position: relative; z-index: 1; margin: 0 0 22px; }
.result-breakdown div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; }
.result-breakdown dt { font-weight: 500; opacity: .85; }
.result-breakdown dd { margin: 0; font-weight: 700; text-align: right; }
.result-warning { position: relative; z-index: 1; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.95); color: #9a3412; font-size: .84rem; line-height: 1.5; }
.result-cta { position: relative; z-index: 1; width: 100%; background: #fff; border-color: #fff; color: var(--deep); }
.result-cta:hover { background: #f1f5f9; color: var(--deep); }

.compare-bars { margin-top: 30px; padding: 30px 32px; border: 1px solid #e3e8ef; border-radius: 20px; background: #fff; }
.compare-bars h3 { margin-bottom: 20px; font-size: 1.1rem; font-weight: 700; }
.bar-list { list-style: none; margin: 0 0 16px; padding: 0; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 130px; align-items: center; gap: 16px; padding: 7px 10px; border-radius: 10px; transition: background .2s; }
.bar-row.is-selected { background: #f3f6fa; }
.bar-name { font-weight: 650; font-size: .88rem; }
.bar-track { height: 14px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.bar-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.bar-row.is-custom .bar-fill { background: repeating-linear-gradient(135deg, #cbd5e1 0 8px, #e2e8f0 8px 16px); }
.bar-value { font-weight: 700; font-size: .88rem; text-align: right; font-variant-numeric: tabular-nums; }
.bar-row.is-excluded .bar-name, .bar-row.is-excluded .bar-value { color: #94a3b8; }
.bar-row.is-excluded .bar-value { font-weight: 500; font-style: italic; }

/* Comparison table */
.compare-section { background: #fff; }
.table-scroll { overflow-x: auto; border: 1px solid #e3e8ef; border-radius: 16px; }
.pricing-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .92rem; }
.pricing-table th, .pricing-table td { padding: 15px 18px; border-bottom: 1px solid #edf1f5; text-align: center; }
.pricing-table tbody th { text-align: left; font-weight: 600; color: var(--ink); background: #fafbfc; }
.pricing-table thead th { color: #fff; font-weight: 700; font-size: .95rem; }
.pricing-table thead th:first-child { background: var(--deep); text-align: left; }
.th-free { background: linear-gradient(135deg, #0e9f8a, #3fbfa5); } .th-basic { background: linear-gradient(135deg, #2563eb, #4f8ef5); }
.th-silver { background: var(--silver-sheen); text-shadow: 0 1px 2px rgba(0,0,0,.35); } .th-gold { background: linear-gradient(135deg, #d97706, #f0a31a); }
.th-platinum { background: linear-gradient(135deg, #0f172a, #475569); }
.pricing-table tbody tr:last-child th, .pricing-table tbody tr:last-child td { border-bottom: 0; }
.pricing-table tbody tr:hover td { background: #f8fafc; }
.yes-mark { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #e6f7f3; color: #0b7e6d; font-size: .78rem; font-weight: 700; }

/* FAQ */
.faq-section { background: var(--paper); }
.faq-container { max-width: 860px; }
.faq-item { margin-bottom: 12px; border: 1px solid #e3e8ef; border-radius: 14px; background: #fff; overflow: hidden; }
.faq-item summary { position: relative; padding: 18px 54px 18px 22px; cursor: pointer; font-weight: 650; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] { border-color: #bfe3d6; box-shadow: 0 8px 22px rgba(8,123,96,.08); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: #3d5355; }

/* Responsive */
@media (max-width: 1250px) {
    .tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tier-card.is-featured { transform: none; }
}
@media (max-width: 1100px) {
    .estimator { grid-template-columns: 1fr; }
    .estimator-result { position: relative; top: 0; }
    .included-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pricing-hero { padding: 70px 0 76px; }
}
@media (max-width: 580px) {
    .tier-grid, .included-grid { grid-template-columns: 1fr; }
    .estimator-controls, .estimator-result, .compare-bars { padding: 24px 20px; }
    .bar-row { grid-template-columns: 70px 1fr; }
    .bar-value { grid-column: 1 / -1; text-align: left; padding-left: 86px; margin-top: -4px; }
    .tier-market { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pricing-orb { animation: none; }
    .tier-card, .bar-fill, .estimator-result, .tier-cta, .picker-option span { transition: none; }
}

/* Metallic silver finish */
.tier-silver .tier-cta, .tier-silver .tier-ribbon { background: var(--silver-sheen); background-size: 200% 100%; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.tier-silver .tier-cta:hover { background-position: 100% 0; }
.tier-silver .tier-top h3 { background-image: linear-gradient(90deg, #4a5462, #8c97a5 55%, #5f6b7a); }
.tier-card.tier-silver.is-featured { background: linear-gradient(180deg, #f6f8fa, #fff 40%); }
