/*
 * Inner pages (Features, Pricing, For merchants, About, Contact, Journal,
 * legal pages, 404). Loaded after wp.css. Mostly styles the original site
 * set inline, now as classes.
 */

/* Journal grid and covers. */
.post-link { display: block; color: inherit; text-decoration: none; }

.post-link.is-featured { grid-column: 1 / -1; }

.post-cover { overflow: hidden; }

.post-cover-image { display: block; width: 100%; height: 100%; object-fit: cover; }

.post-cover-art { display: block; width: 100%; height: 100%; }

.post-cover-fill { fill: var(--cover-color, var(--accent)); }

.post-cover-art text { font-family: var(--font-instrument-serif), serif; fill: rgba(255, 255, 255, 0.65); }

.featured-post p { margin-top: 12px; }

/* Journal article. */
.article-container { max-width: 760px; }

.article-head { padding-bottom: 0; }

.article-head h1 { max-width: 680px; margin-top: 16px; font-size: clamp(28px, 4.5vw, 48px); line-height: 1.2; }

.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 24px; font-size: 14px; color: var(--ink-2); }

.article-author { font-weight: 500; color: var(--ink); }

.article-cover { height: 280px; margin-top: 40px; border-radius: 16px; aspect-ratio: auto; }

.article-main { padding-top: 48px; }

.article-body h2 { margin: 48px 0 16px; font-size: clamp(24px, 3vw, 32px); }

.article-body h3 { margin: 32px 0 12px; font-size: 20px; }

.article-body p,
.article-body li { font-size: 17px; line-height: 1.7; color: var(--ink-2); }

.article-body p { margin: 0 0 20px; }

.article-body ul { margin: 0 0 24px; padding-left: 22px; }

.article-author-box { display: flex; align-items: center; gap: 12px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }

.article-author-box .bio-photo { flex-shrink: 0; width: 48px; height: 48px; margin: 0; font-size: 14px; }

.article-author-box strong { display: block; font-size: 15px; font-weight: 500; }

.article-author-box span { font-size: 14px; color: var(--ink-2); }

.article-author-box p { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }

.article-nav a { padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); text-decoration: none; }

.article-nav a span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 400; color: var(--ink-2); }

.article-nav-newer { grid-column: 2; text-align: right; }

@media (max-width: 600px) {

	.article-nav { grid-template-columns: 1fr; }

	.article-nav-newer { grid-column: auto; text-align: left; }

	.article-cta { padding: 24px; }
}

.article-cta { margin-top: 64px; padding: 32px 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }

.article-cta p { margin-bottom: 20px; font-size: 17px; }

/* Page not found. */
.not-found { padding: 120px 0; }

.not-found .container { max-width: 520px; text-align: center; }

.not-found h1 { margin-top: 16px; }

.not-found p { margin-top: 16px; }

.not-found p:last-child { margin-top: 28px; }

/* Legal pages sit right under the header. */
.legal-page { padding-top: 0; }

/* Big feature visuals. */
.bf-visual.is-dark { background: linear-gradient(160deg, #1a1814 0%, #2a2620 100%); }

.bf-visual-pass { transform: scale(0.9); }

.stamping-visual { display: flex; flex-direction: column; gap: 16px; width: 100%; height: 100%; padding: 30px; }

.stamping-top { display: flex; justify-content: space-between; align-items: center; }

.stamping-staff,
.stamping-status { font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

.stamping-status { display: flex; align-items: center; gap: 6px; color: var(--ok); }

.stamping-status .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ok); }

.stamping-scan { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }

.stamping-frame { position: relative; display: flex; justify-content: center; align-items: center; width: 140px; height: 140px; border: 2px dashed var(--line); border-radius: 20px; }

.stamping-qr { width: 80px; height: 80px; opacity: 0.4; }

.stamping-beam { position: absolute; top: -4px; right: 0; left: 0; height: 4px; border-radius: 2px; background: var(--accent); animation: floaty 2s ease-in-out infinite; }

.stamping-prompt { font-family: var(--font-instrument-serif), serif; font-size: 22px; color: var(--ink); }

.stamping-actions { display: flex; gap: 10px; }

.stamping-stamp { display: flex; flex: 1; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; font-size: 13px; font-weight: 500; color: #fff; background: var(--accent); }

.stamping-stamp-icon { display: flex; justify-content: center; align-items: center; width: 24px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); }

.stamping-stamp-icon svg { width: 14px; height: 14px; }

.stamping-redeem { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--ink); }

