/* ============================================================
   Landing page (brisensei.com/) — watercolor "calm path" design.
   Loaded after styles.css; all classes are lp- prefixed.
   Colours come from the shared tokens so dark mode adapts.
   ============================================================ */

/* The landing keeps its calm light/washi palette regardless of the global
   dark toggle, so the watercolor art always sits on cream as designed. */
.lp {
  --bg: #faf6ef; --bg-deep: #f3ecdf; --surface: #ffffff;
  --ink: #1c1c1c; --ink-soft: #4a4339; --ink-mute: #8a8275; --line: #e8dfd0;
  --vermilion: #b8362e; --vermilion-soft: #c95048; --gold: #b8893a;
  background: var(--bg); color: var(--ink); min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif; overflow-x: hidden;
}
.lp-wrap { max-width: 1480px; margin: 0 auto; padding: 0 34px; }

/* ---- header ---- */
.lp-top { padding: 22px 0 6px; }
.lp-top-in { display: flex; align-items: center; justify-content: space-between; }
.lp-logo { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.lp-hanko {
  width: 48px; height: 48px; border-radius: 50%; background: var(--vermilion); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-serif, 'Noto Serif JP', serif); font-weight: 700; font-size: 17px; line-height: .92; flex: none;
}
.lp-logo-text { font-family: var(--font-serif, serif); font-weight: 600; font-size: 18px; line-height: 1.12; }
.lp-signin { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--vermilion); font-size: 15px; font-weight: 500; }
.lp-signin:hover { color: var(--vermilion-soft); }

/* ---- hero ---- */
.lp-hero { position: relative; }
.lp-hero-grid { display: grid; grid-template-columns: 1.08fr 1.02fr; gap: 30px; align-items: center; padding: 18px 0 26px; }
.lp-hero-art { order: 1; }   /* image on the LEFT */
.lp-hero-text { order: 2; }  /* text on the RIGHT */
.lp-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--vermilion); color: var(--vermilion);
  border-radius: 999px; padding: 6px 16px; font-size: 13px; letter-spacing: .01em; }
.lp-h1 { font-family: var(--font-serif, serif); font-weight: 600; font-size: 53px; line-height: 1.07; letter-spacing: -.01em; margin: 20px 0 18px; color: var(--ink); }
.lp-h1 .accent { color: var(--vermilion); }
.lp-lead { font-size: 16px; line-height: 1.72; color: var(--ink-soft); max-width: 510px; }
.lp-tip { font-size: 13.5px; line-height: 1.6; color: var(--ink-mute); margin-top: 15px; max-width: 480px; }
.lp-tip b { color: var(--vermilion); font-weight: 600; }
.lp-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.lp-btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 12px; padding: 14px 26px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform .12s ease, background .15s, border-color .15s; }
.lp-btn:active { transform: scale(.98); }
.lp-btn-primary { background: var(--vermilion); color: #fff; box-shadow: 0 6px 18px rgba(184,54,46,.22); }
.lp-btn-primary:hover { background: var(--vermilion-soft); }
.lp-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.lp-btn-ghost:hover { border-color: var(--vermilion); color: var(--vermilion); }
.lp-hero-art { position: relative; }
.lp-hero-art img { width: 100%; height: auto; display: block; }

/* ---- section headings ---- */
.lp-section { padding: 26px 0; }
.lp-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; }
.lp-head h2 { font-family: var(--font-serif, serif); font-weight: 600; font-size: 30px; margin: 0; color: var(--ink); position: relative; padding-bottom: 8px; }
.lp-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--vermilion); border-radius: 2px; }
.lp-head .jp { color: var(--ink-mute); font-size: 17px; font-family: var(--font-serif, serif); }
.lp-head .grow { flex: 1; }
.lp-head .more { color: var(--vermilion); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.lp-head .more:hover { color: var(--vermilion-soft); }

/* ---- foundation ---- */
.lp-found { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lp-found-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 30px; min-height: 150px; text-decoration: none; color: var(--ink); display: block; transition: border-color .15s, transform .15s; }
.lp-found-card:hover { border-color: var(--vermilion); transform: translateY(-2px); }
.lp-found-label { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-mute); }
.lp-found-char { font-family: var(--font-serif, serif); font-weight: 600; font-size: 58px; line-height: 1; margin: 8px 0 14px; color: var(--ink); }
.lp-found-card.hira .lp-found-char { color: var(--vermilion); }
.lp-found-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.62; max-width: 64%; }
.lp-found-bullet { font-size: 13px; color: var(--ink-mute); margin-top: 14px; }
.lp-found-ghost { position: absolute; right: 14px; bottom: -22px; font-family: var(--font-serif, serif); font-weight: 700; font-size: 150px; line-height: 1; color: var(--ink); opacity: .05; pointer-events: none; user-select: none; }
/* Foundation botanical accents (watercolor cutouts) */
.lp-found-card.hira { padding-left: 138px; }
.lp-found-bamboo { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); height: 172px; width: auto; z-index: 0; pointer-events: none; }
.lp-found-cherry { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 196px; height: auto; z-index: 0; pointer-events: none; }
.lp-found-card .lp-found-label, .lp-found-card .lp-found-char, .lp-found-card .lp-found-desc, .lp-found-card .lp-found-bullet { position: relative; z-index: 1; }
@media (max-width: 600px) { .lp-found-card.hira { padding-left: 104px; } .lp-found-bamboo { height: 124px; } .lp-found-cherry { width: 138px; } }

