/*
Theme Name: LearnLoop AI
Theme URI: https://learnloopai.com
Author: Demandloft
Description: LearnLoop AI site theme. Palette from the LearnLoop logo (ink #1C3B30, sage #4F8A63), Host Grotesk with a Silkscreen pixel accent, and the flip-through ring of AI tools on the home page.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: learnloop
*/

:root {
	--ink: var(--wp--preset--color--ink);
	--ink-deep: var(--wp--preset--color--ink-deep);
	--sage: var(--wp--preset--color--sage);
	--sage-text: var(--wp--preset--color--sage-text); /* small sage text on light grounds: 5.17:1 */
	--sage-light: var(--wp--preset--color--sage-light); /* sage on dark grounds: 8.35:1 */
	--ground: var(--wp--preset--color--ground);
	--mint: var(--wp--preset--color--mint);
	--paper: var(--wp--preset--color--paper);
	--pixel: var(--wp--preset--font-family--pixel);
}

body { -webkit-font-smoothing: antialiased; }

/* Sections sit flush against each other; WordPress's default gap is for text, not bands. */
.wp-site-blocks > * + *,
.ll-front > * + * { margin-block-start: 0; }

/* ---------- Header ---------- */
header.wp-block-template-part { padding: 20px var(--wp--style--root--padding-right) 0 var(--wp--style--root--padding-left); position: relative; z-index: 10; }
.home header.wp-block-template-part { position: absolute; top: 0; left: 0; right: 0; }
.ll-nav-bar { max-width: 1180px; margin-inline: auto; background: var(--paper); border-radius: 14px; padding: 12px 14px 12px 22px; gap: 24px; }
.ll-nav-bar .wp-block-site-logo img { height: 34px; width: auto; }
.ll-nav-links { font-size: 15px; font-weight: 500; gap: 30px; }
.ll-nav-links a { text-decoration: none; }
.ll-nav-links a:hover { color: var(--sage-text); }

