/* Nemu landing page — the app's 2026-10 look: amber on warm near-black, Inter, Nori. */

:root {
  /* palette, from the app's NemuDesign tokens */
  --amber: #FFC53D;
  --amber-deep: #E0A93A;
  --night: #0B0A08;
  --surface: #16130F;
  --raised: #26221D;
  --track: #2A251E;
  --ink: #1A1208;
  --paper: #F5F1EA;
  --red: #FF5A4E;
  --red-deep: #E4473C;
  --good: #62D27E;
  --soft: #C9C2B6;
  --dim: #A39C90;

  /* five type steps */
  --t1: clamp(64px, 9.8vw, 150px);
  --t2: clamp(42px, 5.6vw, 88px);
  --t3: clamp(22px, 1.9vw, 28px);
  --t4: 18px;
  --t5: 15px;

  --m: 32px;
  --r: 28px;
  --gap: clamp(72px, 7vw, 104px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: "Baloo 2", var(--sans);
}

@media (max-width: 860px) { :root { --m: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--t4);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: var(--ink); }

h2 {
  font-size: var(--t2);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.frame { padding: 0 var(--m); max-width: 1600px; margin: 0 auto; }

/* ----------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: var(--t4);
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s var(--ease), background-color .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #FFD266; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--brand);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.01em;
}
.wordmark img { width: 40px; height: 40px; border-radius: 11px; }
.wordmark.small { font-size: 24px; }
.wordmark.small img { width: 32px; height: 32px; border-radius: 9px; }

/* -------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 34% 1fr;
  height: 100svh;
  min-height: 760px;
  max-height: 1100px;
  background: var(--amber);
  color: var(--ink);
  overflow: hidden;
}

.hero-talk {
  display: flex;
  flex-direction: column;
  padding: var(--m);
}
.hero-pitch { margin-top: calc(30svh - 72px); max-width: 30ch; }
.hero-sentence {
  font-size: var(--t3);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.01em;
}
.hero-pitch .btn { margin-top: 36px; }
.hero-note { margin-top: 14px; font-size: var(--t5); font-weight: 600; }

.hero-wide { position: relative; padding: var(--m) var(--m) 0 0; }

.hero-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 40px;
  font-size: var(--t5);
  font-weight: 600;
}
.hero-nav a { text-decoration: none; position: relative; }
.hero-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.hero-nav a:hover::after, .hero-nav a:focus-visible::after { transform: scaleX(1); }
.hero-nav .nav-get { margin-left: auto; }

.hero-title {
  position: relative;
  z-index: 2;
  margin-top: 7svh;
  font-size: var(--t1);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.045em;
}
.mask { display: block; overflow: hidden; padding-bottom: .07em; }
.line { display: block; }

.hero-nori {
  position: absolute;
  z-index: 3;
  right: var(--m);
  top: calc(var(--m) + 64px);
  width: clamp(240px, 25vw, 400px);
  rotate: 5deg;
  pointer-events: none;
}

.hero-shot {
  position: absolute;
  left: 0;
  right: var(--m);
  top: 66svh;
  bottom: 0;
}
.hero-figure {
  position: absolute;
  z-index: 2;
  top: -58px;
  left: 0;
  width: 260px;
  padding: 20px 22px;
  background: var(--red);
  color: var(--ink);
  border-radius: var(--r);
}
.hero-figure strong { display: block; font-size: var(--t2); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.hero-figure span { display: block; margin-top: 6px; font-size: var(--t5); font-weight: 600; line-height: 1.35; }

/* The app's Home screen, in HTML */
.ui-home {
  height: 100%;
  min-height: 300px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: start;
  padding: 90px 40px 40px;
  background: var(--night);
  color: var(--paper);
  border-radius: var(--r) var(--r) 0 0;
}
.ui-label { display: block; font-size: var(--t5); font-weight: 700; color: var(--dim); }
.ui-big { display: block; font-size: 96px; font-weight: 900; line-height: .95; letter-spacing: -.04em; color: var(--amber); font-variant-numeric: tabular-nums; }
.ui-big small { font-size: .38em; color: var(--dim); letter-spacing: 0; }
.ui-sub { display: block; font-size: var(--t5); color: var(--soft); }
.ui-home-mid { padding-top: 28px; }
.ui-bar { height: 14px; border-radius: 99px; background: var(--track); overflow: hidden; }
.ui-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--amber); border-radius: inherit; transform-origin: left; }
.ui-hint { margin-top: 12px; font-size: var(--t5); color: var(--soft); }
.ui-chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 8px 14px;
  border-radius: 99px; background: #16301C; color: var(--good);
  font-size: var(--t5); font-weight: 600;
}
.ui-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.ui-home-src { padding-top: 22px; min-width: 230px; }
.ui-home-src li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; margin-bottom: 8px;
  background: var(--surface); border-radius: 16px;
  font-size: var(--t5); font-weight: 600;
}
.ui-home-src b { margin-left: auto; font-size: var(--t4); font-variant-numeric: tabular-nums; }
.ui-ig, .ui-yt { width: 22px; height: 22px; border-radius: 7px; flex: none; }
.ui-ig { background: #E1306C; }
.ui-yt { background: #FF0000; }

/* ---------------------------------------------------------- showcase */

.showcase {
  position: relative;
  min-height: 92svh;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  transition: background-color .45s ease;
}
.showcase[data-tone="hot"] { background: var(--red); }
.showcase-text { position: relative; z-index: 2; padding: 96px var(--m) 0; max-width: 46%; }
.showcase-text p { margin-top: 28px; max-width: 36ch; font-size: var(--t4); }
.limit-word { display: inline-block; }

.limit-stage {
  position: absolute;
  right: -1.5vw;
  top: 31%;
  font-size: clamp(18px, 3.5svh, 36px);
}
.limit-nori {
  position: absolute;
  left: -5.4em;
  top: -6.4em;
  width: 10.5em;
  rotate: -4deg;
  transition: opacity .25s ease;
}
.ui-prompt {
  position: relative;
  width: 22em;
  padding: 1.4em 1.4em 1.6em;
  background: var(--surface);
  color: var(--paper);
  border-radius: 1.1em;
}
.ui-prompt-title { font-size: 1.15em; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.ui-prompt-body { margin-top: .4em; font-size: .62em; color: var(--dim); line-height: 1.4; }
.ui-stepper { display: flex; align-items: center; justify-content: space-between; margin: 1em 0 .9em; }
.ui-step {
  width: 2.3em; height: 2.3em;
  border: 0; border-radius: 50%;
  background: var(--raised);
  font-size: 1em; font-weight: 700; line-height: 1;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s ease;
}
.ui-step:hover { background: #342E26; }
.ui-step:active { transform: scale(.9); }
.ui-value { font-size: 3.4em; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; }
.ui-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4em; }
.ui-pick {
  height: 2em;
  border: 0; border-radius: 99px;
  background: var(--raised);
  font-size: .7em; font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.ui-pick:hover { background: #342E26; }
.ui-pick:active { transform: scale(.94); }
.ui-pick[aria-pressed="true"] { background: var(--amber); color: var(--ink); }

/* ------------------------------------------------------ how it works */

.how { background: var(--night); padding: var(--gap) 0; }
.how h2 { margin-bottom: 64px; }
.how-bar { display: flex; gap: 6px; }
.seg { flex: var(--g) 1 0; min-width: 12%; }
.seg-time {
  display: block;
  height: 22svh;
  min-height: 170px;
  padding: 20px;
  border-radius: var(--r);
  font-size: var(--t3);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.seg p { margin-top: 18px; max-width: 22ch; font-size: var(--t4); padding-right: 12px; }
.seg-setup .seg-time { background: var(--amber); color: var(--ink); }
.seg-pick .seg-time { background: var(--paper); color: var(--ink); }
.seg-watch .seg-time { background: var(--red); color: var(--ink); }
.seg-stop .seg-time { background: var(--raised); color: var(--paper); }

/* ---------------------------------------------------------- features */

.features { background: var(--surface); padding: var(--gap) 0; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 96px;
  gap: 8px;
}
.tile { position: relative; padding: 24px; border-radius: var(--r); overflow: hidden; }
.tile p { font-size: var(--t3); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }

.t-head { grid-column: 1 / 7; grid-row: 1 / 4; background: var(--night); display: flex; flex-direction: column; justify-content: space-between; }
.t-head p { max-width: 30ch; font-size: var(--t4); font-weight: 400; color: var(--soft); letter-spacing: 0; }

.t-photo { grid-column: 7 / 13; grid-row: 1 / 6; background: var(--amber); padding: 0; }
.t-photo img { position: absolute; left: 50%; bottom: -4%; width: auto; height: 104%; translate: -50% 0; }

.t-figure { grid-column: 1 / 4; grid-row: 4 / 7; background: var(--red); color: var(--ink); }
.t-figure strong { display: block; font-size: var(--t2); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.t-figure p { margin-top: 14px; font-size: var(--t4); font-weight: 600; }

.t-list { grid-column: 4 / 7; grid-row: 4 / 7; background: var(--paper); color: var(--ink); }
.t-list h3 { font-size: var(--t3); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.t-list li { font-size: var(--t4); font-weight: 500; padding: 3px 0; }

.t-friends { grid-column: 7 / 13; grid-row: 6 / 9; background: var(--raised); display: flex; flex-direction: column; justify-content: space-between; }
.t-friends img { height: 150px; width: auto; align-self: flex-start; margin: -8px 0 0 -8px; }

.t-private { grid-column: 1 / 4; grid-row: 7 / 9; background: var(--amber); color: var(--ink); }
.t-warn { grid-column: 4 / 7; grid-row: 7 / 9; background: var(--night); padding: 0; }
.t-warn img { position: absolute; left: 50%; bottom: -10%; height: 112%; width: auto; translate: -50% 0; }

/* ----------------------------------------------------------- pricing */

.pricing { background: var(--paper); color: var(--ink); padding: var(--gap) 0; }
.price-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; }
.price-head { grid-column: 1 / 6; align-self: start; padding-right: 24px; }
.price-head p { margin-top: 24px; max-width: 30ch; }
.plan {
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  overflow: hidden;
}
.plan-free { grid-column: 6 / 9; height: 440px; background: var(--surface); color: var(--paper); }
.plan-pro { grid-column: 9 / 13; height: 580px; background: var(--amber); color: var(--ink); }
.plan-body { flex: 1; padding: 28px; }
.plan h3 { font-size: var(--t3); font-weight: 800; letter-spacing: -.02em; }
.plan-price { margin: 6px 0 22px; font-size: var(--t2); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.plan-price small { font-size: var(--t4); font-weight: 600; letter-spacing: 0; }
.plan li { padding: 5px 0; font-size: var(--t4); }
.plan-strip {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 28px;
  font-weight: 700;
  text-decoration: none;
  transition: padding-left .3s var(--ease), background-color .2s ease;
}
.plan-strip::after { content: "→"; margin-left: auto; transition: transform .3s var(--ease); }
.plan-strip:hover { padding-left: 36px; }
.plan-strip:hover::after { transform: translateX(4px); }
.plan-free .plan-strip { background: var(--raised); }
.plan-pro .plan-strip { background: var(--amber-deep); }

/* --------------------------------------------------------------- faq */

.faq { background: var(--amber); color: var(--ink); padding: var(--gap) 0; }
.faq h2 { margin-left: calc((100% + 8px) / 12 * 2); }
.drawer {
  margin: 72px calc((100% + 8px) / 12 * 2) 0;
  --step: 130px;
}
.drawer details {
  position: relative;
  margin-top: 12px;
  border-radius: 0 var(--r) var(--r) var(--r);
  background: var(--c);
  color: var(--on);
}
.drawer details:first-child { margin-top: 40px; }
.drawer details:nth-child(3n+1) { --c: var(--night); --on: var(--paper); }
.drawer details:nth-child(3n+2) { --c: var(--paper); --on: var(--ink); }
.drawer details:nth-child(3n+3) { --c: var(--red); --on: var(--ink); }
.drawer details:nth-child(3n+1) { border-radius: 0 var(--r) var(--r) var(--r); }
.drawer details:not(:nth-child(1)) { border-radius: var(--r); }

summary { list-style: none; cursor: pointer; display: block; }
summary::-webkit-details-marker { display: none; }
.tab {
  position: absolute;
  top: -40px;
  left: calc(var(--i) * var(--step));
  width: 200px;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--c);
  border-radius: 18px 18px 0 0;
  font-size: var(--t5);
  font-weight: 700;
}
.q {
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 16px 28px 28px;
  font-size: var(--t4);
  font-weight: 700;
}
.q::after {
  content: "+";
  margin-left: auto;
  padding-left: 16px;
  font-size: 28px;
  font-weight: 500;
  transition: transform .3s var(--ease);
}
details[open] .q::after { transform: rotate(45deg); }
summary:hover .q { opacity: .8; }
.drawer details > p { max-width: 54ch; padding: 0 28px 40px; font-size: var(--t4); }
.drawer details a { font-weight: 700; }

/* --------------------------------------------------------------- cta */

.cta {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gap) var(--m) 40px;
  background: var(--night);
  color: var(--paper);
}
.cta h2 { font-size: var(--t1); line-height: .9; letter-spacing: -.045em; color: var(--amber); }
.cta-base { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 80px; }
.cta-base p { max-width: 38ch; font-size: var(--t4); }

/* ------------------------------------------------------------ footer */

.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: 92svh; }
.foot-photo { position: relative; background: var(--red); overflow: hidden; min-height: 420px; }
.foot-photo img {
  position: absolute;
  left: -6%;
  bottom: -14%;
  width: min(560px, 86%);
  rotate: -6deg;
}
.foot-menu {
  display: flex;
  flex-direction: column;
  padding: 80px var(--m) 32px calc((100% / 6) - 8px);
  background: var(--surface);
}
.foot-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot-links { margin-top: 48px; }
.foot-links li + li { margin-top: 22px; }
.foot-links a {
  display: inline-block;
  font-size: var(--t3);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
  text-decoration: none;
  transition: transform .3s var(--ease), color .2s ease;
}
.foot-links:hover a { color: var(--dim); }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--amber); transform: translateX(12px); }
.foot-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; font-size: var(--t5); }
.foot-blocks h3 { font-size: var(--t5); font-weight: 700; color: var(--dim); margin-bottom: 4px; }
.foot-blocks a { text-decoration: none; font-weight: 600; }
.foot-blocks a:hover { color: var(--amber); }
.foot-legal { margin-top: auto; padding-top: 48px; font-size: var(--t5); color: var(--dim); }

/* ------------------------------------------------------------ motion */

@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes grow { from { transform: scaleX(0); } }

.hero-title .line { animation: rise .9s var(--ease) both; }
.hero-title .mask + .mask .line { animation-delay: .11s; }
.hero-pitch, .hero-shot { animation: fadeUp .8s var(--ease) .55s both; }
.hero-nori { animation: fadeUp .8s var(--ease) .35s both, bob 5s ease-in-out 1.2s infinite; }
.ui-bar i { animation: grow 1.4s var(--ease) .9s both; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.limit-word.swap { animation: fadeUp .4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------- phone */

@media (max-width: 1100px) {
  .ui-home { grid-template-columns: auto 1fr; }
  .ui-home-src { display: none; }
}

@media (max-width: 860px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .hero-talk, .hero-wide { display: contents; }
  .hero .wordmark { order: 0; padding: var(--m) var(--m) 0; }
  .hero-nav { position: absolute; top: var(--m); right: var(--m); }
  .hero-nav a:not(.nav-get) { display: none; }
  .hero-nav .nav-get { min-height: 40px; display: inline-flex; align-items: center; }
  .hero-title { order: 1; margin: 72px var(--m) 0; font-size: 19vw; line-height: .85; }
  .hero-nori { order: 1; position: relative; top: auto; right: auto; z-index: 1; align-self: flex-end; width: 42vw; margin: 12px var(--m) -8px 0; }
  .hero-pitch { order: 2; margin: 28px var(--m) 0; max-width: none; }
  .hero-sentence { font-size: var(--t3); }
  .hero-pitch .btn { display: flex; justify-content: center; width: 100%; }
  .hero-shot { order: 3; position: relative; inset: auto; margin-top: 136px; aspect-ratio: 4 / 3; }
  .hero-figure { width: 60%; top: -48px; left: var(--m); padding: 16px 18px; }
  .hero-figure strong { font-size: var(--t2); }
  .ui-home { border-radius: 0; padding: 92px var(--m) var(--m); gap: 24px; grid-template-columns: 1fr; }
  .ui-big { font-size: 80px; }
  .ui-home-mid { padding-top: 0; }

  .showcase { min-height: 0; padding-bottom: 40px; }
  .showcase-text { max-width: none; padding-top: 72px; }
  .limit-stage { position: relative; right: auto; bottom: auto; margin: 150px var(--m) 0; font-size: 4.1vw; }
  .limit-nori { left: auto; right: -2em; top: -7.4em; width: 11em; }
  .ui-prompt { width: 100%; }

  .how-bar { flex-direction: column; }
  .seg-time { height: calc(var(--g) * 44px); min-height: 72px; }
  .seg p { margin: 12px 0 18px; max-width: none; }

  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 6px; }
  .tile { grid-column: auto !important; grid-row: auto !important; }
  .t-head, .t-photo, .t-friends, .t-private { grid-column: 1 / -1 !important; }
  .t-head { gap: 40px; }
  .t-photo { aspect-ratio: 1 / 1; }
  .t-figure, .t-list { padding: 18px; }
  .t-friends img { height: auto; width: 100%; margin: 0 0 16px; }
  .t-warn { grid-column: 1 / -1 !important; aspect-ratio: 16 / 9; }
  .tile { order: 5; }
  .t-head { order: 0; } .t-photo { order: 1; } .t-figure { order: 2; } .t-list { order: 3; } .t-friends { order: 4; }

  .price-grid { grid-template-columns: 1fr; }
  .price-head, .plan-free, .plan-pro { grid-column: auto; height: auto; }
  .price-grid { gap: 32px; }
  .price-head { padding: 0; }
  .plan-body { padding: 24px 24px 32px; }

  .faq h2 { margin-left: 0; }
  .drawer { margin: 48px 0 0; --step: 40px; }
  .tab { width: 120px; padding: 0 14px; }
  .q { padding: 14px 20px 22px; min-height: 88px; }
  .drawer details > p { padding: 0 20px 28px; }

  .cta { min-height: 80svh; padding-top: 14svh; }
  .cta-base { flex-direction: column; align-items: stretch; }
  .cta-base .btn { justify-content: center; }

  .foot { grid-template-columns: 1fr; }
  .foot-photo { min-height: 50svh; }
  .foot-photo img { width: 82%; left: -4%; }
  .foot-menu { padding: 48px var(--m) 32px; }
  .foot-links { margin-top: 32px; }
  .foot-links li + li { margin-top: 18px; }
  .foot-links a { font-size: var(--t2); }
}