/* ---- essentials grid ---- */
.lp-ess { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.lp-ess-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 15px 17px;
  text-decoration: none; color: var(--ink); display: block; transition: border-color .15s, transform .15s, box-shadow .15s; }
.lp-ess-card:hover { border-color: var(--vermilion); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(28,28,28,.06); }
.lp-ess-art { width: 80px; height: 80px; object-fit: contain; display: block; margin-bottom: 10px; }
.lp-ess-card h3 { font-size: 14px; font-weight: 600; margin: 2px 0 6px; color: var(--ink); }
.lp-ess-card p { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.lp-ess-card .b { display: block; font-size: 11.5px; color: var(--ink-mute); margin-top: 9px; }
.lp-ess-card .b::before { content: "• "; color: var(--vermilion); }

/* ---- JLPT levels ---- */
.lp-jlpt { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.lp-jlpt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px 22px;
  text-decoration: none; color: var(--ink); display: block; transition: border-color .15s, transform .15s, box-shadow .15s; }
.lp-jlpt-card:hover { border-color: var(--vermilion); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(28,28,28,.06); }
.lp-jlpt-label { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-mute); }
.lp-jlpt-num { font-family: var(--font-serif, serif); font-weight: 700; font-size: 42px; line-height: 1.1; margin: 5px 0 9px; }
.lp-jlpt-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.lp-jlpt-tag { font-size: 12px; color: var(--ink-mute); margin-top: 13px; }
.lp-jlpt-tag::before { content: "• "; color: var(--vermilion); }
.lp-n5 { color: #b8362e; } .lp-n4 { color: #bd7e2a; } .lp-n3 { color: #2f7d62; } .lp-n2 { color: #356ba0; } .lp-n1 { color: #6a5aa8; }

.lp-foot { border-top: 1px solid var(--line); margin-top: 36px; color: var(--ink-mute); }
.lp-foot-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 28px; padding: 42px 34px 28px; align-items: start; }
.lp-foot-brand { display: flex; gap: 13px; align-items: flex-start; }
.lp-foot-name { font-family: var(--font-serif, serif); font-weight: 600; font-size: 17px; color: var(--ink); }
.lp-foot-tag { font-size: 13px; color: var(--ink-mute); line-height: 1.6; margin: 6px 0 0; max-width: 300px; }
.lp-foot-col h4 { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin: 2px 0 12px; font-weight: 600; }
.lp-foot-col a { display: block; font-size: 14px; color: var(--ink-soft); text-decoration: none; padding: 4px 0; }
.lp-foot-col a:hover { color: var(--vermilion); }
.lp-foot-base { display: flex; align-items: center; gap: 11px; padding: 15px 34px 42px; border-top: 1px solid var(--line); font-size: 13px; }
.lp-foot-stamp { font-family: var(--font-serif, serif); color: var(--vermilion); font-size: 18px; }
@media (max-width: 760px) { .lp-foot-grid { grid-template-columns: 1fr 1fr; } .lp-foot-brand { grid-column: 1 / -1; } }

/* ---- responsive ---- */
@media (max-width: 1240px) { .lp-ess { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 980px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .lp-hero-art { order: -1; max-width: 560px; margin: 0 auto; }
  .lp-h1 { font-size: 44px; }
  .lp-found { grid-template-columns: 1fr; }
  .lp-found-desc { max-width: 70%; }
  .lp-ess { grid-template-columns: repeat(3, 1fr); }
  .lp-jlpt { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .lp-wrap { padding: 0 18px; }
  .lp-h1 { font-size: 36px; }
  .lp-ess { grid-template-columns: repeat(2, 1fr); }
  .lp-jlpt { grid-template-columns: repeat(2, 1fr); }
  .lp-head h2 { font-size: 25px; }
  .lp-logo-text { font-size: 16px; }
}

/* ---- decorative accents (CSS/SVG stand-ins for the watercolor art) ---- */
.lp-lantern { position: absolute; top: -8px; left: max(14px, calc(50% - 642px)); width: 58px; height: auto; z-index: 3; pointer-events: none; }
@media (max-width: 1340px) { .lp-lantern { display: none; } }
.lp-jlpt-wrap { position: relative; overflow: hidden; }
.lp-jlpt-wrap .lp-wrap { position: relative; z-index: 1; }
.lp-torii { position: absolute; bottom: -14px; width: 152px; height: auto; color: var(--vermilion); opacity: .06; pointer-events: none; z-index: 0; }
.lp-torii.left { left: 4px; }
.lp-torii.right { right: 4px; transform: scaleX(-1); }
.lp-temple { position: absolute; bottom: -26px; right: -6px; width: 190px; height: auto; opacity: .1; pointer-events: none; z-index: 0; }
@media (max-width: 760px) { .lp-torii { width: 104px; opacity: .05; } .lp-temple { width: 122px; bottom: -16px; opacity: .08; } }

/* Sign-in nudge: when a logged-out visitor taps a protected link we scroll up
   and pulse the hero call-to-action (see lib/landing-gate.js). */
@keyframes lpCtaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(184,54,46,.45); }
  70%  { box-shadow: 0 0 0 16px rgba(184,54,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,54,46,0); }
}
.lp-cta-pulse .lp-btn-primary, .lp-signin.lp-cta-pulse { animation: lpCtaPulse 1s ease-out 2; border-radius: 12px; }
