/* Lemon Codes — portfolio landing system
   Shared structure for the nine product sites. Each product ships a theme.css
   that sets the --l-* tokens and its hero visual. */

* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--l-bg);
  color: var(--l-ink);
  font-family: var(--l-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--l-accent); outline-offset: 3px; }
::selection { background: var(--l-accent); color: var(--l-on-accent); }

.p-skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: 999px; background: var(--l-ink); color: var(--l-bg); font-size: .875rem; text-decoration: none; }
.p-skip:focus { top: 16px; }

.p-wrap { width: min(1200px, calc(100% - var(--l-gutter, 48px) * 2)); margin-inline: auto; }

/* ---------- Nav ---------- */
.p-nav-shell { position: sticky; top: 0; z-index: 50; padding: 12px 0; background: linear-gradient(to bottom, var(--l-bg) 72%, color-mix(in srgb, var(--l-bg) 0%, transparent)); }
.p-nav {
  position: relative; display: flex; align-items: center; gap: 24px;
  min-height: 64px; padding: 8px 10px 8px 18px;
  border: 1px solid var(--l-line); border-radius: 999px;
  background: color-mix(in srgb, var(--l-surface) 88%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.p-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.p-brand img { height: 30px; width: auto; border-radius: 8px; transform: translateZ(0); }
.p-brand span { font-family: var(--l-display); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.p-links { display: flex; align-items: center; gap: 26px; margin-inline: auto; }
.p-links a { font-size: .875rem; color: var(--l-muted); text-decoration: none; }
.p-links a:hover { color: var(--l-ink); }
.p-nav__right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.p-lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--l-line); border-radius: 999px; }
.p-lang a { display: grid; place-items: center; min-width: 30px; height: 26px; border-radius: 999px; font-family: var(--l-mono); font-size: 10px; letter-spacing: .06em; color: var(--l-muted); text-decoration: none; }
.p-lang a[aria-current="true"] { background: var(--l-ink); color: var(--l-bg); }
.p-toggle { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid var(--l-line); border-radius: 999px; background: var(--l-surface); color: var(--l-ink); cursor: pointer; }
.p-panel { display: none; }

.p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--l-display); font-size: .9375rem; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.p-btn:hover { transform: translateY(-1px); }
.p-btn--sm { min-height: 40px; padding: 0 18px; font-size: .8125rem; }
.p-btn--primary { background: var(--l-accent); color: var(--l-on-accent); border-color: var(--l-accent); }
.p-btn--primary:hover { background: var(--l-accent-strong); border-color: var(--l-accent-strong); }
.p-btn--outline { background: transparent; color: var(--l-ink); border-color: var(--l-line-strong, var(--l-line)); }
.p-btn--outline:hover { border-color: var(--l-ink); }
.p-btn--solid { background: var(--l-ink); color: var(--l-bg); border-color: var(--l-ink); }
.p-btn--solid:hover { background: var(--l-accent); color: var(--l-on-accent); border-color: var(--l-accent); }

/* ---------- Type ---------- */
.p-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--l-mono); font-size: 11px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--l-muted); }
.p-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--l-accent); }
h1, h2, h3 { font-family: var(--l-display); font-weight: var(--l-display-weight, 600); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.6vw, var(--l-hero, 96px)); line-height: var(--l-hero-leading, .98); letter-spacing: var(--l-tracking, -.04em); }
h2 { font-size: clamp(2rem, 4.2vw, var(--l-h2, 44px)); line-height: 1.04; letter-spacing: -.025em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.12; letter-spacing: -.015em; }

/* ---------- Hero ---------- */
.p-hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(44px, 7vw, 88px) 0 clamp(44px, 6vw, 72px); }
.p-hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.p-hero h1 { margin-top: 18px; max-width: 14ch; }
.p-lead { margin-top: 22px; max-width: 48ch; font-size: clamp(1rem, 1.35vw, 1.1875rem); line-height: 1.55; color: var(--l-muted); }
.p-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-family: var(--l-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--l-muted); }
.p-meta span { display: inline-flex; align-items: center; gap: 7px; }
.p-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--l-accent); }