.portal-rows { display: flex; flex-direction: column; gap: 6px; }

.portal-row-meta { display: block; font-size: 10px; color: var(--ink-3); }

.qr-card { width: 240px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.2); text-align: center; }

.qr-card-name { margin-bottom: 4px; font-family: var(--font-instrument-serif), serif; font-size: 20px; }

.qr-card-caption { margin-bottom: 14px; font-family: var(--font-geist-mono), monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

.qr-card-code { padding: 16px; border-radius: 12px; background: #fff; }

.qr-card-code svg { display: block; width: 100%; height: auto; }

.qr-card-link { margin-top: 14px; font-size: 11px; color: var(--ink-3); }

/*
 * Timeline call to action, shaped like a ticket stub: two notches cut into the
 * top and bottom edges (a mask, so the page shows through) and a dashed tear
 * line between them, on the split between the copy and the timeline. A soft
 * shadow replaces the border, so no outline runs round the notches.
 * The split sits where site.css puts the column gap: 56px padding, 48px gap,
 * columns 1.1fr / 1fr, so 1.1 / 2.1 = 0.5238 of the space between.
 */
.ticket-cta {
	--notch: 18px;
	--tear: calc(80px + (100% - 160px) * 0.5238);

	border: 0;
	-webkit-mask:
		radial-gradient(circle var(--notch) at var(--tear) 0, transparent 98%, #000 100%),
		radial-gradient(circle var(--notch) at var(--tear) 100%, transparent 98%, #000 100%);
	-webkit-mask-composite: source-in;
	mask:
		radial-gradient(circle var(--notch) at var(--tear) 0, transparent 98%, #000 100%),
		radial-gradient(circle var(--notch) at var(--tear) 100%, transparent 98%, #000 100%);
	mask-composite: intersect;
}

.ticket-cta::before {
	top: calc(var(--notch) + 6px);
	bottom: calc(var(--notch) + 6px);
	left: var(--tear);
	width: 0;
	height: auto;
	border: 0;
	border-left: 2px dashed color-mix(in oklab, var(--ink) 16%, transparent);
	border-radius: 0;
	background: none;
	transform: translateX(-1px);
}

.ticket-cta::after { display: none; }

/* The mask would clip a box-shadow, so the shadow sits on the wrapper and follows the cut-out shape. */
.wp-block-stempy-timeline-cta > .container { filter: drop-shadow(0 18px 36px rgba(20, 19, 15, 0.08)); }

/* Stacked on phones: a plain card, like the original. */
@media (max-width: 800px) {

	.ticket-cta {
		-webkit-mask: none;
		mask: none;
	}

	.ticket-cta::before { display: none; }
}

.ticket-body { max-width: 520px; margin-top: 18px; font-size: 16px; }

.ticket-cta .row .meta { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

.ticket-timeline { margin: 0; list-style: none; }

/* Pricing: both price sets are in the page; data-billing picks one. */
.pricing[data-billing="monthly"] .when-annual,
.pricing[data-billing="annual"] .when-monthly { display: none; }

.price-toggle-row { display: flex; justify-content: center; }

.price-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Follows the pressed button, which flips between light and dark with the theme. */
.price-toggle button[aria-pressed="true"] .save { background: color-mix(in oklab, var(--bg) 16%, transparent); color: var(--bg); }

.price-button { justify-content: center; text-align: center; }

.price-footnote { margin-top: 48px; font-family: var(--font-geist-mono), monospace; font-size: 13px; letter-spacing: 0.14em; text-align: center; text-transform: uppercase; color: var(--ink-3); }

/* FAQ: native <details>, one open at a time. */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }

.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }

.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 28px; font-size: 17px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after { content: "+"; flex-shrink: 0; font-size: 24px; color: var(--accent); transition: transform 200ms; }

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer { padding: 0 28px 24px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* Case study. */
.case-study h2 { margin-top: 20px; }

.case-study-body { margin-top: 22px; font-size: 17px; }

.case-study-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }

.case-study-stats strong { display: block; font-family: var(--font-instrument-serif), serif; font-size: 48px; font-weight: 400; letter-spacing: -0.02em; }

.case-study-stats .mono { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

.case-study-panel {
	--panel-fill: var(--panel-color, var(--accent));

	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	margin: 0;
	border-radius: 24px;
	background: linear-gradient(160deg, var(--panel-fill), color-mix(in oklab, var(--panel-fill) 35%, #000));
}

.case-study-panel svg { width: 100%; height: 100%; }

.case-study-panel text { font-family: var(--font-instrument-serif), serif; fill: rgba(255, 255, 255, 0.6); }

.case-study-tag { position: absolute; top: 20px; left: 20px; padding: 6px 12px; border-radius: 999px; font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, 0.3); }

.case-study-quote { position: absolute; right: 24px; bottom: 24px; left: 24px; margin: 0; font-family: var(--font-instrument-serif), serif; font-size: 22px; font-style: italic; line-height: 1.3; color: #fff; }

.case-study-quote cite { display: block; margin-top: 12px; font-family: var(--font-geist-sans), sans-serif; font-size: 13px; font-style: normal; opacity: 0.7; }

/* Contact. .form sets display: flex, which would otherwise override the hidden attribute. */
.contact-form [hidden] { display: none; }

.contact-box { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); }

.contact-info p a { color: var(--accent); }

.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; }

.form-foot .cta-meta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

.contact-form .cta-status.is-err { color: #f87171; }

.contact-form .cta-status.is-ok { color: var(--accent); }

.contact-success { justify-content: center; align-items: center; min-height: 280px; text-align: center; }

.contact-success-icon { display: flex; justify-content: center; align-items: center; width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 999px; color: #fff; background: var(--accent); }

.contact-success-icon svg { width: 28px; height: 28px; }

.contact-success h3 { font-family: var(--font-instrument-serif), serif; font-size: 36px; font-weight: 400; }

.contact-success-text { max-width: 380px; }

/* Page hero, plain (About). The dark style is .features-hero in site.css. */
.page-hero-plain { padding-top: 80px; }

.page-hero-plain .page-hero-single { max-width: 820px; }

.page-hero-plain .fh-copy h1 { margin-top: 20px; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; color: var(--ink); }

.page-hero-plain .fh-copy p { max-width: 640px; margin-top: 28px; font-size: 20px; color: var(--ink-2); }

.page-hero-plain .fh-copy .eyebrow { color: var(--ink-3); }

.page-hero-plain .fh-strip { border-top-color: var(--line); }

.page-hero-plain .fh-strip strong { color: var(--ink); }

.page-hero-plain .fh-strip span { color: var(--ink-3); }

/* Centred section heading. */
.section-head.is-centered { margin-right: auto; margin-left: auto; text-align: center; }

.section-head.is-centered p { margin-right: auto; margin-left: auto; }

/* Industry grid, detailed (For merchants). */
.ind-grid.is-detailed .ind { min-height: 220px; }

.ind-grid.is-detailed .ind h4 { margin-bottom: 8px; }

.ind-grid.is-detailed .ind p { font-family: inherit; font-size: 13px; line-height: 1.45; letter-spacing: 0; text-transform: none; color: inherit; opacity: 0.75; }
