/* ============================================================
   pages.css v2 - About / Blog / Contact / Help Center
   Scoped page styles on the approved Loopmerce design system.
   v2 polish: centred section compositions, more breathing room,
   consistent card treatment. Long paragraphs, forms, bullet/tutorial
   lists and addresses stay LEFT-aligned for readability.
   ============================================================ */

/* ---------- Skip link (matches the legal-page pattern) ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent, #2C7BF0); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: .9rem;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---------- Page shell ---------- */
.lm-page { background: var(--bg); }
.lm-page .wrap { position: relative; }

/* Section rhythm (major / smaller) */
.lm-sec    { padding: clamp(72px, 9vw, 116px) 0; }
.lm-sec--sm{ padding: clamp(56px, 7vw, 88px) 0; }
.lm-sec--wash { background: var(--accent-wash); border-block: 1px solid var(--line-2); }
.lm-sec--tint { background: linear-gradient(180deg, #fff, var(--accent-wash)); }

/* ---------- Hero (centred) ---------- */
.lm-hero { position: relative; padding: clamp(88px, 11vw, 140px) 0 clamp(48px, 6vw, 74px); overflow: clip; }
.lm-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lm-hero__bg::before, .lm-hero__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(72px); opacity: .5;
}
.lm-hero__bg::before { width: 46vw; max-width: 560px; aspect-ratio: 1; top: -14%; left: -6%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 38%, transparent), transparent 66%); }
.lm-hero__bg::after { width: 40vw; max-width: 480px; aspect-ratio: 1; top: -8%; right: -8%;
  background: radial-gradient(circle, color-mix(in srgb, var(--teal) 32%, transparent), transparent 66%); }
.lm-hero .wrap { position: relative; z-index: 1; }
.lm-hero__inner { max-width: 900px; margin-inline: auto; text-align: center; }
.lm-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.06; letter-spacing: -0.03em;
  margin: 20px 0 0; color: var(--ink);
}
.lm-hero__lead { font-size: clamp(1.06rem, 1.7vw, 1.28rem); color: var(--muted); line-height: 1.55;
  margin: 22px auto 0; max-width: 740px; }
.lm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; justify-content: center; }
.lm-hero__status { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--teal) 40%, var(--line));
  background: color-mix(in srgb, var(--teal) 10%, #fff); color: var(--accent-ink); font-weight: 700; font-size: .92rem; }
.lm-hero__status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: none; }
.lm-hero .lm-disclaimer { margin-top: 18px; }

/* ---------- Section heading (centred) ---------- */
.lm-head { max-width: 760px; margin: 0 auto clamp(34px, 4vw, 52px); text-align: center; }
.lm-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.025em; margin: 14px 0 0; }
.lm-head__lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.55;
  margin: 20px auto 0; max-width: 720px; }
.lm-disclaimer { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* ---------- Prose (centred block, LEFT text) ---------- */
.lm-prose { max-width: 720px; margin-inline: auto; }
.lm-prose p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.lm-prose p + p { margin-top: 18px; }

/* ---------- Cards + grids ---------- */
.lm-grid { display: grid; gap: clamp(20px, 2.4vw, 26px); margin-inline: auto; }
.lm-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 920px; }
.lm-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 1080px; }
.lm-grid--4 { grid-template-columns: repeat(4, 1fr); }

.lm-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(24px, 2.6vw, 32px); box-shadow: 0 1px 2px rgba(16,24,48,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.lm-card--hover { cursor: pointer; text-decoration: none; }
.lm-card--hover:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  box-shadow: 0 2px 6px rgba(16,24,48,.06), 0 18px 36px rgba(16,24,48,.10); }
.lm-card--hover:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }
.lm-card h3 { font-size: 1.12rem; margin: 0 0 6px; letter-spacing: -0.01em; color: var(--ink); }
.lm-card p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0; }

.lm-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  color: var(--pa, var(--accent)); background: color-mix(in srgb, var(--pa, var(--accent)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--pa, var(--accent)) 26%, transparent); }
.lm-ic svg { width: 24px; height: 24px; }
.lm-ic img { width: 26px; height: 26px; }

/* product accent tokens */
.lm-prod--rep  { --pa: var(--navy); }
.lm-prod--ship { --pa: var(--blue); }
.lm-prod--inv  { --pa: var(--teal); }
.lm-card__cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-weight: 700; font-size: .92rem; color: var(--accent-ink); }
.lm-card__cta svg { width: 15px; height: 15px; transition: transform .2s ease; }
.lm-card--hover:hover .lm-card__cta svg { transform: translateX(3px); }