.p-visual { position: relative; min-height: 520px; border: 1px solid var(--l-line); border-radius: var(--l-radius, 24px); background: var(--l-surface); overflow: hidden; }
.p-visual__glow { position: absolute; inset: -20% -10% auto -10%; height: 70%; background: radial-gradient(58% 74% at 50% 18%, color-mix(in srgb, var(--l-accent) 26%, transparent), transparent 70%); pointer-events: none; }

.p-phone { position: relative; width: 100%; aspect-ratio: 9 / 19.2; border-radius: 30px; border: 1px solid color-mix(in srgb, var(--l-ink) 16%, transparent); background: var(--l-surface-2); overflow: hidden; box-shadow: 0 32px 60px -34px color-mix(in srgb, var(--l-ink) 60%, transparent); }
.p-phone img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.12); }

/* ---------- Strip ---------- */
.p-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--l-line); border-bottom: 1px solid var(--l-line); }
.p-strip__item { padding: 20px 24px 20px 0; border-right: 1px solid var(--l-line); }
.p-strip__item:last-child { border-right: 0; }
.p-strip__item strong { display: block; font-family: var(--l-display); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.p-strip__item span { display: block; margin-top: 4px; font-size: .8125rem; color: var(--l-muted); }

/* ---------- Sections ---------- */
.p-section { padding-top: clamp(64px, 8vw, 104px); }
.p-head { display: grid; grid-template-columns: 1fr 360px; gap: clamp(24px, 5vw, 64px); align-items: end; padding-bottom: 32px; }
.p-head h2 { margin-top: 14px; max-width: 16ch; }
.p-head p { max-width: 38ch; justify-self: end; font-size: .875rem; line-height: 1.6; color: var(--l-muted); }

.p-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.p-feature { display: flex; flex-direction: column; min-height: 260px; padding: 24px; border: 1px solid var(--l-line); border-radius: var(--l-card-radius, 20px); background: var(--l-surface); }
.p-feature__num { font-family: var(--l-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--l-muted); }
.p-feature h3 { margin-top: auto; padding-top: 40px; }
.p-feature p { margin-top: 10px; font-size: .875rem; line-height: 1.55; color: var(--l-muted); }

.p-statement { margin-top: clamp(64px, 8vw, 104px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: end; padding: clamp(28px, 5vw, 56px); border-radius: var(--l-radius, 24px); background: var(--l-surface-2); }
.p-statement h2 { max-width: 16ch; }
.p-statement p { max-width: 40ch; font-size: .9375rem; line-height: 1.65; color: var(--l-muted); }
.p-statement strong { display: block; margin-top: 20px; font-family: var(--l-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--l-accent); }

/* ---------- Gallery ---------- */
.p-gallery { margin-top: clamp(64px, 8vw, 104px); padding: clamp(28px, 5vw, 52px); border: 1px solid var(--l-line); border-radius: var(--l-radius, 24px); background: var(--l-surface); }
.p-gallery .p-head { padding-bottom: 24px; }
.p-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
.p-screen { min-width: 0; }
.p-screen__frame { aspect-ratio: 9 / 19.2; overflow: hidden; border-radius: 26px; border: 1px solid var(--l-line); background: var(--l-surface-2); box-shadow: 0 24px 44px -32px color-mix(in srgb, var(--l-ink) 55%, transparent); }
.p-screen__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.1); }
.p-screen__label { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-family: var(--l-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--l-muted); }
.p-screen__caption { margin-top: 6px; font-family: var(--l-display); font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- CTA ---------- */
.p-cta { margin-top: clamp(64px, 8vw, 104px); padding: clamp(28px, 5vw, 56px); border-radius: var(--l-radius, 24px); background: var(--l-accent); color: var(--l-on-accent); display: flex; flex-direction: column; gap: 28px; }
.p-cta h2 { max-width: 16ch; color: var(--l-on-accent); }
.p-cta p { max-width: 44ch; font-size: .9375rem; line-height: 1.55; color: color-mix(in srgb, var(--l-on-accent) 82%, transparent); }
.p-cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--l-on-accent) 24%, transparent); }
.p-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-badges a { display: inline-flex; }
.p-badges img { height: 46px; width: auto; }
.p-soon { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--l-on-accent) 30%, transparent); border-radius: 999px; font-family: var(--l-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--l-on-accent); }
.p-soon::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--l-on-accent); opacity: .8; }
.p-cta__note { font-family: var(--l-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--l-on-accent) 72%, transparent); }