/* ---------- Hero: the flip-through ring ---------- */
.ll-hero { position: relative; overflow: hidden; background: var(--ink-deep); color: var(--ground); padding-top: 150px; padding-bottom: 110px; }
.ll-hero .guides { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ll-ring-block { max-width: none !important; }
.ll-ring-block .stage { --tile: 128px; --r: 370px; --depth: 8px;
	height: calc(var(--tile) * 1.3 + 150px); display: grid; place-items: center;
	perspective: 1700px; perspective-origin: 50% 50%; }
.ll-ring-block .ring { position: relative; width: var(--tile); height: calc(var(--tile) * 1.3); transform-style: preserve-3d;
	transform: rotateY(0deg); animation: ll-spin 38s linear infinite; }
.ll-ring-block .stage:hover .ring { animation-play-state: paused; }
@keyframes ll-spin { to { transform: rotateY(-360deg); } }
/* Each card stands turned 90° in the ring, like a rolodex: edge-on in the middle, face-on at the sides. */
.ll-ring-block .tile { position: absolute; inset: 0; transform-style: preserve-3d;
	transform: rotateY(var(--a)) translateZ(var(--r)) rotateY(90deg); }
.ll-ring-block .face { position: absolute; inset: 0; backface-visibility: hidden; transform: translateZ(var(--depth)); }
.ll-ring-block .face.back { transform: rotateY(180deg) translateZ(var(--depth)); }
.ll-ring-block .icon { position: relative; width: 100%; height: 100%; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); overflow: hidden; }
.ll-ring-block .icon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,0) 45%, rgba(0,0,0,.10)); }
.ll-ring-block .icon svg { width: 44%; height: auto; margin-top: -8%; }
/* Slab edge: slices between the two faces give each card thickness. */
.ll-ring-block .tile::before, .ll-ring-block .tile::after { content: ""; position: absolute; inset: 0; border-radius: 24px; background: var(--edge, #2a2a2a); }
.ll-ring-block .tile::before { transform: translateZ(calc(var(--depth) * -0.6)); }
.ll-ring-block .tile::after { transform: translateZ(calc(var(--depth) * 0.6)); }
/* The name sits inside the card, so a nearer card covers the names behind it. */
.ll-ring-block .label { position: absolute; left: 0; right: 0; bottom: 11%; text-align: center; white-space: nowrap;
	font-family: var(--pixel); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: inherit; }
.ll-hero-title { position: relative; margin-top: 34px !important; font-size: clamp(46px, 7.4vw, 108px); line-height: .98; letter-spacing: -.045em; color: var(--ground); }

/* ---------- Ferris ---------- */
.ll-ferris { padding-top: 120px; padding-bottom: 40px; }
.ll-frame { position: relative; aspect-ratio: 16 / 9; display: grid; place-content: center; padding: 8%; border-radius: 18px; overflow: hidden;
	background-color: var(--ink); color: var(--ground);
	background-image:
		radial-gradient(circle at 23px 23px, var(--sage-light) 5px, transparent 6px),
		radial-gradient(circle at calc(100% - 23px) 23px, var(--sage-light) 5px, transparent 6px),
		radial-gradient(circle at 23px calc(100% - 23px), var(--sage-light) 5px, transparent 6px),
		radial-gradient(circle at calc(100% - 23px) calc(100% - 23px), var(--sage-light) 5px, transparent 6px); }
.ll-frame .wp-block-quote { margin: 0; padding: 0; border: 0; text-align: center; }
.ll-frame .wp-block-quote p { margin: 0; font-size: clamp(22px, 3.2vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
/* When Julia swaps the quote for a Video block, the clip fills the frame. */
.ll-frame:has(.wp-block-video) { padding: 0; place-content: stretch; }
.ll-frame .wp-block-video { position: absolute; inset: 0; margin: 0; }
.ll-frame .wp-block-video video { width: 100%; height: 100%; object-fit: cover; }
.ll-ferris-copy { margin-top: 64px !important; gap: 48px; }
.ll-ferris-copy h2 { margin: 0; font-size: clamp(40px, 5.4vw, 72px); }
.ll-ferris-copy p { margin: 8px 0 0; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; }

/* ---------- Take a beat ---------- */
.ll-beat { padding-top: 110px; padding-bottom: 130px; }
.ll-beat .wp-block-columns { gap: 56px; }
.ll-beat-title { margin: 0 0 40px; font-size: clamp(56px, 8.6vw, 128px); line-height: .92; letter-spacing: -.05em; }
.ll-questions { list-style: none; margin: 0 0 52px; padding: 0; border-top: 1.5px solid var(--ink); counter-reset: q; }
.ll-questions li { counter-increment: q; display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1.5px solid var(--ink);
	font-size: clamp(20px, 2vw, 26px); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.ll-questions li::before { content: counter(q, decimal-leading-zero); font-family: var(--pixel); font-size: 14px; color: var(--sage-text); padding-top: 6px; }
.ll-btn-lg .wp-block-button__link { font-size: 19px; padding: 18px 28px; border-radius: 12px; }
.ll-cta-note { margin-top: 12px !important; font-size: 15px; font-weight: 500; color: var(--sage-text); }
.ll-blocks-art { aspect-ratio: 480 / 520; background: url(assets/blocks-art.svg) center / contain no-repeat; min-height: 300px; }

/* ---------- Pages and blog ---------- */
.ll-page { padding-top: 72px; padding-bottom: 110px; }
.ll-page-title { font-size: clamp(44px, 6.4vw, 88px); line-height: .95; letter-spacing: -.045em; margin-bottom: 40px; }
.ll-posts .wp-block-post { border-top: 1.5px solid var(--ink); padding: 28px 0; margin: 0; }
.ll-posts .wp-block-post-title { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; margin: 6px 0 10px; }
.ll-posts .wp-block-post-title a { text-decoration: none; }
.ll-posts .wp-block-post-title a:hover { color: var(--sage-text); }
.ll-date { font-family: var(--pixel); font-size: 12px; text-transform: uppercase; color: var(--sage-text); }
.ll-single .wp-block-post-content { font-size: 19px; }
.ll-single .wp-block-post-content a { text-decoration: underline; color: var(--sage-text); }

/* ---------- Contact form (Contact Form 7) ---------- */
.wpcf7 form { display: grid; gap: 18px; max-width: 640px; }
.wpcf7 form > p { margin: 0; }
.wpcf7 label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; font-size: 17px; color: var(--ink);
	background: var(--paper); border: 1.5px solid var(--ink); border-radius: 10px; padding: 12px 14px; }
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input:focus-visible, .wpcf7 textarea:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.wpcf7 input[type="submit"] { background: var(--ink); color: var(--ground); border: 0; border-radius: 10px; padding: 14px 24px;
	font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: var(--sage-text); }
.wpcf7-not-valid-tip { color: #9B2C2C; font-size: 14px; font-weight: 500; }
.wpcf7 form .wpcf7-response-output { margin: 0; border-radius: 10px; padding: 12px 14px; font-size: 15px; }

/* ---------- Footer ---------- */
.ll-footer { background: var(--mint); padding-top: 72px; padding-bottom: 36px; font-size: 15px; }
.ll-foot { gap: 40px; }
.ll-foot .wp-block-site-logo img { height: 40px; width: auto; }
.ll-foot h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.ll-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ll-foot a { text-decoration: none; }
.ll-foot a:hover { color: var(--sage-text); }
.ll-legal { margin-top: 56px !important; padding-top: 20px; border-top: 1px solid rgba(28, 59, 48, .25);
	font-family: var(--pixel); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--sage-text); }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.ll-blocks-art { max-width: 420px; }
}
@media (max-width: 640px) {
	.ll-ring-block .stage { --tile: 76px; --r: 150px; --depth: 5px; height: calc(var(--tile) * 1.3 + 90px); }
	.ll-ring-block .label { font-size: 7px; }
	.ll-hero { padding-top: 120px; padding-bottom: 80px; }
	.ll-nav-bar .wp-block-site-logo img { height: 26px; }
	.ll-questions li { grid-template-columns: 40px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.ll-ring-block .ring { animation: none; transform: rotateY(-14deg); }
}
