/* ==========================================================================
   Nomino — Inner pages v3
   Load after home.css. Adds page heroes, long-form prose, comparison
   tables, legal layout, support accordion and blog listing styles.
   ========================================================================== */

/* ---------- Page hero ---------- */

.page-hero {
    position: relative;
    background: var(--indigo);
    color: var(--white);
    padding: 132px 0 84px;
    overflow: hidden;
    isolation: isolate;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.2), transparent 45%),
        radial-gradient(rgba(255, 255, 255, 0.3) 1.4px, transparent 1.6px) 0 0 / 34px 34px;
    mask-image: linear-gradient(to bottom, black 65%, transparent);
}

.page-hero--pink { background: var(--pink); }
.page-hero--green { background: var(--green); }
.page-hero--yellow { background: var(--yellow); color: var(--ink); }
.page-hero--ink { background: var(--ink); }

.page-hero--yellow::before {
    background: radial-gradient(rgba(18, 15, 46, 0.14) 1.4px, transparent 1.6px) 0 0 / 34px 34px;
}

@media (min-width: 1000px) {
    .page-hero { padding: 156px 0 100px; }
}

.page-hero-grid {
    display: grid;
    gap: 36px;
    align-items: center;
}

@media (min-width: 900px) {
    .page-hero-grid { grid-template-columns: 1.4fr 0.6fr; gap: 48px; }
}

.page-hero .lede { max-width: 46ch; color: inherit; opacity: 0.9; }

.page-hero-art {
    justify-self: center;
    width: min(320px, 70vw);
    filter: drop-shadow(0 26px 30px rgba(20, 10, 90, 0.35));
}

.page-hero-art img { width: 100%; height: auto; animation: bob 6s ease-in-out infinite; }

@media (max-width: 899px) {
    .page-hero-art { width: 190px; justify-self: start; }
}

.page-hero .display { font-size: clamp(40px, 6.4vw, 84px); }

.page-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 22px;
    font-size: 15px;
    font-weight: 600;
    opacity: 0.9;
}

.page-meta span { display: inline-flex; align-items: center; gap: 8px; }

/* Breadcrumbs */

.crumbs { margin-bottom: 22px; }

.crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.crumbs li { opacity: 0.8; }
.crumbs li[aria-current="page"], .crumbs li:last-child { opacity: 1; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { opacity: 0.5; }

/* ---------- Content sections ---------- */

.page-section { padding: 90px 0; position: relative; }
.page-section--tight { padding: 60px 0; }

@media (max-width: 767px) {
    .page-section { padding: 64px 0; }
}

.narrow { max-width: 800px; margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */

.card-grid { display: grid; gap: 22px; }

@media (min-width: 720px) {
    .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
    position: relative;
    padding: 28px 26px 30px;
    border-radius: var(--radius);
    border: 2.5px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

a.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }

.card--indigo { background: var(--indigo-soft); }
.card--pink { background: #FFE3EB; }
.card--green { background: #DDF8E6; }
.card--yellow { background: #FFF1BF; }

.card h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
}

.card p { margin: 0; color: var(--ink-soft); }
.card p + p { margin-top: 10px; }
.card ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-soft); }
.card li + li { margin-top: 6px; }

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    border: 2px solid var(--ink);
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.card-icon svg { width: 26px; height: 26px; }

/* ---------- Quote ---------- */

.quote {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.quote blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.quote blockquote::before {
    content: "“";
    display: block;
    font-size: 1.8em;
    line-height: 0.6;
    margin-bottom: 14px;
    color: var(--yellow);
}

.quote-by {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    text-align: left;
    font-size: 15px;
}

.quote-by .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    border: 2px solid var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
}

.quote-by strong { display: block; font-family: var(--font-display); }

/* ---------- Callout ---------- */

.callout {
    border-radius: 22px;
    border: 2.5px solid var(--ink);
    background: #FFF1BF;
    color: var(--ink);
    padding: 22px 24px;
    margin: 28px 0;
    box-shadow: 4px 4px 0 var(--ink);
}

.callout--indigo { background: var(--indigo-soft); }
.callout--green { background: #DDF8E6; }
.callout--pink { background: #FFE3EB; }

.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

.callout-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    margin: 0 0 6px;
}

/* ---------- Prose (articles, legal) ---------- */

.prose {
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.75;
}

.prose > :first-child { margin-top: 0; }

.prose h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 56px 0 16px;
    scroll-margin-top: 110px;
}

.prose h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.25;
    color: var(--ink);
    margin: 36px 0 10px;
    scroll-margin-top: 110px;
}

.prose h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); margin: 28px 0 8px; }