/* ---------- Footer ---------- */
.p-footer { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-top: 48px; padding: 48px 0 36px; border-top: 1px solid var(--l-line); }
.p-footer__brand img { height: 28px; width: auto; border-radius: 8px; transform: translateZ(0); }
.p-footer__brand p { margin-top: 16px; max-width: 30ch; font-size: .8125rem; line-height: 1.6; color: var(--l-muted); }
.p-footer h4 { margin-bottom: 14px; font-family: var(--l-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--l-muted); }
.p-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.p-footer a { font-size: .8125rem; color: var(--l-muted); text-decoration: none; }
.p-footer a:hover { color: var(--l-ink); }
.p-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0 42px; border-top: 1px solid var(--l-line); font-family: var(--l-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--l-muted); }

/* ---------- Brand hero helpers ---------- */
.p-visual__caption { position: absolute; z-index: 4; left: 16px; bottom: 14px; font-family: var(--l-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--l-muted); }
.p-visual__tag { position: absolute; z-index: 4; top: 14px; left: 14px; padding: 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--l-bg) 78%, transparent); font-family: var(--l-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--l-ink); backdrop-filter: blur(8px); }
.p-visual__tag--accent { background: var(--l-accent); color: var(--l-on-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .p-hero { grid-template-columns: 1fr; gap: 32px; }
  .p-hero h1 { max-width: 16ch; }
  .p-head { grid-template-columns: 1fr; gap: 16px; }
  .p-head p { justify-self: start; }
  .p-visual { min-height: 460px; }
  .p-statement { grid-template-columns: 1fr; gap: 20px; }
  .p-footer { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 860px) {
  .p-links, .p-nav__right > .p-btn, .p-nav__right > .p-lang { display: none; }
  .p-toggle { display: grid; }
  .p-nav__right { margin-left: auto; }
  .p-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 49; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--l-line); border-radius: 20px; background: var(--l-surface); box-shadow: 0 24px 60px -32px rgba(0,0,0,.45); }
  .p-panel.is-open { display: flex; }
  .p-panel a { padding: 12px 14px; border-radius: 12px; font-size: .9375rem; color: var(--l-ink); text-decoration: none; }
  .p-panel .p-btn { margin-top: 6px; }
  .p-panel .p-lang { display: flex; align-self: flex-start; margin: 6px 0 2px 14px; }
  .p-features { grid-template-columns: 1fr 1fr; }
  .p-gallery__grid { grid-template-columns: 1fr 1fr; }
  .p-gallery__grid .p-screen:last-child { display: none; }
  .p-footer { grid-template-columns: 1fr 1fr; }
  .p-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .p-nav { min-height: 58px; padding-left: 14px; }
  .p-brand span { font-size: .9375rem; }
  .p-hero { padding-top: 36px; }
  .p-hero h1 { max-width: 14ch; }
  .p-visual { min-height: 400px; }
  .p-strip { grid-template-columns: 1fr; }
  .p-strip__item { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--l-line); }
  .p-strip__item:last-child { border-bottom: 0; }
  .p-features { grid-template-columns: 1fr; }
  .p-feature { min-height: 0; }
  .p-feature h3 { padding-top: 28px; }
  .p-gallery { padding: 22px 18px; }
  .p-gallery__grid { grid-template-columns: 1fr; }
  .p-gallery__grid .p-screen:last-child { display: block; }
  .p-cta__row { flex-direction: column; align-items: flex-start; }
  .p-footer { grid-template-columns: 1fr; padding-top: 36px; }
  .p-legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