/* Centred-content cards: About products, Contact enquiry + contact-method
   cards (short feature cards). Icons, names and CTAs centred, equal CTA baseline. */
.lm-prod--rep, .lm-prod--ship, .lm-prod--inv, .lm-opt, .lm-method {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.lm-prod--rep .lm-ic, .lm-prod--ship .lm-ic, .lm-prod--inv .lm-ic,
.lm-opt .lm-ic, .lm-method .lm-ic { margin-inline: auto; }
.lm-prod--rep .lm-card__cta, .lm-prod--ship .lm-card__cta, .lm-prod--inv .lm-card__cta,
.lm-method .lm-card__cta { margin-top: auto; }

/* ---------- Process flow (centred, a touch more room) ---------- */
.lm-flow { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: 12px; margin: 6px auto 0; max-width: 1120px; }
.lm-flow__step { flex: 1 1 132px; min-width: 128px; position: relative; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 15px; }
.lm-flow__num { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 800; font-size: .85rem; color: #fff; background: var(--accent); margin-bottom: 12px; }
.lm-flow__step h4 { font-size: .98rem; margin: 0; letter-spacing: -0.01em; color: var(--ink); }
.lm-flow__step p { font-size: .84rem; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.lm-flow__arrow { align-self: center; color: color-mix(in srgb, var(--accent) 55%, var(--muted)); flex: 0 0 auto; }
.lm-flow__arrow svg { width: 22px; height: 22px; display: block; }

/* ---------- Principles (LEFT content: longer descriptions) ---------- */
.lm-principle .lm-ic { background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); }

/* ---------- Company info (centred block, LEFT columns) ---------- */
.lm-company { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 40px);
  align-items: start; max-width: 940px; margin-inline: auto; text-align: left; }
.lm-company address { font-style: normal; color: var(--ink); line-height: 1.7; }
.lm-company__contact { display: grid; gap: 7px; }
.lm-company__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); margin: 0 0 6px; }
.lm-company__row + .lm-company__row { margin-top: 22px; }
.lm-company ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.lm-company ul li { margin: 3px 0; }
.lm-company a { color: var(--accent-ink); font-weight: 600; }

/* ---------- Contact methods (Email / Call / WhatsApp) ---------- */
.lm-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px);
  max-width: 1000px; margin: 0 auto clamp(30px, 4vw, 46px); }
.lm-method__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--muted); margin-top: 6px; }
.lm-method__val { font-weight: 700; color: var(--ink); font-size: 1.02rem; margin-top: 5px; line-height: 1.4; overflow-wrap: anywhere; }
.lm-method .lm-card__cta { margin-top: 14px; }
.lm-method--wa { --pa: #1FA855; }              /* restrained WhatsApp green accent */
.lm-method--wa .lm-card__cta { color: #1A8F48; }
.lm-nowrap { white-space: nowrap; }

/* ---------- Coming-soon panel (centred) ---------- */
.lm-soon { max-width: 820px; margin-inline: auto;
  background: linear-gradient(180deg, #fff, var(--accent-wash));
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(30px, 4.5vw, 52px); text-align: center; }
.lm-soon__badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line)); background: #fff;
  font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); }
.lm-soon__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.lm-soon h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 22px 0 0; color: var(--ink); }
.lm-soon p { color: var(--muted); max-width: 56ch; margin: 16px auto 0; line-height: 1.6; }
.lm-soon__actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Category cards (Blog + Help): LEFT content, bottom-aligned label ---------- */
.lm-cat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: clamp(22px, 2.4vw, 30px); }
.lm-cat h3 { font-size: 1.04rem; margin: 0 0 4px; color: var(--ink); }
.lm-cat p { font-size: .9rem; color: var(--muted); margin: 0 0 18px; line-height: 1.55; }
.lm-cat__soon { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); background: var(--line-2); padding: 5px 11px; border-radius: 999px; }
.lm-cat__soon svg { width: 13px; height: 13px; }

/* Help Center tutorial list (non-clickable, LEFT) */
.lm-topics { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 9px; }
.lm-topics li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .92rem; }
.lm-topics li svg { width: 16px; height: 16px; color: color-mix(in srgb, var(--accent) 60%, var(--muted)); flex: none; }

/* ---------- Contact options (enquiry) icon accent ---------- */
.lm-opt .lm-ic { color: var(--accent); }