.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); }

.prose a {
    color: var(--indigo);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.prose a:hover { background: var(--yellow); color: var(--ink); }

.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--pink); font-weight: 700; }

.prose blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 6px solid var(--pink);
    background: var(--white);
    border-radius: 0 18px 18px 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--ink);
}

.prose hr { border: 0; height: 2.5px; background: var(--line); margin: 48px 0; }

.prose img, .prose figure img {
    border-radius: 22px;
    border: 2.5px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    margin: 28px 0;
}

.prose figure { margin: 28px 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: -14px; }

.prose code {
    font-size: 0.9em;
    background: var(--indigo-soft);
    color: var(--ink);
    padding: 2px 6px;
    border-radius: 6px;
}

.prose table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0 28px;
    font-size: 15px;
    border: 2.5px solid var(--ink);
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
}

.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1.5px solid var(--line); }
.prose th { background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0 28px; }
.table-scroll table { margin: 0; min-width: 560px; }

/* ---------- Comparison table ---------- */

.compare {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--ink);
    font-size: 16px;
}

.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1.5px solid var(--line); vertical-align: middle; }

.compare thead th {
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
}

.compare thead th.is-us { background: var(--indigo); }
.compare td.is-us { background: rgba(91, 75, 240, 0.07); font-weight: 600; color: var(--ink); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody td:first-child { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

.yes, .no, .meh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.yes::before, .no::before, .meh::before {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    border: 2px solid var(--ink);
}

.yes::before { content: "✓"; background: #7BE495; color: var(--ink); }
.no::before { content: "✕"; background: #FFB3C4; color: var(--ink); }
.meh::before { content: "~"; background: #FFE08A; color: var(--ink); }

/* ---------- Pros / cons lists ---------- */

.tick-list, .cross-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }

.tick-list li, .cross-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }

.tick-list li::before, .cross-list li::before {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    border: 2px solid var(--ink);
    color: var(--ink);
}

.tick-list li::before { content: "✓"; background: #7BE495; }
.cross-list li::before { content: "✕"; background: #FFB3C4; }

/* ---------- Table of contents / legal layout ---------- */

.doc-layout { display: grid; gap: 40px; align-items: start; }

@media (min-width: 1000px) {
    .doc-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; }
}

.toc {
    border: 2.5px solid var(--ink);
    border-radius: 22px;
    background: var(--white);
    padding: 20px;
    box-shadow: 5px 5px 0 var(--ink);
}

@media (min-width: 1000px) {
    .toc { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow-y: auto; }
}

.toc-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 12px;
}

.toc ol, .toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }

.toc a {
    display: block;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink-soft);
}

.toc a:hover, .toc a.is-active, .toc a.active { background: var(--indigo-soft); color: var(--ink); }

.doc-card {
    background: var(--white);
    border: 2.5px solid var(--ink);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 52px);
    box-shadow: 8px 8px 0 var(--ink);
}

.doc-updated {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    background: var(--indigo-soft);
    color: var(--ink);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 20px;
}

/* ---------- Language switcher (legal pages, i18n.js) ---------- */

.lang-switch { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font-weight: 600; font-size: 15px; }

.lang-switch select,
#language-switcher {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23120F2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
    border: 2.5px solid var(--ink);
    border-radius: 999px;
    padding: 10px 40px 10px 16px;
    box-shadow: 0 4px 0 var(--ink);
    cursor: pointer;
}

html[dir="rtl"] .prose, html[dir="rtl"] .page-hero { text-align: right; }
html[dir="rtl"] .prose ul, html[dir="rtl"] .prose ol { padding-left: 0; padding-right: 24px; }

/* ---------- Support accordion (support-accordion.js) ---------- */

.help-group {
    border: 2.5px solid var(--ink);
    border-radius: 26px;
    padding: 26px clamp(18px, 3vw, 30px) 18px;
    background: var(--white);
    box-shadow: 6px 6px 0 var(--ink);
    margin-bottom: 28px;
    scroll-margin-top: 110px;
}

