/* ============================================================
   FunFluentJP — landing page styles
   Hand-authored, framework-free. Mobile-first.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --teal: #0E7C86;
  --teal-600: #0C6B74;
  --teal-700: #0A565E;
  --teal-050: #E4F1F1;
  --orange: #FF6B2C;
  --orange-600: #EA5A1E;
  --orange-link: #C74E15;   /* AA-compliant on white for text links */

  /* Surfaces */
  --bg: #EEF7F7;
  --card: #FFFFFF;
  --ink: #14383A;           /* body text on light bg (~11:1 on --bg) */
  --ink-soft: #4A6567;      /* secondary text (~5:1 on --card) */
  --line: #D6EAEA;

  /* Shape & depth */
  --radius: 15px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 60, 64, .06);
  --shadow: 0 8px 24px rgba(10, 60, 64, .08);
  --shadow-lg: 0 18px 48px rgba(10, 60, 64, .12);

  /* Layout */
  --maxw: 1160px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  /* Type */
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-jp: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
             var(--font);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-link); text-underline-offset: 2px; }
a:hover { color: var(--orange-600); }
h1, h2, h3, h4 { line-height: 1.15; color: var(--teal-700); margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

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

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .6rem;
}
.eyebrow--light { color: #BEE7E7; }
.section__head { max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem); }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.2rem); color: var(--ink-soft); }
.jp { font-family: var(--font-jp); }

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 1000;
  background: var(--teal); color: #fff; padding: .6rem 1rem; border-radius: 10px;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Visible focus everywhere */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  padding: .8rem 1.4rem; border-radius: var(--radius-pill); border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--orange-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--teal-700); border-color: var(--line); }
.btn--ghost:hover { background: #fff; color: var(--teal-700); border-color: var(--teal); transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238, 247, 247, .85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(238, 247, 247, .95); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.brand:focus-visible { outline-offset: 4px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .3rem; list-style: none; }
.nav__list a { color: var(--teal-700); text-decoration: none; font-weight: 600; padding: .5rem .8rem; border-radius: 10px; }
.nav__list a:hover { background: var(--teal-050); color: var(--teal-700); }
.nav .btn { margin-left: .4rem; }

.nav-toggle {
  display: none; margin-left: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--teal-700); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-120%);
    transition: transform .25s ease; visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; padding: 1rem var(--gutter) 1.5rem; }
  .nav__list a { padding: .8rem 1rem; }
  .nav .btn { margin: .6rem 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-y); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--orange);
  padding: .45rem .9rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 4vw, 3.6rem); margin-top: 1rem; }
.hero h1 .accent { color: var(--orange); }
.hero__sub { font-size: clamp(1.05rem, 1rem + .6vw, 1.28rem); color: var(--ink-soft); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__note { margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; }
.hero__note svg { width: 18px; height: 18px; flex: none; color: var(--teal); }
.hero__art { position: relative; }
.hero__art img { margin-inline: auto; filter: drop-shadow(0 22px 40px rgba(10,60,64,.14)); }

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__sub, .badge, .hero__cta, .hero__note { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { order: -1; max-width: 440px; margin-inline: auto; }
}

/* ---------- Cards grid (audience, features) ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2vw, 1.8rem); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C7E4E4; }
.card h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-050); color: var(--teal); margin-bottom: 1rem;
}
.card__icon svg { width: 27px; height: 27px; }
.card--accent .card__icon { background: #FFE7DB; color: var(--orange-600); }

/* Audience persona cards */
.persona .card__icon { width: 60px; height: 60px; border-radius: 50%; }
.persona .card__icon svg { width: 30px; height: 30px; }
.persona .card { text-align: center; }
.persona .card__icon { margin-inline: auto; }

/* ---------- Benefits (alternating rows) ---------- */
.benefit-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.benefit-row + .benefit-row { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.benefit-row .art { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.benefit-row h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.benefit-row p { color: var(--ink-soft); }
.check-list { list-style: none; display: grid; gap: .7rem; margin-top: 1rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--teal); margin-top: 2px; }
@media (max-width: 820px) {
  .benefit-row { grid-template-columns: 1fr; }
  .benefit-row.reverse .art { order: -1; }
  .benefit-row .art { order: -1; }
}

/* ---------- Waitlist ---------- */
.waitlist { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-700) 100%); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.waitlist__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.8rem, 4vw, 3rem); }
.waitlist h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.3rem); }
.waitlist p { color: rgba(255,255,255,.9); }
.waitlist .privacy-note { font-size: .85rem; color: rgba(255,255,255,.75); margin-top: 1rem; }
.waitlist .privacy-note a { color: #fff; text-decoration: underline; }
.form-embed {
  background: #fff; border-radius: var(--radius); padding: .5rem; box-shadow: var(--shadow);
  min-height: 480px;
}
.form-embed iframe { width: 100%; border: 0; border-radius: 10px; display: block; }
.form-fallback { text-align: center; padding: 2rem 1rem; }
@media (max-width: 820px) { .waitlist__inner { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; margin-inline: auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.2rem; margin-bottom: .8rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.2rem 1.1rem 0; position: relative;
  font-weight: 700; color: var(--teal-700); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .2rem; top: 1.25rem; width: 12px; height: 12px;
  border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 1.1rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { text-align: center; max-width: 40rem; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #0B4A50; color: #CFE6E6; padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; margin-top: var(--section-y); }
.site-footer a { color: #EAF6F6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer__grid img { height: 34px; margin-bottom: .8rem; }
.footer__brand p { color: #A9CFCF; font-size: .92rem; max-width: 24rem; }
.footer__col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .8rem; }
.footer__col ul { list-style: none; display: grid; gap: .5rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; align-items: center; font-size: .87rem; color: #A9CFCF; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Legal / content pages ---------- */
.doc { max-width: 48rem; margin: 0 auto; padding-block: clamp(2.5rem, 6vw, 4rem); }
.doc h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2rem; list-style: disc; margin-bottom: 1rem; }
.doc .muted { font-size: .9rem; color: var(--ink-soft); }
.doc .back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; font-weight: 700; text-decoration: none; color: var(--teal); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.notfound .code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; color: var(--teal); line-height: 1; }
