/* Drivingo — server-rendered page styles. Mirrors the React homepage's
   design system (index.css / button.tsx / Index.tsx) so pages read as one site. */

.tmt-page { min-height: 100vh; }
.tmt-page-main { padding-bottom: 2rem; }

/* Breadcrumbs */
.tmt-crumbs { padding: 1.5rem 0 0; font-size: .8rem; color: hsl(var(--muted-foreground)); }
.tmt-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tmt-crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.tmt-crumbs a:hover { color: hsl(var(--primary)); }

/* Page hero */
.tmt-page-hero { padding: 2.5rem 0 3rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .tmt-page-hero.has-figure { grid-template-columns: 1.1fr 1fr; } }
.tmt-page-hero h1 { max-width: 20ch; }
.tmt-page-lede { font-size: 1.125rem; line-height: 1.75rem; color: hsl(var(--muted-foreground)); max-width: 60ch; margin: 1.5rem 0 0; }
.tmt-page-figure { margin: 0; overflow: clip; border-radius: 1rem; background: hsl(var(--muted)); box-shadow: var(--shadow-elevated); }
.tmt-page-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; box-shadow: none; transition: transform .9s cubic-bezier(.22,1,.36,1); }
.tmt-page-figure:hover img { transform: scale(1.05); }

/* Content column */
.tmt-page-content { max-width: 48rem; font-size: 1.0625rem; line-height: 1.7; border-top: 1px solid hsl(var(--border)); padding-top: 3rem; }
.tmt-page-content > * + * { margin-top: 1.1em; }
.tmt-page-content h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 2.4em; line-height: 1.1; }
.tmt-page-content h3 { font-size: 1.35rem; margin-top: 1.9em; }
.tmt-page-content h4 { font-size: 1.1rem; margin-top: 1.5em; }
.tmt-page-content p, .tmt-page-content li { max-width: none; }
.tmt-page-content p { color: hsl(var(--foreground) / .85); }
.tmt-page-content ul, .tmt-page-content ol { padding-left: 1.4em; }
.tmt-page-content li + li { margin-top: .4em; }
.tmt-page-content li::marker { color: hsl(var(--primary)); }
.tmt-page-content a { color: hsl(var(--primary)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tmt-page-content a:hover { color: hsl(var(--accent)); }
.tmt-page-content img { border-radius: 1rem; box-shadow: var(--shadow-soft); }
.tmt-page-content figcaption { font-size: .85rem; color: hsl(var(--muted-foreground)); margin-top: .6rem; }
.tmt-page-content blockquote { border-left: 3px solid hsl(var(--accent)); margin: 1.5em 0; padding: .25rem 0 .25rem 1.25rem; color: hsl(var(--muted-foreground)); font-size: 1.15rem; }
.tmt-page-content hr { border: 0; border-top: 1px solid hsl(var(--border)); margin: 3em 0; }

/* Direct-answer block */
.tmt-page-content .tmt-answer { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-left: 3px solid hsl(var(--accent)); padding: 1.25rem 1.5rem; border-radius: 0 1rem 1rem 0; font-size: 1.1rem; line-height: 1.65; color: hsl(var(--foreground)); }

/* Tables */
.tmt-page-content .wp-block-table { overflow-x: auto; margin: 1.75em 0; border: 1px solid hsl(var(--border)); border-radius: 1rem; }
.tmt-page-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tmt-page-content th, .tmt-page-content td { padding: .9rem 1rem; border-bottom: 1px solid hsl(var(--border)); text-align: left; vertical-align: top; }
.tmt-page-content tbody tr:last-child td { border-bottom: 0; }
.tmt-page-content thead th { background: hsl(var(--muted)); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
.tmt-page-content .tmt-compare-table thead th:nth-child(2) { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.tmt-page-content .tmt-compare-table td:nth-child(2) { background: hsl(var(--secondary) / .5); font-weight: 500; }
.tmt-page-content .wp-block-table figcaption { padding: .75rem 1rem 1rem; }

/* Status chips */
.tmt-status { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.tmt-status--live { background: #d7f0df; color: #0e5132; }
.tmt-status--beta { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.tmt-status--dev  { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }

/* FAQ — matches homepage: divided list, plus rotates 45° */
.tmt-page-content .wp-block-details { border: 0; border-top: 1px solid hsl(var(--border)); border-radius: 0; padding: 1.25rem 0; margin: 0; background: transparent; }
.tmt-page-content .wp-block-details + .wp-block-details { margin-top: 0; }
.tmt-page-content .wp-block-details:last-of-type { border-bottom: 1px solid hsl(var(--border)); }
.tmt-page-content .wp-block-details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: "Baloo 2", system-ui, sans-serif; font-size: 1.125rem; font-weight: 500; }
.tmt-page-content .wp-block-details summary::-webkit-details-marker { display: none; }
.tmt-page-content .wp-block-details summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: hsl(var(--primary)); transition: transform .2s; flex-shrink: 0; }
.tmt-page-content .wp-block-details[open] summary::after { transform: rotate(45deg); }
.tmt-page-content .wp-block-details > :not(summary) { margin-top: .75rem; color: hsl(var(--muted-foreground)); line-height: 1.625; }

/* Feature grid */
.tmt-feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tmt-feature-grid .wp-block-column { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem; padding: 1.5rem; }
.tmt-feature-grid h3 { margin-top: 0; font-size: 1.25rem; }

/* Editor buttons */
.tmt-page-content .wp-block-button__link { display: inline-flex; align-items: center; height: 44px; padding: 0 2rem; border-radius: 999px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); text-decoration: none; }

/* CTA band — dark, like the homepage CTA/company sections */
.tmt-page-cta { position: relative; isolation: isolate; overflow: clip; margin: 5rem 0 0; padding: 4rem 2rem; border-radius: 1.25rem; background: hsl(var(--foreground)); color: hsl(var(--background)); }
.tmt-page-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(ellipse at 70% 20%, hsl(var(--accent) / .18), transparent 55%), linear-gradient(hsl(var(--primary-foreground) / .05) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--primary-foreground) / .05) 1px, transparent 1px); background-size: auto, 56px 56px, 56px 56px; }
.tmt-page-cta .tmt-ssr-eyebrow { color: hsl(var(--accent)); }
.tmt-page-cta h2 { max-width: 18ch; }
.tmt-page-cta p { color: hsl(var(--background) / .7); font-size: 1.125rem; margin-bottom: 2rem; }
.tmt-page-cta .tmt-ssr-btn--ghost { color: hsl(var(--background)); border-color: hsl(var(--background) / .4); }
.tmt-page-cta .tmt-ssr-btn--ghost:hover { background: hsl(var(--background)); color: hsl(var(--foreground)); border-color: hsl(var(--background)); }

/* Related */
.tmt-related { margin: 4rem 0 2rem; }
.tmt-related h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: hsl(var(--primary)); font-weight: 700; margin-bottom: 1.25rem; }
.tmt-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tmt-related li { border: 1px solid hsl(var(--border)); border-radius: 1rem; padding: 1.25rem 1.5rem; background: hsl(var(--card)); transition: transform .3s, box-shadow .3s; }
.tmt-related li:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.tmt-related a { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 600; font-size: 1.1rem; display: block; }
.tmt-related a:hover { color: hsl(var(--primary)); }
.tmt-related span { display: block; font-size: .9rem; color: hsl(var(--muted-foreground)); margin-top: .35rem; line-height: 1.5; }

/* Inline demo form (pages) */
.tmt-form { display: grid; gap: 1rem; max-width: 40rem; margin: 2rem 0; }
.tmt-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.tmt-form input, .tmt-form select, .tmt-form textarea { font: inherit; padding: .8rem 1rem; border: 1px solid hsl(var(--input)); border-radius: .75rem; background: hsl(var(--popover)); color: inherit; }
.tmt-form textarea { min-height: 7rem; }
.tmt-form button { cursor: pointer; }
.tmt-form-note { font-size: .85rem; color: hsl(var(--muted-foreground)); }

@media (max-width: 640px) {
	.tmt-page-cta { padding: 2.5rem 1.5rem; }
	.tmt-page-content { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.tmt-page-figure:hover img, .tmt-related li:hover { transform: none; }
}