.help-group--indigo { background: var(--indigo-soft); }
.help-group--pink { background: #FFE3EB; }
.help-group--green { background: #DDF8E6; }
.help-group--yellow { background: #FFF1BF; }

.help-group > h2, .help-group > h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 14px;
}

.faq-item {
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 18px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    padding: 16px 18px;
    background: none;
    border: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.35;
}

.faq-question::after {
    content: "+";
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s var(--ease), background 0.2s;
}

.faq-question[aria-expanded="true"]::after { transform: rotate(45deg); background: var(--pink); }

.faq-question > svg, .faq-question > i, .faq-question .faq-icon { display: none; }

.faq-answer { padding: 0 18px 18px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol { margin: 0 0 10px; padding-left: 22px; }
.faq-answer a { color: var(--indigo); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.success-note {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #DDF8E6;
    border: 2px solid var(--ink);
    color: var(--ink);
    font-size: 15px;
}

.contact-grid { display: grid; gap: 16px; }

@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 22px;
    border-radius: 20px;
    border: 2.5px solid var(--ink);
    background: var(--white);
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 0.2s var(--ease);
}

a.contact-card:hover { transform: translateY(-3px); }
.contact-card strong { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.contact-card span { color: var(--ink-soft); font-size: 15px; }
.contact-card .email { color: var(--indigo); font-weight: 700; }

/* ---------- Blog listing ---------- */

.post-list { display: grid; gap: 28px; }

.post-row {
    display: grid;
    gap: 0;
    border: 2.5px solid var(--ink);
    border-radius: 26px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 7px 7px 0 var(--ink);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.post-row:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--ink); }

@media (min-width: 800px) {
    .post-row { grid-template-columns: 0.9fr 1.1fr; }
}

.post-row img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }

@media (max-width: 799px) {
    .post-row img { aspect-ratio: 16 / 9; height: auto; border-bottom: 2.5px solid var(--ink); }
}

@media (min-width: 800px) {
    .post-row img { border-right: 2.5px solid var(--ink); }
}

.post-row-body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.post-row h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.post-row p { margin: 0; color: var(--ink-soft); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--indigo-soft);
    color: var(--ink);
}

.tag--pink { background: #FFE3EB; }
.tag--green { background: #DDF8E6; }

.post-date { font-size: 14px; color: var(--muted); font-weight: 600; }

/* Article hero image */

.article-cover {
    margin-top: -56px;
    position: relative;
    z-index: 2;
}

.article-cover img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 28px;
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
}

/* Numbered list items used in listicle articles */

.num-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    margin: 36px 0;
}

.num-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--indigo);
    color: var(--white);
    border: 2.5px solid var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    box-shadow: 3px 3px 0 var(--ink);
}

.num-item:nth-of-type(3n+2) .num-badge { background: var(--pink); }
.num-item:nth-of-type(3n+3) .num-badge { background: var(--green); }

.num-item h2, .num-item h3 { margin-top: 6px !important; }

/* CTA band used at the bottom of inner pages (pairs with .final in home.css) */

.cta-note { font-size: 14px; opacity: 0.85; margin-top: 14px; }

.doc-card .doc-updated + h2,
.doc-card .doc-updated + * > h2:first-child { margin-top: 8px; }

/* Narrow screens: TOC becomes a horizontal chip row instead of a long list */
@media (max-width: 999px) {
    .toc { padding: 14px 14px 10px; }
    .toc ol, .toc ul {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }
    .toc li { flex: 0 0 auto; }
    .toc a { white-space: nowrap; background: var(--indigo-soft); border-radius: 999px; padding: 7px 12px; }
}

/* Buttons inside long-form content keep button styling */
.prose .btn { color: var(--ink); text-decoration: none; font-weight: 700; }
.prose .btn:hover { background: var(--yellow); color: var(--ink); }
.prose .btn--ink { color: var(--white); }
.prose .btn--ink:hover { background: var(--ink); color: var(--white); }

@media (max-width: 640px) {
    .num-item { display: block; }
    .num-badge { width: 44px; height: 44px; font-size: 19px; margin-bottom: 12px; }
}

/* Grid children must be allowed to shrink, and long URLs/emails must wrap */
.doc-layout > *, .page-hero-grid > *, .split > * { min-width: 0; }
.prose, .doc-card, .faq-answer, .contact-card { overflow-wrap: anywhere; }