/* ---------- Contact form (LEFT form, centred layout) ---------- */
.lm-formwrap { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(24px, 3vw, 40px);
  align-items: start; max-width: 1100px; margin-inline: auto; }
.lm-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 1px 2px rgba(16,24,48,.04); text-align: left; }
.lm-field { margin-bottom: 16px; }
.lm-field label { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 7px; }
.lm-field .req { color: #c23b3b; }
.lm-field input, .lm-field select, .lm-field textarea {
  width: 100%; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; min-height: 46px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.lm-field textarea { min-height: 130px; resize: vertical; }
.lm-field input:focus, .lm-field select:focus, .lm-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.lm-field input:focus-visible, .lm-field select:focus-visible, .lm-field textarea:focus-visible { outline: 2px solid transparent; }
.lm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lm-field--error input, .lm-field--error select, .lm-field--error textarea { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214,69,69,.12); }
.lm-err { color: #c23b3b; font-size: .82rem; margin-top: 6px; display: none; }
.lm-field--error .lm-err { display: block; }
.lm-form__note { font-size: .82rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.lm-form__note a { color: var(--accent-ink); font-weight: 600; }

/* form status regions */
.lm-formstatus { margin-top: 4px; }
.lm-alert { border-radius: 12px; padding: 14px 16px; font-size: .92rem; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.lm-alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.lm-alert--error { border: 1px solid #eab8b8; background: #fdf3f3; color: #a13030; }
.lm-alert--ok { border: 1px solid color-mix(in srgb, var(--teal) 40%, var(--line)); background: color-mix(in srgb, var(--teal) 9%, #fff); color: var(--accent-ink); }
.lm-alert--info { border: 1px solid var(--line); background: var(--accent-wash); color: var(--ink-2); }

/* button loading state (reuses .btn-cta from the shared system) */
.lm-form .btn-cta[aria-busy="true"] { opacity: .75; pointer-events: none; }
.lm-spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; display: inline-block; }
@media (prefers-reduced-motion: no-preference) { .lm-spin { animation: lmspin .7s linear infinite; } }
@keyframes lmspin { to { transform: rotate(360deg); } }

/* contact side rail (LEFT internal) */
.lm-rail { display: grid; gap: 14px; }
.lm-rail__card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 2vw, 24px); text-align: left; }
.lm-rail__card h3 { font-size: 1rem; margin: 0 0 10px; color: var(--ink); }
.lm-rail__card address { font-style: normal; color: var(--muted); line-height: 1.65; font-size: .94rem; }
.lm-rail__card address a { color: var(--accent-ink); font-weight: 600; }
.lm-linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lm-linklist a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.lm-linklist a:hover { color: var(--accent-ink); }
.lm-linklist svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* ---------- Final CTA band (centred, constrained, roomier) ---------- */
.lm-cta { max-width: 960px; margin-inline: auto; background: var(--navy); color: #fff; border-radius: 22px;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 56px); text-align: center; }
.lm-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.lm-cta p { color: rgba(255,255,255,.82); max-width: 60ch; margin: 16px auto 0; line-height: 1.6; }
.lm-cta__actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.lm-cta .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.lm-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.lm-cta .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.lm-cta__aside { margin-top: 20px; font-size: .9rem; color: rgba(255,255,255,.75); }
.lm-cta__aside a { color: #fff; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* ---------- Entrance motion (safe: visible by default) ---------- */
.pg-reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .pg-reveal { opacity: 0; transform: translateY(16px); animation: pgReveal .7s cubic-bezier(.22,.61,.36,1) forwards; }
  .pg-reveal.d2 { animation-delay: .07s; }
  .pg-reveal.d3 { animation-delay: .14s; }
  .pg-reveal.d4 { animation-delay: .21s; }
  .pg-reveal.d5 { animation-delay: .28s; }
}
@keyframes pgReveal { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lm-grid--3, .lm-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .lm-company { grid-template-columns: 1fr; max-width: 620px; }
  .lm-formwrap { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 760px) {
  .lm-methods { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 620px) {
  .lm-grid--2, .lm-grid--3, .lm-grid--4 { grid-template-columns: 1fr; max-width: 460px; }
  .lm-row2 { grid-template-columns: 1fr; }
  .lm-flow__arrow { transform: rotate(90deg); align-self: center; margin: -2px auto; }
  .lm-flow__step { flex-basis: 100%; }
}
